:root {
  --cf-cream: #fffaf0;
  --cf-paper: #ffffff;
  --cf-charcoal: #282522;
  --cf-muted: #696159;
  --cf-gold: #d5a62e;
  --cf-gold-dark: #8b6500;
  --cf-burgundy: #7b2437;
  --cf-burgundy-dark: #591728;
  --cf-border: #d9d1c5;
  --cf-success: #236b4b;
  --cf-error: #a2242f;
  --cf-focus: #166b9a;
}

.cf-home,
.cf-hub,
.cf-quiz,
.cf-results,
.cf-email-signup,
.cf-contact,
.cf-review-layout,
.cf-byline,
.cf-comparison-wrap {
  box-sizing: border-box;
  color: var(--cf-charcoal);
  font-family: inherit;
}

.cf-home *,
.cf-hub *,
.cf-quiz *,
.cf-results *,
.cf-email-signup *,
.cf-review-layout *,
.cf-comparison-wrap * {
  box-sizing: border-box;
}

.cf-home__intro,
.cf-page-header {
  background: var(--cf-cream);
  border-left: 5px solid var(--cf-gold);
  padding: clamp(1.5rem, 4vw, 3.75rem);
  margin: 0 0 2rem;
}

.cf-home__intro h1,
.cf-page-header h1 {
  color: var(--cf-charcoal);
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 1rem;
  max-width: 13ch;
}

