/* ================= GLOBAL ================= */
:root {
  --main-color: #1f4e79;      /* Trustworthy blue */
  --accent-color: #d97706;    /* Solar amber */
  --text-color: #2f2f2f;
  --border-color: #e5e7eb;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: linear-gradient(to bottom, #f0f7ff 0%, #f9f9f9 100%);
  color: var(--text-color);
}

/* Emphasis italic font */
.italic {
  font-style: italic;
}


/* ================= Fix for wiggle suggested by Grok, 28 Jan 2026 ================= */

html, body {
  overflow-x: hidden;     /* ? This stops the wiggle */
  width: 100%;
}

#map {
  overflow: hidden;       /* Extra safety for the map */
}

/* ================= End of fix for wiggle suggested by Grok, 28 Jan 2026 ================= */

/* ================= GLOBAL LINKS ================= */
a {
  color: var(--main-color);           /* main blue (#1f4e79) */
  font-weight: 600;                   /* bold like menu */
  text-decoration: none;              /* remove default underline */
  position: relative;                 /* needed for pseudo-element underline */
  transition: color 0.3s ease;
  cursor: pointer;
}

/* Hover and focus */
a:hover,
a:focus {
  color: var(--accent-color);           /* keep text blue */
  outline: none;                      /* remove default focus outline */
}

/* Sliding underline effect using pseudo-element */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;                       /* distance from text */
  width: 0;
  height: 2px;
  background-color: var(--accent-color); /* amber underline */
  transition: width 0.3s ease;
}

a:hover::after,
a:focus::after {
  width: 100%;
}

/* Remove hover effect from .logo */
.logo a::after {
  display: none;
}

/* Remove hover effect from .footer-logo */
.footer-logo a::after {
  display: none;
}


/*-- html --*/

html {
  scroll-behavior: smooth;
}

#mapSection {
  scroll-margin-top: 120px; /* height of your sticky header, to adjust for anchor links  */
}

/* ================= HEADINGS ================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--main-color);
  line-height: 1.3;  /* tighter for headings */
  margin-top: 0.5em;
  margin-bottom: 0.3em;
}

/* Desktop sizes */
h1 { font-size: 2.0em; }   /
h2 { font-size: 1.7em; }   /* 25.5px */
h3 { font-size: 1.4em; }   /* 21px */
h4 { font-size: 1.2em; }   /* 18px */
h5 { font-size: 1em; }     /* 15px */
h6 { font-size: 0.9em; }   /* 13.5px */

/* Mobile adjustments */
@media (max-width: 768px) {
  h1 { font-size: 1.6em; }  
  h2 { font-size: 1.4em; }  
  h3 { font-size: 1.25em; } /* 18.75px */
  h4 { font-size: 1.1em; }  /* 16.5px */
  h5 { font-size: 1em; }    /* 15px */
  h6 { font-size: 0.85em; } /* 12.75px */
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--main-color);
}

.container {
  width: 92%;
  max-width: 1320px;
  margin: 0 auto;
}



/* ================= TOOLTIPS IN HEADINGS ================= */
.tooltip-icon {
  display: inline-block;
  position: relative;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: super;
}

.tooltip-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
}

.tooltip-icon .tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.tooltip-icon .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--accent-color) transparent transparent transparent;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* ================= HEADER ================= */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-size: 1.6em;
  font-weight: 700;
}

/* ================= NAVIGATION ================= */
.main-nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 10px;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 600;
  color: var(--main-color);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.2s ease;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.active {
  color: var(--accent-color);
}

.nav-links li a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6em;
  cursor: pointer;
  color: var(--main-color);
}

/* ================= MOBILE HEADER ================= */
@media screen and (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    width: 240px;
    display: none;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    padding: 5px 10px;
    line-height: 1.6;          /* reduce inherited line-height */

  }

  .nav-links li a {
    color: var(--main-color);
  }
}

/* ================= MAIN SECTIONS ================= */
.section {
  background: #fff;
  padding: 5px 20px 20px 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
}

.section:first-of-type {
  margin-top: 20px;
}

/* ================= 2-COLUMN CARD SECTIONS ================= */

