/* ==========================================================================
   MI Workouts Plugin — Front-End Styles
   Version: 1.0.0
   Source: Extracted verbatim from Macros Inc workout HTML templates.
   All selectors scoped to avoid theme conflicts.
   ========================================================================== */

/* ── Shared reset ────────────────────────────────────────────────────────── */
.mi-guide *, .mi-guide *::before, .mi-guide *::after,
.mi-beginner *, .mi-beginner *::before, .mi-beginner *::after,
.mi-workouts *, .mi-workouts *::before, .mi-workouts *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
.mi-guide { font-family: 'Montserrat', sans-serif; max-width: 1000px; margin: 0 auto; padding: 0px 24px 80px; color: #212121; overflow: visible; }
.mi-guide a { text-decoration: none; color: inherit; }

.mi-beginner { font-family: 'Montserrat', sans-serif; color: #212121; }
.mi-beginner a { text-decoration: none; color: inherit; }

.mi-workouts { font-family: 'Montserrat', sans-serif; max-width: 1200px; margin: 0px auto; padding: 0px 24px 80px; color: #212121; }
.mi-workouts a { text-decoration: none; color: inherit; }

/* ── Hero Band ───────────────────────────────────────────────────────────── */
.mi-hero-band { background: #212121; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-bottom: 50px; }
.mi-hero-band-inner { max-width: 1000px; margin: 0 auto; padding: 48px 24px 44px; }
.mi-beginner .mi-hero-band-inner { max-width: 1200px; padding: 48px 24px 48px; }
.mi-workouts .mi-hero-band-inner { max-width: 1200px; padding: 48px 24px 44px; }
.mi-hero-band.roundLeft { margin-left: calc(50% - 50vw + 20px); border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.mi-beginner .mi-hero-band { margin-bottom: 20px; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.mi-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.mi-breadcrumb a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.mi-breadcrumb a:hover { color: #FFD700; }
.mi-breadcrumb .mi-bc-sep { font-size: 11px; color: rgba(255,255,255,0.3); }
.mi-breadcrumb .mi-bc-current { font-size: 13px; font-weight: 600; color: #FFD700; }
.mi-beginner .mi-breadcrumb { margin-bottom: 44px; }

/* ── Section Tag ─────────────────────────────────────────────────────────── */
.mi-section-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #FFD700; display: inline-block; margin-bottom: 14px; position: relative; padding-left: 20px; }
.mi-section-tag::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 12px; height: 2px; background: #FFD700; border-radius: 1px; }
.mi-content-card .mi-section-tag { color: #4A148C; }
.mi-content-card .mi-section-tag::before { background: #FFD700; }
.mi-main-content .mi-section-tag,
.mi-categories-section .mi-section-tag,
.mi-best-workouts .mi-section-tag { color: #4A148C; }
.mi-categories-section .mi-section-tag::before,
.mi-best-workouts .mi-section-tag::before { background: #4A148C; }

/* ── Single workout hero ─────────────────────────────────────────────────── */
.mi-guide-hero { margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mi-guide-hero h1 { font-size: 36px; font-weight: 800; color: white; line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 14px; }
.mi-guide-hero .mi-hero-subtitle { font-size: 17px; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 620px; margin-bottom: 20px; }
.mi-hero-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mi-hero-byline span { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); }
.mi-hero-byline strong { color: white !important; }
.mi-hero-byline .mi-by-sep { font-size: 4px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.mi-hero-image { display: flex; align-items: center; justify-content: center; }
.mi-hero-image img { width: 100%; max-width: 420px; height: auto; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }

/* ── Taxonomy hero ───────────────────────────────────────────────────────── */
.mi-beginner-hero { margin-bottom: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mi-beginner-hero h1 { font-size: 36px; font-weight: 800; color: white; line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 18px; }
.mi-beginner-hero h1 span { color: #FFD700; }
.mi-beginner-hero .mi-hero-subtitle { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 24px; }
.mi-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mi-hero-btn-primary { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; color: #212121; background: #FFD700; border: none; border-radius: 10px; padding: 12px 28px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; box-shadow: 0 2px 12px rgba(255,215,0,0.2); }
.mi-hero-btn-primary:hover { background: #FFE34D; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,215,0,0.3); }
.mi-hero-btn-outline { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: #FFFFFF !important; background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 12px 28px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.mi-hero-btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ── Archive hero ────────────────────────────────────────────────────────── */
.mi-workouts-hero { margin-bottom: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mi-workouts-hero h1 { font-size: 36px; font-weight: 800; color: white; line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 18px; }
.mi-workouts-hero h1 span { color: #FFD700; display: inline; }
.mi-workouts-hero .mi-hero-subtitle { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 24px; }
.mi-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.mi-hero-stat { text-align: left; }
.mi-hero-stat-value { font-size: 22px; font-weight: 800; color: #FFD700; letter-spacing: -0.5px; line-height: 1.2; }
.mi-hero-stat-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

/* ── Stats Bar ───────────────────────────────────────────────────────────── */
.mi-stats-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mi-stat-card { background: linear-gradient(135deg,rgba(255,255,255,0.08) 0%,rgba(255,255,255,0.04) 100%); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25),inset 0 1px 0 rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.mi-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,#FFD700,transparent); opacity: 0.6; }
.mi-stat-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; }
.mi-stat-value { font-size: 24px; font-weight: 800; color: #FFD700; letter-spacing: -0.5px; }
.mi-beginner .mi-stat-card { padding: 22px 24px; }

/* ── Guide Layout (TOC + content) ────────────────────────────────────────── */
.mi-guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; overflow: visible; }
.mi-toc { background: #FFF; border: 1px solid #E8E8E8; border-radius: 14px; padding: 22px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); width: 220px; z-index: 2; }
.mi-toc.mi-toc-js-top { position: static; width: auto; }
.mi-toc.mi-toc-js-fixed { position: fixed; top: 80px; width: 220px; }
.mi-toc.mi-toc-js-bottom { position: absolute; top: auto; bottom: 0; width: 220px; }
.mi-toc-col { position: relative; min-height: 100%; }
.mi-toc-title { font-size: 10px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; }
.mi-toc a { display: block; font-size: 13px; font-weight: 500; color: #888; padding: 9px 0 9px 14px; border-left: 2px solid transparent; line-height: 1.35; transition: all 0.2s ease; margin-bottom: 2px; }
.mi-toc a:hover { color: #4A148C; border-left-color: rgba(74,20,140,0.2); background: rgba(74,20,140,0.02); }
.mi-toc a.mi-toc-active { color: #4A148C; font-weight: 700; border-left-color: #4A148C; background: rgba(74,20,140,0.04); }

/* ── Content Cards ───────────────────────────────────────────────────────── */
.mi-content-card { background: #FFF; border: 1px solid #E8E8E8; border-radius: 16px; padding: 40px; margin-bottom: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.mi-content-card + .mi-content-card { margin-top: 48px; }
.mi-content-card h2 { font-size: 22px; font-weight: 800; color: #111; letter-spacing: -0.6px; margin-bottom: 8px; line-height: 1.2; }
.mi-content-card > h2:first-child { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #F0F0F0; }
.mi-content-card h3 { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; margin-top: 28px; }
.mi-content-card p { font-size: 15px; font-weight: 400; color: #555; line-height: 1.75; margin-bottom: 14px; }
.mi-content-card p:last-child { margin-bottom: 0; }
.mi-content-card a { color: #4A148C; font-weight: 600; border-bottom: 1px solid rgba(74,20,140,0.2); transition: border-color 0.2s ease; }
.mi-content-card a:hover { border-bottom-color: #4A148C; }
.mi-content-card ul { list-style: none; padding: 0; margin: 0 0 16px 0; }
.mi-content-card ul li { font-size: 15px; color: #555; line-height: 1.75; padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid #F5F5F5; }
.mi-content-card ul li:last-child { border-bottom: none; }
.mi-content-card ul li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: #4A148C; }

/* ── Callouts ────────────────────────────────────────────────────────────── */
.mi-callout { background: rgba(74,20,140,0.04); border-left: 3px solid #4A148C; border-radius: 0 12px 12px 0; padding: 22px 24px; margin: 24px 0 0; }
.mi-callout-label { font-size: 12px; font-weight: 700; color: #4A148C; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.mi-callout p { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 0; }
.mi-callout-gold { background: rgba(255,215,0,0.06); border-left: 3px solid #FFD700; border-radius: 0 12px 12px 0; padding: 22px 24px; margin: 24px 0 0; }
.mi-callout-gold .mi-callout-label { color: #96790A; }
.mi-callout-gold p { color: #555; }

/* ── Schedule Grid ───────────────────────────────────────────────────────── */
.mi-schedule-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; margin-top: 8px; }
.mi-schedule-day { border-radius: 10px; padding: 18px 10px; text-align: center; }
.mi-schedule-day.mi-day-active { background: rgba(74,20,140,0.06); border: 1px solid rgba(74,20,140,0.15); }
.mi-schedule-day.mi-day-rest { background: #F8F8F8; border: 1px solid #EEEEEE; }
.mi-day-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.mi-day-active .mi-day-label { color: #4A148C; }
.mi-day-rest .mi-day-label { color: #BBB; }
.mi-day-name { font-size: 12px; line-height: 1.3; }
.mi-day-active .mi-day-name { color: #212121; font-weight: 600; }
.mi-day-rest .mi-day-name { color: #AAA; font-weight: 400; }

/* ── Phase Tabs ──────────────────────────────────────────────────────────── */
.mi-phase-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.mi-phase-tab { font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 700; padding: 9px 20px; border-radius: 50px; cursor: pointer; transition: all 0.25s ease; border: 1px solid #E5E5E5; background: transparent; color: #999; letter-spacing: 0.3px; text-decoration: none; display: inline-block; }
.mi-phase-tab:hover { border-color: #BBB; color: #212121; }
.mi-phase-tab.mi-tab-active { background: #212121; color: #FFFFFF !important; border-color: #212121; }
.mi-phase-section { margin-bottom: 32px; }

/* ── Workout Label ───────────────────────────────────────────────────────── */
.mi-workout-label { font-size: 11px; font-weight: 800; color: #FFF; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0; margin-top: 32px; display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #212121; border-radius: 8px 8px 0 0; }
.mi-workout-label:first-of-type { margin-top: 24px; }
.mi-workout-label-icon { font-size: 14px; line-height: 1; opacity: 0.7; }

/* ── Exercise List ───────────────────────────────────────────────────────── */
.mi-exercise-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 36px; border: 1px solid #E0E0E0; border-top: none; border-radius: 0 0 10px 10px; overflow: hidden; counter-reset: exercise-counter; }
.mi-exercise-item { border-bottom: 1px solid #EEEEEE; background: #FFFFFF; counter-increment: exercise-counter; }
.mi-exercise-item:last-child { border-bottom: none; }
.mi-exercise-header { display: grid; grid-template-columns: 1fr 72px 72px 72px 36px; align-items: center; gap: 0; padding: 14px 20px; cursor: pointer; user-select: none; transition: background 0.15s ease; }
.mi-exercise-header:hover { background: #FAFAFA; }
.mi-exercise-item.active .mi-exercise-header { background: #FAF8FF; }
.mi-exercise-item.active { border-left: 3px solid #4A148C; }
.mi-exercise-name { font-size: 14px; font-weight: 700; color: #111; padding-right: 12px; letter-spacing: -0.1px; display: flex; align-items: center; }
.mi-exercise-name::before { content: counter(exercise-counter); display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #F0EEF8; color: #7B5EA7; font-size: 10px; font-weight: 800; margin-right: 10px; flex-shrink: 0; }
.mi-exercise-item.active .mi-exercise-name::before { background: #4A148C; color: #FFF; }
.mi-exercise-stat { text-align: center; padding: 0 4px; }
.mi-exercise-stat-value { font-size: 15px; font-weight: 800; color: #212121; line-height: 1.1; letter-spacing: -0.3px; }
.mi-exercise-stat-label { font-size: 9px; font-weight: 600; color: #C0C0C0; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.mi-exercise-toggle { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #F0F0F0; font-size: 11px; color: #999; transition: all 0.25s ease; margin-left: auto; }
.mi-exercise-item.active .mi-exercise-toggle { background: #4A148C; color: #FFF; transform: rotate(180deg); }
.mi-exercise-col-labels { display: grid; grid-template-columns: 1fr 72px 72px 72px 36px; align-items: center; gap: 0; padding: 8px 20px; border-bottom: 1px solid #E8E8E8; border-top: 1px solid #E0E0E0; background: #F7F7F7; }
.mi-exercise-col-labels span { font-size: 9px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.mi-exercise-col-labels span:first-child { text-align: left; }
.mi-exercise-col-labels span:last-child { opacity: 0; }
.mi-exercise-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s ease; padding: 0 20px; background: #FAF8FF; border-top: 1px solid transparent; }
.mi-exercise-item.active .mi-exercise-body { max-height: 900px; padding: 20px 20px 20px 17px; border-top-color: #EAE4F5; }
.mi-exercise-desc { font-size: 13.5px; color: #555; line-height: 1.7; margin-bottom: 14px; }
.mi-exercise-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mi-exercise-detail-card { background: #FFFFFF; border: 1px solid #E8E4F5; border-radius: 8px; padding: 10px 14px; }
.mi-exercise-detail-card-label { font-size: 9px; font-weight: 700; color: #B0A0CC; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.mi-exercise-detail-card-value { font-size: 13px; font-weight: 600; color: #222; line-height: 1.5; }
.mi-phase-section .mi-content-card > h2:first-child { border-bottom: none; padding-bottom: 0; margin-bottom: 8px; }
.mi-workout-label + .mi-exercise-list { margin-top: 0; border-top: none; }

/* ── Video Block ─────────────────────────────────────────────────────────── */
.mi-video-block { margin-bottom: 16px; border-radius: 10px; overflow: hidden; background: #000; }
.mi-video-tabs { display: flex; gap: 0; background: #1A1A1A; flex-wrap: wrap; }
.mi-vid-tab { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; padding: 8px 16px; border: none; background: transparent; color: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s ease; letter-spacing: 0.5px; text-transform: uppercase; border-bottom: 2px solid transparent; }
.mi-vid-tab:hover { color: #FFF; }
.mi-vid-tab.mi-vid-tab-active { color: #FFD700; border-bottom-color: #FFD700; }
.mi-vid-tab.mi-vid-tab-form { color: rgba(255,255,255,0.5); position: relative; margin-left: auto; padding-left: 12px; }
.mi-vid-tab.mi-vid-tab-form::before { content: ''; display: inline-block; width: 1px; height: 14px; background: rgba(255,255,255,0.15); vertical-align: middle; margin-right: 12px; }
.mi-vid-tab.mi-vid-tab-form.mi-vid-tab-active { color: #4AE3C1; border-bottom-color: #4AE3C1; }
.mi-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.mi-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── FAQ (single workout) ────────────────────────────────────────────────── */
.mi-faq-item { border-bottom: 1px solid #EEEEEE; padding: 18px 0; }
.mi-faq-item:last-child { border-bottom: none; }
.mi-faq-item:nth-child(even) { background: rgba(74,20,140,0.02); padding: 18px 16px; margin: 0 -16px; border-radius: 8px; }
.mi-faq-q { font-size: 16px; font-weight: 700; color: #212121; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.mi-faq-q::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4A148C; flex-shrink: 0; }
.mi-faq-a { font-size: 15px; font-weight: 400; color: #666; line-height: 1.7; padding-left: 16px; }
.mi-faq-a a { color: #4A148C; font-weight: 600; border-bottom: 1px solid rgba(74,20,140,0.2); }

/* ── Related Grid ────────────────────────────────────────────────────────── */
.mi-related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; margin-top: 20px; }
.mi-related-card { background: #FFF; border: 1px solid #E8E8E8; border-radius: 14px; padding: 0; display: flex; flex-direction: column; transition: border-color 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }
.mi-related-card:hover { border-color: #4A148C; }
.mi-related-img { width: 100%; height: 120px; overflow: hidden; }
.mi-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-related-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.mi-related-card h4 { font-size: 16px; font-weight: 700; color: #212121; letter-spacing: -0.2px; margin-bottom: 8px; line-height: 1.25; }
.mi-related-card p { font-size: 13px; color: #888; line-height: 1.55; margin-bottom: 14px; }
.mi-related-link { font-size: 13px; font-weight: 700; color: #4A148C; display: flex; align-items: center; gap: 5px; margin-top: auto; }

/* ── CTA Block (single) ──────────────────────────────────────────────────── */
.mi-guide .mi-cta-block { background: #212121; border-radius: 16px; padding: 48px 36px; text-align: center; margin-top: 24px; position: relative; overflow: hidden; }
.mi-guide .mi-cta-block::before { content: ''; position: absolute; top: -60%; left: -20%; width: 140%; height: 140%; background: radial-gradient(ellipse at 30% 20%,rgba(74,20,140,0.3) 0%,transparent 60%); pointer-events: none; }
.mi-guide .mi-cta-block::after { content: ''; position: absolute; bottom: -40%; right: -10%; width: 80%; height: 80%; background: radial-gradient(ellipse at 70% 80%,rgba(255,215,0,0.08) 0%,transparent 60%); pointer-events: none; }
.mi-guide .mi-cta-block h2 { font-size: 26px; font-weight: 800; color: #F4F4F4; margin-bottom: 12px; position: relative; z-index: 1; letter-spacing: -0.5px; }
.mi-guide .mi-cta-block p { font-size: 16px; font-weight: 400; color: #AAA; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.65; position: relative; z-index: 1; }
.mi-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.mi-btn-primary { font-family: 'Montserrat',sans-serif; font-size: 15px; font-weight: 700; color: #212121; background: #FFD700; border: none; border-radius: 10px; padding: 14px 36px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.mi-btn-primary:hover { background: #FFE34D; transform: translateY(-2px); }
.mi-btn-outline { font-family: 'Montserrat',sans-serif; font-size: 15px; font-weight: 600; color: #FFFFFF !important; background: transparent; border: 1px solid rgba(244,244,244,0.2); border-radius: 10px; padding: 14px 36px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.mi-btn-outline:hover { border-color: rgba(244,244,244,0.5); }

/* ═══════════════════════════════════════════════════════════════════════════
   TAXONOMY (workouts-single-tax.html) styles
   ═══════════════════════════════════════════════════════════════════════════ */
.mi-main-content { max-width: 1200px; margin: 0 auto; padding: 56px 24px 80px; }

/* Featured Card (taxonomy) */
.mi-beginner .mi-featured-card { background: #FFFFFF; border: 1px solid #E0E0E0; border-radius: 16px; margin-bottom: 56px; position: relative; overflow: hidden; transition: border-color 0.25s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.06); display: grid; grid-template-columns: 1fr 1fr; text-decoration: none; color: inherit; }
.mi-beginner .mi-featured-card:hover { border-color: #4A148C; }
.mi-beginner .mi-featured-card:hover .mi-featured-arrow { transform: translateX(4px); opacity: 1; }
.mi-featured-content { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.mi-featured-content .mi-section-tag { color: #4A148C; }
.mi-featured-content .mi-section-tag::before { background: #4A148C; }
.mi-featured-visual { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; min-height: 380px; overflow: hidden; }
.mi-featured-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg,rgba(20,20,20,0.78) 0%,rgba(40,40,40,0.65) 100%); pointer-events: none; }
.mi-featured-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%,rgba(0,0,0,0) 40%,rgba(0,0,0,0.35) 100%); pointer-events: none; }
.mi-featured-visual-inner { position: relative; z-index: 1; text-align: center; color: #FFFFFF; padding: 36px; }
.mi-featured-visual-weeks { font-size: 72px; font-weight: 800; letter-spacing: -3px; line-height: 1; margin-bottom: 6px; color: #FFFFFF; }
.mi-featured-visual-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 2.5px; }
.mi-featured-visual-meta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; }
.mi-featured-visual-meta span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 50px; padding: 7px 16px; }
.mi-featured-badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; color: #FFFFFF; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; padding: 6px 14px; letter-spacing: 0.4px; text-transform: uppercase; z-index: 2; }
.mi-featured-title { font-size: 28px; font-weight: 800; color: #212121; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 14px; }
.mi-featured-desc { font-size: 16px; color: #666; line-height: 1.7; margin-bottom: 24px; }
.mi-featured-meta { display: flex; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.mi-featured-meta-item { display: flex; flex-direction: column; gap: 4px; }
.mi-featured-meta-label { font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.mi-featured-meta-value { font-size: 16px; font-weight: 700; color: #4A148C; }
.mi-featured-link { font-size: 15px; font-weight: 700; color: #4A148C; display: inline-flex; align-items: center; gap: 6px; }
.mi-featured-arrow { transition: all 0.3s ease; opacity: 0.6; display: inline-block; }

/* Guide Grid */
.mi-guide-section { margin-bottom: 64px; }
.mi-guide-grid-header { margin-bottom: 32px; }
.mi-guide-grid-header h2 { font-size: 32px; font-weight: 800; color: #212121; letter-spacing: -0.8px; margin-bottom: 8px; }
.mi-guide-grid-header p { font-size: 15px; color: #888; }
.mi-guide-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }

/* Guide Cards */
.mi-guide-card { background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 16px; padding: 0; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; min-height: 100%; transition: border-color 0.25s ease; }
a.mi-guide-card:hover { border-color: #4A148C; }
.mi-guide-img { width: 100%; height: 160px; overflow: hidden; position: relative; }
.mi-guide-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.mi-guide-img .mi-guide-card-badge-overlay { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #FFFFFF; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 5px 11px; }
.mi-guide-card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.mi-guide-card h3 { font-size: 19px; font-weight: 800; color: #171717; letter-spacing: -0.3px; line-height: 1.24; margin-bottom: 10px; }
.mi-guide-card p { font-size: 14px; color: #5E5E5E; line-height: 1.65; margin-bottom: 16px; }
.mi-guide-card-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; padding: 12px; border-radius: 12px; background: #FAFAFA; border: 1px solid #EEEEEE; }
.mi-guide-card-meta-item { display: flex; flex-direction: column; gap: 4px; }
.mi-guide-card-meta-label { font-size: 9px; font-weight: 700; color: #9A9A9A; text-transform: uppercase; letter-spacing: 0.8px; }
.mi-guide-card-meta-value { font-size: 13px; font-weight: 800; color: #3E126F; }
.mi-guide-card-link { margin-top: auto; font-size: 13px; font-weight: 800; color: #4A148C; display: inline-flex; align-items: center; gap: 6px; }
.mi-guide-arrow { transition: transform 0.25s ease, opacity 0.25s ease; opacity: 0.65; display: inline-block; }
a.mi-guide-card:hover .mi-guide-arrow { transform: translateX(4px); opacity: 1; }

/* Content Block (SEO) */
.mi-content-block { background: linear-gradient(135deg,rgba(74,20,140,0.02) 0%,rgba(74,20,140,0.04) 100%); border: 1px solid rgba(74,20,140,0.08); border-radius: 16px; padding: 48px 44px; margin-bottom: 48px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.mi-content-block h2 { font-size: 28px; font-weight: 800; color: #212121; letter-spacing: -0.8px; margin-bottom: 20px; line-height: 1.2; }
.mi-content-block p { font-size: 16px; font-weight: 400; color: #555; line-height: 1.8; margin-bottom: 18px; }
.mi-content-block p:last-child { margin-bottom: 0; }
.mi-content-block a { color: #4A148C; font-weight: 600; border-bottom: 1px solid rgba(74,20,140,0.2); transition: border-color 0.2s ease; }
.mi-content-block a:hover { border-bottom-color: #4A148C; }
.mi-content-block ul { list-style: none; padding: 0; margin: 0 0 18px 0; }
.mi-content-block ul li { font-size: 15px; color: #555; line-height: 1.75; padding: 6px 0 6px 24px; position: relative; }
.mi-content-block ul li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #4A148C; }

/* FAQ (taxonomy) */
.mi-faq { background: #FFFFFF; border: 1px solid #E8E8E8; border-radius: 16px; padding: 48px 44px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.mi-faq h2 { font-size: 28px; font-weight: 800; color: #212121; letter-spacing: -0.8px; margin-bottom: 32px; }
.mi-faq .mi-faq-item { border-bottom: 1px solid #EEEEEE; padding: 0; margin-bottom: 0; }
.mi-faq .mi-faq-item:last-child { border-bottom: none; }
.mi-faq .mi-faq-item:nth-child(even) { background: rgba(74,20,140,0.02); }
.mi-faq .mi-faq-q { font-size: 17px; font-weight: 700; color: #212121; padding: 20px 24px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: all 0.2s ease; user-select: none; }
.mi-faq .mi-faq-q::before { display: none; }
.mi-faq .mi-faq-q:hover { color: #4A148C; background: rgba(74,20,140,0.04); }
.mi-faq-toggle { font-size: 20px; font-weight: 700; color: #4A148C; transition: transform 0.3s ease; flex-shrink: 0; }
.mi-faq .mi-faq-item.active .mi-faq-toggle { transform: rotate(45deg); }
.mi-faq .mi-faq-a { font-size: 15px; font-weight: 400; color: #666; line-height: 1.8; padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.mi-faq .mi-faq-item.active .mi-faq-a { max-height: 500px; padding: 0 24px 20px 24px; }

/* CTA Band */
.mi-cta-band { background: #212121; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-bottom: 0; }
.mi-cta-band-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 48px; }
.mi-cta-band.roundLeft { margin-left: calc(50% - 50vw + 20px); border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.mi-cta-band .mi-cta-block { background: transparent; border-radius: 16px; padding: 0; text-align: center; position: relative; overflow: hidden; }
.mi-cta-band .mi-cta-block h2 { font-size: 26px; font-weight: 800; color: #F4F4F4; margin-bottom: 12px; letter-spacing: -0.5px; }
.mi-cta-band .mi-cta-block p { font-size: 16px; font-weight: 400; color: #AAA; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHIVE (workouts-all-tax.html) styles
   ═══════════════════════════════════════════════════════════════════════════ */
.mi-categories-section { margin-bottom: 60px; }
.mi-category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.mi-category-card { background: #FFFFFF; border: 1px solid #E8E8E8; border-radius: 16px; padding: 0; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); display: flex; flex-direction: column; height: 100%; transition: border-color 0.25s ease; }
a.mi-category-card:hover { border-color: #4A148C; }
a.mi-category-card:hover .mi-card-arrow { transform: translateX(4px); opacity: 1; }
.mi-cat-img { width: 100%; height: 150px; overflow: hidden; position: relative; flex-shrink: 0; }
.mi-cat-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.mi-card-body { padding: 22px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.mi-card-title { font-size: 18px; font-weight: 800; color: #212121; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 3px; }
.mi-card-count { font-size: 12px; font-weight: 600; color: #4A148C; letter-spacing: 0.3px; margin-bottom: 12px; }
.mi-card-desc { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.mi-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mi-card-link { font-size: 13px; font-weight: 700; color: #4A148C; display: flex; align-items: center; gap: 6px; }
.mi-card-arrow { transition: all 0.3s ease; opacity: 0.6; display: inline-block; }
.mi-best-workouts { margin-bottom: 60px; }
.mi-best-header { margin-bottom: 28px; }
.mi-best-header h2 { font-size: 24px; font-weight: 700; color: #212121; letter-spacing: -0.5px; margin-bottom: 6px; }
.mi-best-header p { font-size: 14px; color: #888; }
.mi-featured-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 18px; align-items: stretch; }

/* Archive featured cards */
.mi-workouts .mi-featured-card { background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; height: 100%; transition: border-color 0.25s ease; }
a.mi-workouts .mi-featured-card:hover { border-color: #4A148C; }
.mi-featured-img { width: 100%; height: 160px; flex-shrink: 0; overflow: hidden; position: relative; }
.mi-featured-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.mi-featured-img .mi-featured-badge { position: absolute; top: 12px; left: 12px; z-index: 2; margin-bottom: 0; }
.mi-workouts .mi-featured-badge { font-size: 10px; font-weight: 700; color: #FFFFFF; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 20px; padding: 5px 11px; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.15); display: inline-block; }
.mi-featured-badge.mi-badge-popular { background: rgba(255,215,0,0.92); color: #212121; border-color: rgba(255,215,0,0.5); }
.mi-featured-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.mi-workouts .mi-featured-card h3 { font-size: 18px; font-weight: 800; color: #171717; letter-spacing: -0.3px; line-height: 1.24; margin-bottom: 10px; min-height: 48px; }
.mi-workouts .mi-featured-card p { font-size: 14px; color: #5E5E5E; line-height: 1.65; margin-bottom: 16px; }
.mi-workouts .mi-featured-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; padding: 12px; border-radius: 12px; background: #FAFAFA; border: 1px solid #EEEEEE; margin-top: auto; }
.mi-workouts .mi-featured-meta-item { display: flex; flex-direction: column; gap: 4px; }
.mi-workouts .mi-featured-meta-label { font-size: 9px; font-weight: 700; color: #9A9A9A; text-transform: uppercase; letter-spacing: 0.8px; }
.mi-workouts .mi-featured-meta-value { font-size: 13px; font-weight: 800; color: #3E126F; }
.mi-workouts .mi-featured-link { font-size: 13px; font-weight: 800; color: #4A148C; display: inline-flex; align-items: center; gap: 6px; }
.mi-workouts .mi-featured-arrow { transition: all 0.3s ease; opacity: 0.65; display: inline-block; }
a.mi-featured-card:hover .mi-featured-arrow { transform: translateX(4px); opacity: 1; }

/* Intro Block */
.mi-intro-block { background: #FFFFFF; border: 1px solid #E8E8E8; border-radius: 16px; padding: 40px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.mi-intro-block h2 { font-size: 24px; font-weight: 700; color: #212121; letter-spacing: -0.5px; margin-bottom: 18px; line-height: 1.2; }
.mi-intro-block p { font-size: 16px; font-weight: 400; color: #555; line-height: 1.8; margin-bottom: 16px; }
.mi-intro-block p:last-child { margin-bottom: 0; }
.mi-intro-block a { color: #4A148C; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(74,20,140,0.2); transition: border-color 0.2s ease; }
.mi-intro-block a:hover { border-bottom-color: #4A148C; }

/* Internal Links */
.mi-internal-links { background: #FFFFFF; border: 1px solid #E8E8E8; border-radius: 16px; padding: 40px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.mi-internal-links h2 { font-size: 24px; font-weight: 700; color: #212121; letter-spacing: -0.5px; margin-bottom: 6px; }
.mi-internal-links > p { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 24px; }
.mi-link-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 10px; margin-bottom: 4px; transition: all 0.25s ease; border: 1px solid transparent; text-decoration: none; }
.mi-link-row:hover { background: rgba(74,20,140,0.04); border-color: rgba(74,20,140,0.08); transform: translateX(4px); }
.mi-link-icon { font-size: 20px; line-height: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(74,20,140,0.05); border-radius: 10px; flex-shrink: 0; transition: background 0.25s ease; }
.mi-link-row:hover .mi-link-icon { background: rgba(74,20,140,0.1); }
.mi-link-text { font-size: 15px; font-weight: 600; color: #212121; transition: color 0.25s ease; }
.mi-link-row:hover .mi-link-text { color: #4A148C; }
.mi-link-desc { font-size: 13px; font-weight: 500; color: #BBB; margin-left: auto; }


.post-type-archive-workout .mi-hero-ctas { margin-top: 30px; }
.post-type-archive-workout .mi-workouts  { padding-bottom: 0; }
.mi-cta-band                             { margin-bottom: 30px; }


/* ═══════════════════════════════════════════════════════════════════════════
   ACTION BAR (single-workout)
   ═══════════════════════════════════════════════════════════════════════════ */
.miw-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;        /* ADD — prevents wrapping in Chrome */
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 12px;
  color: #888;
}
.miw-action-breadcrumb a { color: #888; text-decoration: none; }
.miw-action-breadcrumb a:hover { color: #1a1a1a; text-decoration: underline; }
.miw-action-breadcrumb .miw-bc-sep { color: #ccc; margin: 0 4px; }
.miw-action-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;           /* ADD — prevents button group collapsing */
}
.miw-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;     /* ADD — Chrome resets button font */
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;      /* ADD — prevents text wrapping inside buttons */
  -webkit-appearance: none; /* ADD — Chrome button default styles */
  appearance: none;
}
.miw-action-btn:hover { background: #f5f5f5; border-color: #bbb; color: #1a1a1a; }
.miw-action-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mi-guide { padding: 32px 16px 60px; }
  .mi-hero-band-inner { padding: 32px 16px 32px !important; }
  .mi-main-content { padding: 40px 16px 60px; }
  .mi-guide-hero, .mi-beginner-hero, .mi-workouts-hero { grid-template-columns: 1fr; gap: 28px; }
  .mi-guide-hero h1, .mi-beginner-hero h1, .mi-workouts-hero h1 { font-size: 28px; letter-spacing: -0.8px; }
  .mi-hero-image { order: -1; }
  .mi-hero-image img { max-width: 100%; box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 2px 12px rgba(0,0,0,0.2); }
  .mi-stats-bar { grid-template-columns: repeat(2,1fr); }
  .mi-guide-layout { grid-template-columns: 1fr; }
  .mi-toc, .mi-toc.mi-toc-js-top, .mi-toc.mi-toc-js-fixed, .mi-toc.mi-toc-js-bottom { position: relative; top: auto; bottom: auto; width: auto; margin-bottom: 24px; }
  .mi-toc-col { position: static; }
  .mi-schedule-grid { grid-template-columns: repeat(4,1fr); }
  .mi-content-card { padding: 28px 22px; }
  .mi-exercise-header { grid-template-columns: 1fr 56px 56px 56px 32px; padding: 12px 14px; }
  .mi-exercise-col-labels { grid-template-columns: 1fr 56px 56px 56px 32px; padding: 8px 14px 4px; }
  .mi-exercise-details-grid { grid-template-columns: 1fr; }
  .mi-beginner .mi-featured-card { grid-template-columns: 1fr; }
  .mi-featured-visual { min-height: 240px; order: -1; }
  .mi-featured-content { padding: 32px 28px; }
  .mi-featured-title { font-size: 24px; }
  .mi-guide-grid-header h2 { font-size: 26px; }
  .mi-guide-grid { grid-template-columns: 1fr; }
  .mi-guide-img { height: 140px; }
  .mi-content-block, .mi-faq { padding: 32px 28px; }
  .mi-content-block h2, .mi-faq h2 { font-size: 24px; }
  .mi-faq .mi-faq-q { font-size: 16px; padding: 18px 20px; }
  .mi-cta-band-inner { padding: 32px 16px 32px; }
  .mi-cta-band .mi-cta-block h2 { font-size: 22px; }
  .mi-hero-band.roundLeft, .mi-cta-band.roundLeft { margin-left: calc(50% - 50vw); border-top-left-radius: 0; border-bottom-left-radius: 0; }
  .miw-action-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mi-category-grid { grid-template-columns: 1fr; gap: 14px; }
  .mi-cat-img { height: 130px; }
  .mi-featured-grid { grid-template-columns: 1fr; }
  .mi-featured-img { height: 140px; }
  .mi-workouts .mi-featured-card h3 { min-height: auto; }
  .mi-workouts .mi-featured-card p { min-height: auto; }
  .mi-intro-block, .mi-internal-links { padding: 28px 24px; }
  .mi-link-desc { display: none; }
  .mi-vid-tab.mi-vid-tab-form { margin-left: 0; }
  .mi-vid-tab.mi-vid-tab-form::before { display: none; }
}
