/* Heart Rate Zone Calculator. Only what the shared CSS lacks; classes are prefixed hrz-. */
.hrz-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hrz-form legend { font-weight: 800; color: var(--ink); padding: 0; margin-bottom: 8px; }
.hrz-methods { display: grid; gap: 10px; }
.hrz-methods .choice { flex-direction: row; align-items: flex-start; min-height: 48px; }
.hrz-methods .choice span { display: block; }
.hrz-mname { display: block; font-weight: 800; color: var(--ink); }
.hrz-mdesc { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.hrz-error { border: 3px solid var(--red); background: #fff1ef; color: var(--ink); padding: 14px 18px; margin: 0; }
.hrz-error ul { margin: 6px 0 0; padding-left: 1.2em; }
.hrz-form [aria-invalid="true"] { border-color: var(--red); background: #fff1ef; }
.hrz-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hrz-buttons .btn { min-height: 48px; }
.hrz-warn { border: 4px solid var(--red); background: #fff7d6; padding: 18px 22px; margin: 24px 0 0; font-weight: 600; }
.hrz-warn h3 { margin: 0 0 8px; }
.hrz-warn p:last-child { margin-bottom: 0; }
.hrz-bigs { display: grid; gap: 16px; margin: 4px 0 14px; }
.hrz-bigl { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #E2E8F0; }
.hrz-small { font-size: .92rem; color: #E2E8F0; }
.hrz-chart-wrap { background: var(--white); border: 3px solid var(--yellow); padding: 8px; margin: 14px 0 18px; }
.hrz-chart-svg { width: 100%; height: auto; display: block; }
.hrz-zones { display: grid; gap: 10px; margin: 0 0 16px; }
.hrz-zone { display: grid; grid-template-columns: 52px 1fr; background: var(--white); color: var(--slate); border: 3px solid var(--white); }
.hrz-zn { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem; }
.hrz-zb { padding: 10px 14px; }
.hrz-zb p { margin: 0 0 4px; }
.hrz-zt { color: var(--ink); }
.hrz-bpm { display: inline-block; margin-left: 6px; font-weight: 900; color: var(--ink); }
.hrz-zd { font-size: .9rem; }
.hrz-split { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.hrz-split > * { min-width: 0; }
.hrz-photo { margin: 0; }
.hrz-photo img { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); margin: 0 auto; }
.hrz-steps { counter-reset: hrzstep; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.hrz-steps li { counter-increment: hrzstep; position: relative; padding: 12px 14px 12px 64px; background: var(--white); border: 3px solid var(--ink); }
.hrz-steps li::before { content: counter(hrzstep); position: absolute; left: 0; top: 0; bottom: 0; width: 48px; display: flex; align-items: center; justify-content: center; background: var(--red); color: var(--white); font-weight: 900; font-size: 1.3rem; }
.hrz-svg-box { background: var(--white); border: 3px solid var(--ink); padding: 10px; margin: 16px 0; max-width: 560px; }
.hrz-pulse-svg { width: 100%; height: auto; display: block; }
.hrz-method-cards { display: grid; gap: 22px; margin: 18px 6px 0 0; }
.hrz-mcard { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 20px 22px; }
.hrz-mcard h3 { margin-top: 0; }
.hrz-mcard p { margin: 0 0 .6em; }
.hrz-bands td, .hrz-bands th { vertical-align: middle; }
.hrz-bands td:last-child, .hrz-card-table td:last-child { font-weight: 400; white-space: normal; }
.hrz-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.hrz-chip i { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; font-style: normal; font-weight: 900; border: 2px solid var(--ink); }
.hrz-print-head, .hrz-print-foot { border: 2px solid #000; padding: 10px 14px; margin: 0 0 12px; font-weight: 700; }
.hrz-print-for { margin: 0 0 12px; font-weight: 700; }
.hrz-card-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.hrz-card-table th, .hrz-card-table td { border: 1px solid #000; padding: 8px 8px; font-size: .9rem; text-align: left; background: #fff; color: #000; }
@media (min-width: 700px) {
  .hrz-bigs { grid-template-columns: 1fr 1fr; }
  .hrz-method-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hrz-split { grid-template-columns: 300px minmax(0, 1fr); }
  .hrz-split.right { grid-template-columns: minmax(0, 1fr) 300px; }
  .hrz-split.right .hrz-photo { order: 2; }
}
@media print {
  .hrz-bigl, .hrz-small { color: #000 !important; }
}
.hrz-chip .z1 { background: #2B6CB0; color: #fff; }
.hrz-chip .z2 { background: #2F855A; color: #fff; }
.hrz-chip .z3 { background: #ECC94B; color: #141416; }
.hrz-chip .z4 { background: #DD6B20; color: #141416; }
.hrz-chip .z5 { background: #C53030; color: #fff; }
.hrz-print-hide-empty:empty { display: none; }