.card-for-columns {
  background: none; /* no padding, image bleeds to edges */
  margin-top: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden; /* ensures image respects border radius */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Row inside card: text + image */
.card-row {
  display: flex;
  flex-wrap: wrap; /* allows stacking on mobile */
}

/* Text column */
.card-text {
  flex: 1 1 50%; /* half width on desktop */
  padding: 20px; /* only the text column has padding */
  box-sizing: border-box;
  background: #fff; /* optional: white background behind text */
}

/* Image column */
.card-image {
  flex: 1 1 50%; /* half width on desktop */
  display: flex;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures it fills its container nicely */
}

/* Reverse order if image-left */
.card-row.image-left .card-image {
  order: 0;
}

.card-row.image-left .card-text {
  order: 1;
}

/* Default text-left */
.card-row.text-left .card-text {
  order: 0;
}

.card-row.text-left .card-image {
  order: 1;
}

/* ================= MOBILE STACKING ================= */
@media (max-width: 768px) {
  .card-row {
    flex-direction: column;
  }

  /* Text always above image */
  .card-text {
    flex: 1 1 100%;
    padding: 20px;
    background: #fff;
  }

  .card-image {
    flex: 1 1 100%;
    padding: 0; /* remove any padding */
    background: none; /* full bleed */
  }

  .card-image img {
    width: 100%;            /* fill width */
    height: auto;           /* keep aspect ratio */
    max-height: 30vh;       /* cap at 30% of viewport height */
    display: block;
    border-radius: 0 0 10px 10px;
    object-fit: cover;      /* crops if image exceeds max-height */
    object-position: top;   /* ensures top of image is shown if cropped */
  }

  /* Reset desktop-specific ordering */
  .card-for-columns .card-row .card-text,
  .card-for-columns .card-row .card-image {
    order: unset;
  }
}



/* ================= SINGLE-COLUMN CARD ================= */
.card-single-column .card-row {
  display: block; /* just one column, no flex needed */
}

.card-single-column .card-text.full-width {
  flex: 1 1 100%;      /* take full width */
  padding: 20px;       /* same padding as regular cards */
  background: #fff;    /* white background */
  border-radius: 10px; /* optional: match other cards */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); /* subtle shadow */
}


/* ================= TOP LAYOUT ================= */
.top-layout {
  display: block;
}

@media (min-width: 900px) {
  .top-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
  }
}

/* ================= MAP ================= */
#map {
  overflow: hidden;
  margin-bottom: 20px;
}

#map svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ================= INPUT ROWS ================= */
.input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.input-row label {
  white-space: nowrap;
  font-weight: 500;
}

.input-row .value {
  min-width: 70px;
  text-align: right;
  font-weight: 600;
  color: var(--accent-color);
}

.input-row .house-size {
  display: block;
  text-align: right;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 2px;
}

/* Wrapper for slider + value to allow mobile flex - REMOVED 26 JAN
.input-row-slider {
  display: contents; 
}*/


/* ADDED 26 JAN 2026, IN PLEASE OF PREVIOUS RULE (SEE CHATGPT) */
.input-row-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}


.input-row-slider input[type="range"] {
  width: 100%;
}

.input-row-slider .value {
  min-width: 70px;
  text-align: right;
  font-weight: 600;
  color: var(--accent-color);
}

/* ========== MOBILE INPUT ROWS ================= */
@media screen and (max-width: 1320px) {
  .input-row {
    display: grid;
    grid-template-columns: 1fr; /* label full width, slider+value below */
    gap: 6px;
    align-items: start;
  }

  .input-row label {
    white-space: normal; /* wrap tooltip text */
  }

  .input-row-slider {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px; /* space below slider/value on mobile */
  }

  .input-row-slider input[type="range"] {
    flex: 1;
    min-width: 0;
  }

  .input-row-slider .value {
    width: 70px;
    text-align: right;
    white-space: nowrap;
  } 
}

/* ================= Color for other output values ================= */
#dailyKwhDisplay,
#systemCostDisplay {
  color: var(--accent-color); /* your highlight color */
  font-weight: 600;            /* optional: match slider/value style */
}

