:root {

  color-scheme: light;



  --bg: #f6f8f7;

  --surface: #ffffff;

  --surface-soft: #f0f6f2;



  --text: #17251d;

  --muted: #718077;



  --primary: #158594;

  --primary-dark: #186c86;

  --primary-light: #dff5e9;

  --accent: #b9f36b;



  --border: #e3ebe5;

  --shadow: 0 5px 22px rgba(20, 50, 35, 0.045);

  --shadow-hover: 0 12px 28px rgba(20, 50, 35, 0.09);



  --container: 1240px;

  --radius: 16px;

  --radius-sm: 10px;

}



/* ================= RESET ================= */



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



html {

  scroll-behavior: smooth;

  scroll-padding-top: 90px;

}



body {

  font-family:

    Inter,

    -apple-system,

    BlinkMacSystemFont,

    "Segoe UI",

    Roboto,

    Helvetica,

    Arial,

    sans-serif;



  font-size: 15px;

  line-height: 1.7;

  color: var(--text);

  background: var(--bg);



  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;

}



a {

  color: inherit;

  text-decoration: none;

}



a:focus-visible,

button:focus-visible {

  outline: 3px solid #8ce9bc;

  outline-offset: 3px;

}



button {

  font: inherit;

}



/* ================= HEADER ================= */



header {

  position: sticky;

  top: 0;

  z-index: 100;



  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid var(--border);



  -webkit-backdrop-filter: blur(16px);

  backdrop-filter: blur(16px);

}



.nav-container {

  max-width: var(--container);

  min-height: 72px;

  margin: 0 auto;

  padding: 10px 24px;



  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}



.logo {

  flex-shrink: 0;

}



.logo a {

  display: inline-flex;

  align-items: center;

  gap: 8px;



  color: var(--text);

  font-size: 1.28rem;

  font-weight: 800;

  letter-spacing: -0.7px;

  white-space: nowrap;



  transition: color 0.2s ease;

}



.logo a:hover {

  color: var(--primary);

}



/* ================= NAVIGATION ================= */



.nav-container > nav {

  position: relative;

}



#menu {

  display: flex;

  align-items: center;

  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 3px;



  list-style: none;

}



#menu a {

  display: inline-flex;

  align-items: center;

  justify-content: center;



  padding: 8px 10px;

  border-radius: 8px;



  color: #56645b;

  font-size: 0.81rem;

  font-weight: 650;

  white-space: nowrap;



  transition:

    color 0.2s ease,

    background 0.2s ease;

}



#menu a:hover {

  color: var(--primary-dark);

  background: var(--primary-light);

}



.menu-toggle {

  display: none;

  align-items: center;

  justify-content: center;



  width: 42px;

  height: 42px;



  border: 1px solid var(--border);

  border-radius: 10px;



  background: var(--surface);

  color: var(--text);



  font-size: 1.4rem;

  line-height: 1;

  cursor: pointer;

}



/* ================= HERO ================= */



.hero {

  position: relative;

  isolation: isolate;

  overflow: hidden;



  width: 100%;

  margin: 0;

  padding: 42px 24px 46px;



  text-align: center;

  color: #ffffff;



  background: linear-gradient(

    120deg,

    #2ca7a7 0%,

    #2a9da5 65%,

    #0b7671 100%

  );



  border: 0;

  border-radius: 0;

  box-shadow: none;

}



.hero::before {

  content: "";

  position: absolute;

  z-index: -1;



  width: 240px;

  height: 240px;

  top: -165px;

  right: 8%;



  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 50%;



  box-shadow:

    0 0 0 30px rgba(255, 255, 255, 0.025),

    0 0 0 60px rgba(255, 255, 255, 0.02);



  pointer-events: none;

}



.hero h1 {

  max-width: 850px;

  margin: 0 auto 12px;



  color: #ffffff;



  font-size: clamp(2rem, 4vw, 3.2rem);

  font-weight: 800;

  line-height: 1.15;

  letter-spacing: -1.5px;

}



.hero p {

  max-width: 760px;

  margin: 0 auto;



  color: rgba(255, 255, 255, 0.88);



  font-size: 1rem;

  line-height: 1.8;

}



/* ================= CALCULATOR DIRECTORY ================= */



.categories {

  max-width: var(--container);

  margin: 0 auto;

  padding: 34px 24px 20px;



  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  align-items: stretch;

  gap: 20px;

}



/* ================= CATEGORY CARDS ================= */



.category {

  min-width: 0;

  padding: 23px 21px;



  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius);



  box-shadow: var(--shadow);



  transition:

    transform 0.22s ease,

    border-color 0.22s ease,

    box-shadow 0.22s ease;

}



