/* Styles are scoped to the homepage demo; gauge geometry comes from renderGauge.
   Gauge colors and strokes match styles/test-flow.css exactly. */
.why-hamrah {

  --hc-gauge-0: #d3e4e8;
  --hc-gauge-1: #94c2bf;
  --hc-gauge-2: #55b3bd;
  --hc-gauge-3: #e8c887;
  --hc-gauge-4: #d88e7a;
  background: var(--hc-bg);
}
.why-hamrah .container { width: min(calc(100% - 80px), 1440px); }
.why-hamrah .why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--ds-space-16);
  padding: var(--ds-space-8);
  border-radius: var(--ds-radius-card);
  background: var(--hc-bg-subtle);
}
.why-hamrah .why-copy,
.why-hamrah .why-report { min-width: 0; }
.why-hamrah .why-kicker {
  color: var(--hc-brand);
  font-size: 18px;
  font-weight: 700;
  margin-block-end: var(--ds-space-6);
}
.why-hamrah #result-preview-title {
  color: var(--hc-ink);
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: 1.65;
  text-wrap: balance;
}
.why-hamrah .why-intro {
  margin-block-start: var(--ds-space-6);
  color: var(--hc-text-secondary);
  font-size: 20px;
  line-height: 2;
}
.why-hamrah .why-primary {
  gap: var(--ds-space-6);
  min-width: 260px;
  margin-block-start: var(--ds-space-12);
  font-size: 18px;
}

.why-hamrah .why-disclaimer {
  margin-block-start: var(--ds-space-6);
  color: var(--hc-text-secondary);
  font-size: 14px;
}
.why-hamrah .why-report {
  padding: var(--ds-space-6);
  border: 1px solid var(--hc-border);
  border-radius: var(--ds-radius-card);
  background: var(--hc-bg);
  box-shadow: var(--hc-shadow);
}
.why-hamrah .why-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  margin-block-end: var(--ds-space-4);
}
.why-hamrah .why-report-brand { color: var(--hc-brand); font-size: 20px; font-weight: 700; }
.why-hamrah .why-report-context { color: var(--hc-text-secondary); font-size: 13px; }
.why-hamrah .why-report-badge {
  padding: var(--ds-space-1) var(--ds-space-3);
  color: var(--hc-brand);
  background: var(--hc-bg-subtle);
  border: 1px solid var(--hc-border);
  border-radius: var(--ds-radius-badge);
  font-size: 12px;
  font-weight: 500;
}
.why-hamrah #why-result-title { color: var(--hc-text); font-size: 24px; line-height: 1.8; }
.why-hamrah .why-result-visual { margin-block-start: var(--ds-space-4); text-align: center; }
.why-hamrah .why-score-figure { max-width: 390px; margin: 0 auto; }
.why-hamrah .why-score-plot { position: relative; }
.why-hamrah #why-gauge { aspect-ratio: 480 / 270; }
.why-hamrah .score-gauge { display: block; width: 100%; height: auto; overflow: visible; }
.why-hamrah .gauge-segment { fill: none; stroke-width: 42; }
.why-hamrah .gauge-band-0 { stroke: var(--hc-gauge-0); }
.why-hamrah .gauge-band-1 { stroke: var(--hc-gauge-1); }
.why-hamrah .gauge-band-2 { stroke: var(--hc-gauge-2); }
.why-hamrah .gauge-band-3 { stroke: var(--hc-gauge-3); }
.why-hamrah .gauge-band-4 { stroke: var(--hc-gauge-4); }
.why-hamrah .score-marker { fill: var(--hc-ink); stroke: var(--hc-bg); stroke-width: 6; }
.why-hamrah .why-score-number {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--hc-ink);
}
.why-hamrah .why-score-number strong { font-size: 64px; font-weight: 700; line-height: 1.2; }
.why-hamrah .why-score-number span { font-size: 14px; color: var(--hc-text-secondary); }
.why-hamrah .why-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--ds-space-4);
  font-size: 11px;
  color: var(--hc-ink);
}
.why-hamrah .why-scale-ends span { max-width: 48%; }
.why-hamrah .why-result-status {
  display: table;
  margin: var(--ds-space-3) auto var(--ds-space-1);
  padding: var(--ds-space-1) var(--ds-space-5);
  border-radius: 999px;
  background: var(--hc-bg-subtle);
  color: var(--hc-ink);
  font-size: 14px;
  font-weight: 500;
}
.why-hamrah .why-result-range { font-size: 12px; color: var(--hc-text-secondary); }
.why-hamrah h4 { margin: 0; color: var(--hc-text); font-size: 17px; font-weight: 700; line-height: 1.8; }
.why-hamrah .why-meaning {
  margin-block-start: var(--ds-space-3);
  padding-block-start: var(--ds-space-3);
  border-block-start: 1px solid var(--hc-border);
}
.why-hamrah .why-meaning > p { margin-block-start: var(--ds-space-1); font-size: 15px; line-height: 1.9; }
.why-hamrah .why-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-action-height-compact);
  width: fit-content;
  margin-inline-start: auto;
  color: var(--hc-brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--ds-radius-badge);
}
.why-hamrah .why-more summary::-webkit-details-marker { display: none; }
.why-hamrah .why-more summary:hover { text-decoration: underline; text-underline-offset: 4px; }