/* Small screens, stack other output values the text */
@media screen and (max-width: 1320px) {
  #dailyKwhDisplay,
  #systemCostDisplay {
    display: block;     /* forces onto its own line */
    margin-top: 2px;    /* small spacing from label */
  }
}

/* ================= CHARTS ================= */
.charts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .charts-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================= CHART BOXES ================= */
.chart-box {
  width: 100%;
  position: relative;
  display: block;
  padding-top: 12px;

}

.chart-box h3 {
  margin: 0 0 6px 0;
  font-size: 1em;
  font-weight: 500;
  color: var(--main-color);
}

.chart-box canvas {
  width: 100% !important;
  height: 340px !important;
  display: block;
}

/* ================= HEADINGS INSIDE SECTION BOXES ================= */
.section h2 {
  margin-top: 0px;
  margin-bottom: 6px;
}

/* ================= TOTAL SAVINGS TEXT ================= */
.total-savings {
  font-weight: 600;
  color: var(--accent-color);
  margin: 4px 0 12px 0;
}

.total-savings-label {
  display: inline-block;
  font-weight: 500;
  margin: 10px 0 20px 0;
  padding: 5px 14px;
  border: 2px solid rgba(217, 119, 6, 0.65);
  border-radius: 3px;
  background: rgba(217, 119, 6, 0.05);
  font-size: 1.2em;
}

/* ============================================ 
   Subtle styling for numeric input boxes 
============================================ */
#downpayment,
#singleIncentive,
#stateSelect {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  background-color: #f9f9f9;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

#downpayment:focus,
#singleIncentive:focus,
#stateSelect:focus {
  border-color: #80bdff;
  box-shadow: 0 0 4px rgba(0,123,255,0.3);
  outline: none;
}

#stateSelect {
  width: 180px;
  display: inline-block;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--main-color);
  color: #fff;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9em;
}

/* ================= SLIDER BASE ================= */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
  margin: 0;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: filter 0.2s, transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent-color);
}

input[type="range"]::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
}

input[type="range"]::-ms-fill-lower {
  background: var(--accent-color);
  border-radius: 3px;
}

input[type="range"]::-ms-fill-upper {
  background: #e5e7eb;
  border-radius: 3px;
}

/* ================ Logo image ============== */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-header-img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo {
  margin-bottom: 1rem;
}

.logo-footer-img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile: smaller header logo only */
@media (max-width: 640px) {
  .logo-header-img {
    height: 50px;
    width: auto;
  }
}

/* ================ BUTTON ============== */

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 15px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1em;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 6px;
  background: transparent;
  text-decoration: none !important; /* remove underline */
  cursor: pointer;
  transition: 
    color 0.25s ease,
    border-color 0.25s ease;
  position: relative; /* needed to override ::after underline */
}

.main-button::after {
  display: none !important; /* disable global underline */
  content: none !important;
}

