/* Vote with Pride: home page ([vwp_home]), plugin 1.2.0. Mobile-first; loads after vwp-record.css and vwp-theme-override.css. */

/* The theme's home template wraps content in .row.home_content (−15px margins) inside .container (15px padding): neutralise so we own the gutters. */
#content .home_content { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
#content .home_content > .wpb-content-wrapper { margin: 0; padding: 0; }

.vwp-home {
    --vwp-home-ink: #0f172a;
    --vwp-home-muted: #475569;
    --vwp-home-primary: #3b35b8;   /* 4.5:1+ on white and the tinted cards */
    --vwp-home-primary-dark: #2c278f;
    --vwp-home-line: #e5e7eb;
    --vwp-home-radius: 18px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 8px 0 24px;
    color: var(--vwp-home-ink);
    box-sizing: border-box;
}
.vwp-home *, .vwp-home *::before, .vwp-home *::after { box-sizing: border-box; }
.vwp-home section { margin: 0 0 22px; }
.vwp-home h1, .vwp-home h2, .vwp-home h3 { color: var(--vwp-home-ink); font-weight: 800; letter-spacing: -0.01em; }
/* The theme's custom CSS forces body #content p to 18px/1.8: match specificity (body #content .x p) so phones get a calmer size. */
body #content .vwp-home p { font-size: 16.5px !important; line-height: 1.6 !important; color: var(--vwp-home-muted) !important; margin: 0 !important; }
.vwp-home a { color: var(--vwp-home-primary); }
.vwp-home p a, .vwp-home li a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.vwp-home__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vwp-home a:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.vwp-home svg { width: 1em; height: 1em; flex: none; }

/* ---- Buttons ---- */
.vwp-home__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 18px; }
.vwp-home__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 20px;
    border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none !important; border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.vwp-home__btn:hover { transform: translateY(-1px); }
.vwp-home__btn--primary { background: var(--vwp-home-primary); color: #fff !important; box-shadow: 0 8px 20px rgba(80, 70, 229, .28); }
.vwp-home__btn--primary:hover { background: var(--vwp-home-primary-dark); }
.vwp-home__btn--light { background: #fff; color: var(--vwp-home-ink) !important; }
.vwp-home__btn--light:hover { background: #f1f5f9; }
.vwp-home__btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.vwp-home__btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.vwp-home__btn--outline { background: #fff; border-color: var(--vwp-home-primary); color: var(--vwp-home-primary) !important; }
.vwp-home__btn--outline:hover { background: #eef2ff; }
.vwp-home__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
@media (max-width: 480px) {
    .vwp-home__alert .vwp-home__btn, .vwp-home__hero .vwp-home__btn, .vwp-home__card .vwp-home__btn { width: 100%; }
}

/* ---- Election banner ---- */
.vwp-home__alert {
    position: relative; overflow: hidden; padding: 20px 18px 22px; border-radius: var(--vwp-home-radius); color: #fff;
    background: linear-gradient(135deg, #4338ca 0%, #5046e5 55%, #7c3aed 100%); box-shadow: 0 14px 34px rgba(55, 48, 163, .28);
}
.vwp-home__alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--vwp-pride-gradient, linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982)); }
.vwp-home__alert--after { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); box-shadow: 0 14px 34px rgba(15, 23, 42, .25); }
body #content .vwp-home .vwp-home__alert-kicker { font-size: 13px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85) !important; margin: 0 0 6px !important; }
body #content .vwp-home .vwp-home__alert-title { margin: 0 !important; font-size: 22px !important; line-height: 1.25 !important; font-weight: 800; letter-spacing: -0.01em; color: #fff !important; }
body #content .vwp-home .vwp-home__alert-text { color: rgba(255, 255, 255, .9) !important; margin-top: 8px !important; }
.vwp-home__alert a:not(.vwp-home__btn) { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; }
.vwp-home__alert a:focus-visible, .vwp-home__alert .vwp-home__btn:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }

/* ---- Hero ---- */
.vwp-home__hero {
    padding: 26px 18px 28px; border-radius: var(--vwp-home-radius); background: #fff; border: 1px solid var(--vwp-home-line);
    background-image: radial-gradient(120% 90% at 100% 0%, rgba(80, 70, 229, .10), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(236, 72, 153, .08), transparent 60%);
}
body #content .vwp-home .vwp-home__eyebrow { font-size: 13px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vwp-home-primary) !important; margin: 0 0 8px !important; }
.vwp-home__title { margin: 0 0 12px; font-size: 34px; line-height: 1.08; letter-spacing: -0.02em; }
.vwp-home__title::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 14px; border-radius: 3px; background: var(--vwp-pride-gradient, linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982)); }
body #content .vwp-home .vwp-home__lead { font-size: 17.5px !important; max-width: 62ch; }

