.credit-card-test-experience {
  background: #f7f4ec;
  color: #102732;
  overflow-x: clip;
}

.credit-card-test-experience *,
.credit-card-test-experience *::before,
.credit-card-test-experience *::after {
  box-sizing: border-box;
}

.credit-test-hero,
.test-card-workspace,
.statement-lab,
.credit-test-content-grid,
.credit-statement-reading,
.credit-test-checks,
.tool-specific-limit,
.credit-test-sources,
.credit-test-faqs,
.credit-card-test-experience .tool-learning-path,
.credit-card-test-experience .tool-method-cta {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.credit-test-hero > *,
.test-card-workspace > *,
.credit-test-content-grid > *,
.credit-statement-reading > *,
.statement-summary-layout > *,
.statement-lab-heading > * {
  min-width: 0;
}

.credit-card-test-experience .table-wrap {
  width: 100%;
  max-width: 100%;
}

.credit-test-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: 54px 0 42px;
}

.credit-test-hero h1 {
  max-width: none;
  margin: 0 0 18px;
}

.credit-test-hero .page-direct-answer {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 21px;
  line-height: 1.65;
}

.credit-test-hero figure,
.credit-test-hero img {
  display: block;
  width: 100%;
  margin: 0;
}

.credit-test-hero img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.credit-test-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.credit-test-facts li::before {
  content: "✓";
  margin-right: 9px;
  color: #0b8668;
}

.test-card-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(520px, 1.22fr);
  background: #e6f0ec;
  margin-bottom: var(--section-space);
}

.test-card-controls,
.test-card-result {
  padding: clamp(28px, 4vw, 54px);
}

.test-card-controls {
  background: #fffdf8;
}

.test-card-controls h2,
.statement-lab h2,
.credit-test-content-grid h2,
.credit-statement-reading h2,
.credit-test-sources h2,
.credit-test-faqs h2 {
  margin-top: 0;
}

#test-card-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.test-card-explanation { margin: 22px 0 0; }

#test-card-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

#test-card-form select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #91a6a2;
  border-radius: 0;
  background: #fff;
  color: #102732;
  font: inherit;
}

.test-only-notice {
  margin-top: 28px;
  padding: 20px;
  background: #fff3ea;
}

.test-only-notice p {
  margin: 7px 0 0;
}

.test-card-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a2636;
  color: #fff;
}

.sandbox-card {
  min-height: 300px;
  padding: 30px;
  border: 2px solid #77d9c0;
  background: #0d354a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sandbox-card-top,
.sandbox-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.sandbox-card-top span,
.sandbox-card-bottom small {
  color: #b9d0d7;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sandbox-chip {
  width: 55px;
  height: 42px;
  background: #d6af50;
  position: relative;
}

.sandbox-chip::before,
.sandbox-chip::after {
  content: "";
  position: absolute;
  background: #0d354a;
}

.sandbox-chip::before { width: 2px; height: 100%; left: 50%; }
.sandbox-chip::after { height: 2px; width: 100%; top: 50%; }

#test-card-number {
  display: block;
  color: #fff;
  font: 700 clamp(28px, 4vw, 44px)/1.15 var(--font);
  letter-spacing: .05em;
}

.sandbox-card-bottom span {
  display: grid;
  gap: 4px;
}

.sandbox-card-bottom b {
  color: #fff;
}

.test-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.test-card-details > div {
  min-height: 76px;
  padding: 15px;
  background: #123b4e;
  display: grid;
  align-content: center;
  gap: 4px;
}

.test-card-details span,
.test-card-instruction {
  color: #c3d7dc;
}

.test-card-details button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7ce0c7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.luhn-status {
  color: #7ce0c7;
}

.test-card-instruction {
  margin: 18px 0 8px;
}

#test-card-source {
  color: #fff;
  font-weight: 800;
}

.statement-lab {
  margin-bottom: var(--section-space);
}

.statement-lab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: #071f2d;
  color: #fff;
}

.statement-lab-heading p {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  color: #c4d5da;
}