.main-button .chevron {
  display: inline-block;
  font-size: 1.4em; /* balanced size */
  line-height: 1;
  vertical-align: middle; /* aligns with text */
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover / Focus state */
.main-button:hover,
.main-button:focus {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: transparent;
  outline: none;
  text-decoration: none !important;
}

.main-button:hover .chevron,
.main-button:focus .chevron {
  color: var(--accent-color);
  transform: translateX(3px);
}

/* Stop button stretching to full width */

.card-text .main-button {
  width: auto;      /* only as wide as content */
  align-self: flex-start; /* prevents stretching in flex column */
}


/* =============== FOOTER LINKS =============== */
.site-footer a {
  color: #ffffff;                 /* white text */
  font-weight: 400;
  text-decoration: none;          /* remove default underline */
  position: relative;             /* needed for pseudo-element */
  transition: color 0.3s ease;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;                   /* adjust to sit just under text */
  width: 0;
  height: 2px;
  background-color: #ffffff;      /* white underline */
  transition: width 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;                 /* keep white on hover */
  outline: none;
}

.site-footer a:hover::after,
.site-footer a:focus::after {
  width: 100%;                    /* animate underline left to right */
}


/* ================= GEO-SPECIFIC NEXT STEPS ================= */

.geo-section {
  display: none;
}


/* ================= STYLING FOR CLICKABLE EMAIL ADDRESS ================= */
.copy-email {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  font-weight: 600;
  color: var(--main-color);        /* main blue by default */
  transition: color 0.2s ease;    /* smooth transition on hover */
}

.copy-email:hover {
  color: var(--accent-color);     /* highlight color on hover */
}

.copy-tooltip {
  visibility: hidden;
  background-color: var(--accent-color);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8em;
  position: absolute;
  bottom: 125%; /* above the text */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.copy-email:hover .copy-tooltip {
  visibility: visible;
  opacity: 1;
}

/* ================= SOURCE / CITATION LINKS ================= */

.source-links {
  font-size: 0.85em;          /* slightly smaller than body text */
  color: #858585;             /* neutral gray */
}

.source-links a {
  color: #858585;             /* same gray as text */
  font-weight: 400;           /* remove bold emphasis */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;

  /* kill global link behavior */
  transition: none;
}

.source-links a::after {
  display: none !important;   /* remove animated underline */
}

.source-links a:hover,
.source-links a:focus {
  color: #858585;             /* no hover color change */
  text-decoration: underline;
  outline: none;
}

/* ================= Spacing for lists ================= */

li {
  margin-bottom: 12px; /* adjust the spacing as needed */
}

/* ================= STATE GRID ================= */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.state-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background-color: #ffffff;       /* white background by default */
  color: var(--main-color);                 /* blue text */
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  border: 2px solid var(--main-color);      /* 2px blue border */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.state-grid a::after {
  display: none; /* disable sliding underline from global links */
}

.state-grid a:hover,
.state-grid a:focus {
  background-color: rgba(217, 119, 6, 0.05); /* 5% yellow fill */
  color: var(--accent-color);                           /* yellow text */
  border-color: var(--accent-color);                    /* yellow border */
  outline: none;
}

.state-grid a:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* ================= MOBILE ADJUSTMENTS ================= */
@media (max-width: 768px) {
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

  .state-grid a {
    padding: 8px 2px;
  }
}

/* ================= STATE BY STATE NAV SUBMENU ================= */

.state-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.state-subnav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--main-color);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--main-color);      /* 1px blue border */
  transition: color 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.state-subnav a::after {
  display: none;
}

.state-subnav a:hover {
  background-color: rgba(31, 78, 121, 0.1);
}

.state-subnav a.active {
  color: var(--accent-color);
  border: 1px solid var(--accent-color);      /* 1px yellow border */
  background-color: rgba(217, 119, 6, 0.05);
}

.state-subnav a:hover,
.state-subnav a:focus {
  text-decoration: none;
}


@media (max-width: 768px) {
  .state-subnav {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-state-link {
    display: none;
  }
}

/* ================= AFFILIATE RECOMMENDATION PANEL ================= */

/* --- Logo --- */

/* wrapper link */
.affiliate-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 150px;
  height: auto;
}

/* logo image */
.affiliate-logo img {
  height: 20px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Remove global underline effect from affiliate logo links */
.affiliate-logo::after {
  display: none !important;
  content: none !important;
}

/* subtle hover / focus affordance */
.affiliate-logo:hover img,
.affiliate-logo:focus-visible img {
  opacity: 0.9;
}


/* --- CTA button --- */
.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 15px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1em;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 6px;
  background: transparent;
  text-decoration: none !important; /* remove underline */
  cursor: pointer;
  transition: 
    color 0.25s ease,
    border-color 0.25s ease;
  position: relative; /* needed to override ::after underline */
}

.affiliate-cta::after {
  display: none !important; /* disable global underline */
  content: none !important;
}

.affiliate-cta .arrow {
  display: inline-block;
  font-size: 1.4em; /* balanced size */
  line-height: 1;
  vertical-align: middle; /* aligns with text */
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover / Focus state */
.affiliate-cta:hover,
.affiliate-cta:focus {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: transparent;
  outline: none;
  text-decoration: none !important;
}

.affiliate-cta:hover .arrow,
.affiliate-cta:focus .arrow {
  color: var(--accent-color);
  transform: translate(3px, -3px); /* combine X and Y in one transform */
  transition: transform 0.2s ease, color 0.2s ease; /* smooth animation */
}

/* --- Container and alignment for Affiliate CTA, advisory text, and logo --- */
.affiliate-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* aligns children to the top */
  flex-wrap: wrap; /* stacks on mobile */
  gap: 20px;
}