.why-hamrah .why-full-meaning {
  padding: var(--ds-space-4);
  margin-block-end: var(--ds-space-3);
  background: var(--hc-bg-subtle);
  border-radius: var(--ds-radius-badge);
  font-size: 15px;
  line-height: 2;
}
.why-hamrah .why-full-meaning p + p { margin-block-start: var(--ds-space-3); }
.why-hamrah .why-small-steps {
  padding: var(--ds-space-3);
  background: var(--hc-bg-subtle);
  border-radius: var(--ds-radius-button);
}
.why-hamrah .why-step-list { display: grid; gap: var(--ds-space-1); margin-block-start: var(--ds-space-2); }
.why-hamrah .why-step-list li {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-1) var(--ds-space-2);
  border-radius: var(--ds-radius-badge);
  background: var(--hc-bg);
}
.why-hamrah .why-step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--hc-border);
  color: var(--hc-brand);
  font-size: 13px;
}
.why-hamrah .why-step-list h5 { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.9; }
.why-hamrah .why-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  margin-block-start: var(--ds-space-3);
  padding: var(--ds-space-3);
  border: 1px solid var(--hc-border);
  border-radius: var(--ds-radius-button);
  background: var(--hc-bg-subtle);
}
.why-hamrah .why-support-heading { display: flex; align-items: center; gap: var(--ds-space-3); }
.why-hamrah .why-support-heading h4 { font-size: 14px; }
.why-hamrah .why-support-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--ds-radius-badge);
  background: var(--hc-bg-subtle);
  color: var(--hc-brand);
}
.why-hamrah .why-support-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.why-hamrah .why-directory {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-action-height-compact);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--hc-brand);
  border-radius: var(--ds-radius-button);
  color: var(--hc-brand);
  background: var(--hc-bg);
  font-size: 12px;
  font-weight: 500;
}
.why-hamrah .why-directory:hover { color: var(--hc-brand-hover); border-color: var(--hc-brand-hover); background: var(--hc-brand-soft); text-decoration: none; }
.why-hamrah .why-report-note { margin-block-start: var(--ds-space-4); color: var(--hc-text-secondary); text-align: center; font-size: 12px; }
@media (max-width: 1023px) {
  .why-hamrah .why-layout { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-8); }
  .why-hamrah .why-copy { max-width: 640px; }
  .why-hamrah .why-report { width: 100%; max-width: 640px; margin-inline: auto; }
  .why-hamrah .why-primary { margin-block-start: var(--ds-space-6); }
}
@media (max-width: 767px) {
  .why-hamrah .container { width: calc(100% - 40px); }
  .why-hamrah .why-layout { padding: var(--ds-space-4); }
  .why-hamrah .why-kicker { font-size: 15px; margin-block-end: var(--ds-space-3); }
  .why-hamrah #result-preview-title { font-size: 30px; line-height: 1.65; }
  .why-hamrah .why-intro { margin-block-start: var(--ds-space-4); font-size: 16px; }
  .why-hamrah .why-primary { width: 100%; min-width: 0; font-size: 16px; }
  .why-hamrah .why-disclaimer { margin-block-start: var(--ds-space-4); font-size: 13px; }
  .why-hamrah .why-report { padding: var(--ds-space-4); }
  .why-hamrah .why-report-context { display: none; }
  .why-hamrah .why-report-brand { font-size: 18px; }
  .why-hamrah #why-result-title { font-size: 20px; }
  .why-hamrah .why-score-number strong { font-size: 52px; }
  .why-hamrah .why-scale-ends { font-size: 10px; gap: var(--ds-space-2); }
  .why-hamrah .why-directory { width: 100%; font-size: 13px; }
}