.statement-lab-heading .button {
  flex: 0 0 auto;
  min-width: 240px;
  justify-content: center;
  text-align: center;
}

.statement-lab-heading .button-secondary {
  border-color: #b8cbd1;
  background: transparent;
  color: #fff;
}

.statement-lab-heading .button-secondary:hover,
.statement-lab-heading .button-secondary:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #071f2d;
}

.statement-tabs {
  display: flex;
  background: #dfeae6;
}

.statement-tabs button {
  flex: 1;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #102732;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.statement-tabs button[aria-selected="true"] {
  background: #0b8668;
  color: #fff;
}

.sample-card-statement {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 54px);
  background: #fff;
}

.statement-download-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #e7f2ee;
  color: #40575f;
  font-size: 13px;
}

.statement-download-bar .button {
  min-height: 42px;
  padding: 8px 14px;
  border-color: #0b8668;
  background: #0b8668;
  color: #fff;
  font-size: 13px;
}

.statement-download-bar .button:hover,
.statement-download-bar .button:focus-visible { background: #071f2d; border-color: #071f2d; color: #fff; }

.sample-statement-watermark {
  position: absolute;
  inset: 43% -5% auto;
  transform: rotate(-12deg);
  color: rgba(16, 39, 50, .055);
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.sample-card-statement > header,
.sample-card-statement > footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.sample-card-statement > header {
  padding: 24px;
  background: #0a2636;
  color: #fff;
}

.sample-card-statement > header > div {
  display: grid;
  gap: 5px;
}

.sample-card-statement > header small {
  color: #bcd0d7;
  font-size: 13px;
}

.sample-card-statement > header > div:last-child {
  text-align: right;
}

.statement-payment-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #e7f2ee;
}

.statement-payment-summary > div {
  min-height: 110px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.statement-payment-summary span,
.statement-summary-layout dt {
  color: #5d7078;
}

.statement-payment-summary strong {
  font-size: 23px;
}

.statement-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid #b8ccc5;
  background: #f5efe0;
  color: #213944;
}

.statement-notice span {
  color: #596d75;
  line-height: 1.5;
}

.statement-notice b { white-space: nowrap; }
.statement-notice.business-notice { background: #e8eff1; }

.statement-summary-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}

.statement-summary-layout section {
  padding: 26px;
  background: #f5f2e9;
}

.statement-summary-layout h3 {
  margin-top: 0;
}

.statement-summary-layout dl,
.statement-summary-layout dt,
.statement-summary-layout dd {
  margin: 0;
}

.statement-summary-layout dl {
  display: grid;
  gap: 10px;
}

.statement-summary-layout dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.statement-summary-layout dl > .statement-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 2px solid #9aaba6;
  font-weight: 900;
}

.statement-detail-section,
.statement-interest-section,
.statement-cardholder-summary,
.statement-control-activity {
  position: relative;
  margin-top: 22px;
}

.statement-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 10px;
}

.statement-section-heading h3,
.statement-interest-section h3,
.statement-control-activity h3 { margin: 0; }

.statement-section-heading span,
.statement-interest-section p {
  color: #64777e;
  font-size: 13px;
}

.statement-interest-section > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 10px;
}

.statement-interest-section p { margin: 0; }

.sample-card-statement table {
  position: relative;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.sample-card-statement th {
  background: #071f2d;
  color: #fff;
}

.sample-card-statement th,
.sample-card-statement td {
  padding: 14px 16px;
  text-align: left;
  border: 0;
}

.sample-card-statement tbody tr {
  background: #f3f5f2;
}

.sample-card-statement td:last-child,
.sample-card-statement th:last-child {
  text-align: right;
}

.sample-card-statement .statement-credit-row {
  background: #e2f2ec;
  color: #06694f;
}

.sample-card-statement .statement-total-row {
  background: #dbe8e4;
  font-weight: 900;
}

.sample-card-statement .cardholder-group th {
  padding-top: 18px;
  background: #dbe8e4;
  color: #102732;
  text-align: left;
}

.statement-control-activity {
  padding: 22px;
  background: #f5f2e9;
}

.statement-control-activity > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #cbd2cd;
}

