:root {
  --bg: #e9ecef;
  --surface: #fafbfc;
  --text: #1a1d23;
  --muted: #5c6370;
  --brand: #1e3a5f;
  --brand-2: #b83232;
  --accent-orange: #c45c26;
  --brand-soft: #e8edf5;
  --warn-bg: #fff8f0;
  --warn-border: #e8c9a8;
  --border: #cfd6df;
  --max-width: 960px;
  --measure: 70ch;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 28, 48, 0.07);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1;
}

.grid-container {
  width: min(100% - 40px, var(--max-width)) !important;
  max-width: var(--max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-header {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.site-footer {
  background: #2c3540;
  color: #e8eaef;
}

.site-header a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a {
  color: #b8d4ff;
  text-decoration: none;
}

.site-title a {
  color: var(--text);
}

.site-header-inner,
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-title a {
  display: inline-block;
  font-weight: 700;
}

.site-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--brand-soft);
  border-color: #c5d0e0;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 28px);
}

.site-main > section + section,
.site-main > article + section,
.site-main > section + article {
  margin-top: 18px;
}

.auto-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.entry-header {
  margin-bottom: 0.75rem;
  max-width: min(var(--max-width), var(--measure));
}

.entry-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.entry-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.entry-eyebrow a:hover {
  text-decoration: underline;
}

.entry-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.entry-deck {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.article-hero {
  margin: calc(-1 * clamp(20px, 3vw, 28px)) calc(-1 * clamp(20px, 3vw, 28px)) 22px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #dde1e8;
  aspect-ratio: 2 / 1;
  max-height: min(56vh, 480px);
}

.article-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.auto-article:has(.article-hero) {
  padding-top: 0;
}

.partner-callout,
.auto-offer-card .affiliate-link {
  box-sizing: border-box;
}

.article-cta {
  margin-top: 22px;
  background: var(--brand-soft);
  border: 1px solid #c5d2e8;
  border-radius: 12px;
  padding: 16px 18px;
}

.article-cta h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
}

.article-cta p {
  margin: 0 0 12px;
}

.recommended-offers {
  margin: 16px auto 0;
  background: #ffffff;
  border: 1px dashed #c3d1ef;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  max-width: 760px;
}

.recommended-offers h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.recommended-offers p {
  margin: 0 0 10px;
}

.recommended-offers .btn-secondary,
.recommended-offers .btn-primary,
.recommended-offers .affiliate-link {
  margin-left: auto;
  margin-right: auto;
}

body.single .recommended-offers {
  width: 100%;
  max-width: 760px !important;
  margin: 16px auto 0 !important;
  float: none !important;
  clear: both;
}

.entry-content p {
  margin: 0 0 1em;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.28;
  margin-top: 1.45em;
  font-weight: 700;
  color: var(--brand);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

a {
  color: var(--brand);
}

.home-main {
  display: grid;
  gap: 22px;
}

.hero-card--magazine {
  padding: clamp(22px, 4vw, 32px);
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #eef1f6 100%);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-lead {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.home-topics {
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.home-topics-heading {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
}

.home-topics-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  max-width: var(--measure);
}

.home-topics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 120px;
}

.topic-card:hover {
  border-color: #9eb0c9;
  box-shadow: 0 6px 20px rgba(15, 28, 48, 0.08);
}

.topic-card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.topic-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand);
}

.topic-card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.topic-card--buy {
  border-left: 4px solid var(--brand);
}

.topic-card--check {
  border-left: 4px solid #2d6a8f;
}

.topic-card--insure {
  border-left: 4px solid var(--brand-2);
}

.topic-card--tires {
  border-left: 4px solid var(--accent-orange);
}

.topic-card--gear {
  border-left: 4px solid #5a6d82;
}

.home-offers {
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.home-offers-heading {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
}

.home-offers-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 75ch;
}

.home-offers-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.auto-offer-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 28, 48, 0.04);
}

.auto-offer-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.35;
}

.auto-offer-text {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.auto-offer-card .affiliate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  background: var(--brand);
  border: 1px solid transparent;
}

.auto-offer-card .affiliate-link:hover {
  filter: brightness(1.05);
}

.auto-offer-card--vin {
  border-top: 3px solid #2d6a8f;
}

.auto-offer-card--osago {
  border-top: 3px solid var(--brand-2);
}

.auto-offer-card--kasko {
  border-top: 3px solid var(--brand);
}

.auto-offer-card--tires {
  border-top: 3px solid var(--accent-orange);
}

.auto-offer-card--stuff {
  border-top: 3px solid #5a6d82;
}