.category:hover {

  transform: translateY(-3px);

  border-color: #b7dfc8;

  box-shadow: var(--shadow-hover);

}



/* Category heading */



.category h2 {

  display: flex;

  align-items: center;

  gap: 9px;



  margin-bottom: 15px;

  padding-bottom: 14px;



  border-bottom: 1px solid var(--border);



  color: var(--text);

  font-size: 1.08rem;

  font-weight: 780;

  line-height: 1.5;

  letter-spacing: -0.3px;

}



/* Calculator links */



.category ul {

  display: flex;

  flex-direction: column;

  gap: 3px;



  margin: 0;

  padding: 0;



  list-style: none;

  color: var(--muted);

  font-weight: 400;

}



.category li {

  margin: 0;

  padding: 0;

}



.category li a {

  display: block;



  padding: 8px 9px;

  border-radius: 8px;



  color: #5b6a60;

  font-size: 0.88rem;

  line-height: 1.6;



  overflow-wrap: anywhere;



  transition:

    color 0.18s ease,

    background 0.18s ease,

    padding-left 0.18s ease;

}



.category li a:hover {

  padding-left: 13px;



  color: var(--primary-dark);

  background: var(--surface-soft);

}



/* ================= BACK TO TOP ================= */



.cta {

  padding: 25px 20px 55px;

  text-align: center;

}



.cta button {

  display: inline-flex;

  align-items: center;

  justify-content: center;



  padding: 12px 22px;



  border: 1px solid var(--primary);

  border-radius: 10px;



  background: var(--primary);

  color: #ffffff;



  font-size: 0.91rem;

  font-weight: 700;



  box-shadow: 0 4px 12px rgba(8, 127, 91, 0.13);

  cursor: pointer;



  transition:

    background 0.2s ease,

    transform 0.2s ease,

    box-shadow 0.2s ease;

}



.cta button:hover {

  background: var(--primary-dark);

  box-shadow: 0 7px 18px rgba(8, 127, 91, 0.2);

  transform: translateY(-2px);

}



/* ================= FOOTER ================= */



footer {

  margin-top: 15px;

  padding: 36px 24px;



  background: #217174;

  color: #d9e6dd;

  text-align: center;

}



.footer-container {

  max-width: var(--container);

  margin: 0 auto;

}



.footer-container p {

  color: #b2c6b8;

  font-size: 0.88rem;

}



.footer-links {

  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px 22px;



  margin-top: 15px;

}



.footer-links a {

  color: #e2eee6;

  font-size: 0.87rem;



  transition: color 0.2s ease;

}



.footer-links a:hover {

  color: var(--accent);

}



/* ================= TABLET ================= */



@media (max-width: 1100px) {

  .nav-container {

    gap: 12px;

    padding-inline: 18px;

  }



  .logo a {

    font-size: 1.12rem;

  }



  #menu {

    gap: 1px;

  }



  #menu a {

    padding: 7px;

    font-size: 0.75rem;

  }



  .categories {

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 17px;

    padding-inline: 20px;

  }

}



/* ================= MOBILE NAVIGATION ================= */



@media (max-width: 760px) {

  .nav-container {

    min-height: 66px;

    padding: 10px 16px;

  }



  .logo a {

    font-size: 1.12rem;

  }



  .menu-toggle {

    display: inline-flex;

  }



  #menu {

    display: none;



    position: absolute;

    top: calc(100% + 12px);

    right: 0;



    width: min(310px, calc(100vw - 32px));

    max-height: calc(100dvh - 95px);

    overflow-y: auto;



    flex-direction: column;

    align-items: stretch;

    flex-wrap: nowrap;

    gap: 4px;



    padding: 11px;



    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 14px;



    box-shadow: 0 16px 40px rgba(16, 43, 28, 0.15);

  }



  #menu.show {

    display: flex;

  }



  #menu a {

    justify-content: flex-start;



    padding: 11px 12px;



    font-size: 0.89rem;

    white-space: normal;

  }



  /* Full-width hero, no rounded corners */



  .hero {

    width: 100%;

    margin: 0;

    padding: 34px 20px 38px;



    border-radius: 0;

  }



  .hero h1 {

    margin-bottom: 12px;



    font-size: clamp(1.9rem, 7vw, 2.6rem);

    line-height: 1.18;

    letter-spacing: -1px;

  }



  .hero p {

    font-size: 0.94rem;

    line-height: 1.75;

  }



  /* One category per row on small screens */



  .categories {

    grid-template-columns: minmax(0, 1fr);

    gap: 14px;



    padding: 22px 14px 12px;

  }



  .category {

    padding: 21px 18px;

    border-radius: 13px;

  }



  .category h2 {

    margin-bottom: 13px;

    padding-bottom: 12px;

    font-size: 1.05rem;

  }



  .category li a {

    padding-top: 9px;

    padding-bottom: 9px;

    font-size: 0.9rem;

  }



  .cta {

    padding: 25px 14px 42px;

  }



  footer {

    padding: 30px 18px;

  }



  .footer-links {

    gap: 12px 18px;

  }

}