.affiliate-left {
  flex: 1 1 auto; /* button takes available space */
  min-width: 200px; /* prevents shrinking too much on mobile */
}

.affiliate-right {
  flex: 1 1 auto;
  text-align: right;
  min-width: 150px;
}

.affiliate-right p {
  margin: 0 0 6px 0;
  font-size: 0.8em;           /* smaller than body text */
  color: #737373;             /* pale grey for subtlety */
  line-height: 1.35;          /* keeps text readable even smaller */
}

/* Responsive */
@media (max-width: 640px) {
  .affiliate-container {
    flex-direction: column;
    text-align: center;
  }
  .affiliate-right {
    text-align: left;
  }
}

/* =============== AFFILIATE DISCLOSURE TEXT =============== */

.affiliate-disclosure {
  font-size: 0.8em;           /* smaller than body text */
  color: #737373;             /* pale grey for subtlety */
  line-height: 1.35;          /* keeps text readable even smaller */
  margin-top: 60px;           /* ensures at least 60px spacing above */
}

/* =============== AFFILIATE SUBHEADING ABOVE BUTTON =============== */
.affiliate-subheading {
  font-size: 1.2rem;            /* slightly smaller than main headings */
  font-weight: 500;            /* medium weight, not too bold */
  margin: 10px 0 10px 0;           /* small space below the heading */
  line-height: 1.3;            /* comfortable line spacing */
  text-transform: none;        /* keep normal case */
  padding-top: 8px;           /* space between border and text */
}

.affiliate-separator {
  border: none;              /* remove default border */
  border-top: 1px solid #ddd; /* thin light grey line */
  margin: 20px 0;            /* space above and below the line */
  width: 100%;               /* full width of the container */

}

/* =============== ARTICLE LIST =============== */
.article-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.article-item {
  margin-bottom: 1rem;
}

.article-title {
  display: inline-block;
  line-height: 1.25;
  padding-bottom: 2px;
  text-decoration: none;
}

.article-description {
  display: block;
  margin-top: 0.25rem;
  margin-left: 0.75rem; /* ? subtle indent */
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

/* =============== ARTICLE LIST =============== */
.affiliate-description {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

/* =============== State price grid =============== */

.state-price-grid {
  column-width: 220px;   /* Minimum width of each column */
  column-gap: 2rem;      /* Space between columns */
}

.price-grid-item {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px dotted #ddd;
  break-inside: avoid;    /* Prevent item from breaking across columns */
}

.price-grid-item:hover {
  background-color: rgba(0, 120, 255, 0.06);
}

.price-grid-state {
  font-weight: 500;
}

.price-grid-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* =============== Google rating stars and other details =============== */
/* Container for the rating badge */
.google-rating {
  display: flex;                     /* align stars and text on one line */
  align-items: center;               /* vertical alignment */
  justify-content: center;           /* center under logo */
  font-size: 0.9em;           /* smaller than body text */
  color: #737373;             /* pale grey for subtlety */
  flex-wrap: nowrap;                 /* keep everything on one line */
}

.rating-strong {
  font-weight: 800;
  color: var(--main-color);
}

/* Stars container */
.rating-stars {
  display: flex;
  align-items: center;
  margin-right: 6px;                 /* space between stars and text */
}

/* Individual star sizing */
.rating-stars svg {
  width: 16px;                        /* adjust size as needed */
  height: 16px;                       /* do NOT use "auto" */
  margin-right: 2px;
  flex-shrink: 0;
}

/* Inline text next to stars */
.rating-text {
  white-space: nowrap;               /* keep everything on one line */
}

/* Optional: smaller on mobile */
@media (max-width: 640px) {
  .rating-stars svg {
    width: 14px;
    height: 14px;
  }
}
