/* ============================================================
   CMS Medicare Plan Finder — Stylesheet
   ============================================================ */

:root {
  --primary:       #1F2A30;
  --primary-dark:  #12191D;
  --primary-light: #3A4A52;
  --accent:        #9A4A10;
  --accent-hover:  #7C3A0B;
  --red:           #CD2026;
  --red-light:     #FDE8E9;
  --green:         #2E8540;
  --green-light:   #E9F4EC;
  --yellow:        #F5A623;
  --yellow-light:  #FEF7E6;
  --purple:        #6B21A8;
  --purple-light:  #F3E8FF;
  --teal:          #00695C;
  --teal-light:    #E0F7FA;

  --gray-900: #1B1B1B;
  --gray-700: #3D4551;
  --gray-500: #71767A;
  --gray-400: #A9AEB1;
  --gray-300: #D9D9D9;
  --gray-200: #EBEBEB;
  --gray-100: #F5F5F5;
  --gray-50:  #FAFAFA;
  --white:    #FFFFFF;

  --font: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: all 0.2s ease;
  --max-w: 1760px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-900); background: var(--gray-100); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: underline; color: var(--accent-hover); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--gray-500); max-width: 580px; margin: 0 auto; line-height: 1.7; }
.section-tag { display: inline-block; background: #F6E7CC; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--gray-500); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---- GOV BANNER ---- */
.gov-banner { background: #f0f0f0; border-bottom: 1px solid #ddd; padding: 4px 0; font-size: 12px; color: var(--gray-700); }
.gov-banner .container { display: flex; align-items: center; gap: 16px; }
.gov-banner-link { color: var(--accent); font-size: 12px; }

/* ---- HEADER ---- */
.site-header { position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.main-nav { background: var(--primary); padding: 0; }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 8px; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; flex-shrink: 0; margin-right: 16px; }
.nav-logo:hover { text-decoration: none; color: white; }
.logo-cms { background: var(--accent); color: white; font-weight: 700; font-size: 18px; padding: 5px 10px; border-radius: var(--radius-xs); letter-spacing: 1.5px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 17px; color: white; }
.logo-text span { font-size: 11px; color: rgba(255,255,255,0.7); }
.nav-links { display: flex; gap: 2px; align-items: center; flex: 1; }
.nav-link { color: rgba(255,255,255,0.88); padding: 8px 14px; border-radius: var(--radius-xs); font-size: 15px; font-weight: 600; transition: var(--transition); white-space: nowrap; display: block; }
.nav-link:hover { background: rgba(255,255,255,0.12); color: white; text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,0.18); color: white; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-enroll { background: var(--red); color: white; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; border: none; transition: var(--transition); letter-spacing: 0.3px; }
.btn-enroll:hover { background: #A81B1F; text-decoration: none; color: white; }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* Enrollment Period Banner */
.enrollment-banner { background: var(--accent); color: white; text-align: center; padding: 9px 24px; font-size: 14px; font-weight: 600; }
.enrollment-banner a { color: #FFE566; font-weight: 700; }
.enrollment-banner.aep { background: #E63B00; }
.enrollment-banner.oep { background: #7C3A0B; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.btn-secondary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: white; }
.btn-success { background: var(--green); color: white; border-color: var(--green); }
.btn-success:hover { background: #24693A; border-color: #24693A; color: white; }
.btn-red { background: var(--red); color: white; border-color: var(--red); }
.btn-red:hover { background: #A81B1F; color: white; }
.btn-white { background: white; color: var(--primary); border-color: white; }
.btn-white:hover { background: var(--gray-100); color: var(--primary); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }
/* Cancel button — visible on light backgrounds (unlike btn-ghost, which is for dark headers) */
.btn-cancel { background: transparent; color: var(--gray-600, #475569); border: 1px solid var(--gray-300, #cbd5e1); }
.btn-cancel:hover { background: var(--gray-100, #f1f5f9); color: var(--gray-800, #1e293b); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-icon { padding: 9px 12px; }

/* ---- CARDS ---- */
.card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-300); padding: 24px; }
.card-hover { transition: var(--transition); }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: var(--accent); transform: translateY(-2px); }
.card-sm { padding: 16px; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-blue   { background: #F6E7CC; color: #0C5186; }
.badge-green  { background: var(--green-light); color: #1C5C2C; }
.badge-red    { background: var(--red-light); color: #8B1111; }
.badge-yellow { background: var(--yellow-light); color: #7A5000; }
.badge-gray   { background: var(--gray-200); color: var(--gray-700); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-teal   { background: var(--teal-light); color: var(--teal); }
.badge-navy   { background: var(--primary); color: white; }
.badge-lg { font-size: 13px; padding: 5px 14px; }

/* ---- STAR RATING ---- */
.stars { display: inline-flex; gap: 1px; align-items: center; }
.star-full  { color: #F5A623; font-size: 16px; }
.star-half  { color: #F5A623; font-size: 16px; }
.star-empty { color: var(--gray-300); font-size: 16px; }
.star-text  { font-size: 13px; color: var(--gray-500); margin-left: 6px; font-weight: 600; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; font-size: 15px; }
.req { color: var(--red); margin-left: 2px; }
.form-control { width: 100%; padding: 10px 14px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 16px; color: var(--gray-900); background: white; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,188,0.15); }
.form-control.is-error { border-color: var(--red); }
.form-hint { font-size: 13px; color: var(--gray-500); margin-top: 5px; }
.form-error-msg { font-size: 13px; color: var(--red); margin-top: 5px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-section { border: 1px solid var(--gray-300); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; background: var(--gray-50); }
.form-section-title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }

/* Choice items */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); background: white; }
.choice-item:hover { border-color: var(--accent); background: #FBF3E4; }
.choice-item.selected { border-color: var(--accent); background: #E8F3FF; }
.choice-item input[type="radio"], .choice-item input[type="checkbox"] { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.choice-item .choice-label { flex: 1; }
.choice-item .choice-label strong { display: block; font-size: 15px; color: var(--gray-900); }
.choice-item .choice-label span { font-size: 13px; color: var(--gray-500); line-height: 1.5; display: block; margin-top: 2px; }
.choice-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

/* Range slider */
.range-row { display: flex; align-items: center; gap: 16px; }
.range-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--gray-300); cursor: pointer; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid white; box-shadow: var(--shadow-sm); cursor: pointer; }
.range-val { font-size: 15px; font-weight: 700; color: var(--primary); min-width: 50px; text-align: right; }

/* ---- PROGRESS STEPS ---- */
.progress-steps { display: flex; align-items: center; margin-bottom: 40px; overflow-x: auto; padding-bottom: 4px; }
.pstep { display: flex; align-items: center; }
.pstep-dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; border: 3px solid var(--gray-300); background: white; color: var(--gray-500); transition: var(--transition); }
.pstep.done .pstep-dot { border-color: var(--green); background: var(--green); color: white; }
.pstep.active .pstep-dot { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 0 0 4px rgba(0,113,188,0.2); }
.pstep-label { font-size: 12px; margin-left: 8px; white-space: nowrap; color: var(--gray-500); font-weight: 600; }
.pstep.active .pstep-label { color: var(--accent); }
.pstep.done .pstep-label { color: var(--green); }
.pstep-line { flex: 1; height: 3px; background: var(--gray-300); min-width: 24px; margin: 0 4px; transition: var(--transition); }
.pstep.done + .pstep .pstep-line,
.pstep-line.done { background: var(--green); }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border-left: 5px solid; margin-bottom: 16px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: #E1F3FB; border-color: var(--accent); color: #0A4C78; }
.alert-success { background: var(--green-light); border-color: var(--green); color: #1C5C2C; }
.alert-warning { background: var(--yellow-light); border-color: var(--yellow); color: #6B4400; }
.alert-error   { background: var(--red-light); border-color: var(--red); color: #7A1010; }

/* ---- TABS ---- */
.tabs-bar { border-bottom: 2px solid var(--gray-300); display: flex; gap: 0; overflow-x: auto; }
.tab-btn { padding: 12px 22px; font-size: 15px; font-weight: 600; color: var(--gray-500); cursor: pointer; border: none; border-bottom: 3px solid transparent; background: none; margin-bottom: -2px; white-space: nowrap; transition: var(--transition); }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.tab-content { padding-top: 28px; }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-300); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--gray-100); }
th { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--gray-700); border-bottom: 2px solid var(--gray-300); white-space: nowrap; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #F5F9FF; }

/* ---- SEARCH BAR ---- */
.search-box { position: relative; }
.search-box input { width: 100%; padding: 13px 52px 13px 18px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 16px; background: white; transition: var(--transition); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,188,0.15); }
.search-box-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--accent); color: white; border: none; border-radius: var(--radius-xs); padding: 7px 13px; font-size: 17px; cursor: pointer; transition: var(--transition); }
.search-box-btn:hover { background: var(--accent-hover); }

/* ---- PAGE HERO ---- */
.page-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: white; padding: 28px 0 26px; }
.page-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.page-hero p { font-size: 17px; opacity: 0.88; max-width: 760px; line-height: 1.55; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 16px; opacity: 0.8; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb-sep { opacity: 0.5; }

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-hero { background: linear-gradient(135deg, #12191D 0%, #1F2A30 55%, #3A4A52 100%); color: white; padding: 56px 0 48px; position: relative; overflow: hidden; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='800' height='500' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='700' cy='50' r='350' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='600' cy='450' r='280' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat right center / cover; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-left h1 { font-size: 46px; font-weight: 700; line-height: 1.12; margin-bottom: 20px; }
.hero-left h1 em { color: #E8A33D; font-style: normal; }
.hero-left p { font-size: 19px; opacity: 0.88; margin-bottom: 32px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.hero-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; align-items: center; gap: 16px; transition: var(--transition); cursor: pointer; }
.hero-card:hover { background: rgba(255,255,255,0.18); transform: translateX(4px); }
.hero-card-icon { font-size: 32px; flex-shrink: 0; }
.hero-card-text strong { display: block; font-size: 16px; margin-bottom: 3px; }
.hero-card-text span { font-size: 13px; opacity: 0.8; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 20px 24px; text-align: center; }
.stat-num { display: block; font-size: 34px; font-weight: 700; color: #E8A33D; line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 13px; opacity: 0.8; }

/* Plan type cards */
.plan-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-type-card { background: white; border: 2px solid var(--gray-300); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; cursor: pointer; transition: var(--transition); }
.plan-type-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-type-icon { font-size: 44px; margin-bottom: 14px; display: block; }
.plan-type-card h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.plan-type-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.plan-type-card .plan-type-who { display: inline-block; background: var(--gray-100); color: var(--gray-700); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }

/* How it works */
.hiw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; position: relative; }
.hiw-step { text-align: center; padding: 24px 16px; position: relative; }
.hiw-num { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary-light)); color: white; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(0,113,188,0.3); }
.hiw-step h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.hiw-step p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* Enrollment periods */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ep-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--gray-300); padding: 20px; display: flex; gap: 16px; }
.ep-icon { font-size: 32px; flex-shrink: 0; }
.ep-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ep-dates { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 6px; }
.ep-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ============================================================
   ELIGIBILITY PAGE
   ============================================================ */
.elig-wrap { max-width: 780px; margin: 0 auto; }
.elig-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-300); padding: 40px; }
.elig-step-title { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.elig-step-sub { font-size: 16px; color: var(--gray-500); margin-bottom: 28px; line-height: 1.6; }
.elig-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }

/* Eligibility Results */
.elig-result-header { text-align: center; padding: 24px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: var(--radius-lg); margin-bottom: 28px; }
.elig-result-header h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.elig-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.elig-plan-result { background: white; border: 2px solid var(--gray-300); border-radius: var(--radius-md); padding: 20px; text-align: center; transition: var(--transition); }
.elig-plan-result.eligible { border-color: var(--green); background: var(--green-light); }
.elig-plan-result.not-eligible { opacity: 0.55; }
.elig-plan-result .result-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.elig-plan-result h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.elig-plan-result p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.elig-check-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--gray-50); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 15px; }
.elig-check-row .ck-label { color: var(--gray-700); }
.elig-check-row .ck-val { font-weight: 700; }

/* ============================================================
   PLANS PAGE
   ============================================================ */
.plans-page { display: grid; grid-template-columns: 248px minmax(0, 1fr) 284px; gap: 20px; align-items: start; padding: 24px 0 64px; }
@media (max-width: 1280px) { .plans-page { grid-template-columns: 240px minmax(0, 1fr) 270px; } }
@media (max-width: 1100px) { .plans-page { grid-template-columns: 260px 1fr; } .prx-sidebar { grid-column: 1 / -1; position: static !important; max-height: none !important; } }

/* Filter Sidebar */
.filter-sidebar {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 120px;
  /* ── Independent scrolling ────────────────────────────────── */
  max-height: calc(100vh - 140px);   /* leaves room for the sticky header */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;       /* don't bubble scroll up to the page */
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: var(--gray-400) transparent;
}
/* Custom scrollbar — WebKit (Chrome/Edge/Safari) */
.filter-sidebar::-webkit-scrollbar { width: 8px; }
.filter-sidebar::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
  border: 2px solid white;
}
.filter-sidebar::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
/* Keep the header (Filter Plans + Reset All) pinned at the top of the sidebar */
.filter-sidebar .filter-header {
  position: sticky;
  top: -20px;                         /* counteracts sidebar's own padding */
  background: white;
  z-index: 2;
  margin: -20px -20px 16px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--gray-200);
}
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.filter-header h3 { font-size: 16px; font-weight: 700; color: var(--primary); }
.filter-reset { font-size: 13px; color: var(--accent); cursor: pointer; background: none; border: none; font-weight: 600; }
.filter-reset:hover { text-decoration: underline; }
.filter-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; display: block; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.filter-opt label { cursor: pointer; flex: 1; color: var(--gray-700); }
.filter-opt .opt-cnt { font-size: 12px; color: var(--gray-400); margin-left: auto; }
.filter-star-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.filter-star-btn { padding: 4px 8px; border: 1px solid var(--gray-300); border-radius: var(--radius-xs); font-size: 13px; background: white; cursor: pointer; transition: var(--transition); color: var(--gray-700); }
.filter-star-btn:hover, .filter-star-btn.active { background: var(--yellow-light); border-color: var(--yellow); color: #7A5000; }

/* Plans List */
.plans-results { min-width: 0; } /* let the 1fr column shrink; wide tables scroll inside their own box */
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 16px; color: var(--gray-700); }
.results-count strong { color: var(--gray-900); font-size: 20px; }
.sort-select { padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-700); background: white; cursor: pointer; }
.plans-list { display: flex; flex-direction: column; gap: 16px; }

/* Plan Card */
.plan-card { background: white; border: 2px solid var(--gray-300); border-radius: var(--radius-lg); padding: 22px; transition: var(--transition); position: relative; }
.plan-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-card.comparing { border-color: var(--accent); background: #FBF3E4; }
.plan-card-top { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; margin-bottom: 16px; }
.plan-carrier { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.plan-name { font-size: 19px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.3; }
.plan-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-premium-col { text-align: right; flex-shrink: 0; }
.plan-premium-amt { font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1; }
.plan-premium-lbl { font-size: 12px; color: var(--gray-500); }
.plan-stars-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.plan-divider { border: none; border-top: 1px solid var(--gray-200); margin: 14px 0; }
.plan-costs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.plan-cost-item { text-align: center; padding: 10px; background: var(--gray-50); border-radius: var(--radius-sm); }
.plan-cost-item .cost-lbl { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 4px; }
.plan-cost-item .cost-val { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.plan-benefits-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ben-chip { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.ben-chip.yes { background: var(--green-light); color: #1C5C2C; border-color: #B2DFB8; }
.ben-chip.no  { background: var(--gray-100); color: var(--gray-400); border-color: var(--gray-200); text-decoration: line-through; }
.plan-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compare-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); cursor: pointer; }
.compare-label input { width: 16px; height: 16px; accent-color: var(--accent); }
.plan-card-actions { display: flex; gap: 8px; }

/* SNP flag */
.snp-flag { position: absolute; top: -1px; right: 20px; background: var(--purple); color: white; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 0 0 6px 6px; letter-spacing: 0.4px; }
.snp-flag.dsnp { background: var(--teal); }
.snp-flag.csnp { background: var(--purple); }

/* ============================================================
   ZIP CODE SEARCH + SERVICE AREA
   ============================================================ */

/* ZIP input section in sidebar */
.zip-search-section { background: linear-gradient(135deg, #EBF4FF 0%, #F0F9FF 100%); border-radius: 10px; padding: 14px; margin: -4px -4px 16px; border: 1px solid #EBD9B5; }
.zip-helper-text { font-size: 12px; color: var(--gray-600); margin: 4px 0 10px; line-height: 1.4; }
.zip-input-wrap { display: flex; align-items: center; gap: 6px; }
.zip-input { font-size: 18px; font-weight: 700; text-align: center; letter-spacing: 2px; padding: 10px 12px; border-radius: 8px; border: 2px solid #DDBF8A; flex: 1; transition: border-color 0.2s; }
.zip-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205,32,38,0.12); }
.zip-clear-btn { background: var(--gray-300); border: none; border-radius: 50%; width: 28px; height: 28px; font-size: 14px; cursor: pointer; color: var(--gray-600); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.zip-clear-btn:hover { background: var(--gray-400); }
.zip-result-msg { margin-top: 8px; font-size: 13px; min-height: 20px; font-weight: 600; }
.zip-result-msg.zip-found { color: #065F46; }
.zip-result-msg.zip-found span::before { content: ''; }
.zip-result-msg.zip-notfound { color: #B45309; }

/* Service area banner above plan results */
.service-area-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #6EE7B7; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}
.service-area-icon { font-size: 22px; flex-shrink: 0; }
.service-area-banner > div { flex: 1; }
.service-area-banner strong { display: block; font-size: 14px; color: #065F46; }
.service-area-detail { font-size: 12px; color: #047857; display: block; margin-top: 2px; }
.service-area-clear { background: none; border: 1px solid #6EE7B7; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #065F46; cursor: pointer; flex-shrink: 0; font-weight: 600; white-space: nowrap; }
.service-area-clear:hover { background: #D1FAE5; }

/* ============================================================
   MEDICAID LEVEL CHIPS (D-SNP plan cards)
   ============================================================ */
.mlevel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.mlevel-row-detail {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
}
.mlevel-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 2px;
}
.mlevel-row-detail .mlevel-label {
  font-size: 12px;
  color: var(--gray-700);
}
.mlevel-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  font-family: 'Courier New', monospace;
  cursor: help;
  border: 1px solid transparent;
  transition: transform 0.1s;
}
.mlevel-chip:hover { transform: translateY(-1px); }
/* Full Dual = green (FBDE, QMB+, SLMB+) — richest benefits */
.mlevel-chip.mlevel-full {
  background: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}
/* Partial Dual = blue (QMB, SLMB, QI) — cost-sharing only */
.mlevel-chip.mlevel-partial {
  background: #F6E7CC;
  color: #7C3A0B;
  border-color: #DDBF8A;
}
.mlevel-row-detail .mlevel-chip {
  font-size: 12px;
  padding: 4px 11px;
}

/* ============================================================
   MEDICAID VERIFICATION BLOCK + LEVEL CARDS
   ============================================================ */
.medicaid-verify-block {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 2px solid #FBBF24;
  border-radius: 12px;
  padding: 22px;
  margin: 20px 0;
  position: relative;
}
.medicaid-verify-header {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 2px dashed rgba(180, 83, 9, 0.25);
}
.medicaid-verify-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.medicaid-verify-header h4 { font-size: 17px; font-weight: 800; color: #78350F; margin: 0 0 4px; }
.medicaid-verify-header p { font-size: 13px; color: #78350F; opacity: 0.85; margin: 0; line-height: 1.5; }

.required-asterisk { color: var(--accent); font-weight: 800; margin-left: 2px; }
.optional-text { color: var(--gray-500); font-weight: 400; font-size: 12px; font-style: italic; }

.medicaid-id-input {
  font-family: 'Courier New', monospace !important;
  font-size: 17px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.medicaid-id-input.input-valid { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }
.medicaid-id-input.input-invalid { border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.hint-valid { color: #047857; font-weight: 600; }
.hint-invalid { color: #B45309; font-weight: 600; }

/* Medicaid Level Selection Grid */
.medicaid-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.medicaid-level-card {
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.medicaid-level-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.medicaid-level-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 60%);
  box-shadow: 0 0 0 3px rgba(205,32,38,0.15);
}
.medicaid-level-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.medicaid-level-top {
  display: flex; align-items: center; gap: 8px;
}
.medicaid-level-icon { font-size: 20px; }
.medicaid-level-code {
  font-size: 18px; font-weight: 800; color: var(--primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.medicaid-level-cat {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.medicaid-level-cat.full {
  background: #D1FAE5; color: #065F46;
}
.medicaid-level-cat.partial {
  background: #F6E7CC; color: #7C3A0B;
}
.medicaid-level-fullname {
  font-size: 13px; font-weight: 700; color: var(--gray-800);
}
.medicaid-level-meta { font-size: 11px; color: var(--gray-600); }
.medicaid-level-covers { font-size: 11px; color: var(--gray-700); line-height: 1.5; margin-top: 4px; }

/* category accent on left edge */
.medicaid-level-card.cat-full { border-left: 4px solid #10B981; }
.medicaid-level-card.cat-partial { border-left: 4px solid #3B82F6; }

/* Attestation row */
.medicaid-attestation {
  margin-top: 18px; padding: 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px; border: 1px solid #FCD34D;
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 13px; color: var(--gray-800); line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

/* Pill in eligibility summary */
.elig-medicaid-summary {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.cat-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.cat-pill.full { background: #D1FAE5; color: #065F46; }
.cat-pill.partial { background: #F6E7CC; color: #7C3A0B; }

/* Medicaid block in enrollment review */
.medicaid-review-block {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--gray-200);
}

/* Disabled Next button */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 600px) {
  .medicaid-level-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROVIDER & PRESCRIPTION SEARCH RIGHT SIDEBAR
   ============================================================ */
.prx-sidebar {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-400) transparent;
}
.prx-sidebar::-webkit-scrollbar { width: 8px; }
.prx-sidebar::-webkit-scrollbar-track { background: transparent; }
.prx-sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; border: 2px solid white; }
.prx-sidebar::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.prx-sidebar-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.prx-sidebar-header h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; color: white; }
.prx-sidebar-header p { font-size: 12px; margin: 0; opacity: 0.92; line-height: 1.4; }
.prx-sidebar-header strong { color: #FEF3C7; }

.prx-section {
  padding: 18px;
  border-bottom: 1px solid var(--gray-200);
}
.prx-section:last-of-type { border-bottom: none; }
.prx-section-header {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px;
}
.prx-section-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.prx-section-header h4 {
  font-size: 14px; font-weight: 800; color: var(--primary);
  margin: 0; line-height: 1.2;
}
.prx-section-sub {
  display: block;
  font-size: 11px; color: var(--gray-600);
  margin-top: 2px;
}

.prx-input-wrap { position: relative; }
.prx-input {
  font-size: 13px;
  padding: 9px 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.prx-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(205,32,38,0.12);
}

.prx-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 10;
}
.prx-search-results.open { display: block; }
.prx-search-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
}
.prx-search-row:hover { background: var(--gray-100); }
.prx-search-row:last-child { border-bottom: none; }
.prx-search-icon { font-size: 18px; flex-shrink: 0; }
.prx-search-text { flex: 1; min-width: 0; }
.prx-search-name {
  font-size: 13px; font-weight: 600; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prx-search-meta {
  font-size: 11px; color: var(--gray-600);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prx-search-add {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(205,32,38,0.08);
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.prx-search-scope {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #7C3A0B;
  background: #FBF3E4;
  border-bottom: 1px solid #F6E7CC;
  letter-spacing: .2px;
}
.prx-search-empty {
  padding: 14px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  font-style: italic;
}

/* Selected chips */
.prx-chips-wrap {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.prx-empty {
  font-size: 11px;
  color: var(--gray-500);
  font-style: italic;
  padding: 8px 0;
}
.prx-chip {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #F6E7CC 0%, #FBF3E4 100%);
  border: 1px solid #EBD9B5;
  border-radius: 8px;
  padding: 8px 10px;
  position: relative;
}
.prx-chip.prx-chip-drug {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border-color: #FCD34D;
}
.prx-chip-icon { font-size: 16px; flex-shrink: 0; }
.prx-chip-body { flex: 1; min-width: 0; }
.prx-chip-name {
  font-size: 12px; font-weight: 700; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prx-chip-meta {
  font-size: 10px; color: var(--gray-600);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prx-chip-x {
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 16px; line-height: 1;
  color: var(--gray-700);
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.prx-chip-x:hover {
  background: var(--accent);
  color: white;
}

.prx-clear-all {
  display: block;
  width: calc(100% - 36px);
  margin: 12px 18px;
  background: white;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.prx-clear-all:hover {
  background: var(--accent);
  color: white;
}

.prx-help {
  margin: 0 18px 18px;
  padding: 12px;
  background: #ECFDF5;
  border-left: 3px solid #10B981;
  border-radius: 6px;
  font-size: 11px;
  color: #064E3B;
  line-height: 1.5;
}
.prx-help strong { color: #047857; }

/* Medicaid level filter (D-SNP filter section) */
.medlevel-filter-section {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 100%);
  border-radius: 10px;
  padding: 14px;
  margin: -4px -4px 16px;
  border: 1px solid #A7F3D0;
}
.filter-sublabel {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(20,184,166,0.15);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.medlevel-helper {
  font-size: 12px;
  color: var(--gray-600);
  margin: 4px 0 10px;
  line-height: 1.4;
}
.medlevel-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.medlevel-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.medlevel-opt:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.medlevel-opt.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 60%);
  box-shadow: 0 0 0 2px rgba(205,32,38,0.12);
}
.medlevel-opt.medlevel-full { border-left: 4px solid #10B981; }
.medlevel-opt.medlevel-partial { border-left: 4px solid #3B82F6; }
.medlevel-opt input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.medlevel-opt-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.medlevel-opt-label strong {
  font-size: 13px;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.medlevel-code {
  font-family: 'Courier New', monospace;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.medlevel-opt-sub {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 400;
}
.medlevel-opt-sub strong { font-weight: 700; color: var(--teal); font-size: 11px; display: inline; }
.medlevel-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.medlevel-pill.full { background: #D1FAE5; color: #065F46; }
.medlevel-pill.partial { background: #F6E7CC; color: #7C3A0B; }

/* Carrier filter dropdown */
.carrier-select { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px; background: white; font-weight: 600; color: var(--gray-800); cursor: pointer; transition: border-color 0.15s; }
.carrier-select:hover { border-color: var(--accent); }
.carrier-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205,32,38,0.12); }
.carrier-clear-btn { margin-top: 8px; background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0; text-align: left; }
.carrier-clear-btn:hover { text-decoration: underline; }

/* Service area on plan card */
.plan-service-area {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--gray-200);
}
.service-area-lbl { font-size: 11px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.4px; margin-right: 2px; white-space: nowrap; }
.county-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  background: var(--gray-100); border: 1px solid var(--gray-300);
  border-radius: 20px; color: var(--gray-700); font-weight: 500;
  white-space: nowrap;
}
.county-tag-match {
  background: #D1FAE5; border-color: #6EE7B7; color: #065F46; font-weight: 700;
}
.county-nationwide { background: #FBF3E4; border-color: #EBD9B5; color: #7C3A0B; font-weight: 600; }
.county-extra { background: var(--gray-200); color: var(--gray-600); font-style: italic; }

/* ============================================================
   PLAN DETAIL PAGE
   ============================================================ */
.plan-detail-hero { background: white; border-bottom: 2px solid var(--gray-200); padding: 32px 0; }
.plan-detail-header { display: flex; align-items: flex-start; gap: 20px; }
.plan-detail-logo { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.plan-detail-meta { flex: 1; }
.plan-detail-meta .plan-carrier { font-size: 13px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.plan-detail-meta h1 { font-size: 28px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; line-height: 1.2; }
.plan-detail-sidebar { min-width: 260px; }
.plan-detail-cost-card { background: var(--gray-50); border: 2px solid var(--gray-300); border-radius: var(--radius-md); padding: 20px; }
.cost-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 15px; }
.cost-row:last-child { border-bottom: none; }
.cost-row .cr-label { color: var(--gray-600); }
.cost-row .cr-val { font-weight: 700; color: var(--gray-900); }
.cost-row .cr-val.zero { color: var(--green); }
.plans-cap-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 18px; background: #FBF3E4; border: 1px solid #EBD9B5; border-radius: var(--radius-md); color: #1E3A8A; font-size: 14px; line-height: 1.5; }
.fhir-net-block { background: linear-gradient(135deg,#F0FDF4,#ECFDF5); border: 1px solid #BBF7D0; border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; }
.fhir-net-head { font-size: 13px; font-weight: 800; color: #065F46; margin-bottom: 10px; }
.fhir-net-head span { font-weight: 600; color: #059669; }
.fhir-net-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fhir-net-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #A7F3D0; color: #047857; font-size: 12px; font-weight: 600; }
.fhir-net-chip.more { background: #ECFDF5; color: #059669; }
/* Reverse-verified provider-in-plan membership (Phase 4 v2) */
.net-verified-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.provider-card-verified { border-left: 3px solid var(--green); background: linear-gradient(90deg, rgba(16,185,129,.05), transparent 40%); }
/* Enrollment / Election Period (SEP) UI */
.ep-open { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--green); }
.choice-item.ep-unavailable { opacity: .78; }
.choice-item.ep-unavailable .choice-label > span:first-of-type { color: var(--gray-500); }
.ep-sep-block { margin-top: 6px; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50, #F8FAFC); }
.sep-meta { margin-top: 6px; display: block; font-weight: 600; color: var(--accent); }
.elig-ep-conclusion { border-radius: var(--radius-lg); padding: 18px 20px; margin: 20px 0; border: 1px solid var(--gray-200); }
.elig-ep-conclusion.ok { background: var(--green-light); border-color: var(--green); }
.elig-ep-conclusion.closed { background: var(--yellow-light); border-color: var(--yellow); }
.elig-ep-head { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.elig-ep-body { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; }
/* SOA / TPMO disclaimers + Pre-Enrollment Checklist + compliance footer */
.tpmo-disclaimer { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--gray-300); border-radius: var(--radius); background: var(--gray-50, #F8FAFC); font-size: 12.5px; line-height: 1.6; color: var(--gray-600, #475569); }
.pecl-grid { display: flex; flex-direction: column; gap: 12px; }
.pecl-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.pecl-ic { font-size: 20px; line-height: 1.4; flex-shrink: 0; }
.pecl-val { font-size: 13.5px; color: var(--gray-600, #475569); margin-top: 2px; line-height: 1.55; }
.enroll-compliance-footer { margin-top: 20px; padding: 16px 18px; border-top: 1px solid var(--gray-200); font-size: 12px; line-height: 1.6; color: var(--gray-500); display: flex; flex-direction: column; gap: 6px; }
.enroll-compliance-footer strong { color: var(--gray-600, #475569); }
.choice-item.choice-compact { padding: 10px 12px; }
.choice-item.choice-compact .choice-label strong { font-weight: 600; font-size: 14px; }
/* True-cost estimator */
.plan-est-cost { margin: 12px 0 4px; padding: 10px 14px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(16,185,129,.10), rgba(16,185,129,.03)); border: 1px solid #A7F3D0; }
.est-cost-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.est-cost-lbl { font-size: 13px; font-weight: 700; color: #047857; }
.est-cost-prof { font-weight: 500; color: var(--gray-500); font-size: 12px; }
.est-cost-amt { font-size: 22px; font-weight: 800; color: #065F46; }
.est-cost-yr { font-size: 13px; font-weight: 600; color: var(--gray-500); margin-left: 2px; }
.est-cost-break { margin-top: 4px; font-size: 12.5px; color: var(--gray-600, #475569); }
.est-caveat { color: #B45309; font-weight: 600; }
.util-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 0 0 14px; padding: 10px 14px; background: var(--gray-50, #F8FAFC); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.util-control { display: flex; align-items: center; gap: 8px; }
.util-lbl { font-size: 13px; font-weight: 700; color: var(--gray-600, #475569); }
.util-btn { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--gray-300, #cbd5e1); background: #fff; color: var(--gray-600, #475569); font-size: 13px; font-weight: 600; cursor: pointer; }
.util-btn:hover { border-color: var(--green); }
.util-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.util-method { font-size: 12px; color: var(--gray-500); line-height: 1.5; flex: 1; min-width: 260px; }
/* "Plans that match your needs" panel + card chips (compliant: factual, no superlatives) */
.match-panel { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #12191D 0%, #1F2A30 100%); color: #fff; }
.match-title { font-size: 17px; font-weight: 800; }
.match-sub { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 3px; line-height: 1.5; }
.match-sub strong { color: #fff; }
.match-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; } /* the top 4, as a 2 x 2 */
@media (max-width: 520px) { .match-cards { grid-template-columns: 1fr; } }
.match-card { background: #fff; color: var(--gray-800, #1e293b); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.match-rank { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--green); }
.match-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.match-carrier { font-size: 12px; color: var(--gray-500); }
.match-cost { font-size: 22px; font-weight: 800; color: #065F46; margin: 4px 0; }
.match-cost span { font-size: 12px; font-weight: 600; color: var(--gray-500); margin-left: 2px; }
.match-reasons { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.match-badge { font-size: 12px; font-weight: 600; color: var(--gray-600, #475569); }
.match-badge.ok { color: #047857; }
.match-actions { display: flex; gap: 8px; margin-top: auto; }
.match-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.match-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gray-100, #f1f5f9); color: var(--gray-600, #475569); }
.match-chip.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
/* Personalized "your costs & coverage on this plan" panel (plan detail overview) */
.pc-panel { margin: 0 0 28px; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid #A7F3D0; background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(16,185,129,.02)); }
.pc-head { font-size: 16px; font-weight: 800; color: #065F46; margin-bottom: 14px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pc-cost-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); }
.pc-cost-amt { font-size: 30px; font-weight: 800; color: #065F46; line-height: 1.1; margin: 2px 0 4px; }
.pc-cost-amt span { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.pc-cost-break { font-size: 12.5px; color: var(--gray-600, #475569); line-height: 1.6; }
.pc-cost-assume { color: var(--gray-500); }
.pc-caveat { margin-top: 8px; font-size: 12px; font-weight: 600; color: #B45309; }
.pc-list-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); margin-bottom: 8px; }
.pc-item { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.05); }
.pc-item:first-of-type { border-top: none; }
.pc-item strong { display: block; font-size: 14px; color: var(--gray-800, #1e293b); }
.pc-note { font-size: 12px; color: var(--gray-500); }
.pc-ok { color: var(--green); font-weight: 800; flex-shrink: 0; }
.pc-x { color: var(--red, #DC2626); font-weight: 800; flex-shrink: 0; }
/* Compare page — personalized "For your needs" rows */
.compare-row.cmp-section .label { background: #12191D; color: #fff; font-weight: 800; font-size: 13px; }
.compare-row.cmp-section { background: #12191D; }
.cmp-item { color: var(--gray-700, #334155); font-weight: 600; }
.cmp-cost { font-size: 18px; font-weight: 800; color: var(--gray-700, #334155); position: relative; }
.cmp-cost span { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.cmp-cost.cmp-low { color: #065F46; }
.cmp-low-tag { display: inline-block; margin-top: 2px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #047857; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 999px; padding: 1px 8px; }
.cmp-yes { color: #047857; font-weight: 600; font-size: 13px; }
.cmp-no { color: var(--gray-500); font-weight: 600; font-size: 13px; }
.cmp-note { max-width: 900px; margin: 16px auto 0; font-size: 12px; color: var(--gray-500); line-height: 1.6; text-align: center; }
/* Extra Help / LIS selector */
.prx-lis-note { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius); background: #ECFDF5; border: 1px solid #A7F3D0; font-size: 12px; line-height: 1.55; color: #065F46; }
.prx-lis-note strong { color: #065F46; }
.prx-lis-hint { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--gray-500); }
.lis-tag { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: #047857; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 999px; padding: 0 6px; vertical-align: middle; }
/* ===== Maria text assistant ===== */
.asst-launch { position: fixed; left: 20px; bottom: 20px; z-index: 145; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: none; border-radius: 40px; background: linear-gradient(135deg, #1F2A30, #9A4A10); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.asst-launch:hover { box-shadow: 0 8px 28px rgba(0,0,0,.32); }
.asst-launch-ico { font-size: 18px; }
.asst-panel { position: fixed; left: 20px; bottom: 20px; z-index: 146; width: 380px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 100px); background: #fff; border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-200); }
.asst-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #12191D, #1F2A30); color: #fff; }
.asst-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.asst-h-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.asst-h-text strong { font-size: 15px; }
.asst-h-text span { font-size: 11.5px; opacity: .8; }
.asst-close { background: transparent; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .8; padding: 4px; }
.asst-close:hover { opacity: 1; }
.asst-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--gray-50, #F8FAFC); }
.asst-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.asst-msg.asst-user { justify-content: flex-end; }
.asst-msg-ava { width: 26px; height: 26px; border-radius: 50%; background: #1F2A30; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.asst-bubble { padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; max-width: 82%; }
.asst-bot .asst-bubble { background: #fff; color: var(--gray-800, #1e293b); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.asst-user .asst-bubble { background: #9A4A10; color: #fff; border-bottom-right-radius: 4px; }
.asst-bubble a { color: #9A4A10; font-weight: 600; }
.asst-user .asst-bubble a { color: #fff; text-decoration: underline; }
.asst-ul { margin: 6px 0 2px; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; background: var(--gray-50, #F8FAFC); }
.asst-chip { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid #A7C6E0; background: #fff; color: #9A4A10; cursor: pointer; }
.asst-chip:hover { background: #EAF3FA; }
.asst-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--gray-200); background: #fff; }
.asst-input { flex: 1; border: 1px solid var(--gray-300, #cbd5e1); border-radius: 22px; padding: 10px 14px; font-size: 13.5px; outline: none; }
.asst-input:focus { border-color: #9A4A10; }
.asst-send { width: 40px; border: none; border-radius: 50%; background: #9A4A10; color: #fff; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.asst-send:hover { background: #005a96; }
.asst-disclaimer { font-size: 10.5px; color: var(--gray-500); padding: 0 14px 10px; line-height: 1.4; background: #fff; text-align: center; }
.asst-typing { display: inline-flex; gap: 4px; align-items: center; }
.asst-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400, #94a3b8); animation: asstblink 1.2s infinite both; }
.asst-typing span:nth-child(2) { animation-delay: .2s; }
.asst-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes asstblink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (max-width: 520px) { .asst-launch-txt { display: none; } .asst-panel { left: 10px; right: 10px; width: auto; } }
.drug-doses { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.drug-doses-lbl { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .4px; margin-right: 2px; }
.dose-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #EEF2FF; color: #3730A3; font-size: 12px; font-weight: 600; border: 1px solid #E0E7FF; }
.dose-chip-form { background: var(--gray-50); color: var(--gray-700); border-color: var(--gray-200); font-weight: 500; }
.cost-row.cost-row-est { background: #FBF3E4; margin: 0 -20px; padding: 8px 20px; border-bottom: 1px solid #F6E7CC; }
.cost-row.cost-row-est .cr-label { color: #7C3A0B; font-size: 14px; }
.cost-row .cr-val.cr-est { color: #1D4ED8; }
.cost-note { font-size: 11px; color: var(--gray-500); padding: 6px 0 2px; line-height: 1.4; }

/* Member coverage panel (plan detail, under plan name) */
.member-coverage-panel { margin-top: 18px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.mcov-header { font-size: 15px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; letter-spacing: .2px; }
.mcov-group + .mcov-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.mcov-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-500); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.mcov-count { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: none; letter-spacing: 0; }
.mcov-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--gray-100); }
.mcov-row:last-child { border-bottom: none; }
.mcov-icon { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; }
.mcov-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--gray-900); display: flex; flex-direction: column; line-height: 1.3; }
.mcov-sub { font-size: 12px; font-weight: 400; color: var(--gray-500); }
.mcov-status { font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.mcov-status.ok { color: var(--green); }
.mcov-status.no { color: var(--red, #DC2626); }
.mcov-status.warn { color: #B45309; }
.mcov-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--gray-200); font-size: 14px; font-weight: 800; color: var(--gray-900); }
.mcov-note { font-size: 11px; color: var(--gray-500); margin-top: 6px; line-height: 1.4; }

/* Benefits table */
.ben-section { margin-bottom: 32px; }
.ben-section h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.ben-row { display: flex; justify-content: space-between; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--gray-100); gap: 24px; }
.ben-row:last-child { border-bottom: none; }
.ben-name { font-weight: 600; color: var(--gray-700); font-size: 14px; min-width: 180px; }
.ben-val { font-size: 14px; color: var(--gray-900); text-align: right; }
.ben-val.good { color: var(--green); font-weight: 600; }
.ben-section h3 .ben-count { font-size: 12px; font-weight: 700; color: var(--green); background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 20px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.ben-sub { font-size: 13px; color: var(--gray-500); margin: -4px 0 14px; line-height: 1.5; }

/* ---- CMS Star Rating panel (plan detail) ---- */
.star-panel { margin: 0 0 28px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.star-panel-head { display: flex; gap: 22px; align-items: center; padding: 20px 22px; background: linear-gradient(135deg, rgba(27,63,110,.06), rgba(0,113,188,.02)); border-bottom: 1px solid var(--gray-200); }
.star-panel-score { text-align: center; flex-shrink: 0; min-width: 120px; }
.star-panel-num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.star-panel-num span { font-size: 18px; font-weight: 600; color: var(--gray-500); }
.star-panel-stars { margin: 6px 0 8px; }
.star-band { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 3px 12px; }
.star-band.sb-hi { background: #ECFDF5; color: #166534; border: 1px solid #A7F3D0; }
.star-band.sb-mid { background: #FEF9E7; color: #92400E; border: 1px solid #FDE68A; }
.star-band.sb-lo { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.star-band.sb-none { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }
.star-panel-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.star-panel-yr { font-size: 12px; font-weight: 600; color: var(--gray-500); background: var(--gray-100); border-radius: 6px; padding: 1px 7px; margin-left: 6px; }
.star-panel-about p { font-size: 14px; color: var(--gray-700); line-height: 1.55; }
.star-domains { padding: 16px 22px; }
.star-domains-lbl { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 12px; }
.star-domains-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.star-domain { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-sm); }
.star-domain .sd-ico { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.star-domain strong { display: block; font-size: 13px; color: var(--gray-900); }
.star-domain span { font-size: 12px; color: var(--gray-500); }
.star-panel-note { padding: 12px 22px; background: var(--gray-50); border-top: 1px solid var(--gray-200); font-size: 12.5px; color: var(--gray-500); }
.star-panel-note a { color: var(--accent); font-weight: 600; }

/* ---- Extra-benefit cards (benefits tab) ---- */
.xben-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.xben-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); background: #fff; }
.xben-card.xben-on { border-color: #A7F3D0; background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(16,185,129,.01)); }
.xben-card.xben-off { opacity: .6; }
.xben-ico { font-size: 24px; line-height: 1; flex-shrink: 0; }
.xben-body { min-width: 0; }
.xben-name { font-weight: 700; font-size: 14px; color: var(--gray-900); }
.xben-check { color: var(--green); margin-left: 2px; }
.xben-amt { font-size: 22px; font-weight: 800; color: #166534; margin: 3px 0 2px; line-height: 1.1; }
.xben-amt span { font-size: 12px; font-weight: 600; color: var(--gray-500); margin-left: 3px; }
.xben-amt.xben-cost { color: var(--gray-800); }
.xben-status { font-size: 13px; color: var(--gray-500); font-weight: 600; }
.xben-status.good { color: var(--green); }
.xben-detail { font-size: 12px; color: var(--gray-500); margin-top: 3px; line-height: 1.4; }

/* ---- Saved-profile note (plans sidebar) ---- */
.prx-saved-note { margin-top: 10px; font-size: 12px; color: #166534; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 6px; padding: 7px 10px; line-height: 1.5; }
.prx-saved-clear { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0 0 0 4px; text-decoration: underline; }

/* ---- Printable / savable plan summary ---- */
#summary-overlay { position: fixed; inset: 0; z-index: 3000; background: var(--gray-100); overflow: auto; padding: 24px 16px 64px; }
body.summary-open { overflow: hidden; }
.sumdoc-toolbar { max-width: 800px; margin: 0 auto 16px; display: flex; gap: 10px; justify-content: flex-end; }
.sumdoc { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 40px 44px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.sumdoc-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary); padding-bottom: 12px; }
.sumdoc-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--primary); }
.sumdoc-logo { background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 7px; border-radius: 4px; letter-spacing: 1px; }
.sumdoc-date { font-size: 12px; color: var(--gray-500); }
.sumdoc-title { font-size: 24px; font-weight: 800; color: var(--gray-900); margin: 18px 0 8px; }
.sumdoc-nonaffil { font-size: 11.5px; color: var(--gray-500); line-height: 1.5; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; padding: 8px 12px; margin-bottom: 20px; }
.sumdoc-sec { margin-bottom: 22px; }
.sumdoc-sec h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); border-bottom: 1px solid var(--gray-200); padding-bottom: 6px; margin-bottom: 10px; }
.sumdoc-kv { display: flex; justify-content: space-between; gap: 24px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dotted var(--gray-100); }
.sumdoc-kv span { color: var(--gray-600); }
.sumdoc-kv b { color: var(--gray-900); text-align: right; }
.sumdoc-cost { background: linear-gradient(135deg, rgba(16,185,129,.07), rgba(16,185,129,.02)); border: 1px solid #A7F3D0; border-radius: var(--radius-md); padding: 16px 18px; }
.sumdoc-cost h2 { border: none; margin-bottom: 4px; }
.sumdoc-total { font-size: 34px; font-weight: 800; color: #166534; line-height: 1; }
.sumdoc-total span { font-size: 15px; font-weight: 600; color: var(--gray-500); }
.sumdoc-break { font-size: 13px; color: var(--gray-700); margin-top: 6px; }
.sumdoc-assume { font-size: 12px; color: var(--gray-500); margin-top: 6px; line-height: 1.5; }
.sumdoc-caveat { font-size: 12px; color: #92400E; background: #FEF9E7; border: 1px solid #FDE68A; border-radius: 6px; padding: 7px 10px; margin-top: 8px; }
.sumdoc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sumdoc-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); border-bottom: 1px solid var(--gray-300); padding: 6px 8px; }
.sumdoc-table td { padding: 7px 8px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); vertical-align: top; }
.sumdoc-table .sd-pos { color: #166534; }
.sumdoc-table .sd-neg { color: #991B1B; }
.sumdoc-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--gray-200); font-size: 11.5px; color: var(--gray-500); line-height: 1.6; }
.sumdoc-foot p { margin-bottom: 8px; }
.sumdoc-gen { color: var(--gray-400); font-style: italic; }

@media print {
  body.summary-open > *:not(#summary-overlay) { display: none !important; }
  #summary-overlay { position: static; padding: 0; background: #fff; overflow: visible; }
  .sumdoc { max-width: none; border: none; box-shadow: none; padding: 0; }
  .no-print, elevenlabs-convai, #maria-ribbon, #asst-launch, #asst-panel { display: none !important; }
  .sumdoc-cost { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Drug tiers table */
.tier-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--gray-50); }
.tier-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.tier-1-bg { background: #D1FAE5; color: #065F46; }
.tier-2-bg { background: #F6E7CC; color: #7C3A0B; }
.tier-3-bg { background: #FEF3C7; color: #92400E; }
.tier-4-bg { background: #FCE7F3; color: #9D174D; }
.tier-5-bg { background: #EDE9FE; color: #5B21B6; }
.tier-info { flex: 1; }
.tier-name { font-weight: 700; font-size: 14px; color: var(--gray-900); }
.tier-desc { font-size: 12px; color: var(--gray-500); }
.tier-cost { text-align: right; font-weight: 700; color: var(--gray-900); font-size: 14px; }

/* ============================================================
   PROVIDERS PAGE
   ============================================================ */
.providers-page { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; padding: 32px 0 64px; }
.provider-card { background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 16px; transition: var(--transition); }
.provider-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.provider-avatar { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; flex-shrink: 0; }
.ptype-physician  { background: linear-gradient(135deg, #1F2A30, #3A4A52); }
.ptype-np         { background: linear-gradient(135deg, #2E8540, #52B461); }
.ptype-pa         { background: linear-gradient(135deg, #00695C, #26A69A); }
.ptype-surgeon    { background: linear-gradient(135deg, #CD2026, #E57373); }
.ptype-specialist { background: linear-gradient(135deg, #6B21A8, #9C27B0); }
.ptype-clinic     { background: linear-gradient(135deg, #F57C00, #FFA726); }
.ptype-hospital   { background: linear-gradient(135deg, #12191D, #37474F); }
.provider-body { flex: 1; }
.provider-name { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.provider-creds { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.provider-specialty-line { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.provider-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.provider-meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; color: var(--gray-700); margin-bottom: 10px; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-icon { opacity: 0.6; }
.provider-networks { font-size: 12px; color: var(--gray-500); }
.provider-actions { margin-top: 12px; display: flex; gap: 8px; }

/* ============================================================
   PHARMACY PAGE
   ============================================================ */
.pharm-card { background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 16px; transition: var(--transition); }
.pharm-card:hover { box-shadow: var(--shadow-md); }

/* Network status badges (used in pharmacy cards and legend) */
.net-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; border: 1px solid transparent; }
.net-badge.preferred { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.net-badge.retail    { background: #F6E7CC; color: #7C3A0B; border-color: #DDBF8A; }
.net-badge.mail      { background: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }
.net-badge.out       { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.net-badge.unknown   { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }

/* ============================================================
   DRUG COVERAGE PAGE
   ============================================================ */
.drugs-page { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; padding: 32px 0 64px; }
.drug-card { background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 20px; transition: var(--transition); }
.drug-card:hover { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.drug-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.drug-name { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.drug-generic { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.drug-class { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.4px; }
.drug-conditions { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.drug-coverage-list { margin-top: 12px; border-top: 1px solid var(--gray-200); padding-top: 12px; }
.dcov-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-xs); margin-bottom: 4px; background: var(--gray-50); font-size: 13px; }
.dcov-plan { font-weight: 600; color: var(--gray-700); flex: 1; }
.dcov-tier { }
.dcov-cost { font-weight: 600; color: var(--gray-900); }
.dcov-restrictions { display: flex; gap: 4px; }
.restriction-pill { font-size: 10px; font-weight: 700; background: #FFF3CD; color: #856404; padding: 2px 7px; border-radius: 10px; border: 1px solid #FFE083; }

/* ============================================================
   ENROLLMENT PAGE
   ============================================================ */
.enroll-wrap { max-width: 780px; margin: 0 auto; padding: 40px 0 64px; }
.enroll-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-300); padding: 40px; }
.enroll-plan-banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.enroll-plan-banner .plan-info strong { display: block; font-size: 18px; margin-bottom: 4px; }
.enroll-plan-banner .plan-info span { font-size: 14px; opacity: 0.8; }
.enroll-section { margin-bottom: 32px; }
.enroll-section h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.attestation-box { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 20px; font-size: 14px; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; }
.signature-box { border: 2px solid var(--accent); border-radius: var(--radius-sm); padding: 16px; background: #FBF3E4; }
.enroll-success { text-align: center; padding: 40px 20px; }
.enroll-success .success-icon { font-size: 64px; margin-bottom: 16px; }
.enroll-success h2 { font-size: 28px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.enroll-success p { font-size: 16px; color: var(--gray-600); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.enroll-confirm-card { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-md); padding: 24px; margin: 24px 0; text-align: left; }

/* ============================================================
   COMPARISON PAGE
   ============================================================ */
.compare-wrap { padding: 32px 0 64px; }
.compare-header-row { display: flex; gap: 16px; margin-bottom: 24px; }
.compare-plan-head { flex: 1; background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.compare-plan-head .cp-remove { float: right; background: none; border: none; color: var(--gray-400); font-size: 18px; cursor: pointer; }
.compare-plan-head .cp-remove:hover { color: var(--red); }
.compare-table { background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-md); overflow: hidden; }
.compare-row { display: grid; gap: 0; border-bottom: 1px solid var(--gray-200); }
.compare-row:last-child { border-bottom: none; }
.compare-cell { padding: 14px 16px; font-size: 14px; border-right: 1px solid var(--gray-200); }
.compare-cell:last-child { border-right: none; }
.compare-cell.label { font-weight: 700; color: var(--gray-700); background: var(--gray-50); font-size: 13px; }
.compare-cell.best { background: #EAF9EE; color: var(--green); font-weight: 700; }

/* ============================================================
   COMPARISON BAR
   ============================================================ */
.comparison-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary-dark); color: white; padding: 14px 24px; z-index: 150; transform: translateY(110%); transition: transform 0.3s ease; box-shadow: 0 -4px 16px rgba(0,0,0,0.25); }
.comparison-bar.show { transform: translateY(0); }
/* Fully hidden when empty (not just slid off-screen), so it can't peek in or be tabbed to. */
.comparison-bar:not(.show) { visibility: hidden; transition: transform 0.3s ease, visibility 0s linear 0.3s; }
.comparison-inner { display: flex; align-items: center; gap: 20px; }
.comparison-info { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.comparison-slots { display: flex; gap: 10px; flex: 1; overflow: hidden; }
.cslot { background: rgba(255,255,255,0.12); border: 1px dashed rgba(255,255,255,0.4); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cslot.filled { border-style: solid; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }
.cslot-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cslot-remove { cursor: pointer; opacity: 0.6; flex-shrink: 0; font-size: 16px; line-height: 1; }
.cslot-remove:hover { opacity: 1; }
.comparison-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: white; border-radius: var(--radius-lg); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 22px 24px 16px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 1; }
.modal-title { font-size: 20px; font-weight: 700; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--gray-400); line-height: 1; padding: 0 4px; }
.modal-close:hover { color: var(--gray-700); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--gray-900); color: white; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; max-width: 340px; }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.info    { background: var(--accent); }
@keyframes slideInRight { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }
.toast.removing { animation: fadeOut 0.3s ease forwards; }

/* ============================================================
   MISC / UTILITIES
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--gray-500); margin-bottom: 20px; }
.loading-spinner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px; color: var(--gray-500); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--gray-200); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); } 50% { box-shadow: 0 0 0 7px rgba(74,222,128,0.08); } }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.info-block { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--gray-700); }
.info-block strong { color: var(--gray-900); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 56px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.logo-cms-footer { font-size: 15px; padding: 4px 8px; }
.footer-logo .logo-text strong { font-size: 15px; }
.footer-logo .logo-text span { font-size: 11px; color: rgba(255,255,255,0.6); }
.footer-address { font-size: 14px; opacity: 0.7; line-height: 1.7; }
.site-footer h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(255,255,255,0.8); font-size: 14px; }
.site-footer ul a:hover { color: white; text-decoration: underline; }
.site-footer p { font-size: 14px; line-height: 1.7; }
.footer-hours { font-size: 13px; opacity: 0.65; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: 0.65; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* Phones and tablets: the real-example card sits under the headline (it used to be hidden). */
  .hero-right { margin-top: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .plans-page, .providers-page, .drugs-page { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; padding: 12px; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); z-index: 300; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-left h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .elig-card, .enroll-card { padding: 24px 20px; }
  .plan-costs-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-plan-head { padding: 14px; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .plan-card { padding: 16px; }
  .hero-cta { flex-direction: column; }
  .elig-nav { flex-direction: column; gap: 12px; }
}

/* ============================================================
   v2 CALL-TO-ENROLL PAGE
   Handoff surface that replaces the v1 self-serve enrollment form.
   ============================================================ */
.v2-call-hero { display: flex; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 28px 28px; border-radius: var(--radius-md); margin-bottom: 28px; }
.v2-call-hero-ic { font-size: 56px; line-height: 1; flex-shrink: 0; }
.v2-call-hero-body { flex: 1; min-width: 0; }
.v2-call-hero-label { font-size: 14px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.v2-call-hero-number { display: inline-block; font-size: 38px; font-weight: 700; color: white; text-decoration: none; letter-spacing: 0.5px; line-height: 1.1; }
.v2-call-hero-number:hover { text-decoration: underline; color: white; }
.v2-call-hero-sub { font-size: 13px; opacity: 0.9; margin-top: 8px; }

.v2-session-code { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #FFF8E1; border: 1px solid #F4C430; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 24px; font-size: 14px; color: var(--gray-700, #334155); }
.v2-session-code-value { font-family: 'Courier New', monospace; font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--primary); background: white; padding: 6px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--gray-400, #94a3b8); flex-shrink: 0; }

.v2-ready-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.v2-ready-list li { padding: 12px 14px; background: var(--gray-50, #f8fafc); border-radius: var(--radius-sm); border-left: 3px solid var(--primary); font-size: 14px; line-height: 1.5; }

.v2-conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v2-conf-card { background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200, #e2e8f0); border-radius: var(--radius-md); padding: 16px 18px; }
.v2-conf-title { font-weight: 700; color: var(--primary); font-size: 14px; margin-bottom: 10px; }
.v2-conf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.v2-conf-list li { padding: 6px 8px; background: white; border-radius: var(--radius-sm); border: 1px solid var(--gray-200, #e2e8f0); }
.v2-conf-empty { font-size: 13px; color: var(--gray-500, #64748b); font-style: italic; }
.v2-conf-note { margin-top: 12px; font-size: 13px; color: var(--gray-600, #475569); line-height: 1.5; }

.v2-flow { padding-left: 22px; margin: 0; display: grid; gap: 10px; }
.v2-flow li { font-size: 14px; line-height: 1.55; color: var(--gray-700, #334155); }

@media (max-width: 640px) {
  .v2-call-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
  .v2-call-hero-number { font-size: 30px; }
  .v2-conf-grid { grid-template-columns: 1fr; }
  .v2-session-code { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   COST PLUS DRUGS PRICING + COVERAGE-UNKNOWN STATES
   ============================================================ */
.prx-cpd-select { display: block; width: 100%; margin-top: 6px; padding: 4px 6px; font-size: 12px; border: 1px solid var(--gray-300, #cbd5e1); border-radius: 6px; background: #fff; color: var(--gray-700, #334155); }
.util-cpd { flex-direction: column; align-items: flex-start; gap: 6px; }
.cpd-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.cpd-toggle input { width: 16px; height: 16px; cursor: pointer; }
.cpd-note { font-size: 12px; line-height: 1.5; color: var(--gray-600, #475569); background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 6px; padding: 8px 10px; max-width: 720px; }
.cpd-disclose { color: var(--gray-500, #64748b); }
.est-cpd { margin-top: 6px; font-size: 12px; color: #047857; }
.mcov-cpd { display: block; margin-top: 3px; font-size: 12px; color: #047857; }
.mcov-cpd a { color: #047857; font-weight: 600; }
.mcov-cpd em { color: var(--gray-500, #64748b); font-style: normal; }
.mcov-cpd-total { margin-top: 6px; font-size: 13px; color: #047857; }
.match-chip.warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.pc-warn { color: #B45309; font-weight: 800; flex-shrink: 0; }
.cmp-unk { color: #B45309; font-weight: 600; font-size: 13px; }
.cmp-cpd { display: block; margin-left: 12px; font-size: 12px; color: #047857; }
/* Plan vs Cost Plus side-by-side table */
.cpc { margin-top: 10px; border: 1px solid #BBF7D0; border-radius: 8px; background: #fff; overflow-x: auto; }
.cpc-title { padding: 8px 12px; font-size: 13px; font-weight: 700; color: #065F46; background: #F0FDF4; border-bottom: 1px solid #BBF7D0; }
.cpc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cpc-table th { text-align: left; padding: 6px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-500, #64748b); border-bottom: 1px solid var(--gray-200, #e2e8f0); }
.cpc-table td { padding: 8px 12px; border-bottom: 1px solid var(--gray-100, #f1f5f9); vertical-align: top; color: var(--gray-700, #334155); }
.cpc-table td strong { color: var(--gray-900, #0f172a); }
.cpc-yr { display: block; font-size: 12px; color: var(--gray-500, #64748b); }
.cpc-str { color: var(--gray-500, #64748b); font-size: 12px; }
.cpc-table a { text-decoration: none; }
.cpc-low { background: #ECFDF5; }
.cpc-low strong { color: #047857; }
.cpc-na { color: var(--gray-500, #64748b); font-style: italic; }
.cpc-diff { font-size: 12px; }
.cpc-total td { border-bottom: none; border-top: 2px solid var(--gray-200, #e2e8f0); font-weight: 600; }
.cpc-foot { padding: 8px 12px; font-size: 11.5px; line-height: 1.5; color: var(--gray-500, #64748b); border-top: 1px solid var(--gray-100, #f1f5f9); }
@media (max-width: 640px) { .cpc-table th, .cpc-table td { padding: 6px 8px; } }

/* Cost Plus in-network preview (demo mode only) */
.cpd-net-toggle { margin-top: 6px; }
.cpc-preview { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; vertical-align: 1px; }
.cpc-preview-note { padding: 6px 12px; font-size: 12px; line-height: 1.5; color: #92400E; background: #FFFBEB; border-bottom: 1px solid #FDE68A; }
.cpc-net .cpc-table th, .cpc-net .cpc-table td { padding: 6px 8px; }
.cpc-net .cpc-table th { font-size: 10.5px; white-space: normal; }


/* ---- v3: Cost Plus comparison as the centerpiece ---- */
.hero-example { background: #fff; color: var(--gray-900); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-lg); }
.hx-tag { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); }
.hx-drugs { font-size: 14px; color: var(--gray-500); margin: 2px 0 12px; }
.hx-plan { border-top: 1px solid var(--gray-200); padding: 10px 0; }
.hx-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.hx-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 2px 0; }
.hx-row b { font-variant-numeric: tabular-nums; }
.hx-low { color: #047857; font-weight: 600; }
.hx-low b { font-size: 18px; }
.hx-note { font-size: 13px; color: var(--gray-700); margin-top: 2px; }
.hx-fine { font-size: 11.5px; line-height: 1.45; color: var(--gray-500); border-top: 1px solid var(--gray-200); padding-top: 8px; }
.hiw-steps.hiw-3 { grid-template-columns: repeat(3, 1fr); }
.hiw-note { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 18px; }
@media (max-width: 768px) { .hiw-steps.hiw-3 { grid-template-columns: 1fr; } }

.cps-panel { background: #fff; border: 1px solid #BBF7D0; border-left: 5px solid #047857; border-radius: var(--radius-lg); margin: 0 0 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cps-head { padding: 14px 16px 10px; background: #F0FDF4; border-bottom: 1px solid #BBF7D0; }
.cps-title { font-size: 18px; font-weight: 800; color: #065F46; }
.cps-sub { font-size: 14.5px; color: var(--gray-700); margin-top: 2px; }
.cps-sub strong { color: #065F46; }
.cps-scroll { overflow-x: auto; }
.cps-table td { font-size: 14px; }
.cps-table td:last-child { white-space: nowrap; }
.cps-empty { background: #F0FDF4; border: 1px dashed #86EFAC; border-radius: var(--radius-lg); padding: 14px 16px; margin: 0 0 18px; font-size: 15px; color: #065F46; }
.match-cpd { font-size: 12.5px; font-weight: 600; color: #047857; }
.match-cpd s { color: var(--gray-500); font-weight: 400; }
.match-cpd.neutral { color: var(--gray-500); font-weight: 400; }
.cps-table .cpc-str { display: block; }


/* ---- v3: wide layout ---- */
.filter-sidebar { overflow-x: hidden; }
.plans-results { container-type: inline-size; }
@container (min-width: 720px) { .match-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 780px) {
  .plans-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .plans-list > .plan-card:has(details[open]) { grid-column: 1 / -1; } /* an opened drug table gets the full width */
}
.card-cpc { margin-top: 10px; border: 1px solid #BBF7D0; border-radius: 8px; background: #F0FDF4; }
.card-cpc > summary { cursor: pointer; list-style: none; padding: 9px 12px; font-size: 14px; color: #065F46; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.card-cpc > summary::-webkit-details-marker { display: none; }
.card-cpc-open { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.card-cpc-open::after { content: ' ▾'; }
.card-cpc[open] .card-cpc-open::after { content: ' ▴'; }
.card-cpc .cpc { margin: 0; border: none; border-top: 1px solid #BBF7D0; border-radius: 0 0 8px 8px; }

/* v3: drug, pharmacy and provider results as a grid instead of one card per row */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 14px; align-items: start; }

/* ---- v3: legal pages ---- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 32px 0 64px; font-size: 16.5px; line-height: 1.7; color: var(--gray-700); }
.legal-wrap h2 { font-size: 21px; color: var(--primary-dark); margin: 28px 0 8px; }
.legal-wrap p { margin: 0 0 12px; }
.legal-wrap ul { list-style: disc; padding-left: 22px; margin: 0 0 12px; }
.legal-wrap li { margin: 4px 0; }
.legal-short { background: #F0FDF4; border: 1px solid #BBF7D0; border-left: 5px solid #047857; border-radius: var(--radius-md); padding: 14px 20px; margin-bottom: 8px; }
.legal-short h2 { margin-top: 0; color: #065F46; }
.legal-note { font-size: 14.5px; color: var(--gray-500); }


/* =====================================================================
   OpenBookPlans identity ("almanac"): warm paper, ink, a marigold ribbon.
   Deliberately unlike Medicare.gov: no government blue, no .gov-style
   top strip, bookish type. Body type is Lexend (designed around reading-
   fluency research; plain zeros for prices), 17px base.
   ===================================================================== */
:root {
  --ink: #1F2A30; --ink-2: #3A4A52; --ink-3: #6B5E4B;
  --paper: #FBF7EF; --paper-2: #F3ECDF; --rule: #E3D9C6; --cream: #F6E7CC;
  --marigold: #E8A33D; --rust: #9A4A10; --rust-dark: #7C3A0B;
  --primary: var(--ink); --primary-dark: #12191D; --primary-light: var(--ink-2);
  --accent: var(--rust); --accent-hover: var(--rust-dark);
  --gray-100: #F7F2E8; --gray-900: var(--ink);
  --font: 'Lexend', 'Segoe UI', Tahoma, sans-serif;
  --display: 'Literata', Georgia, 'Times New Roman', serif;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
}
body { font-size: 17px; color: var(--ink); background: var(--paper); }
h1, h2, .section-header h2, .page-hero h1, .hero-left h1, .match-title, .cps-title, .stat-num,
.legal-wrap h2, .prx-sidebar-header h3, .logo-text strong { font-family: var(--display); letter-spacing: -0.01em; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

/* Header: light paper masthead with a hairline rule, not a navy government bar */
.site-header { background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 6px 18px -14px rgba(31,42,48,.35); }
.main-nav { background: var(--paper); }
.nav-inner { height: 74px; }
.nav-logo, .nav-logo:hover { color: var(--ink); }
.logo-mark { width: 44px; height: 35px; flex-shrink: 0; }
.logo-text strong { color: var(--ink); font-size: 22px; font-weight: 700; }
.logo-text span { color: var(--ink-3); font-size: 12.5px; font-style: italic; }
.nav-link { color: var(--ink); font-weight: 700; font-size: 16px; border-radius: 0; padding: 10px 12px; border-bottom: 3px solid transparent; }
.nav-link:hover { background: transparent; color: var(--rust); border-bottom-color: var(--rule); }
.nav-link.active { background: transparent; color: var(--ink); border-bottom-color: var(--marigold); }
.nav-toggle span { background: var(--ink); }
@media (max-width: 768px) { .nav-links { background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 10px 20px -12px rgba(31,42,48,.4); } }

/* The disclaimer now sits under the masthead as a quiet note (not a .gov-style top strip) */
.gov-banner { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink-3); font-size: 13px; padding: 6px 0; font-style: italic; }
.enrollment-banner { background: var(--cream); color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--rule); }
.enrollment-banner a { color: var(--rust-dark); text-decoration: underline; }
.enrollment-banner.aep { background: var(--marigold); color: var(--ink); }
.enrollment-banner.aep a { color: var(--ink); }
.enrollment-banner.oep { background: var(--cream); color: var(--ink); }

/* Section labels and buttons */
.section-tag { background: var(--cream); color: var(--rust-dark); border: 1px solid #EBD9B5; letter-spacing: .12em; }
.section-header h2 { color: var(--ink); font-weight: 700; }
.btn { border-radius: 10px; }
.btn-primary { box-shadow: 0 2px 0 var(--rust-dark); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

/* Home: a ruled almanac page */
.home-hero { color: var(--ink); background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(154,74,16,.07) 35px 36px);
  border-bottom: 1px solid var(--rule); padding: 64px 0 56px; }
.home-hero::after { display: none; }
.hero-left h1 { color: var(--ink); font-size: 52px; line-height: 1.08; font-weight: 700; }
.hero-left h1 em { color: var(--rust); font-style: italic; background: linear-gradient(transparent 68%, rgba(232,163,61,.45) 68%); padding: 0 .08em; }
.hero-left p { color: var(--ink-2); opacity: 1; }
.home-hero .btn-outline-white { color: var(--ink); border-color: var(--ink); background: rgba(255,255,255,.6); }
.home-hero .btn-outline-white:hover { background: var(--ink); color: var(--paper); }
.hero-example { position: relative; border: 1px solid var(--rule); border-radius: 6px 16px 16px 6px; box-shadow: -6px 0 0 -2px var(--paper-2), -12px 0 0 -4px var(--rule), 0 24px 48px -24px rgba(31,42,48,.45); }
.hero-example .hx-tag { padding-right: 52px; }  /* keep the tag clear of the bookmark ribbon */
.hero-example::before { content: ''; position: absolute; top: -7px; right: 30px; width: 24px; height: 52px; background: var(--marigold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); box-shadow: inset 0 6px 0 rgba(0,0,0,.08); }
.hx-tag { color: var(--rust-dark); }
.hx-name { font-family: var(--display); font-size: 17px; }
.stat-box { background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.stat-num { color: var(--rust); font-weight: 700; }
.stat-lbl { color: var(--ink-2); opacity: 1; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-left > *, .hero-example, .stat-box { animation: obp-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-left > :nth-child(2) { animation-delay: .06s; } .hero-left > :nth-child(3) { animation-delay: .12s; }
  .hero-left > :nth-child(4) { animation-delay: .18s; } .hero-example { animation-delay: .22s; }
  .stat-box:nth-child(1) { animation-delay: .3s; } .stat-box:nth-child(2) { animation-delay: .36s; } .stat-box:nth-child(3) { animation-delay: .42s; }
}
@keyframes obp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Inner pages: a paper title band instead of the navy gradient */
.page-hero { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--rule); }
.page-hero h1 { color: var(--ink); font-size: 32px; }
.page-hero p { color: var(--ink-2); opacity: 1; }
.breadcrumb { opacity: 1; color: var(--ink-3); }
.breadcrumb a { color: var(--rust); }

/* Panels */
.match-panel { background: var(--ink); background-image: none; }
.match-title { font-size: 19px; font-weight: 700; }
.prx-sidebar-header { background: var(--ink); }
.prx-sidebar-header strong { color: var(--marigold); }
.plan-card, .card, .filter-sidebar, .prx-sidebar { border-color: var(--rule); }

/* Footer: deep ink with warm type */
.site-footer { background: var(--ink); color: rgba(251,247,239,.86); }
.site-footer h4 { color: #E8C89A; }
.site-footer ul a, .footer-links a { color: rgba(251,247,239,.82); }
.site-footer ul a:hover, .footer-links a:hover { color: #fff; }
.footer-logo .logo-text strong { color: var(--paper); }
.footer-logo .logo-text span { color: #E8C89A; }
.match-rank { font-size: 11px; letter-spacing: .03em; }
@media (max-width: 768px) { .site-header { position: static; } .enrollment-banner { font-size: 13.5px; padding: 8px 14px; } .gov-banner { font-size: 12px; } }
@media (max-width: 768px) { .hero-left h1 { font-size: 36px; } .home-hero { padding: 36px 0 40px; } .page-hero h1 { font-size: 26px; } }
@media (max-width: 768px) { .main-nav { position: relative; } }

/* Official plan documents (carrier links) */
.official-docs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--cream); border: 1px solid #EBD9B5; border-left: 5px solid var(--marigold); border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; }
.official-docs-text { flex: 1 1 380px; }
.official-docs-text p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.official-docs-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Plan year switch (js/years.js) */
.year-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.year-switch-lbl { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.year-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 16px; border: 2px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font-family: var(--font); text-align: left; }
.year-btn strong { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.year-btn span { font-size: 12.5px; color: var(--ink-3); }
.year-btn:hover { border-color: var(--marigold); }
.year-btn.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.year-btn.active span { color: #E8C89A; }
.year-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #FBF3E4; border: 1px solid #EBD9B5; border-left: 5px solid var(--marigold); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; color: var(--ink); }
.year-note-text { flex: 1 1 420px; }
.year-btn.active { cursor: default; }
.year-btn.coming, .year-btn.coming:hover { background: transparent; border-style: dashed; border-color: #CFC3AC; color: var(--ink-3); cursor: not-allowed; opacity: .75; }
.year-btn.coming span { font-style: italic; }

/* Doctor network status: only a carrier directory confirms "in network" */
.mcov-status.warn { color: #8A5A00; }
.mcov-status.na { color: var(--ink-3); }
.match-badge.warn { color: #8A5A00; }

/* Suggestion box (js/legal.js renderSuggest) */
.suggest-form { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.suggest-kinds { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; margin: 0 0 6px; background: #fff; }
.suggest-kinds legend { font-weight: 700; padding: 0 6px; }
.suggest-kind { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 17px; cursor: pointer; }
.suggest-kind input { width: 20px; height: 20px; accent-color: var(--rust, #9A4A10); }
.suggest-label { font-weight: 700; margin-top: 6px; }
.suggest-form textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--rule); border-radius: 12px; background: #fff; resize: vertical; }
.suggest-form textarea:focus { outline: none; border-color: var(--marigold, #E8A33D); }
.suggest-note { font-size: 14.5px; color: var(--ink-3); margin: 0; }
.suggest-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.suggest-msg { min-height: 1.5em; font-size: 15px; }
.suggest-msg.err { color: #9B1C1C; font-weight: 600; }
.suggest-form .btn { align-self: flex-start; }
.suggest-thanks { background: #FBF3E4; border: 1px solid #EBD9B5; border-left: 5px solid var(--marigold, #E8A33D); border-radius: 12px; padding: 8px 20px 12px; }
.suggest-inline { font-size: 14.5px; margin-left: auto; }
.suggest-inline-p { font-size: 14.5px; margin-top: 6px; }
.results-toolbar { gap: 12px; flex-wrap: wrap; }

/* Phones: the drug tables (Cost Plus panel and each plan's drug-by-drug table) stack instead of
   running off the right edge. Each cell shows its column name (data-label, set by app.js from the
   table header). */
@media (max-width: 640px) {
  .cpc-table thead { display: none; }
  .cpc-table, .cpc-table tbody { display: block; width: 100%; }
  .cpc-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 12px; border-bottom: 1px solid var(--gray-200, #e2e8f0); }
  .cpc-table td { display: block; padding: 0 !important; border: 0; white-space: normal !important; }
  .cpc-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .cpc-table td:last-child { grid-column: 1 / -1; }
  .cpc-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--gray-500, #64748b); margin-bottom: 2px; }
  .cpc-table td.cpc-low { border-radius: 6px; padding: 4px 6px !important; }
  .cps-scroll, .cpc { overflow-x: visible; }
}


/* Phones and tablets (one column): the filter and prescription panels sit above the plan list, so they
   must scroll with the page. As desktop-style scroll boxes that held the scroll (overscroll-behavior:
   contain), a swipe that started on them got stuck there on Android; iPhones were more forgiving
   (feedback, 2026-10-19). */
@media (max-width: 1024px) {
  .filter-sidebar, .prx-sidebar { max-height: none; overflow-y: visible; overflow-x: clip; overscroll-behavior: auto; }
  .filter-sidebar .filter-header, .prx-sidebar-header { position: static; }
}

/* ZIP codes that cover more than one county, or only a known state: county choices under the ZIP box */
.zip-county-pick { display: block; margin-top: 6px; font-size: 13px; color: var(--gray-700, #374151); }
.zip-county-btn { margin: 4px 4px 0 0; padding: 3px 10px; border: 1px solid var(--gray-300, #CBD5E1); border-radius: 14px; background: #fff; font-size: 13px; cursor: pointer; }
.zip-county-btn:hover { border-color: var(--primary, #1F2A30); }
.zip-county-select { margin-top: 6px; font-size: 14px; }

/* Links to a drug on costplusdrugs.com: solid green where buying there lowers the year, outlined otherwise */
.cpd-cta { display: inline-block; margin-top: 6px; padding: 5px 10px; border: 1px solid #047857; border-radius: 6px; background: #fff; color: #047857; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: normal; }
.cpd-cta:hover { background: #ECFDF5; }
.cpd-cta-go { background: #047857; color: #fff; }
.cpd-cta-go:hover { background: #065F46; color: #fff; }
.cpc-table td .cpd-cta { display: table; }
.card-cpc.has-cta { border-radius: 8px 8px 0 0; border-bottom: none; }
.card-cpc-cta { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; border: 1px solid #BBF7D0; border-top: none; border-radius: 0 0 8px 8px; background: #F0FDF4; }
.card-cpc-cta .cpd-cta { margin-top: 0; }

/* OpenBookPlans Help (js/helper.js, 2026-10-20): the old assistant styles above, in the site's colors */
.asst-launch { background: var(--primary-dark, #1F2A30); }
.asst-launch-ico, .asst-ava, .asst-msg-ava { font-weight: 800; }
.asst-chip { border-color: #E3C9A8; color: #7A3B0C; }
.asst-chip:hover { background: #FBF3E8; }
.asst-chip-more { border-style: dashed; }
.asst-send:hover { background: #7A3B0C; }
.asst-group { margin: 8px 0 4px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500, #64748b); }
.asst-group:first-child { margin-top: 0; }
.asst-bubble p { margin: 6px 0 0; }
.asst-bubble .asst-chip { margin: 0 4px 4px 0; }
.asst-chips:empty { display: none; }
.comparison-bar.show ~ .asst-launch { bottom: 96px; }   /* stay above the compare bar */
@media print { .asst-launch, .asst-panel { display: none !important; } }

/* Phones/tablets, Compare My Drugs (2026-10-22): the steps in order. ZIP, then "Your prescriptions"
   and doctors, then the plans. The prescriptions panel used to sit below ~60 plan cards (45,000px
   down on a phone), so most visitors from the Facebook ad never found where to add their drugs.
   The other filters fold behind a "More filters" button. */
.filters-toggle { display: none; }
@media (max-width: 1024px) {
  .plans-page > .filter-sidebar { order: 1; }
  .plans-page > .prx-sidebar { order: 2; }
  .plans-page > :not(aside) { order: 3; }
  .plans-page .filter-sidebar:not(.filters-open) .filter-section:not(.zip-search-section) { display: none; }
  .plans-page .filters-toggle { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px dashed var(--gray-300, #CBD5E1); border-radius: 8px; background: #fff; color: #7A3B0C; font-weight: 700; font-size: 14px; cursor: pointer; }
}

/* Suggestion Box: fixes that came from suggestions (js/legal.js SUGGEST_FIXES) */
.suggest-fixes { margin-top: 28px; padding: 18px 20px; border: 1px solid #BBF7D0; border-radius: 10px; background: #F0FDF4; }
.suggest-fixes h2 { margin: 0 0 10px; font-size: 18px; color: #065F46; }
.suggest-fixes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.suggest-fix-date { display: block; font-size: 12px; font-weight: 700; color: var(--gray-500, #64748b); }

/* Drug Prices page (js/pricecheck.js, 2026-10-22) */
.pc-page { max-width: 760px; margin: 0 auto; padding: 24px 0 64px; display: flex; flex-direction: column; gap: 18px; }
.pc-search { position: relative; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 18px 20px; }
.pc-label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--gray-700, #374151); }
.pc-input { font-size: 17px; padding: 12px 14px; }
.pc-results { display: flex; flex-direction: column; margin-top: 8px; }
.pc-hit { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; cursor: pointer; margin-top: 6px; font-size: 15px; }
.pc-hit:hover { background: #F0FDF4; border-color: #86EFAC; }
.pc-hit-name { font-weight: 700; }
.pc-hit-meta { font-size: 12px; color: var(--gray-500, #64748b); white-space: nowrap; }
.pc-hint, .pc-note { font-size: 12.5px; color: var(--gray-500, #64748b); margin: 10px 0 0; }
.pc-none { font-size: 14px; color: var(--gray-700, #374151); margin-top: 8px; }
.pc-card { background: #fff; border: 1px solid #BBF7D0; border-left: 5px solid #047857; border-radius: var(--radius-lg); padding: 18px 20px; }
.pc-card h2 { margin: 0 0 12px; font-size: 20px; }
.pc-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gray-100, #F1F5F9); }
.pc-opt:first-child { border-top: none; }
.pc-opt-name { font-weight: 700; grid-column: 1; }
.pc-opt-price { grid-column: 1; font-size: 14.5px; }
.pc-opt .cpd-cta { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.pc-ship, .pc-year { color: var(--gray-500, #64748b); font-size: 12.5px; }
.pc-year { display: block; }
.pc-brand { font-weight: 400; color: var(--gray-500, #64748b); }
.pc-compare { border-color: var(--gray-300); border-left-color: var(--primary, #1F2A30); }
.pc-compare p { margin: 0 0 12px; font-size: 14.5px; }
.pc-zip-row { display: flex; gap: 8px; }
.pc-zip-row input { max-width: 160px; }
#pc-strength { margin-bottom: 10px; }
.pc-msg { margin-top: 8px; font-size: 13.5px; color: #7A3B0C; }
.pc-again { text-align: center; margin: 0; }
@media (max-width: 560px) {
  .pc-opt { grid-template-columns: 1fr; }
  .pc-opt .cpd-cta { grid-column: 1; grid-row: auto; justify-self: start; }
}
/* Cost Plus price on Drug Coverage cards */
.drug-cpd { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: #F0FDF4; border: 1px solid #BBF7D0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.drug-cpd .cpd-cta { margin-top: 0; }

/* Top menu: the full row needs ~1,240px (six items since 2026-10-22). Narrower screens use the menu button,
   so the page never scrolls sideways (it did at ~1,000px wide once Suggestion Box was added). */
@media (max-width: 1240px) {
  .main-nav { position: relative; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; padding: 12px; position: absolute; top: 100%; left: 0; right: 0; z-index: 300;
    background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 10px 20px -12px rgba(31,42,48,.4); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