.cf-home__intro > p:not(.cf-kicker),
.cf-page-header > p:not(.cf-kicker) {
  color: var(--cf-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 45rem;
}

.cf-kicker,
.cf-merchant {
  color: var(--cf-burgundy);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.cf-category-links {
  border-bottom: 1px solid var(--cf-border);
  border-top: 1px solid var(--cf-border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 3rem;
}

.cf-category-link {
  color: var(--cf-charcoal);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  text-decoration: none;
}

.cf-category-link + .cf-category-link {
  border-left: 1px solid var(--cf-border);
}

.cf-category-link span {
  font-size: 1.1rem;
  font-weight: 750;
}

.cf-category-link small {
  color: var(--cf-muted);
  line-height: 1.45;
  margin-top: 0.3rem;
}

.cf-category-link:hover span,
.cf-category-link:focus span {
  color: var(--cf-burgundy);
}

.cf-disclosure {
  background: #fff5d5;
  border: 1px solid #e2c96e;
  border-radius: 4px;
  color: #493c16;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 1rem;
}

.cf-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.cf-product-card {
  background: var(--cf-paper);
  border: 1px solid var(--cf-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.cf-product-card[hidden] {
  display: none;
}

.cf-product-card__media {
  aspect-ratio: 4 / 3;
  background: #eee7db;
  overflow: hidden;
  position: relative;
}

.cf-product-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cf-image-placeholder {
  align-items: center;
  color: var(--cf-muted);
  display: flex;
  font-size: 0.9rem;
  height: 100%;
  justify-content: center;
}

.cf-badge {
  background: var(--cf-burgundy);
  border-radius: 3px;
  bottom: 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  left: 0.75rem;
  line-height: 1.25;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.6rem;
  position: absolute;
}

.cf-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.cf-product-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
  overflow-wrap: anywhere;
}

.cf-product-card h3 a {
  color: var(--cf-charcoal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cf-score,
.cf-evidence,
.cf-price-checked,
.cf-summary {
  line-height: 1.5;
}

.cf-score {
  color: var(--cf-burgundy);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}

.cf-evidence {
  color: var(--cf-success);
  font-size: 0.78rem;
  font-weight: 700;
  margin: -0.25rem 0 0.55rem;
  text-transform: uppercase;
}

.cf-summary {
  color: var(--cf-muted);
  margin: 0 0 1rem;
}

.cf-facts {
  border-bottom: 1px solid var(--cf-border);
  border-top: 1px solid var(--cf-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto 0 0.7rem;
  padding: 0.7rem 0;
}

.cf-facts div + div {
  border-left: 1px solid var(--cf-border);
  padding-left: 0.75rem;
}

.cf-facts dt {
  color: var(--cf-muted);
  font-size: 0.75rem;
}

.cf-facts dd {
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.cf-price-checked {
  color: var(--cf-muted);
  font-size: 0.78rem;
  margin: 0 0 0.75rem;
}

.cf-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  min-height: 44px;
  padding: 0.7rem 1rem;
  text-align: center;
  text-decoration: none;
}

.cf-button--primary {
  background: var(--cf-burgundy);
  color: #fff;
}

.cf-button--primary:hover,
.cf-button--primary:focus {
  background: var(--cf-burgundy-dark);
  color: #fff;
}

.cf-button--small {
  background: var(--cf-charcoal);
  color: #fff;
  min-height: 38px;
  padding: 0.5rem 0.7rem;
}

.cf-report-link {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--cf-muted);
  cursor: pointer;
  font-size: 0.75rem;
  margin-top: 0.55rem;
  padding: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cf-button:focus-visible,
.cf-report-link:focus-visible,
.cf-category-link:focus-visible,
.cf-filters input:focus-visible,
.cf-filters select:focus-visible,
.cf-comparison-wrap:focus-visible,
.cf-quiz input:focus-visible,
.cf-email-signup input:focus-visible {
  outline: 3px solid var(--cf-focus);
  outline-offset: 3px;
}

.cf-filters {
  align-items: end;
  background: #f4f1ec;
  border: 1px solid var(--cf-border);
  display: grid;
  gap: 0.4rem 1rem;
  grid-template-columns: minmax(12rem, 2fr) minmax(9rem, 1fr) minmax(9rem, 1fr);
  margin: 0 0 0.75rem;
  padding: 1rem;
}

.cf-filters label {
  font-size: 0.82rem;
  font-weight: 700;
}

.cf-filters label:nth-of-type(1) { grid-column: 1; }
.cf-filters label:nth-of-type(2) { grid-column: 2; }
.cf-filters label:nth-of-type(3) { grid-column: 3; }
.cf-filters input { grid-column: 1; }
.cf-filters [data-cf-category] { grid-column: 2; }
.cf-filters [data-cf-purchase] { grid-column: 3; }

.cf-filters input,
.cf-filters select,
.cf-email-signup input[type="email"] {
  background: #fff;
  border: 1px solid #82796e;
  border-radius: 3px;
  color: var(--cf-charcoal);
  font: inherit;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.cf-result-count,
.cf-empty,
.cf-notice {
  color: var(--cf-muted);
  font-size: 0.9rem;
}

.cf-comparison-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.cf-comparison {
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 780px;
  width: 100%;
}

.cf-comparison th,
.cf-comparison td {
  border-bottom: 1px solid var(--cf-border);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

.cf-comparison thead th {
  background: var(--cf-charcoal);
  color: #fff;
  font-size: 0.78rem;
}

.cf-comparison tbody th small {
  color: var(--cf-muted);
  display: block;
  font-weight: 400;
  margin-top: 0.25rem;
}

.cf-byline {
  border-bottom: 1px solid var(--cf-border);
  color: var(--cf-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
}

.cf-reviewer-details {
  background: #f4f1ec;
  border-left: 3px solid var(--cf-gold-dark);
  color: var(--cf-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: -0.75rem 0 1.5rem;
  padding: 0.7rem 0.9rem;
}

.cf-review-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
}

.cf-pros-cons {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
}

.cf-pros,
.cf-cons {
  border-top: 4px solid var(--cf-success);
  padding: 1rem 0;
}

.cf-cons { border-color: var(--cf-burgundy); }
.cf-pros h2,
.cf-cons h2 { font-size: 1.15rem; }
.cf-pros li,
.cf-cons li { margin-bottom: 0.45rem; }

@media (max-width: 720px) {
  .cf-category-links,
  .cf-review-layout,
  .cf-pros-cons {
    grid-template-columns: 1fr;
  }

  .cf-category-link + .cf-category-link {
    border-left: 0;
    border-top: 1px solid var(--cf-border);
  }

  .cf-filters {
    grid-template-columns: 1fr;
  }

  .cf-filters label,
  .cf-filters input,
  .cf-filters select {
    grid-column: 1 !important;
  }

  .cf-comparison {
    display: block;
    min-width: 0;
  }

  .cf-comparison thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .cf-comparison tbody,
  .cf-comparison tr,
  .cf-comparison th,
  .cf-comparison td {
    display: block;
    width: 100%;
  }

  .cf-comparison tr {
    border: 1px solid var(--cf-border);
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 0.6rem;
  }

  .cf-comparison th,
  .cf-comparison td {
    align-items: baseline;
    border: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(5.5rem, 0.65fr) 1fr;
    padding: 0.45rem;
  }

  .cf-comparison th::before,
  .cf-comparison td::before {
    color: var(--cf-muted);
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .cf-comparison .cf-button { width: 100%; }
}

@media (max-width: 360px) {
  .cf-home__intro,
  .cf-page-header { padding: 1.1rem; }
  .cf-product-card__body { padding: 0.85rem; }
  .cf-facts { grid-template-columns: 1fr; }
  .cf-facts div + div { border-left: 0; border-top: 1px solid var(--cf-border); margin-top: 0.55rem; padding-left: 0; padding-top: 0.55rem; }
}

.cf-quiz,
.cf-results {
  margin-inline: auto;
  max-width: 64rem;
}

.cf-quiz > header {
  border-bottom: 1px solid var(--cf-border);
  margin-bottom: 1.5rem;
}

.cf-quiz > header h1,
.cf-results h1 {
  letter-spacing: 0;
  line-height: 1.1;
}

.cf-quiz__progress {
  background: #e7e0d6;
  height: 6px;
  margin: 0 0 2rem;
  overflow: hidden;
}

.cf-quiz__progress span {
  background: var(--cf-gold-dark);
  display: block;
  height: 100%;
  width: 0;
}

.cf-question {
  border: 0;
  border-bottom: 1px solid var(--cf-border);
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
}

.cf-question legend {
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.cf-question legend span {
  align-items: center;
  background: var(--cf-charcoal);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.75rem;
  height: 1.65rem;
  justify-content: center;
  margin-right: 0.6rem;
  width: 1.65rem;
}

.cf-choice-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.cf-choice-grid label {
  min-width: 0;
}

.cf-choice-grid input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.cf-choice-grid span {
  align-items: center;
  background: #fff;
  border: 1px solid #82796e;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 52px;
  overflow-wrap: anywhere;
  padding: 0.65rem;
  text-align: center;
}

.cf-choice-grid input:checked + span {
  background: #fff5d5;
  border-color: var(--cf-gold-dark);
  box-shadow: inset 0 0 0 2px var(--cf-gold-dark);
}

.cf-choice-grid input:focus-visible + span {
  outline: 3px solid var(--cf-focus);
  outline-offset: 3px;
}

.cf-results-grid {
  display: grid;
  gap: 2rem;
}

.cf-match {
  align-items: start;
  border-bottom: 1px solid var(--cf-border);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(17rem, 1fr);
  padding-bottom: 2rem;
}

.cf-match__reason > span {
  color: var(--cf-burgundy);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.cf-match__reason h2 {
  font-size: 1.25rem;
  margin: 0.3rem 0 0.75rem;
}

.cf-match__reason li {
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.cf-email-signup {
  align-items: end;
  background: #f1eee9;
  border-top: 5px solid var(--cf-gold);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(16rem, 1.2fr);
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.cf-email-signup h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.cf-email-signup form {
  display: grid;
  gap: 0.6rem;
}

.cf-email-signup form > label:not(.cf-consent) {
  font-size: 0.82rem;
  font-weight: 700;
}

.cf-consent {
  align-items: start;
  display: grid;
  font-size: 0.82rem;
  gap: 0.5rem;
  grid-template-columns: auto 1fr;
  line-height: 1.45;
}

.cf-consent input {
  height: 1.1rem;
  margin-top: 0.15rem;
  width: 1.1rem;
}

.cf-honeypot {
  left: -10000px;
  position: absolute;
}

.cf-form-message {
  border-left: 4px solid var(--cf-gold-dark);
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.6rem 0.75rem;
}

.cf-form-message--success { border-color: var(--cf-success); }
.cf-form-message--error { border-color: var(--cf-error); }

@media (max-width: 640px) {
  .cf-match,
  .cf-email-signup { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-home *,
  .cf-hub *,
  .cf-quiz * { scroll-behavior: auto !important; transition: none !important; }
}
