/*
Theme Name: Calculate My Debt
Theme URI: https://calculatemydebt.com
Author: Praveen Kumar
Description: Custom theme for calculatemydebt.com. Lightweight, semantic HTML5, one shared stylesheet, system fonts only (no external font requests), built for page performance and clean schema markup rather than a page builder.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmd-theme
*/

/* ==========================================================================
   Design tokens
   Shared with the debt calculator plugin's own token set (assets/calculator.css)
   so the embedded calculator visually matches the surrounding site rather
   than looking like a bolted-on widget.
   ========================================================================== */
:root {
  --cmd-bg: #faf6f1;
  --cmd-surface: #ffffff;
  --cmd-ink: #2e2420;
  --cmd-ink-soft: #6b5d55;
  --cmd-line: #ece3d8;
  --cmd-accent: #e34f45;       /* exact logo coral: decorative only, fails AA with white text */
  --cmd-accent-soft: #fbe4e1;
  --cmd-accent-ink: #c1440e;   /* exact logo rust: PRIMARY interactive color, passes AA (5.1:1) */
  --cmd-accent-teal: #5dd3ba;  /* exact logo mint: decorative only */
  --cmd-accent-teal-dark: #377e6f; /* passes AA (4.8:1), for teal badges/buttons */
  --cmd-accent-teal-soft: #e1f7f1;
  --cmd-accent-yellow: #fcd56c; /* exact logo yellow: pair with dark ink text only (10.7:1) */
  --cmd-warn: #b3261e;

  --cmd-radius: 10px;
  --cmd-container: 1100px;
  --cmd-shadow: 0 2px 8px rgba(46, 36, 32, 0.07), 0 1px 2px rgba(46, 36, 32, 0.05);
  --cmd-shadow-hover: 0 10px 24px rgba(227, 79, 69, 0.16), 0 2px 8px rgba(46, 36, 32, 0.06);

  --cmd-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cmd-font-display: 'IBM Plex Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cmd-font-body);
  color: var(--cmd-ink);
  background: var(--cmd-bg);
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--cmd-accent-ink);
  text-decoration-color: var(--cmd-line);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--cmd-accent);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cmd-ink);
}

h1 { font-size: clamp(32px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 19px; font-weight: 700; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.3em; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--cmd-surface);
  padding: 10px 16px;
  z-index: 100000;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.cmd-container {
  max-width: var(--cmd-container);
  margin: 0 auto;
  padding: 0 20px;
}

.cmd-skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--cmd-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 100000;
  transition: top 0.15s ease;
}
.cmd-skip-link:focus {
  top: 10px;
  color: #fff;
}

/* ==========================================================================
   Site header
   ========================================================================== */
.cmd-site-header {
  background: var(--cmd-surface);
  border-bottom: 1px solid var(--cmd-line);
}
.cmd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}
.cmd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--cmd-ink);
  text-decoration: none;
}
.cmd-logo img {
  height: 36px;
  width: auto;
}
.cmd-logo:hover {
  color: var(--cmd-ink);
}

.cmd-primary-nav > ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.cmd-primary-nav a {
  color: var(--cmd-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.cmd-primary-nav a:hover {
  color: var(--cmd-accent-ink);
}

/* ---- Dropdown submenus ----
   Hover/focus-within covers mouse and keyboard. A small click-toggle in
   nav.js covers touch devices at desktop-width viewports, where hover
   doesn't exist but the CSS media query for the mobile accordion hasn't
   kicked in yet (e.g. a tablet in landscape). */
.cmd-primary-nav .menu-item-has-children {
  position: relative;
}
.cmd-primary-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  margin-bottom: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}
.cmd-primary-nav .sub-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--cmd-surface);
  border: 1px solid var(--cmd-line);
  border-radius: 8px;
  box-shadow: var(--cmd-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 100;
}
.cmd-primary-nav .menu-item-has-children:hover > .sub-menu,
.cmd-primary-nav .menu-item-has-children:focus-within > .sub-menu,
.cmd-primary-nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cmd-primary-nav .sub-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.cmd-primary-nav .sub-menu a:hover {
  background: var(--cmd-bg);
  color: var(--cmd-accent-ink);
}

