/*
Theme Name: Vota Campaign Blog
Theme URI: https://vota.co.ke/blog/
Author: Zama Systems Limited
Description: Custom Vota blog theme matching the public Vota campaign workspace landing pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: vota-campaign-blog
*/

:root {
  --vota-black: #020617;
  --vota-slate: #0f172a;
  --vota-muted: #475569;
  --vota-line: #e2e8f0;
  --vota-soft: #f8fafc;
  --vota-teal: #064f57;
  --vota-cyan: #67e8f9;
  --vota-blue: #2563eb;
  --vota-emerald: #059669;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vota-soft);
  color: var(--vota-slate);
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.vota-container {
  margin-inline: auto;
  max-width: 1280px;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .vota-container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .vota-container {
    padding-inline: 2rem;
  }
}

.vota-topbar {
  background: var(--vota-teal);
  border-bottom: 1px solid rgb(103 232 249 / 0.1);
  color: #ecfeff;
  font-size: 0.875rem;
  font-weight: 900;
}

.vota-topbar__inner {
  align-items: center;
  display: flex;
  height: 44px;
  justify-content: space-between;
  min-width: 0;
}

.vota-topbar a {
  color: #ecfeff;
}

.vota-topbar__links {
  display: none;
  gap: 1.5rem;
  font-size: 0.75rem;
  text-transform: none;
}

@media (min-width: 768px) {
  .vota-topbar__links {
    display: flex;
  }
}

.vota-nav {
  background: #000;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.vota-nav__inner {
  align-items: center;
  display: flex;
  height: 80px;
  justify-content: space-between;
}

.vota-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.vota-brand__mark {
  background: #fff;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  color: #000;
  display: grid;
  font-size: 1.125rem;
  font-weight: 900;
  height: 44px;
  place-items: center;
  position: relative;
  width: 44px;
}

.vota-brand__mark::before {
  background: #22d3ee;
  border-radius: 999px;
  content: "";
  height: 12px;
  left: 8px;
  position: absolute;
  top: 8px;
  width: 12px;
}

.vota-brand__text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.vota-nav__links {
  display: none;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: rgb(255 255 255 / 0.8);
}

.vota-nav__links a:hover {
  color: #fff;
}

.vota-nav__actions {
  display: none;
  gap: 1rem;
}

@media (min-width: 1180px) {
  .vota-nav__links,
  .vota-nav__actions {
    align-items: center;
    display: flex;
  }
}

.vota-mobile-menu {
  position: relative;
}

.vota-mobile-menu summary {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  height: 40px;
  list-style: none;
  place-items: center;
  width: 40px;
}

.vota-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.vota-mobile-menu__icon,
.vota-mobile-menu__icon::before,
.vota-mobile-menu__icon::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.vota-mobile-menu__icon::before {
  transform: translateY(-7px);
}

.vota-mobile-menu__icon::after {
  transform: translateY(5px);
}

.vota-mobile-menu__panel {
  background: #000;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  box-shadow: 0 25px 50px rgb(0 0 0 / 0.45);
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: 52px;
  width: min(18rem, calc(100vw - 2rem));
}

.vota-mobile-menu__panel a {
  border-radius: 6px;
  color: rgb(255 255 255 / 0.82);
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.75rem;
}

.vota-mobile-menu__panel a:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

@media (min-width: 1180px) {
  .vota-mobile-menu {
    display: none;
  }
}

.vota-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
}

.vota-button--cyan {
  background: #67e8f9;
  color: #000;
}

.vota-button--green {
  background: var(--vota-emerald);
  color: #fff;
}

.vota-button--dark {
  background: var(--vota-black);
  color: #fff;
}

.vota-button--outline {
  border: 1px solid var(--vota-line);
  color: var(--vota-slate);
}

.vota-hero {
  background: #fff;
  border-bottom: 1px solid var(--vota-line);
}

.vota-hero__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 960px) {
  .vota-hero__grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.58fr);
    padding-block: 4rem;
  }
}

.vota-pill {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
}

.vota-hero h1 {
  color: #020617;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 1.25rem 0 0;
  max-width: 900px;
}

.vota-lead {
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.8;
  margin: 1.25rem 0 0;
  max-width: 760px;
}

.vota-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.vota-proof {
  background: #f8fafc;
  border: 1px solid var(--vota-line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgb(15 23 42 / 0.05);
  padding: 1.25rem;
}

.vota-proof h2 {
  color: #020617;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0.75rem 0 0;
}

.vota-proof p {
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0.75rem 0 0;
}

.vota-section {
  padding-block: 3rem;
}

.vota-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .vota-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

.vota-post-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .vota-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vota-card {
  background: #fff;
  border: 1px solid var(--vota-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
}

.vota-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 18px 38px rgb(37 99 235 / 0.08);
}

.vota-card__meta,
.vota-entry-meta {
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 800;
  gap: 0.5rem;
  text-transform: uppercase;
}

.vota-card h2,
.vota-card h3 {
  color: #020617;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0.85rem 0 0;
}

.vota-card p {
  color: #475569;
  font-size: 0.95rem;
  margin: 0.85rem 0 0;
}

.vota-readmore {
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 900;
  margin-top: auto;
  padding-top: 1.25rem;
}

.vota-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.vota-panel {
  background: #fff;
  border: 1px solid var(--vota-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.04);
  padding: 1.25rem;
}

.vota-panel--dark {
  background: #020617;
  border-color: #020617;
  color: #fff;
}

.vota-panel h2,
.vota-panel h3 {
  color: inherit;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.vota-panel p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
}

.vota-panel--dark p {
  color: #cbd5e1;
}

.vota-link-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.vota-link-list a {
  border: 1px solid var(--vota-line);
  border-radius: 8px;
  color: #1d4ed8;
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  padding: 0.8rem 0.9rem;
}

.vota-link-list a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.vota-breadcrumbs {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.vota-breadcrumbs a {
  color: #1d4ed8;
}

.vota-article {
  background: #fff;
  border: 1px solid var(--vota-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.04);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.vota-article h1 {
  color: #020617;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0.75rem 0 0;
}

.vota-content {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-top: 2rem;
}

.vota-content h2 {
  color: #020617;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
}

.vota-content p {
  margin: 1rem 0;
}

.vota-content a {
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.vota-content strong {
  color: #0f172a;
  font-weight: 900;
}

.vota-post-footer {
  border-top: 1px solid var(--vota-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.vota-footer {
  background: #020617;
  color: #fff;
  margin-top: 5rem;
}

.vota-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 760px) {
  .vota-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.vota-footer p,
.vota-footer a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.vota-footer a:hover {
  color: #fff;
}

.vota-footer h2,
.vota-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.vota-footer__links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.vota-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #64748b;
  font-size: 0.875rem;
  padding-block: 1.25rem;
  text-align: center;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.nav-links a,
.nav-links span {
  background: #fff;
  border: 1px solid var(--vota-line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  padding: 0.65rem 0.9rem;
}

.nav-links .current {
  background: #020617;
  color: #fff;
}

@media (max-width: 520px) {
  .vota-brand__text {
    font-size: 1.25rem;
  }

  .vota-hero__grid,
  .vota-section {
    padding-block: 2rem;
  }
}
