/*
Theme Name: Vote8 Blueprint Child
Theme URI: https://vote8.co.nz
Description: Performance-focused Vote8 child theme for Bluehost Blueprint.
Author: Vote8
Template: bluehost-blueprint
Version: 1.0.1
Text Domain: vote8-blueprint-child
*/

:root {
  --vote8-ink: #111827;
  --vote8-navy: #102238;
  --vote8-blue: #1d4f73;
  --vote8-red: #9f2f2f;
  --vote8-gold: #d6a84f;
  --vote8-mist: #f6f8f9;
  --vote8-line: rgba(17, 24, 39, 0.12);
}

body {
  background: #f7f8f9;
  color: var(--vote8-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body,
p,
li {
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

.wp-site-blocks {
  background: #f7f8f9;
}

.vote8-shell {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.vote8-hero {
  background:
    linear-gradient(135deg, rgba(16, 34, 56, 0.96), rgba(29, 79, 115, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(214, 168, 79, 0.25), transparent 36%);
  color: #ffffff;
  border-radius: 0;
  padding: clamp(56px, 7vw, 92px) 24px;
}

.vote8-hero h1 {
  color: #ffffff;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.02;
  max-width: 980px;
}

.vote8-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.vote8-kicker {
  color: var(--vote8-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vote8-section {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(44px, 6vw, 76px);
}

.vote8-section-white {
  background: #ffffff;
}

.vote8-section-soft {
  background: var(--vote8-mist);
}

.vote8-grid {
  display: grid;
  gap: 22px;
}

.vote8-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vote8-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vote8-card {
  background: #ffffff;
  border: 1px solid var(--vote8-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  padding: 24px;
}

.vote8-card h3,
.vote8-card h4 {
  margin-top: 0;
}

.vote8-card p:last-child,
.vote8-card ul:last-child {
  margin-bottom: 0;
}

.vote8-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.vote8-button {
  align-items: center;
  background: var(--vote8-red);
  border: 1px solid var(--vote8-red);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.vote8-button:hover,
.vote8-button:focus {
  background: #842626;
  color: #ffffff;
  text-decoration: none;
}

.vote8-button-secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.vote8-button-secondary:hover,
.vote8-button-secondary:focus {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.vote8-policy-card {
  border-top: 4px solid var(--vote8-blue);
}

.vote8-policy-card a {
  font-weight: 800;
}

.vote8-summary {
  color: #4b5563;
  font-size: 1.1rem;
  max-width: 820px;
}

.vote8-lede {
  font-size: 1.2rem;
  max-width: 860px;
}

.vote8-stat {
  background: rgba(214, 168, 79, 0.12);
  border-left: 4px solid var(--vote8-gold);
  padding: 18px 20px;
}

.vote8-page-title {
  background: #ffffff;
  border-bottom: 1px solid var(--vote8-line);
  padding: clamp(42px, 6vw, 76px) 24px;
}

.vote8-policy-title {
  text-align: center;
}

.vote8-policy-title .vote8-summary {
  margin-left: auto;
  margin-right: auto;
}

.vote8-page-title h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.06;
  margin-bottom: 16px;
}

.vote8-policy-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--vote8-line);
  padding: 16px 0;
}

.vote8-policy-nav .vote8-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.vote8-nav-pill {
  border: 1px solid var(--vote8-line);
  border-radius: 999px;
  color: var(--vote8-ink);
  font-weight: 800;
  padding: 9px 14px;
  text-decoration: none;
}

.vote8-nav-pill:hover,
.vote8-nav-pill:focus {
  border-color: var(--vote8-red);
  color: var(--vote8-red);
  text-decoration: none;
}

.vote8-nav-pill-strong {
  background: var(--vote8-red);
  border-color: var(--vote8-red);
  color: #ffffff;
}

.vote8-nav-pill-strong:hover,
.vote8-nav-pill-strong:focus {
  background: #842626;
  color: #ffffff;
}

.vote8-policy-article {
  max-width: 980px;
}

.vote8-policy-article > * + * {
  margin-top: 1.25rem;
}

.vote8-policy-article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.vote8-policy-article h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.16;
  margin-top: 2.2rem;
}

.vote8-policy-article h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin-top: 1.7rem;
}

.vote8-policy-article p,
.vote8-policy-article li {
  color: #374151;
  font-size: 1.04rem;
}

.vote8-policy-article ul,
.vote8-policy-article ol {
  padding-left: 1.35rem;
}

.vote8-policy-article li {
  margin-bottom: 0.55rem;
}

.vote8-policy-article .wp-block-group,
.vote8-policy-article .nfd-container,
.vote8-policy-article .nfd-bg-surface,
.vote8-policy-article .nfd-bg-subtle,
.vote8-policy-article .vote8-card {
  background: #ffffff;
  border: 1px solid var(--vote8-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.vote8-policy-article .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.vote8-policy-article .has-text-align-center {
  text-align: left;
}

.vote8-policy-article .nfd-text-huge,
.vote8-policy-article .nfd-text-xl {
  max-width: 860px;
}

.vote8-checklist {
  padding-left: 1.2rem;
}

.vote8-checklist li {
  margin-bottom: 10px;
}

.vote8-note {
  background: #fff8ea;
  border: 1px solid rgba(214, 168, 79, 0.35);
  border-radius: 8px;
  padding: 22px;
}

.vote8-cta {
  background: var(--vote8-navy);
  color: #ffffff;
}

.vote8-cta h2,
.vote8-cta p {
  color: #ffffff;
}

.wp-block-button__link,
.wp-element-button {
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--vote8-red);
  color: #ffffff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-color: currentColor;
  color: currentColor;
}

.vote8-hero .wp-block-button.is-style-outline .wp-block-button__link,
.vote8-cta .wp-block-button.is-style-outline .wp-block-button__link {
  color: #ffffff;
}

.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-site-logo img {
  height: auto;
  max-width: 72px;
}

img {
  height: auto;
}

@media (max-width: 782px) {
  .vote8-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vote8-grid-2,
  .vote8-grid-3 {
    grid-template-columns: 1fr;
  }

  .vote8-card {
    padding: 20px;
  }

  .wp-block-buttons {
    gap: 10px;
  }
}