.statement-example-basis {
  margin: 0;
  padding: 18px 24px;
  background: #e8efeb;
  color: #52656d;
  font-size: 13px;
  line-height: 1.6;
}

.statement-example-basis a { color: #06694f; font-weight: 800; }

.sample-card-statement > footer {
  margin-top: 18px;
  padding: 18px;
  background: #fff0e9;
  color: #8c2621;
}

.credit-test-content-grid,
.credit-statement-reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.credit-test-content-grid section,
.credit-statement-reading section,
.credit-test-checks,
.credit-test-sources,
.credit-test-faqs {
  padding: 32px;
  background: #fff;
}

.credit-test-content-grid p,
.credit-statement-reading p,
.credit-test-sources p,
.credit-test-faqs p {
  line-height: 1.75;
}

.credit-test-checks {
  margin-bottom: 24px;
  background: #e7f2ee;
  color: #102732;
}

.credit-test-checks h2 {
  color: #102732;
}

.credit-test-checks ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.credit-test-checks li::before {
  content: "✓";
  margin-right: 10px;
  color: #0b8668;
  font-weight: 900;
}

.credit-test-checks li {
  color: #30464f;
}

.credit-test-sources,
.credit-test-faqs {
  margin-top: 24px;
}

.credit-test-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-left: 20px;
}

.credit-test-faqs > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.credit-test-faqs article {
  padding: 22px;
  background: #f2f5f2;
}

.credit-test-faqs h3 {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .credit-test-hero,
  .test-card-workspace,
  .credit-test-content-grid,
  .credit-statement-reading {
    grid-template-columns: 1fr;
  }
  .statement-payment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement-notice { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .credit-test-hero,
  .test-card-workspace,
  .statement-lab,
  .credit-test-content-grid,
  .credit-statement-reading,
  .credit-test-checks,
  .tool-specific-limit,
  .credit-test-sources,
  .credit-test-faqs,
  .credit-card-test-experience .tool-learning-path,
  .credit-card-test-experience .tool-method-cta {
    width: min(var(--max), calc(100% - 28px));
  }
  .credit-test-hero { padding-top: 24px; gap: 24px; }
  .credit-test-facts { display: grid; gap: 9px; }
  .test-card-controls,
  .test-card-result,
  .sample-card-statement { padding: 20px; }
  .sandbox-card { min-height: 250px; padding: 20px; }
  #test-card-number { font-size: 24px; letter-spacing: 0; }
  .sandbox-card-bottom { flex-wrap: wrap; }
  .test-card-details,
  .statement-payment-summary,
  .statement-summary-layout,
  .credit-test-checks ul,
  .credit-test-faqs > div { grid-template-columns: 1fr; }
  .sample-card-statement > header,
  .sample-card-statement > footer { display: grid; }
  .sample-card-statement > header > div:last-child { text-align: left; }
  .statement-download-bar { display: grid; }
  .statement-download-bar .button { width: 100%; justify-content: center; text-align: center; }
  .statement-section-heading,
  .statement-interest-section > div:first-child { display: grid; }
  .statement-control-activity > div { grid-template-columns: 1fr; gap: 5px; }
  .statement-lab-heading { display: grid; padding: 22px 18px; }
  .statement-lab-heading .button { width: 100%; min-width: 0; }
  .statement-tabs { display: grid; }
}

@media print {
  .credit-test-hero,
  .test-card-workspace,
  .statement-tabs,
  .credit-test-content-grid,
  .credit-statement-reading,
  .credit-test-checks,
  .tool-specific-limit,
  .credit-test-sources,
  .credit-test-faqs,
  .credit-card-test-experience .tool-learning-path,
  .credit-card-test-experience .tool-method-cta { display: none !important; }
  .statement-lab { width: 100%; margin: 0; }
  .sample-card-statement[hidden] { display: none !important; }
}
