:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: #17211c;
  background: #f4f3ed;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
}

.site-header,
main,
footer {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding-block: 3rem 1.5rem;
}

.eyebrow {
  margin: 0;
  color: #4c6757;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
li {
  max-width: 70ch;
}

h1 {
  margin-block: 0.25rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1;
}

h2,
h3 {
  line-height: 1.2;
}

.trust-list {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
}

form,
.result,
.safety {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #cad2cb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(33 49 40 / 8%);
}

form section + section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e5e0;
}

.section-intro,
.field-help,
.checkbox-help {
  color: #4c5a51;
}

.field-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 1rem;
}

.field-grid > *,
.result-grid > *,
.field,
label,
input,
select,
button {
  min-width: 0;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

label {
  font-weight: 650;
}

input,
select,
button {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #839087;
  border-radius: 0.45rem;
  font: inherit;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #2b6f4c;
  outline-offset: 2px;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #a32020;
  box-shadow: 0 0 0 1px #a32020;
}

.field-help,
.field-error,
.checkbox-help,
.checkbox-error {
  margin: 0;
  font-size: 0.92rem;
}

.field-error {
  color: #8f1717;
  font-weight: 650;
}

.confirmation {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-weight: 500;
}

.confirmation input {
  width: 1.25rem;
  min-height: auto;
  margin-top: 0.2rem;
}

.checkbox-help,
.checkbox-error {
  margin-left: 2.1rem;
}

button {
  margin-top: 2rem;
  border-color: #173e2a;
  color: #fff;
  background: #173e2a;
  font-weight: 750;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #23583d;
}

.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 2px solid #a32020;
  border-radius: 0.6rem;
  background: #fff1f1;
}

.error-summary h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.error-summary a {
  color: #6e1010;
  font-weight: 700;
}

.result,
.safety {
  margin-top: 1.5rem;
}

.result-status {
  margin: 0;
  color: #4c6757;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-grid {
  margin-top: 1.25rem;
}

.result-card,
.result-guidance,
.merchant-region {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #d9dfda;
  border-radius: 0.7rem;
  background: #f8faf8;
}

.result-card h3,
.result-guidance h3,
.merchant-region h4 {
  margin-top: 0;
}

dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  margin: 0;
}

dt {
  color: #4c5a51;
}

dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.result-guidance,
#merchant-searches {
  margin-top: 1rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  padding-bottom: 0.5rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.55rem;
  border: 1px solid #cad2cb;
  text-align: left;
}

.merchant-controls {
  display: grid;
  grid-template-columns: minmax(0, 14rem);
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.merchant-region + .merchant-region {
  margin-top: 0.75rem;
}

.merchant-entry {
  margin-bottom: 1.5rem;
}

.merchant-region ul {
  margin-bottom: 0;
}

/* Affiliate disclosure — must read as plain, unmissable body text, never as
   faded fine print. Kept at full contrast and normal size on purpose. */
.affiliate-disclosure {
  margin: 0 0 0.75rem;
  font-weight: 650;
}

.paid-link-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid #7a8880;
  border-radius: 0.3rem;
  background: #eef2ef;
  color: #2f3a34;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.technical-details {
  margin-top: 1rem;
}

.technical-details summary {
  cursor: pointer;
  font-weight: 700;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.safety {
  border-color: #d2b760;
  background: #fff9e8;
}

footer {
  padding-block: 2rem;
  color: #4c5a51;
}

[hidden] {
  display: none !important;
}

@media (max-width: 36rem) {
  .site-header,
  main,
  footer {
    width: min(100% - 1rem, 72rem);
  }

  .site-header {
    padding-top: 2rem;
  }

  form,
  .result,
  .safety {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  dd {
    margin-bottom: 0.6rem;
    text-align: left;
  }
}