.cmd-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cmd-line);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .cmd-nav-toggle {
    display: inline-block;
  }
  .cmd-primary-nav {
    display: none;
    width: 100%;
  }
  .cmd-primary-nav.is-open {
    display: block;
  }
  .cmd-primary-nav > ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  /* On mobile, submenus stay inline and always visible rather than
     needing a second tap, position:absolute has no room to work with
     on a narrow screen anyway, and hover doesn't exist on touch. */
  .cmd-primary-nav .sub-menu {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 4px 16px;
  }
  .cmd-primary-nav .menu-item-has-children > a::after {
    display: none;
  }
  .cmd-header-inner {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Hero (front page)
   ========================================================================== */
.cmd-hero {
  padding: 56px 0 24px;
  text-align: center;
  position: relative;
}
.cmd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(227, 79, 69, 0.18) 1.6px, transparent 1.6px),
    radial-gradient(circle, rgba(93, 211, 186, 0.18) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}
.cmd-hero .cmd-container {
  position: relative;
  z-index: 1;
}
.cmd-hero h1 {
  margin: 0 0 12px;
}
.cmd-hero-accent {
  color: var(--cmd-accent-ink);
}
.cmd-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--cmd-ink-soft);
  font-size: 18px;
}

.cmd-section {
  padding: 48px 0;
}
.cmd-section-tight {
  padding-top: 8px;
}
.cmd-section-heading {
  text-align: center;
  margin-bottom: 8px;
}
.cmd-section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--cmd-ink-soft);
}

.cmd-how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .cmd-how-it-works {
    grid-template-columns: 1fr;
  }
}
.cmd-how-it-works-item {
  background: var(--cmd-surface);
  border: 1px solid var(--cmd-line);
  border-radius: var(--cmd-radius);
  padding: 24px 20px;
  box-shadow: var(--cmd-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cmd-how-it-works-item:hover {
  box-shadow: var(--cmd-shadow-hover);
  transform: translateY(-2px);
}
.cmd-how-it-works-item .cmd-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--cmd-accent-ink);
  color: #fff;
  font-family: var(--cmd-font-display);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.cmd-how-it-works-item:nth-child(2) .cmd-step-number {
  background: var(--cmd-accent-teal-dark);
}
.cmd-how-it-works-item:nth-child(3) .cmd-step-number {
  background: var(--cmd-accent-yellow);
  color: var(--cmd-ink);
}

.cmd-differentiators {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .cmd-differentiators {
    grid-template-columns: 1fr;
  }
}
.cmd-differentiators li {
  background: var(--cmd-surface);
  border: 1px solid var(--cmd-line);
  border-radius: var(--cmd-radius);
  padding: 18px 20px 18px 44px;
  box-shadow: var(--cmd-shadow);
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cmd-differentiators li:hover {
  box-shadow: var(--cmd-shadow-hover);
  transform: translateY(-2px);
}
.cmd-differentiators li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cmd-accent);
}
.cmd-differentiators li:nth-child(2)::before {
  background: var(--cmd-accent-teal);
}
.cmd-differentiators li:nth-child(4)::before {
  background: var(--cmd-accent-teal);
}
.cmd-differentiators strong {
  color: var(--cmd-accent-ink);
}

/* ---- More calculators grid (homepage) ---- */
.cmd-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .cmd-calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cmd-calc-grid {
    grid-template-columns: 1fr;
  }
}
.cmd-calc-card {
  display: block;
  background: var(--cmd-surface);
  border: 1px solid var(--cmd-line);
  border-radius: var(--cmd-radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--cmd-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cmd-calc-card:hover {
  box-shadow: var(--cmd-shadow-hover);
  transform: translateY(-2px);
  color: inherit;
}
.cmd-calc-card-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cmd-accent);
  margin-bottom: 12px;
}
.cmd-calc-card:nth-child(3n+2) .cmd-calc-card-icon {
  background: var(--cmd-accent-teal);
}
.cmd-calc-card:nth-child(3n+3) .cmd-calc-card-icon {
  background: var(--cmd-accent-yellow);
}
.cmd-calc-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--cmd-ink);
}
.cmd-calc-card p {
  font-size: 14px;
  color: var(--cmd-ink-soft);
  margin: 0;
}

