/*
Theme Name: E-Bike Route
Theme URI: https://voidglare.com/
Author: Robert Brown
Author URI: https://voidglare.com/about-us/
Description: A lightweight editorial theme for U.S. electric bike reviews, buying guides, brand comparisons, and affiliate disclosures.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ebike-route
*/

:root {
  --ink: #0e1726;
  --navy: #13253d;
  --blue: #2563eb;
  --green: #12805c;
  --orange: #f97316;
  --paper: #ffffff;
  --mist: #f4f7f6;
  --line: #dbe3e0;
  --muted: #5e6b78;
  --shadow: 0 18px 44px rgba(14, 23, 38, 0.11);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8faf9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
}

a:hover {
  color: #1749bd;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  left: 12px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(14, 23, 38, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner,
.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 210px;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: #fff;
}

.nav-deal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: #101827 !important;
  background: #fbbf24;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.25);
  white-space: nowrap;
  font-size: 0.84rem;
  line-height: 1;
}

.main {
  min-height: 60vh;
}

.hero {
  color: #fff;
  background:
    linear-gradient(105deg, rgba(14, 23, 38, 0.95) 0%, rgba(19, 37, 61, 0.86) 48%, rgba(18, 128, 92, 0.68) 100%),
    url("https://voidglare.com/wp-content/uploads/2026/06/home-hero-ebike-guide.png") center/cover no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.68fr);
  align-items: end;
  gap: 42px;
  min-height: 580px;
  padding: 82px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9ee6c8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.button:hover {
  color: #fff;
  background: #0f6c4e;
}

.button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button.orange {
  color: #101827;
  background: #fbbf24;
}

.hero-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.25rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  min-height: 88px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
}

.stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
}

.section {
  padding: 62px 0;
}

.section.alt {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.archive-header h1,
.page-header h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  white-space: nowrap;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.post-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(14, 23, 38, 0.06);
}

.post-card a {
  text-decoration: none;
}

.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #dce7e5;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 18px;
}

.post-kicker,
.article-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: #0d684d;
  background: #e4f5ee;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.post-card h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.deal-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.deal-image {
  min-height: 360px;
  background: url("https://voidglare.com/wp-content/uploads/2026/06/velotric-buying-guide-discount-code.png") center/cover no-repeat;
}

.deal-content {
  padding: 34px 34px 34px 6px;
}

.deal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.06;
}

.deal-content p {
  color: rgba(255, 255, 255, 0.78);
}

.deal-code {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  margin: 10px 0 18px;
  color: #101827;
  background: #fbbf24;
  border-radius: var(--radius);
  font-weight: 900;
}