.home-section--recent {
  padding: clamp(18px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.home-section-head {
  margin-bottom: 16px;
}

.home-section-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
}

.home-section-deck {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.home-recent-grid {
  display: grid;
  gap: 16px;
}

.home-recent-empty {
  margin: 0;
  color: var(--muted);
}

.btn-secondary--wide {
  display: inline-flex;
  justify-content: center;
  min-width: min(100%, 280px);
  padding: 12px 22px;
  min-height: 48px;
  align-items: center;
}

.blog-masthead {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.blog-masthead-title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--brand);
}

.blog-masthead-deck {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.post-grid {
  display: grid;
  gap: 16px;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-card:has(.post-card-media) {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.post-card-media {
  display: block;
  background: #dde1e8;
  line-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.post-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  background: linear-gradient(145deg, #e4e7ec, #d5dae2);
}

.post-card-placeholder-letter {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(26, 29, 35, 0.28);
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.post-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-card-cat {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

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

.post-card-cat a:hover {
  text-decoration: underline;
}

.post-card-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.32;
}

.post-card-title a {
  color: var(--text);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--brand);
}

.post-card-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card-excerpt p {
  margin: 0;
}

.post-card--empty {
  grid-template-columns: 1fr;
}

.pagination-wrap {
  margin-top: 16px;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination-wrap a.page-numbers,
.pagination-wrap span.page-numbers {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.pagination-wrap a.page-numbers:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.related-posts {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.related-heading {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
}

.related-list {
  margin: 0;
  padding-left: 1.25em;
}

.related-list li {
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .post-card:has(.post-card-media) {
    grid-template-columns: 1fr;
  }

  .post-card-media--placeholder {
    aspect-ratio: 1 / 1;
  }

  .article-hero {
    aspect-ratio: 4 / 3;
    max-height: 42vh;
  }

  .home-topics-grid,
  .home-offers-grid {
    grid-template-columns: 1fr;
  }
}

/* GeneratePress layout overrides: center full content column */
.site-content,
.content-area,
#primary.site-main {
  width: 100% !important;
  max-width: none;
  float: none !important;
  margin: 0 auto !important;
}

.separate-containers .inside-article,
.one-container .site-content {
  margin-left: auto !important;
  margin-right: auto !important;
}

body .site-content {
  display: flex !important;
  justify-content: center !important;
}

body .content-area {
  width: 100% !important;
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
}

body .inside-article {
  width: 100% !important;
  max-width: var(--max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#left-sidebar,
#right-sidebar,
.sidebar {
  display: none !important;
}

.inside-article,
.entry-summary {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.entry-content {
  max-width: min(var(--max-width), var(--measure));
  margin-left: auto;
  margin-right: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.entry-content th {
  background: #e8ecf2;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.affiliate-link {
  display: inline-block;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid #a8b8cc;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 920px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 247, 251, 0.95);
    border-top: 1px solid #cad7f3;
    z-index: 999;
  }

  .mobile-sticky-cta .btn-primary {
    width: 100%;
    text-align: center;
  }

  body.single {
    padding-bottom: 82px;
  }
}

.home-card,
.post-card,
.auto-article,
.home-section {
  box-shadow: 0 6px 22px rgba(20, 46, 101, 0.07);
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-header-inner {
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-start;
}

.site-header-search {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 340px;
  margin-left: auto;
}

.site-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-header .site-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.site-header .site-search-form input[type="search"]::placeholder {
  color: #8a919c;
}

.site-header .site-search-submit {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2a4a73;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.site-header .site-search-submit:hover {
  filter: brightness(1.08);
}

.trust-strip--auto {
  background: linear-gradient(135deg, #f2f4f8, #ffffff);
  border: 1px solid var(--border);
}

.trust-strip {
  border-radius: 14px;
  padding: 16px 18px;
}

.trust-strip-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.trust-strip-list li {
  margin-bottom: 8px;
}

a.home-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.home-card-link:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 26px rgba(31, 79, 191, 0.12);
}

.home-card-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.home-all-posts {
  margin: 14px 0 0;
  text-align: center;
}

.blog-lead {
  margin-top: 8px;
  color: var(--muted);
}

.search-title span {
  color: var(--brand);
}

.search-no-results {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 8px;
}

.footer-brand,
.footer-heading {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1rem;
  color: #eef2ff;
}

.footer-muted {
  margin: 0;
  color: #b8c7ec;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #a8c4ff;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px 18px;
  text-align: center;
  font-size: 0.88rem;
  color: #9aacd4;
  border-top: 1px solid #2a3b5e;
}

.site-footer-bar p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header-search {
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .site-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .site-search-submit {
    width: 100%;
  }
}