/* ==========================================================================
   Post cards (used on front page latest posts, blog landing, category, search)
   ========================================================================== */
.cmd-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cmd-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cmd-post-grid {
    grid-template-columns: 1fr;
  }
}
.cmd-post-card {
  background: var(--cmd-surface);
  border: 1px solid var(--cmd-line);
  border-radius: var(--cmd-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cmd-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cmd-post-card:hover {
  box-shadow: var(--cmd-shadow-hover);
  transform: translateY(-3px);
}
.cmd-post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cmd-bg);
}
.cmd-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.cmd-post-card:hover .cmd-post-card-thumb img {
  transform: scale(1.04);
}
.cmd-post-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cmd-post-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.cmd-post-card h3 a {
  color: var(--cmd-ink);
  text-decoration: none;
}
.cmd-post-card h3 a:hover {
  color: var(--cmd-accent-ink);
}
.cmd-post-card-excerpt {
  color: var(--cmd-ink-soft);
  font-size: 14px;
  flex: 1;
}
.cmd-post-card-meta {
  font-size: 12px;
  color: var(--cmd-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ==========================================================================
   Single post / page content
   ========================================================================== */
.cmd-content-wrap {
  padding: 40px 0 64px;
}
.cmd-article-header {
  max-width: 760px;
  margin: 0 auto 24px;
}
.cmd-article-meta {
  font-size: 13px;
  color: var(--cmd-ink-soft);
  font-family: var(--cmd-font-display);
  margin-bottom: 10px;
}
.cmd-article-date {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--cmd-accent-soft);
  color: var(--cmd-accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.cmd-article-body,
.cmd-page-body {
  max-width: 760px;
  margin: 0 auto;
}
.cmd-article-body img {
  border-radius: var(--cmd-radius);
}
/* WordPress sets an inline width on .wp-caption (classic captions) and
   figure.wp-block-image (block editor) based on the image's original
   pixel dimensions, e.g. style="width: 1280px". That overflows any
   container narrower than the original image, which is nearly always,
   since the article body caps at 760px. max-width always wins over an
   inline width when the two conflict, this isn't a specificity fight,
   it's just how CSS box sizing resolves the two properties together. */
.cmd-article-body .wp-caption,
.cmd-article-body figure.wp-block-image {
  max-width: 100% !important;
  width: auto !important;
}
.cmd-article-body .wp-caption img,
.cmd-article-body figure.wp-block-image img {
  width: 100%;
  height: auto;
}
.cmd-article-body .wp-caption-text,
.cmd-article-body figcaption {
  font-size: 13px;
  color: var(--cmd-ink-soft);
  text-align: center;
  padding: 8px 6px 0;
  font-style: italic;
}
.cmd-article-body h2 {
  margin-top: 1.6em;
}
.cmd-article-body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--cmd-accent);
  color: var(--cmd-ink-soft);
}
.cmd-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}
.cmd-article-body th,
.cmd-article-body td {
  border: 1px solid var(--cmd-line);
  padding: 8px 10px;
  text-align: left;
}
.cmd-article-body th {
  background: var(--cmd-bg);
}

.cmd-breadcrumbs {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: 13px;
  color: var(--cmd-ink-soft);
}
.cmd-breadcrumbs a {
  color: var(--cmd-ink-soft);
}
.cmd-breadcrumbs a:hover {
  color: var(--cmd-accent-ink);
}

/* ---- Shared article disclaimer ---- */
.cmd-article-disclaimer {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 16px 20px;
  background: var(--cmd-bg);
  border: 1px solid var(--cmd-line);
  border-left: 3px solid var(--cmd-accent-ink);
  border-radius: 8px;
  font-size: 13px;
  color: var(--cmd-ink-soft);
}
.cmd-article-disclaimer p {
  margin: 0;
}

