/* Operations Health Check page. Uses the tokens from /styles.css. */
[hidden] { display: none !important; }

.hc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 9vw, 104px) var(--gutter) clamp(64px, 10vw, 120px); min-height: 70vh; }
.hc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin-bottom: 18px; }
.hc h1:focus { outline: none; }
.hc-lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 600px; margin-bottom: 18px; }
.hc-small { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.hc-small svg { flex: none; margin-top: 3px; fill: none; stroke: var(--brass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hc-nav ul { gap: 0; }

/* Start page: what it covers, what you get, who built it */
.hc-more { margin-top: clamp(40px, 7vw, 64px); padding-top: clamp(28px, 5vw, 40px); border-top: 1px solid var(--line); }
.hc-h { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.hc-more .hc-h:not(:first-child) { margin-top: clamp(30px, 5vw, 40px); }
.hc-areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hc-areas li { color: var(--muted); padding-left: 18px; position: relative; }
.hc-areas li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 999px; background: var(--brass); }
.hc-areas strong { color: var(--ink); font-weight: 600; }
.hc-get { color: var(--muted); margin: 0; max-width: 600px; }
.hc-who { display: flex; gap: 16px; align-items: center; }
.hc-who img { flex: none; width: 64px; height: 64px; border-radius: 999px; object-fit: cover; object-position: 50% 18%; }
.hc-who p { color: var(--muted); margin: 0; }

/* Results: where to start */
.hc-first { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 14px; padding: 22px 24px; margin-bottom: clamp(28px, 5vw, 40px); }
.hc-first .hc-h { margin-bottom: 8px; }
.hc-first-text { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 25px); line-height: 1.25; margin: 0; }
.hc-first-text strong { font-weight: 600; }
.hc-assess { font-size: 15px; color: var(--muted); margin: 12px 0 0; }
.hc-assess a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 1px; white-space: nowrap; }
.hc-assess a:hover { color: var(--brass); }

/* Progress */
.hc-progress { margin-bottom: clamp(28px, 5vw, 44px); }
.hc-progress-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.hc-area { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.hc-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.hc-bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .4s var(--ease); }

/* Question */
.hc-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.hc-q legend { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; letter-spacing: -.01em; padding: 0; margin-bottom: 26px; }
.hc-options { display: grid; gap: 12px; }
.hc-opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; font-size: 16px; line-height: 1.4;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.hc-opt:hover { border-color: var(--brass); }
.hc-opt:active { transform: scale(.99); }
.hc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-mark { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 999px; display: grid; place-items: center; transition: border-color .15s; }
.hc-mark::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--brass); transform: scale(0); transition: transform .18s var(--ease); }
.hc-opt:has(input:checked) { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 7%, var(--surface)); }
.hc-opt:has(input:checked) .hc-mark { border-color: var(--brass); }
.hc-opt:has(input:checked) .hc-mark::after { transform: scale(1); }
.hc-opt:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }

.hc-actions { margin-top: 26px; min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hc-next { margin-left: auto; }
.hc-next[disabled] { opacity: .45; cursor: not-allowed; }
.hc-next[disabled]:active { transform: none; }
.hc-back, .hc-link { background: none; border: 0; padding: 0 0 2px; cursor: pointer; font: 400 15px var(--sans); color: var(--muted); }
.hc-back:hover { color: var(--ink); }
.hc-link { color: var(--ink); border-bottom: 1px solid var(--brass); }
.hc-link:hover { color: var(--brass); }

/* Results */
.hc-disclaimer { margin-bottom: clamp(30px, 5vw, 44px); max-width: 600px; }
.hc-list { list-style: none; padding: 0; margin: 0 0 clamp(40px, 7vw, 64px); border-top: 1px solid var(--line); }
.hc-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.hc-item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hc-item h3 { font-size: clamp(22px, 2.6vw, 26px); }
.hc-badge { font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.hc-item p { color: var(--muted); margin: 0; }
.hc-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 240px; margin-bottom: 14px; }
.hc-meter span { height: 4px; border-radius: 2px; background: var(--line); }
.hc-strong .hc-badge { color: var(--success); }
.hc-strong .hc-meter .on { background: var(--success); }
.hc-look .hc-badge { color: var(--brass); }
.hc-look .hc-meter .on { background: var(--brass); }
.hc-attention .hc-badge { color: var(--danger); }
.hc-attention .hc-meter .on { background: var(--danger); }

.hc-calc-link { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.hc-calc-link a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.hc-calc-link a:hover { color: var(--brass); }

.hc-cta { background: var(--band); color: var(--band-ink); border-radius: 20px; padding: clamp(28px, 5vw, 44px); }
.hc-cta h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; margin-bottom: 12px; }
.hc-cta p { color: var(--band-muted); max-width: 480px; margin-bottom: 24px; }
.hc-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hc-cta .btn { background: var(--band-brass); color: #15181A; }
.hc-cta .btn:hover { background: #D8BC85; }
.hc-cta .hc-link { color: var(--band-ink); border-color: var(--band-brass); }
.hc-cta .hc-link:hover { color: var(--band-brass); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hc-q.hc-in { animation: hcIn .45s var(--ease) both; }
  .hc-results:not([hidden]) .hc-item { animation: hcIn .55s var(--ease) both; animation-delay: var(--d, 0s); }
  @keyframes hcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 560px) {
  .hc-opt { padding: 16px; font-size: 15px; }
  .hc-nav { display: none; }
  .theme-btn { margin-left: auto; }
}
