.iht-disclosure,
.iht-tool,
.iht-component-box,
.iht-verdict-card {
  margin: 1.5rem 0;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--iht-line, #e5e7eb);
  border-radius: var(--iht-r-md, 14px);
  background: var(--iht-surface, #fff);
  box-shadow: var(--iht-shadow-1, 0 1px 3px rgb(0 0 0 / 8%));
}

.iht-disclosure {
  line-height: 1.6;
}

.iht-component-box h2,
.iht-verdict-card h2 {
  margin-top: 0;
}

.iht-affiliate-disclosure {
  border-left: 4px solid var(--iht-accent, #5b5bd6);
}

.iht-medical-disclaimer {
  border-left: 4px solid var(--iht-warn, #92400e);
}

.iht-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--iht-r-pill, 999px);
  background: var(--iht-iris-50, #eef0ff);
  color: var(--iht-iris-ink, #4b45c6);
  font-size: 0.85rem;
  font-weight: 700;
}

.iht-status-active {
  background: var(--iht-good-bg, #e7f7f0);
  color: var(--iht-good-ink, #0a7a55);
}

.iht-status-discontinued {
  background: var(--iht-bad-bg, #fdeceb);
  color: var(--iht-bad, #b42318);
}

.iht-status-rumor,
.iht-status-upcoming {
  background: var(--iht-warn-bg, #fbf3e2);
  color: var(--iht-warn, #92400e);
}

.iht-pros-cons .iht-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.iht-pros-cons h3,
.iht-best-skip dt,
.iht-price-snapshot dt {
  color: var(--iht-ink, #0b1220);
  font-weight: 800;
}

.iht-pros-cons ul,
.iht-related-links ul {
  padding-left: 1.15rem;
}

.iht-best-skip dl,
.iht-price-snapshot dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55rem 1rem;
}

.iht-best-skip dd,
.iht-price-snapshot dd {
  margin: 0;
}

.iht-component-note,
.iht-last-checked,
.iht-related-links span {
  color: var(--iht-ink-soft, #475569);
}

.iht-evidence-label,
.iht-last-checked {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--iht-line, #e5e7eb);
  border-left: 4px solid var(--iht-accent, #5b5bd6);
  border-radius: var(--iht-r-sm, 8px);
  background: #f8fafc;
  line-height: 1.55;
}

.iht-evidence-label span {
  display: block;
  margin-top: 0.25rem;
  color: var(--iht-ink-soft, #475569);
}

.iht-newsletter-box {
  border-color: color-mix(in srgb, var(--iht-accent, #5b5bd6) 32%, var(--iht-line, #e5e7eb));
  background: color-mix(in srgb, var(--iht-accent, #5b5bd6) 7%, var(--iht-surface, #fff));
}

.iht-related-links li + li {
  margin-top: 0.65rem;
}

.iht-related-links a {
  font-weight: 800;
}

.iht-related-links span {
  display: block;
  margin-top: 0.15rem;
}

.iht-verdict-card {
  display: grid;
  grid-template-columns: minmax(4.75rem, 6rem) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.iht-verdict-body {
  min-width: 0;
}

.iht-score {
  display: grid;
  width: 5rem;
  height: 5rem;
  border: 3px solid var(--iht-accent, #5b5bd6);
  border-radius: 50%;
  font-weight: 800;
  place-items: center;
}

.iht-score span {
  font-size: 1.6rem;
}

.iht-score small {
  margin-left: 0.1rem;
  font-size: 0.75rem;
}

.iht-button,
.iht-tool button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--iht-r-md, 12px);
  background: var(--iht-accent, #5b5bd6);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.iht-button:hover,
.iht-tool button:hover {
  filter: brightness(0.95);
}

.iht-tool form {
  display: grid;
  max-width: 34rem;
  gap: 0.75rem;
}

.iht-tool label {
  font-weight: 700;
}

.iht-tool [hidden] {
  display: none !important;
}

.iht-tool input,
.iht-tool select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--iht-line, #e5e7eb);
  border-radius: var(--iht-r-sm, 8px);
  font: inherit;
}

.iht-tool input[aria-invalid="true"] {
  border-color: var(--iht-bad, #b42318);
  box-shadow: 0 0 0 1px var(--iht-bad, #b42318);
}

.iht-tool-field-error {
  margin: -0.35rem 0 0.25rem;
  color: var(--iht-bad, #b42318);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.iht-recommender-option input {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
}

.iht-button:focus-visible,
.iht-tool button:focus-visible,
.iht-tool input:focus-visible,
.iht-tool select:focus-visible {
  outline: 3px solid var(--iht-accent, #5b5bd6);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

.iht-tool-note {
  color: var(--iht-ink-soft, #475569);
}

.iht-tool-result {
  display: block;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--iht-line, #e5e7eb);
  border-radius: var(--iht-r-sm, 8px);
  background: #f8fafc;
  font-weight: 700;
}

.iht-tool-result:empty {
  display: none;
}

.iht-tool-result p {
  margin: 0;
}

.iht-tool-result .iht-tool-footnote {
  margin-top: 0.85rem;
  color: var(--iht-ink-600, #334155);
  font-size: 0.95rem;
  font-weight: 500;
}

.iht-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.iht-button--secondary,
.iht-button-secondary,
.iht-tool button.iht-button-secondary {
  border: 1px solid var(--iht-line, #e5e7eb);
  background: #fff;
  color: var(--iht-ink, #0b1220);
}

/* Keep the tool variants legible over the parent theme's generic hover rules. */
.iht-tool button:enabled:hover {
  background: var(--iht-accent, #5b5bd6);
  color: #fff;
}

.iht-tool button.iht-button-secondary:enabled:hover {
  background: #fff;
  color: var(--iht-ink, #0b1220);
}

.iht-recommender form {
  max-width: none;
}

.iht-recommender-step {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--iht-line);
  border-radius: var(--iht-r-md);
  background: var(--iht-surface);
}

.iht-recommender-step + .iht-recommender-step {
  margin-top: var(--iht-space-5);
}

.iht-recommender-step > h2 {
  margin: 0 0 var(--iht-space-4);
  font-size: var(--iht-fs-3);
}

.iht-recommender-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.iht-recommender-group legend {
  margin-bottom: 0.5rem;
  color: var(--iht-ink, #0b1220);
  font-weight: 800;
}

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

.iht-recommender-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  min-height: 44px;
  padding: 0.75rem;
  border: 1px solid var(--iht-line, #e5e7eb);
  border-radius: var(--iht-r-sm, 8px);
  background: #fff;
  gap: 0.55rem;
}

.iht-recommender-option:has(input:checked) {
  border-color: var(--iht-accent, #5b5bd6);
  background: color-mix(in srgb, var(--iht-accent, #5b5bd6) 8%, #fff);
}

.iht-recommender-option strong,
.iht-recommender-option small {
  display: block;
}

.iht-recommender-option small {
  margin-top: 0.2rem;
  color: var(--iht-ink-soft, #475569);
  font-weight: 500;
  line-height: 1.35;
}

.iht-recommender-option:has(input:checked) small {
  color: var(--iht-ink-600, #334155);
}

.iht-recommender-result-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.iht-recommender-results {
  font-weight: 600;
}

.iht-recommender-card {
  padding: 0.85rem;
  border: 1px solid var(--iht-line, #e5e7eb);
  border-radius: var(--iht-r-sm, 8px);
  background: #fff;
}

.iht-recommender-card h3 {
  margin-top: 0;
}

.iht-recommender-card p {
  margin-top: 0.65rem;
}

.iht-recommender-card a {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 800;
}

.iht-tool-error {
  border-color: var(--iht-bad, #b42318);
  background: var(--iht-bad-bg, #fdeceb);
}

.iht-tool-success {
  border-color: color-mix(in srgb, var(--iht-good, #0e9f6e) 35%, var(--iht-line, #e5e7eb));
}

.iht-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.iht-table-scroll:focus-visible {
  outline: 3px solid var(--iht-accent, #5b5bd6);
  outline-offset: 3px;
}

.iht-preview-table-scroll {
  margin: 1.5rem 0;
  border: 1px solid var(--iht-line, #e5e7eb);
  border-radius: var(--iht-r-sm, 8px);
  background: var(--iht-surface, #fff);
}

.iht-table-scroll-hint {
  display: none;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--iht-line, #e5e7eb);
  color: var(--iht-ink-soft, #475569);
  font-size: 0.875rem;
  font-weight: 700;
}

.iht-preview-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

.iht-preview-table th,
.iht-preview-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--iht-line, #e5e7eb);
  text-align: left;
  vertical-align: top;
}

.iht-preview-table th {
  color: var(--iht-ink, #0b1220);
  font-weight: 800;
}

.iht-preview-table tbody tr:last-child > * {
  border-bottom: 0;
}

.iht-tool table,
.iht-comparison-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-weight: 500;
}

.iht-tool caption,
.iht-comparison-table caption {
  padding-bottom: 0.5rem;
  color: var(--iht-ink-soft, #475569);
  font-weight: 700;
  text-align: left;
}

.iht-tool-result caption {
  color: var(--iht-ink-600, #334155);
}

.iht-tool th,
.iht-tool td,
.iht-comparison-table th,
.iht-comparison-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--iht-line, #e5e7eb);
  text-align: left;
}

.iht-comparison-table th {
  color: var(--iht-ink, #0b1220);
}

@media (width <= 640px) {
  .iht-table-scroll-hint {
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    min-width: 100%;
  }

  .iht-verdict-card,
  .iht-pros-cons .iht-two-column {
    grid-template-columns: 1fr;
  }

  .iht-score {
    width: 5rem;
  }

  .iht-best-skip dl,
  .iht-price-snapshot dl {
    grid-template-columns: 1fr;
  }

  .iht-disclosure {
    margin: 1rem 0;
    padding: .85rem;
    line-height: 1.45;
  }
}


/* M3.2 Multi-Merchant Affiliate Slots & Maker/Community Intake Form */
.iht-affiliate-slot {
  margin-top: 1rem;
}

.iht-affiliate-slot--compact {
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--iht-line, #e2e8f0);
  border-radius: var(--iht-r-sm, 8px);
  background: var(--iht-surface-soft, #f8fafc);
}

.iht-affiliate-slot--compact .iht-affiliate-disclosure {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.iht-affiliate-slot__meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--iht-ink-soft, #475569);
}

.iht-claim-quarantine-notice {
  border-left: 4px solid var(--iht-warn, #b45309);
  background: var(--iht-warn-bg, #fffbeb);
}

.iht-intake-shell {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--iht-surface, #ffffff);
  border: 1px solid var(--iht-line, #e2e8f0);
  border-radius: var(--iht-r-md, 12px);
  font-family: var(--iht-font-ui, "Inter", system-ui, sans-serif);
  color: var(--iht-ink, #0b1220);
}

.iht-intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iht-intake-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.iht-intake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.iht-intake-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.iht-intake-field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--iht-ink, #0b1220);
}

.iht-intake-field input,
.iht-intake-field select,
.iht-intake-field textarea {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--iht-line, #e2e8f0);
  border-radius: var(--iht-r-sm, 8px);
  background: var(--iht-surface, #ffffff);
  color: var(--iht-ink, #0b1220);
  font: inherit;
}

.iht-intake-field input:focus-visible,
.iht-intake-field select:focus-visible,
.iht-intake-field textarea:focus-visible {
  outline: 3px solid var(--iht-iris, #5b5bd6);
  outline-offset: 2px;
}

.iht-intake-checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iht-intake-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.iht-intake-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.iht-intake-status {
  min-height: 1.5rem;
  font-weight: 700;
}

.iht-intake-status.is-error {
  color: var(--iht-bad, #b91c1c);
}

.iht-intake-status.is-success {
  color: var(--iht-good, #15803d);
}