/* ================= SMALL PHONES ================= */



@media (max-width: 380px) {

  .logo a {

    font-size: 1rem;

  }



  .hero {

    padding: 30px 17px 34px;

  }



  .hero h1 {

    font-size: 1.9rem;

  }



  .category {

    padding: 18px 15px;

  }

}



/* ================= REDUCED MOTION ================= */



@media (prefers-reduced-motion: reduce) {

  *,

  *::before,

  *::after {

    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

  }

}





  \
/* ================= CALCULATOR PAGE COMPONENTS ================= */

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto;
  padding: 0 0 48px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }

.wrap fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wrap .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wrap label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.wrap input,
.wrap select,
.wrap textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.wrap input:focus,
.wrap select:focus,
.wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 133, 148, 0.16);
}

.scoreBig {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.footnote {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.footer {
  margin-top: 40px;
  padding: 20px;
  background: #217174;
  color: #f7f9fc;
  text-align: center;
}

.affiliate-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.affiliate-item img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.affiliate-text a {
  display: inline-block;
  margin-top: 4px;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.affiliate-text a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .span-8,
  .span-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap .row,
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wrap {
    width: calc(100% - 28px);
    margin-top: 20px;
  }

  .card {
    padding: 17px;
  }
}




/* =========================================================
   SOLARMATHLAB — CALCULATOR & ARTICLE PAGE
   Scoped styles: does not redesign the global homepage
   ========================================================= */

body.calculator-page {
  --calc-accent: #0d9488;
  --calc-accent-dark: #0f766e;
  --calc-text: #17212b;
  --calc-muted: #64748b;
  --calc-border: #e2e8f0;
  --calc-surface: #ffffff;
  --calc-soft: #f8fafc;
  --calc-radius: 16px;
  color: var(--calc-text);
}

/* Page container */
body.calculator-page .wrap {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Calculator grid */
body.calculator-page .calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 28px;
}

/* Calculator cards only */
body.calculator-page .calc-grid > .card,
body.calculator-page .info-grid > .card {
  min-width: 0;
  background: var(--calc-surface);
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  padding: 26px;
  box-shadow: 0 4px 18px rgb(15 23 42 / 4%);
}

body.calculator-page .calc-grid > .card > h2 {
  margin: 0 0 22px;
  color: var(--calc-text);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

/* Prevent legacy span classes from breaking the new grid */
body.calculator-page .calc-grid > .span-8,
body.calculator-page .calc-grid > .span-4 {
  grid-column: auto;
  width: auto;
  max-width: none;
}

/* Input groups */
body.calculator-page fieldset.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.calculator-page fieldset.row > div {
  min-width: 0;
}

body.calculator-page fieldset.row label {
  display: block;
  margin: 0 0 8px;
  color: #334155;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.45;
}

body.calculator-page fieldset.row input,
body.calculator-page .calc-grid input[type="number"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--calc-text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.calculator-page fieldset.row input:hover {
  border-color: #94a3b8;
}

body.calculator-page fieldset.row input:focus {
  border-color: var(--calc-accent);
  box-shadow: 0 0 0 3px rgb(13 148 136 / 13%);
}

/* Calculate button */
body.calculator-page .calc-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid var(--calc-accent);
  border-radius: 10px;
  background: var(--calc-accent);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.calculator-page .calc-grid button:hover {
  background: var(--calc-accent-dark);
  border-color: var(--calc-accent-dark);
}

body.calculator-page .calc-grid button:active {
  transform: translateY(1px);
}

body.calculator-page .calc-grid button:focus-visible {
  outline: 3px solid rgb(13 148 136 / 28%);
  outline-offset: 3px;
}

/* Formula note */
body.calculator-page .footnote {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f0f9ff;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Helpful information cards */
body.calculator-page .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

body.calculator-page .info-grid > .card {
  padding: 18px;
  border-radius: 12px;
  background: var(--calc-soft);
  box-shadow: none;
}

body.calculator-page .info-grid > .card h2 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.45;
}

body.calculator-page .sub {
  color: var(--calc-muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

/* Related calculators */
body.calculator-page .related-calculators {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--calc-border);
  font-size: 0.94rem;
  line-height: 1.9;
}

body.calculator-page .related-calculators strong {
  display: block;
  margin-bottom: 8px;
  color: var(--calc-text);
}

body.calculator-page .related-calculators a {
  color: var(--calc-accent-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

body.calculator-page .related-calculators a:hover {
  text-decoration: underline;
}

/* Results panel */
body.calculator-page #results {
  position: relative;
}

body.calculator-page #results > h2 {
  margin-bottom: 22px;
}

body.calculator-page #results > div:not(.affiliate-item) {
  margin-top: 18px !important;
}

body.calculator-page #results .scoreBig {
  margin-top: 5px;
  color: var(--calc-accent-dark);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.calculator-page #dailyKwh,
body.calculator-page #monthlyKwh,
body.calculator-page #yearlyKwh {
  margin-top: 4px;
  color: var(--calc-text);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Affiliate product heading */
body.calculator-page #results h3 {
  margin: 28px 0 14px !important;
  color: var(--calc-text);
  font-size: 1rem !important;
  font-weight: 750;
  line-height: 1.5;
}

/* Affiliate product cards */
body.calculator-page .affiliate-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--calc-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.calculator-page .affiliate-item:hover {
  border-color: #99d5cf;
  box-shadow: 0 4px 14px rgb(15 23 42 / 5%);
}

body.calculator-page .affiliate-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

body.calculator-page .affiliate-item img {
  display: block;
  width: 100px;
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

body.calculator-page .affiliate-text {
  min-width: 0;
  color: var(--calc-text);
  font-size: 0.87rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.calculator-page .affiliate-text strong {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.calculator-page .affiliate-text span {
  color: var(--calc-muted) !important;
}

body.calculator-page .affiliate-text a {
  display: inline-block;
  margin-top: 7px;
  color: var(--calc-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

body.calculator-page .affiliate-text a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Article section */
body.calculator-page .article-content {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 34px !important;
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  background: var(--calc-surface);
  box-shadow: 0 4px 18px rgb(15 23 42 / 3%);
  color: #334155;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

body.calculator-page .article-content h2 {
  margin: 0 0 18px;
  color: var(--calc-text);
  font-size: clamp(1.45rem, 2.5vw, 1.8rem) !important;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

body.calculator-page .article-content h3 {
  margin: 30px 0 12px !important;
  color: var(--calc-text);
  font-size: 1.17rem !important;
  font-weight: 750;
  line-height: 1.5;
}

body.calculator-page .article-content p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

body.calculator-page .article-content strong {
  color: #1e293b;
  font-weight: 700;
}

body.calculator-page .article-content ul,
body.calculator-page .article-content ol {
  margin: 10px 0 22px;
  padding-left: 24px;
}

body.calculator-page .article-content li {
  margin-bottom: 9px;
  padding-left: 3px;
  color: #475569;
  line-height: 1.8;
}

body.calculator-page .article-content li::marker {
  color: var(--calc-accent);
}

/* Article tables */
body.calculator-page .article-content table {
  display: table;
  width: 100%;
  margin: 20px 0 24px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

body.calculator-page .article-content thead {
  background: #f1f5f9;
}

body.calculator-page .article-content th,
body.calculator-page .article-content td {
  padding: 12px 14px !important;
  border: 1px solid #e2e8f0 !important;
  text-align: left;
  vertical-align: top;
}

body.calculator-page .article-content th {
  color: #334155;
  font-weight: 750;
}

body.calculator-page .article-content td {
  color: #475569;
}

body.calculator-page .article-content tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Tablet */
@media (max-width: 900px) {
  body.calculator-page .calc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.calculator-page .calc-grid > .span-8,
  body.calculator-page .calc-grid > .span-4 {
    grid-column: auto;
  }

  body.calculator-page #results {
    width: auto;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body.calculator-page .wrap {
    width: calc(100% - 28px);
  }

  body.calculator-page .calc-grid {
    margin-top: 18px;
    gap: 16px;
  }

  body.calculator-page .calc-grid > .card {
    padding: 19px;
    border-radius: 13px;
  }

  body.calculator-page .calc-grid > .card > h2 {
    margin-bottom: 18px;
    font-size: 1.2rem;
  }

  body.calculator-page fieldset.row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.calculator-page .info-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.calculator-page .affiliate-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
  }

  body.calculator-page .affiliate-item img {
    width: 78px;
    height: 88px;
  }

  body.calculator-page .article-content {
    padding: 22px 18px !important;
    border-radius: 13px;
    font-size: 0.96rem;
  }

  body.calculator-page .article-content p {
    font-size: 0.96rem;
  }

  body.calculator-page .article-content h3 {
    margin-top: 24px !important;
    font-size: 1.08rem !important;
  }

  body.calculator-page .article-content table {
    font-size: 0.82rem;
  }

  body.calculator-page .article-content th,
  body.calculator-page .article-content td {
    padding: 8px !important;
    overflow-wrap: anywhere;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.calculator-page *,
  body.calculator-page *::before,
  body.calculator-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