.deal-disclosure {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hub-card {
  min-height: 170px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.hub-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
  line-height: 1.25;
}

.hub-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.brand-chip {
  min-height: 74px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 34px;
  align-items: center;
}

.intro-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.intro-band p {
  color: var(--muted);
}

.note-box {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 36px;
  align-items: start;
  padding: 48px 0 72px;
}

.article-shell,
.page-shell {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(14, 23, 38, 0.06);
}

.article-hero {
  padding: 34px 34px 0;
}

.article-hero h1,
.page-header h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-featured {
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.article-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.entry-content {
  padding: 30px 34px 42px;
  font-size: 1.03rem;
  overflow-wrap: break-word;
}

.entry-content a {
  overflow-wrap: anywhere;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h1 {
  font-size: 2rem;
}

.entry-content h2 {
  margin-top: 2.1em;
  font-size: 1.82rem;
  line-height: 1.15;
}

.entry-content h3 {
  margin-top: 1.6em;
  font-size: 1.25rem;
  line-height: 1.25;
}

.entry-content p,
.entry-content li {
  color: #243244;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.entry-content th {
  background: #edf4f1;
  text-align: left;
}

.entry-content .affiliate-disclosure {
  padding: 14px 16px;
  margin: 0 0 24px;
  color: #253246;
  background: #fff8e6;
  border: 1px solid #f3d28a;
  border-radius: var(--radius);
  font-size: 0.94rem;
}

.entry-content .wp-block-image img {
  border-radius: var(--radius);
}

.ebr-product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.ebr-product-gallery figure,
.ebr-review-card {
  margin: 0;
  overflow: hidden;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ebr-product-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
}

.ebr-product-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.ebr-review-card {
  padding: 18px;
  margin: 24px 0;
  border-left: 5px solid var(--green);
}

.ebr-story-lead,
.ebr-fit-panel,
.ebr-field-note,
.ebr-snapshot-strip {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}

.ebr-story-lead {
  padding: 20px 22px;
  border-left: 5px solid var(--green);
}

.ebr-story-lead strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.ebr-fit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.ebr-fit-panel div {
  padding: 18px;
}

.ebr-fit-panel div + div {
  border-left: 1px solid var(--line);
}

.ebr-fit-panel h2,
.ebr-fit-panel h3,
.ebr-field-note h2,
.ebr-field-note h3 {
  margin-top: 0;
}

.ebr-field-note {
  padding: 18px 20px;
}

.ebr-snapshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.ebr-snapshot-strip div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.ebr-snapshot-strip div:last-child {
  border-right: 0;
}

.ebr-inline-image {
  margin: 30px 0;
}

.ebr-inline-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ebr-inline-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.ebr-review-card h2,
.ebr-review-card h3 {
  margin-top: 0;
}

.ebr-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ebr-score {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ebr-score strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
}

.ebr-score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-card h2,
.side-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.side-card ul {
  padding-left: 18px;
  margin: 0;
}

.side-card li + li {
  margin-top: 9px;
}

.side-card a {
  font-weight: 750;
  text-decoration: none;
}

.side-deal {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.side-deal p {
  color: rgba(255, 255, 255, 0.74);
}

.side-deal .button {
  width: 100%;
  color: #101827;
  background: #fbbf24;
}

.archive-header,
.page-header {
  padding: 58px 0 28px;
}

.archive-header p,
.page-header p {
  max-width: 720px;
  color: var(--muted);
}

.archive-grid {
  padding-bottom: 72px;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.pagination .current {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.page-shell {
  max-width: 900px;
  margin: 0 auto 72px;
}

.page-shell .entry-content {
  padding-top: 38px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-submit {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink);
}

.footer-cta {
  padding: 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 1.75rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.7fr);
  gap: 28px;
  padding: 42px 0;
}

.footer-main h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-main p {
  margin: 0;
}

.footer-main ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-main li + li {
  margin-top: 8px;
}

.footer-main a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    padding: 18px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    align-items: stretch;
    gap: 12px;
  }

  .nav-deal {
    justify-content: center;
    width: 100%;
  }

  .hero-inner,
  .deal-band,
  .intro-band,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 64px 0 42px;
  }

  .post-grid,
  .post-grid.two,
  .hub-grid,
  .brand-strip,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-content {
    padding: 0 26px 30px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .wrap {
    width: min(var(--wrap), calc(100% - 24px));
  }

  .brand {
    min-width: 0;
  }

  .brand-tagline {
    display: none;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .footer-cta-inner {
    display: block;
  }

  .section-head .text-link,
  .footer-cta .button {
    margin-top: 14px;
  }

  .post-grid,
  .post-grid.two,
  .hub-grid,
  .brand-strip,
  .footer-main,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .deal-image {
    min-height: 230px;
  }

  .article-hero,
  .entry-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-hero h1,
  .page-header h1 {
    font-size: 2.25rem;
  }

  .ebr-product-gallery,
  .ebr-score-grid,
  .ebr-fit-panel,
  .ebr-snapshot-strip {
    grid-template-columns: 1fr;
  }

  .ebr-fit-panel div + div,
  .ebr-snapshot-strip div {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
}