/* ---- Prev/next, scoped to the same category ---- */
.cmd-post-nav {
  max-width: 760px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--cmd-line);
}
.cmd-post-nav-next {
  text-align: right;
}
.cmd-post-nav a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cmd-ink);
  text-decoration: none;
}
.cmd-post-nav a:hover {
  color: var(--cmd-accent-ink);
}
@media (max-width: 600px) {
  .cmd-post-nav {
    grid-template-columns: 1fr;
  }
  .cmd-post-nav-next {
    text-align: left;
  }
}

/* ---- Related posts ---- */
.cmd-related-posts {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--cmd-line);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.cmd-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cmd-pagination a,
.cmd-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--cmd-line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--cmd-ink);
  font-size: 14px;
}
.cmd-pagination .current {
  background: var(--cmd-accent-ink);
  border-color: var(--cmd-accent-ink);
  color: #fff;
}
.cmd-pagination a:hover {
  border-color: var(--cmd-accent);
}

/* ==========================================================================
   Search form
   ========================================================================== */
.cmd-search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 32px;
}
.cmd-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--cmd-line);
  border-radius: 6px;
}
.cmd-search-form button {
  background: var(--cmd-accent-ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.cmd-search-form button:hover {
  filter: brightness(0.9);
}

/* ==========================================================================
   404
   ========================================================================== */
.cmd-404 {
  text-align: center;
  padding: 64px 0;
}
.cmd-404-code {
  font-family: var(--cmd-font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--cmd-accent);
  margin-bottom: 8px;
}

/* ==========================================================================
   Closing trust section
   ========================================================================== */
.cmd-trust-section {
  background: var(--cmd-accent-ink);
  position: relative;
  overflow: hidden;
}
.cmd-trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.6px, transparent 1.6px),
    radial-gradient(circle, rgba(93, 211, 186, 0.22) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
.cmd-trust-section .cmd-container {
  max-width: 720px;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
  position: relative;
  z-index: 1;
}
.cmd-trust-section h2 {
  color: #fff;
}
.cmd-trust-section p {
  color: rgba(255, 255, 255, 0.93);
}
.cmd-trust-section a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
.cmd-trust-section a:hover {
  text-decoration-color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cmd-site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 14px;
  background: var(--cmd-accent-ink);
}
.cmd-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cmd-footer-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.cmd-footer-nav a {
  color: rgba(255, 255, 255, 0.93);
  text-decoration: none;
}
.cmd-footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   Buttons (generic)
   ========================================================================== */
.cmd-btn {
  display: inline-block;
  background: var(--cmd-accent-ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cmd-btn:hover {
  filter: brightness(0.9);
  color: #fff;
  box-shadow: var(--cmd-shadow-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   WordPress core alignment classes (needed for block editor content)
   ========================================================================== */
.alignwide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100%;
  max-width: none;
}
.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* ==========================================================================
   Print: homepage only
   The calculator plugin's own CSS (assets/calculator.css) already hides the
   input form and buttons inside the widget when printing, so only the
   results panel prints. This block handles the layer above that: the site
   header, hero text, the other homepage sections, and the footer all still
   print by default since they're outside the widget. Scoped to body.home
   specifically so printing a blog post or a content page is unaffected.
   ========================================================================== */
@media print {
  body.home .cmd-site-header,
  body.home .cmd-hero,
  body.home .cmd-section:not(#calculator),
  body.home .cmd-trust-section,
  body.home .cmd-site-footer,
  #wpadminbar {
    display: none !important;
  }
  body.home .cmd-section-tight {
    padding: 0;
  }
  body.home .cmd-container {
    padding: 0;
    max-width: 100%;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cmd-how-it-works-item,
  .cmd-differentiators li,
  .cmd-post-card,
  .cmd-post-card-thumb img,
  .cmd-calc-card,
  .cmd-btn {
    transition: none;
  }
  .cmd-how-it-works-item:hover,
  .cmd-differentiators li:hover,
  .cmd-post-card:hover,
  .cmd-calc-card:hover,
  .cmd-btn:hover {
    transform: none;
  }
}