/* PolitiSite v9 — Static CSS (variables injected via /css/dynamic.css) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); line-height: 1.65; background: var(--color-bg); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; }

/* ── CONTAINER ────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── NAV ──────────────────────────────────────────────── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; transition: background 0.3s, box-shadow 0.3s; height: var(--nav-height); }
.site-nav.scrolled { background: var(--color-secondary); box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; flex-direction: column; text-decoration: none; }
.nav-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.nav-office { font-size: 0.72rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.88rem; padding: 6px 12px; border-radius: 6px; transition: background 0.2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.12); text-decoration: none; }
.nav-links .nav-donate { background: var(--color-accent); color: #000 !important; border-radius: 20px; padding: 6px 18px; }
.nav-links .nav-donate:hover { opacity: 0.9; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,0.5); color: #fff; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 1.2rem; }

/* ── HERO ─────────────────────────────────────────────── */
.hero { min-height: var(--hero-height, 100vh); background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 70%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; padding: calc(var(--nav-height) + 40px) 24px 100px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%); z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-party-badge { display: inline-block; border: 2px solid rgba(255,255,255,0.5); color: rgba(255,255,255,0.9); padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 20px; }
.hero-name { font-size: clamp(2.8rem,7vw,5.5rem); color: #fff; font-weight: 900; line-height: 1; margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-office { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 28px; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-headline { font-size: clamp(1.5rem,3.5vw,2.4rem); color: #fff; font-weight: 700; margin-bottom: 16px; }
.hero-subtext { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); padding: calc(var(--nav-height) + 48px) 24px 48px; text-align: center; color: #fff; }
.page-hero-sm { padding: calc(var(--nav-height) + 24px) 24px 24px; }
.page-hero nav { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.page-hero nav a { color: rgba(255,255,255,0.85); }
.page-hero-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-accent); display: block; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn { display: inline-block; padding: 13px 30px; border-radius: var(--btn-radius); font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: all 0.2s; font-family: var(--font-body); text-align: center; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #000; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-2px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-full { width: 100%; }

/* ── SECTIONS ─────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-primary); display: block; margin-bottom: 8px; }
.section-title { font-size: clamp(1.8rem,4vw,2.8rem); color: var(--color-text); font-weight: 700; margin-bottom: 16px; }
.section-cta { text-align: center; margin-top: 40px; }
.subsection-title { font-family: var(--font-display); font-size: 1.4rem; margin: 28px 0 16px; color: var(--color-primary); }
.lead-text { font-size: 1.1rem; color: var(--color-text-light); line-height: 1.75; margin-bottom: 20px; }

/* ── TICKER ───────────────────────────────────────────── */
.policy-ticker { background: var(--color-primary); overflow: hidden; padding: 14px 0; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 35s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 32px; color: rgba(255,255,255,0.92); font-size: 0.88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ticker-dot { color: var(--color-accent); }

/* ── TWO COL GRID ─────────────────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col-grid.align-start { align-items: start; }

/* ── ABOUT ────────────────────────────────────────────── */
.about-photo-col, .about-photo-wrap { position: sticky; top: calc(var(--nav-height) + 20px); }
.candidate-photo { border-radius: 12px; width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.candidate-photo-lg { border-radius: 12px; width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.photo-placeholder { aspect-ratio: 3/4; background: var(--color-light); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed rgba(0,0,0,0.1); }
.photo-placeholder-lg { aspect-ratio: 3/4; background: var(--color-light); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed rgba(0,0,0,0.1); gap: 8px; }
.photo-initials { font-family: var(--font-display); font-size: 4rem; color: var(--color-primary); font-weight: 900; opacity: 0.25; }
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.bio-text p { margin-bottom: 16px; font-size: 1.05rem; line-height: 1.75; }
.policy-checklist { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.policy-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.check-icon { color: var(--color-accent); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; padding-top: 1px; }

/* ── TIMELINE ─────────────────────────────────────────── */
.timeline { border-left: 3px solid var(--color-primary); margin-left: 20px; padding-top: 8px; }
.timeline-item { display: flex; gap: 24px; padding: 0 0 28px 24px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; background: var(--color-accent); border-radius: 50%; border: 2px solid var(--color-bg); }
.timeline-year { font-size: 0.78rem; font-weight: 700; color: var(--color-primary); white-space: nowrap; min-width: 80px; padding-top: 4px; }
.timeline-content h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.timeline-org { color: var(--color-primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }

/* ── ISSUES ───────────────────────────────────────────── */
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.issues-grid-full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.issue-card { background: var(--color-bg); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--color-primary); transition: transform 0.25s, box-shadow 0.25s; }
.issue-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.issue-icon { font-size: 2.2rem; margin-bottom: 14px; }
.issue-card h2, .issue-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-primary); }
.issue-desc { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 12px; }
.issue-detail { font-size: 0.9rem; line-height: 1.65; }

/* ── ENDORSEMENTS ─────────────────────────────────────── */
.endorsements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.endorsement-card { background: var(--color-bg); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--color-accent); }
.endorsement-card blockquote { font-style: italic; font-size: 1rem; margin-bottom: 16px; line-height: 1.65; color: var(--color-text); }
.endorsement-card cite { font-style: normal; font-size: 0.88rem; color: var(--color-text-light); }
.endorsement-card cite strong { display: block; color: var(--color-text); font-size: 0.95rem; }

/* ── CTA GRID ─────────────────────────────────────────── */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cta-card { text-align: center; padding: 40px 24px; background: var(--color-light); border-radius: 12px; }
.cta-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cta-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--color-primary); }
.cta-card p { color: var(--color-text-light); margin-bottom: 20px; font-size: 0.95rem; }
.cta-simple { padding: 60px 0; }

/* ── VOLUNTEER ────────────────────────────────────────── */
.volunteer-section { background: var(--color-secondary) !important; }
.volunteer-text h2 { color: #fff; }
.volunteer-reasons { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.volunteer-reasons li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-size: 1rem; }
.vol-icon { color: var(--color-accent); font-weight: 700; }

/* ── FORMS ────────────────────────────────────────────── */
.form-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); border-radius: 12px; padding: 32px; border: 1px solid rgba(255,255,255,0.12); }
.form-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; color: #fff; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: rgba(255,255,255,0.85); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body); font-size: 0.95rem; transition: border 0.2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); }
.form-group-check { display: flex; flex-wrap: wrap; gap: 12px; }
.form-group-check label { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; cursor: pointer; color: rgba(255,255,255,0.85); }
.form-group-check input[type="checkbox"] { width: auto; }
.form-success { background: rgba(50,200,100,0.15); border: 1px solid rgba(50,200,100,0.4); color: #7dffaa; padding: 12px 16px; border-radius: var(--radius); margin-top: 12px; font-size: 0.9rem; }
.form-error { background: rgba(232,80,80,0.15); border: 1px solid rgba(232,80,80,0.4); color: #ffaaaa; padding: 12px 16px; border-radius: var(--radius); margin-top: 12px; font-size: 0.9rem; }

/* ── CONTACT ──────────────────────────────────────────── */
.contact-section { background: var(--color-secondary) !important; }
.contact-info h2 { color: #fff; }
.contact-item { margin-bottom: 12px; font-size: 1rem; color: rgba(255,255,255,0.85); }
.contact-item a { color: var(--color-accent); }

/* ── DONATE ───────────────────────────────────────────── */
.donate-wrap { max-width: 700px; margin: 0 auto 24px; }
.donate-widget { background: var(--color-bg); border-radius: 14px; padding: 40px; box-shadow: var(--shadow-lg); text-align: center; }
.donate-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-primary); margin-bottom: 8px; }
.donate-sub { color: var(--color-text-light); margin-bottom: 28px; }
.donate-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 16px; }
.donate-btn { padding: 12px 22px; border-radius: var(--btn-radius); font-weight: 700; font-size: 1rem; background: var(--color-primary); color: #fff; text-decoration: none; transition: all 0.2s; min-width: 90px; text-align: center; display: inline-block; }
.donate-btn:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }
.donate-btn-other { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.donate-btn-other:hover { background: var(--color-primary); color: #fff; }
.donate-btn-cta { padding: 16px 48px; font-size: 1.2rem; }
.donate-platform { font-size: 0.8rem; color: var(--color-text-light); margin-top: 10px; }
.donate-disclaimer { font-size: 0.82rem; color: var(--color-text-light); font-weight: 600; margin-bottom: 6px; text-align: center; }
.donate-legal { font-size: 0.75rem; color: var(--color-text-light); max-width: 600px; margin: 0 auto; text-align: center; line-height: 1.6; }

/* ── SOCIAL ───────────────────────────────────────────── */
.social-links, .social-share { display: flex; gap: 10px; flex-wrap: wrap; }
.social-share { justify-content: center; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 0.85rem; font-weight: 700; transition: background 0.2s; text-decoration: none; }
.social-link:hover { background: var(--color-accent); color: #000; text-decoration: none; }

/* ── NEWS ─────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.news-grid-full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.news-card { background: var(--color-bg); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-card-img-placeholder { width: 100%; height: 200px; background: var(--color-light); }
.news-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.78rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 8px; }
.news-card-body h2, .news-card-body h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }
.news-card-body h2 a, .news-card-body h3 a { color: var(--color-text); }
.news-card-body h2 a:hover, .news-card-body h3 a:hover { color: var(--color-primary); text-decoration: none; }
.news-card-body p { font-size: 0.92rem; color: var(--color-text-light); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.read-more { font-size: 0.88rem; font-weight: 700; color: var(--color-primary); margin-top: auto; }
.read-more:hover { text-decoration: underline; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.news-tag { background: var(--color-light); color: var(--color-primary); padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.news-preview { background: var(--color-light); }

/* ── ARTICLE ──────────────────────────────────────────── */
.news-article { max-width: 780px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; color: var(--color-text); }
.article-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 16px; flex-wrap: wrap; }
.article-excerpt { font-size: 1.15rem; color: var(--color-text-light); line-height: 1.65; border-left: 4px solid var(--color-accent); padding-left: 16px; margin-top: 16px; }
.article-image { margin: 28px 0; border-radius: 12px; overflow: hidden; }
.article-image img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--color-text); }
.article-body h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.article-body h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid var(--color-primary); padding: 12px 20px; margin: 24px 0; background: var(--color-light); border-radius: 0 8px 8px 0; font-style: italic; }
.article-body a { color: var(--color-primary); text-decoration: underline; }
.article-body img { border-radius: 8px; margin: 20px auto; }
.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.article-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-btn { background: var(--color-light); color: var(--color-primary); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; transition: background 0.2s; }
.share-btn:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.related-posts { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); }
.related-posts h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--color-text); }
.news-card-sm .news-card-img { height: 140px; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer { background: #0a0c10; color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; margin-bottom: 32px; }
.footer-brand { font-family: var(--font-display); }
.footer-brand strong { font-size: 1.2rem; color: #fff; display: block; margin-bottom: 4px; }
.footer-brand span { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; text-align: center; }
.footer-nav a:hover { color: var(--color-accent); text-decoration: none; }
.footer-social { display: flex; gap: 10px; justify-content: flex-end; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; }
.footer-disclaimer { font-size: 0.78rem; font-style: italic; margin-bottom: 6px; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); margin-bottom: 6px; }
.footer-powered { font-size: 0.72rem; color: rgba(255,255,255,0.25); margin-top: 10px; }
.footer-powered a { color: rgba(255,255,255,0.4); text-decoration: underline; transition: color 0.2s; }
.footer-powered a:hover { color: var(--color-accent); }

/* ── EMPTY STATE ──────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-light); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 300px 1fr; }
}
@media (max-width: 900px) {
  .two-col-grid, .about-grid, .cta-grid { grid-template-columns: 1fr; }
  .about-photo-col, .about-photo-wrap { position: static; }
  .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--color-secondary); flex-direction: column; padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .news-grid, .news-grid-full { grid-template-columns: 1fr; }
  .issues-grid, .issues-grid-full, .endorsements-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .donate-buttons { gap: 8px; }
  .donate-btn { min-width: 72px; padding: 10px 14px; font-size: 0.9rem; }
  .article-header h1 { font-size: 1.6rem; }
}
