/* Colors and fonts come only from ght-variables.css (Good Heart Tech brand kit). */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ght-palette-white);
  color: var(--ght-palette-charcoal);
  font-family: var(--ght-font-family-body);
  font-size: var(--ght-font-size-base);
  line-height: 1.55;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
h1, h2, h3 { color: var(--ght-palette-rich-black); font-family: var(--ght-font-family-heading); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 4px; }
a { color: var(--ght-palette-primary-dark); }
.intro p { margin: 0 0 24px; }
.muted { color: var(--ght-palette-charcoal); opacity: 0.85; }
.small { font-size: 0.85rem; }
.loading { padding: 40px 0; }

/* Wizard */
.progress-label { font-weight: var(--ght-font-weight-semibold); margin: 0 0 6px; }
.progress { height: 8px; background: var(--ght-palette-primary-tint); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.progress span { display: block; height: 100%; background: var(--ght-palette-primary-dark); transition: width 0.2s; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }
.option {
  display: flex; gap: 14px; align-items: flex-start;
  border: 2px solid var(--ght-palette-primary-tint); border-radius: 8px;
  padding: 16px; margin-bottom: 12px; cursor: pointer;
}
.option:hover { border-color: var(--ght-palette-primary); }
.option:has(input:checked) { border-color: var(--ght-palette-primary-dark); background: var(--ght-palette-primary-tint); }
.option input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ght-palette-primary-dark); flex: none; }
.option-body { display: flex; flex-direction: column; gap: 2px; }
.option-label { font-weight: var(--ght-font-weight-bold); color: var(--ght-palette-rich-black); font-size: 1.1rem; }
.badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--ght-palette-primary-dark); color: var(--ght-palette-primary-dark);
  font-size: 0.8rem; font-weight: var(--ght-font-weight-semibold); vertical-align: middle;
}
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.nav-results { justify-content: flex-start; }

.btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 12px 22px;
  background: var(--ght-palette-primary-dark); color: var(--ght-palette-white);
  font: inherit; font-weight: var(--ght-font-weight-bold); font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ght-palette-rich-black); }
.btn:focus-visible, .option:focus-within { outline: 3px solid var(--ght-palette-primary); outline-offset: 2px; }
.btn-secondary { background: var(--ght-palette-white); color: var(--ght-palette-rich-black); border: 2px solid var(--ght-palette-primary-tint); }
.btn-secondary:hover { background: var(--ght-palette-primary-tint); }

/* Results */
.card { border: 2px solid var(--ght-palette-primary-tint); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.card-top { border-color: var(--ght-palette-primary-dark); }
.eyebrow { margin: 0 0 4px; font-weight: var(--ght-font-weight-bold); color: var(--ght-palette-primary-dark); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.checks { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { padding: 4px 12px; border-radius: 999px; background: var(--ght-palette-primary-tint); color: var(--ght-palette-rich-black); font-size: 0.9rem; }
.checks li.ok::before { content: "\2713  "; font-weight: var(--ght-font-weight-bold); }
.checks li.no::before { content: "\2717  "; }
.price { font-weight: var(--ght-font-weight-semibold); color: var(--ght-palette-rich-black); }
.backups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.backups .card { margin: 0; }
.section-title { margin-top: 28px; }
.shop ul { padding-left: 20px; }
.shop li { margin-bottom: 6px; }
.callout { border-left: 4px solid var(--ght-palette-primary-tint); padding: 4px 0 4px 16px; margin: 28px 0; }
.callout-primary { border-left-color: var(--ght-palette-primary-dark); }
.callout-warn { border-left-color: var(--ght-palette-rich-black); }
.checklist li { margin-bottom: 4px; }

.site-footer { background: var(--ght-palette-rich-black); color: var(--ght-palette-light-blue); padding: 20px; text-align: center; font-size: 0.9rem; }
.site-footer a { color: var(--ght-palette-light-blue); }
.site-footer p { margin: 4px auto; max-width: 760px; }

/* Admin */
.admin main { max-width: 1400px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ght-palette-primary-tint); vertical-align: top; }
tr.st-hidden td { opacity: 0.6; text-decoration: line-through; }
tr.st-warn td:nth-child(5), tr.st-hidden td:nth-child(5) { font-weight: var(--ght-font-weight-bold); }

@media print {
  .nav, .btn, .site-footer, .callout-primary { display: none; }
  .card { break-inside: avoid; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  main { padding: 20px 14px 32px; }
}