/* ---- Quick links ---- */
.vwp-home__quick { display: grid; gap: 10px; }
.vwp-home__tile {
    display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px 10px 10px;
    border-radius: 14px; border: 1px solid var(--vwp-home-line); background: #fff; color: var(--vwp-home-ink); text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05); transition: transform .15s ease, box-shadow .15s ease;
}
.vwp-home__tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .10); }
.vwp-home__tile-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 22px; }
.vwp-home__tile-text { display: flex; flex-direction: column; min-width: 0; }
.vwp-home__tile-title { font-size: 16px; font-weight: 800; line-height: 1.2; color: var(--vwp-home-ink); }
.vwp-home__tile-sub { font-size: 13.5px; line-height: 1.3; color: #3f4a5c; margin-top: 2px; }
.vwp-home__tile-arrow { color: #94a3b8; font-size: 18px; display: flex; }
.vwp-home__ext { font-size: .8em; color: #94a3b8; }
.vwp-home__tile--red    { background: linear-gradient(135deg, #fff5f5, #fee2e2); }
.vwp-home__tile--orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.vwp-home__tile--yellow { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.vwp-home__tile--green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.vwp-home__tile--red .vwp-home__tile-icon    { background: #dc2626; }
.vwp-home__tile--orange .vwp-home__tile-icon { background: #ea580c; }
.vwp-home__tile--yellow .vwp-home__tile-icon { background: #ca8a04; }
.vwp-home__tile--green .vwp-home__tile-icon  { background: #16a34a; }

/* ---- How it works ---- */
.vwp-home__how { padding: 24px 18px; border-radius: var(--vwp-home-radius); background: #f8fafc; border: 1px solid var(--vwp-home-line); }
.vwp-home__h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; }
.vwp-home__steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.vwp-home__step { position: relative; margin: 0; padding: 0 0 0 46px; list-style: none; }
.vwp-home__step-num { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--vwp-home-primary); color: #fff; font-weight: 800; font-size: 15px; }
.vwp-home__step h3 { margin: 5px 0 4px; font-size: 17px; line-height: 1.25; }
body #content .vwp-home .vwp-home__step p { font-size: 15.5px !important; }
.vwp-home__legend { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--vwp-home-line); }
.vwp-home__legend .vwp-record-pill { font-size: 12.5px; }
body #content .vwp-home .vwp-home__how-link { margin-top: 12px !important; font-size: 15px !important; }
.vwp-home__how-link a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Submit cards ---- */
.vwp-home__submit { display: grid; gap: 12px; }
.vwp-home__submit-h { grid-column: 1 / -1; margin-bottom: 2px; }
.vwp-home__card { padding: 20px 18px; border-radius: var(--vwp-home-radius); background: #fff; border: 1px solid var(--vwp-home-line); display: flex; flex-direction: column; gap: 8px; }
.vwp-home__card h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.vwp-home__card .vwp-home__btn { align-self: flex-start; margin-top: 8px; }

/* ---- Note ---- */
body #content .vwp-home .vwp-home__note { font-size: 14px !important; line-height: 1.55 !important; color: #475569 !important; text-align: center; max-width: 70ch; margin: 0 auto !important; padding: 0 6px; }

/* ---- Tablet ---- */
@media (min-width: 600px) {
    .vwp-home__alert { padding: 26px 28px 28px; }
    body #content .vwp-home .vwp-home__alert-title { font-size: 26px !important; }
    .vwp-home__hero { padding: 40px 36px 42px; }
    .vwp-home__title { font-size: 44px; }
    .vwp-home__quick { grid-template-columns: 1fr 1fr; gap: 12px; }
    .vwp-home__how { padding: 30px 28px; }
    .vwp-home__submit { grid-template-columns: 1fr 1fr; gap: 14px; }
    .vwp-home__card { padding: 24px 24px 22px; }
    .vwp-home section { margin-bottom: 26px; }
}

/* ---- Desktop ---- */
@media (min-width: 992px) {
    .vwp-home { padding: 12px 0 40px; }
    .vwp-home__alert { display: grid; grid-template-columns: 1fr auto; gap: 10px 32px; align-items: center; padding: 28px 36px 30px; }
    .vwp-home__alert-kicker, .vwp-home__alert-title, .vwp-home__alert-text { grid-column: 1; }
    .vwp-home__alert .vwp-home__actions { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; flex-wrap: nowrap; }
    body #content .vwp-home .vwp-home__alert-title { font-size: 28px !important; }
    .vwp-home__hero { padding: 56px 56px 58px; }
    .vwp-home__title { font-size: 56px; max-width: 16ch; }
    body #content .vwp-home .vwp-home__lead { font-size: 19px !important; }
    .vwp-home__quick { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .vwp-home__tile { grid-template-columns: 48px 1fr; grid-template-rows: auto; align-content: start; gap: 14px; padding: 18px 18px 16px; min-height: 0; }
    .vwp-home__tile-icon { width: 48px; height: 48px; font-size: 24px; }
    .vwp-home__tile-arrow { display: none; }
    .vwp-home__how { padding: 36px 40px; }
    .vwp-home__h2 { font-size: 28px; }
    .vwp-home__steps { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 24px; }
    .vwp-home__step { padding-left: 0; padding-top: 48px; }
    .vwp-home__step-num { width: 38px; height: 38px; font-size: 16px; }
    .vwp-home__step h3 { font-size: 19px; }
    .vwp-home__card { padding: 28px 30px 26px; }
    .vwp-home section { margin-bottom: 30px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .vwp-home *, .vwp-home *::before, .vwp-home *::after { transition: none !important; animation: none !important; }
    .vwp-home__btn:hover, .vwp-home__tile:hover { transform: none !important; }
}

.vwp-home__legendnote { margin: 14px 0 10px; font-size: 15px; line-height: 1.55; color: #374151; max-width: 68ch; }
