/* ==========================================================================
   Missing Class Definitions (found by design audit)
   ========================================================================== */

/* 2026-04-25: Radio option visual feedback fix.
 * Native radio inputs are visually hidden via clip-rect for a11y. The
 * .hx-radio-option label needs an .active class to show selection, but
 * templates never bind it -> users can't tell what they picked.
 * :has(input:checked) lights labels up automatically across all 10 calcs.
 * Browser support: Chrome 105+, Safari 15.4+, Firefox 121+.
 */
.hx-app .hx-radio-option:has(input[type="radio"]:checked),
.hx-app .hx-radio-option:has(input[type="checkbox"]:checked) {
    background: var(--hx-primary-light, #FFF4E6) !important;
    border-color: var(--hx-primary, #FF4500) !important;
    color: var(--hx-primary-dark, #CC3700) !important;
    font-weight: 600;
}


.entry-content .hx-hero-section { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.entry-content .hx-subtitle { color: #6C757D; font-size: 1.125rem; line-height: 1.6; max-width: 700px; margin: 0.5rem auto 0; }
.entry-content .hx-calculator-section { margin: 2rem 0; }
.entry-content .hx-specs-card { background: #F8F9FA; border: 1px solid #E2E8F0; border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.entry-content .hx-form-group { margin-bottom: 1.25rem; }
.entry-content .hx-label { display: block; font-weight: 600; margin-bottom: 0.375rem; color: #1A1A2E; font-size: 0.875rem; }
.entry-content .hx-form-row { display: flex; gap: 1rem; align-items: end; }
@media (max-width: 640px) { .entry-content .hx-form-row { flex-direction: column; } }
.entry-content .hx-toggle-btn { padding: 0.5rem 1.25rem; border: 2px solid #E2E8F0; background: #fff; border-radius: 0.375rem; cursor: pointer; font-weight: 500; transition: all 0.2s; color: #1A1A2E; }
.entry-content .hx-toggle-btn.active, .entry-content .hx-toggle-btn:hover { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }
.entry-content .hx-toggle-group { display: flex; gap: 0.5rem; }
.entry-content .hx-radio-label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem 1rem; border: 1px solid #E2E8F0; border-radius: 0.375rem; transition: all 0.2s; }
.entry-content .hx-radio-label:hover { border-color: #FF4500; }
.entry-content .hx-radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.entry-content .hx-content-body { line-height: 1.7; color: #333; }
/* Guide article: full container width; prose sections stay readable at 800px (see hyrox.css). */
.entry-content .hx-guide-page { max-width: none; margin: 0; }
.entry-content .hx-content-section { margin: 2.5rem 0; line-height: 1.7; }
.entry-content .hx-content-section h2 { font-size: 1.5rem; font-weight: 700; color: #1A1A2E; margin-bottom: 1rem; }
.entry-content .hx-content-section h3 { font-size: 1.25rem; font-weight: 600; color: #1A1A2E; margin: 1.5rem 0 0.75rem; }
.entry-content .hx-content-section p { margin-bottom: 1rem; }
.entry-content .hx-results-section { margin-top: 2rem; animation: hxFadeIn 0.3s ease-in; }
@keyframes hxFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.entry-content .hx-result-hero { text-align: center; padding: 2rem; background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%); color: #fff; border-radius: 0.75rem; margin-bottom: 1.5rem; }
.entry-content .hx-result-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #aaa; margin-bottom: 0.25rem; }
.entry-content .hx-result-value { color: #FF4500; font-weight: 700; font-size: 1.5rem; }
.entry-content .hx-result-value-xl { font-size: 3.5rem; font-weight: 800; color: #FF4500; line-height: 1; }
.entry-content .hx-percentile-badge { display: inline-block; background: rgba(0,212,170,0.15); color: #00946f; padding: 0.375rem 1rem; border-radius: 2rem; font-weight: 600; font-size: 0.875rem; margin-top: 0.75rem; }
.entry-content .hx-stats-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.entry-content .hx-stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .hx-stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .entry-content .hx-stats-grid-2, .entry-content .hx-stats-grid-3 { grid-template-columns: 1fr; } }
.entry-content .hx-stat-card { background: #F8F9FA; border: 1px solid #E2E8F0; border-radius: 0.5rem; padding: 1.25rem; text-align: center; }
.entry-content .hx-stat-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6C757D; margin-bottom: 0.25rem; }
.entry-content .hx-stat-value { font-size: 1.5rem; font-weight: 700; color: #1A1A2E; }
.entry-content .hx-stat-inline { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #F8F9FA; border: 1px solid #E2E8F0; border-radius: 0.5rem; margin: 1rem 0; }
.entry-content .hx-table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
/* hx-section-title moved to hyrox.css for single source of truth */
.entry-content .hx-alert { padding: 1rem 1.5rem; border-radius: 0.5rem; margin: 1rem 0; font-weight: 500; }
.entry-content .hx-alert-danger { background: #FFF5F5; border: 1px solid #FED7D7; color: #DC3545; }
.entry-content .hx-faq-section { margin: 3rem 0 2rem; }
.entry-content .hx-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.entry-content .hx-faq-item { border: 1px solid #E2E8F0; border-radius: 0.5rem; overflow: hidden; }
.entry-content .hx-faq-question { width: 100%; text-align: left; padding: 1rem 1.5rem; background: #fff; border: none; cursor: pointer; font-weight: 600; font-size: 1rem; color: #1A1A2E; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.entry-content .hx-faq-question:hover { background: #F8F9FA; }
.entry-content .hx-faq-question.active { color: #FF4500; }
.entry-content .hx-faq-answer { padding: 0 1.5rem 1rem; color: #333; line-height: 1.7; }
.entry-content .hx-text-sm { font-size: 0.875rem; }
.entry-content .hx-text-muted { color: #6C757D !important; }
.entry-content .hx-text-secondary { color: #6C757D; }
.entry-content .hx-text-center { text-align: center; }
.entry-content .hx-font-bold { font-weight: 700; }
.entry-content .hx-mb-4 { margin-bottom: 1rem; }
.entry-content .hx-mb-8 { margin-bottom: 2rem; }
.entry-content .hx-mb-12 { margin-bottom: 3rem; }
.entry-content .hx-section-heading { font-size: 1.5rem; font-weight: 700; color: #1A1A2E; margin-bottom: 1.5rem; }
.entry-content .hx-spinner { display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: hxSpin 0.6s linear infinite; }
@keyframes hxSpin { to { transform: rotate(360deg); } }
[x-cloak] { display: none !important; }
.entry-content .hx-compare-table { width: 100%; border-collapse: collapse; }
.entry-content .hx-compare-table th, .entry-content .hx-compare-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #E2E8F0; text-align: left; }
.entry-content .hx-compare-table thead th { background: #1A1A2E; color: #fff; }
.entry-content .hx-calc-card { display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border: 1px solid #E2E8F0; border-radius: 0.75rem; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.entry-content .hx-calc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.entry-content .hx-calc-card-icon { width: 48px; height: 48px; color: #FF4500; margin-bottom: 1rem; }
.entry-content .hx-calc-card-icon svg { width: 100%; height: 100%; }
.entry-content .hx-calc-card-name { font-size: 1.125rem; font-weight: 700; color: #1A1A2E; margin-bottom: 0.5rem; }
.entry-content .hx-calc-card-desc { font-size: 0.875rem; color: #6C757D; line-height: 1.5; flex: 1; }
.entry-content .hx-calc-card-cta { display: flex; align-items: center; gap: 0.25rem; color: #FF4500; font-weight: 600; font-size: 0.875rem; margin-top: 1rem; }
.entry-content .hx-calc-card-cta svg { width: 16px; height: 16px; }
.entry-content .hx-card--link { text-decoration: none; color: inherit; }
