/*
 * JJ Freedom Agenda Enhancer — Health & Freedom Plan section styles.
 *
 * Scoped entirely under .jj-freedom-health-plan so nothing here
 * touches global element styles (h1-h6, p, a, ul, button, body).
 * Palette matches the site's existing campaign colors:
 *   navy  #0A123C / #174176   red #af2023   white #ffffff
 */

 .jj-freedom-health-plan {
  --jjfhp-navy: #0a123c;
  --jjfhp-navy-light: #174176;
  --jjfhp-red: #af2023;
  --jjfhp-white: #ffffff;
  --jjfhp-bg-soft: #f7f7f9;
  --jjfhp-border: #dbdbdb;
  --jjfhp-text: #4c4d4f;

  display: block;
  background: var(--jjfhp-white);
  color: var(--jjfhp-text);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
}

.jj-freedom-health-plan *,
.jj-freedom-health-plan *::before,
.jj-freedom-health-plan *::after {
  box-sizing: inherit;
}

.jj-freedom-health-plan .jjfhp-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.jj-freedom-health-plan .jjfhp-container--wide {
  max-width: 1180px;
}

/* ---------- Hero ---------- */

.jj-freedom-health-plan .jjfhp-hero {
  text-align: center;
  margin-bottom: 40px;
}

.jj-freedom-health-plan .jjfhp-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jjfhp-red);
}

.jj-freedom-health-plan .jjfhp-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
  font-style: italic;
  color: var(--jjfhp-navy-light);
}

.jj-freedom-health-plan .jjfhp-divider {
  width: 72px;
  height: 4px;
  margin: 22px auto 0;
  background: var(--jjfhp-red);
  border-radius: 2px;
}

/* ---------- Intro summary ---------- */

.jj-freedom-health-plan .jjfhp-intro {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 22px 26px;
  background: var(--jjfhp-bg-soft);
  border-left: 4px solid var(--jjfhp-red);
  border-radius: 4px;
}

.jj-freedom-health-plan .jjfhp-intro p {
  margin: 0;
  font-size: 17px;
  text-align: center;
  color: var(--jjfhp-navy);
}

/* Page-level agenda intro: plain (no box/border), matches the site's
   original centered intro treatment instead of the boxed callout used
   for the shorter standalone Health Plan intro above. */
.jj-freedom-health-plan .jjfhp-intro--agenda {
  max-width: 780px;
  padding: 0 20px;
  background: transparent;
  border-left: 0;
  border-radius: 0;
}

.jj-freedom-health-plan .jjfhp-intro--agenda .jjfhp-block-emphasis {
  margin: 0 0 22px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-intro--agenda .jjfhp-block-paragraph {
  color: var(--jjfhp-text);
  font-size: 16px;
  text-align: center;
}

.jj-freedom-health-plan .jjfhp-block-highlight-line,
.jj-freedom-health-plan .jjfhp-intro--agenda .jjfhp-block-highlight-line {
  margin: 20px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--jjfhp-red) !important;
}

/* ---------- Shared section heading ---------- */

.jj-freedom-health-plan .jjfhp-section {
  margin-bottom: 48px;
}

.jj-freedom-health-plan .jjfhp-section-heading {
  margin: 0 0 22px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--jjfhp-navy);
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}

.jj-freedom-health-plan .jjfhp-section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--jjfhp-red);
  border-radius: 2px;
}

.jj-freedom-health-plan .jjfhp-section-heading--inverse {
  color: var(--jjfhp-white);
}

/* ---------- Policy topics accordion ---------- */

.jj-freedom-health-plan .jjfhp-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jj-freedom-health-plan .jjfhp-accordion-item {
  background: var(--jjfhp-white);
  border: 1px solid var(--jjfhp-border);
  border-left: 4px solid var(--jjfhp-navy-light);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jj-freedom-health-plan .jjfhp-accordion-item.is-open {
  border-left-color: var(--jjfhp-red);
  box-shadow: 0 4px 14px rgba(10, 18, 60, 0.08);
}

.jj-freedom-health-plan .jjfhp-accordion-header {
  margin: 0;
}

.jj-freedom-health-plan .jjfhp-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.jj-freedom-health-plan .jjfhp-accordion-trigger:focus-visible {
  outline: 2px solid var(--jjfhp-red);
  outline-offset: -2px;
}

.jj-freedom-health-plan .jjfhp-accordion-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-accordion-icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}

.jj-freedom-health-plan .jjfhp-accordion-icon::before,
.jj-freedom-health-plan .jjfhp-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--jjfhp-red);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.jj-freedom-health-plan .jjfhp-accordion-icon::before {
  width: 14px;
  height: 2px;
}

.jj-freedom-health-plan .jjfhp-accordion-icon::after {
  width: 2px;
  height: 14px;
}

.jj-freedom-health-plan .jjfhp-accordion-item.is-open .jjfhp-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

/* Smooth expand/collapse: the panel is always in the DOM (not [hidden]);
   its grid row animates between 0fr (collapsed) and 1fr (open), and the
   inner wrapper clips overflow so content never peeks out while closed. */
.jj-freedom-health-plan .jjfhp-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.jj-freedom-health-plan .jjfhp-accordion-item.is-open .jjfhp-accordion-panel {
  grid-template-rows: 1fr;
}

.jj-freedom-health-plan .jjfhp-accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.jj-freedom-health-plan .jjfhp-accordion-panel-inner_block {
  padding: 20px 20px 20px;
}

.jj-freedom-health-plan .jjfhp-accordion-panel-inner > p:first-child,
.jj-freedom-health-plan .jjfhp-accordion-panel-inner > h3:first-child,
.jj-freedom-health-plan .jjfhp-accordion-panel-inner > .jjfhp-block-subtitle:first-child {
  margin-top: 20px;
}

/* ---------- Top-level policy sections (navy headers, matches site's original accordion look) ---------- */

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-item {
  border: 0;
  border-left: 5px solid var(--jjfhp-red);
  border-radius: 4px;
  /* box-shadow would be invisible here (clipped by this element's own
     overflow:hidden, needed for the rounded corners) — drop-shadow is a
     filter effect and isn't clipped the same way. */
  filter: drop-shadow(0 2px 6px rgba(10, 18, 60, 0.18));
}

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-trigger {
  background: var(--jjfhp-navy);
  padding: 20px 24px;
  transition: background 0.2s ease;
}

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-trigger:hover {
  background: var(--jjfhp-navy-light);
}

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-title {
  color: var(--jjfhp-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
	text-transform:uppercase;
}

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-icon::before,
.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-icon::after {
  background: var(--jjfhp-white);
}

.jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-panel-inner {
  padding: 0;
}

/* ---------- Nested accordion (Health Plan topic cards) ---------- */

.jj-freedom-health-plan .jjfhp-accordion--nested {
  margin-top: 6px;
}

.jj-freedom-health-plan .jjfhp-accordion--nested .jjfhp-accordion-trigger {
  padding: 14px 18px;
}

.jj-freedom-health-plan .jjfhp-accordion--nested .jjfhp-accordion-title {
  font-size: 15px;
}

/* ---------- Generic content blocks (used inside accordion panels) ---------- */

.jj-freedom-health-plan .jjfhp-block-heading {
  margin: 4px 0 6px;
  font-size: clamp(18px, 2.6vw, 22px) !important;
  font-weight: 800;
  line-height: 1.3;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-block-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jjfhp-red);
}

.jj-freedom-health-plan .jjfhp-block-paragraph {
  margin: 0 0 16px;
  color: var(--jjfhp-text);
  line-height: 1.7;
}

.jj-freedom-health-plan .jjfhp-block-paragraph:last-child {
  margin-bottom: 0;
}

.jj-freedom-health-plan .jjfhp-block-emphasis {
  margin: 4px 0 20px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--jjfhp-navy);
}

.jjfhp-block-emphasis strong {
	font-size: clamp(26px, 5.4vw, 30px) !important;
}

.jj-freedom-health-plan .jjfhp-block-divider {
  border: 0;
  height: 2px;
  margin: 26px 0;
  background: linear-gradient(90deg, transparent, var(--jjfhp-red), transparent);
  opacity: 0.6;
}

.jj-freedom-health-plan .jjfhp-block-image {
  margin: 20px 0 26px;
  text-align: center;
}

.jj-freedom-health-plan .jjfhp-block-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(10, 18, 60, 0.15);
}

.jj-freedom-health-plan .jjfhp-quote {
  margin: 20px 0;
  padding: 22px 26px;
  background: var(--jjfhp-bg-soft);
  border-left: 4px solid var(--jjfhp-red);
  border-radius: 0 6px 6px 0;
}

.jj-freedom-health-plan .jjfhp-quote--navy {
  border-left-color: var(--jjfhp-navy-light);
  font-style: italic;
}

.jj-freedom-health-plan .jjfhp-quote p {
  margin: 0;
  color: var(--jjfhp-navy);
  line-height: 1.7;
}

.jj-freedom-health-plan .jjfhp-quote-cite {
  display: block;
  margin-top: 12px;
  text-align: right;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-callout {
  margin: 20px 0;
  padding: 24px 28px;
  background: rgba(175, 32, 35, 0.05);
  border-left: 4px solid var(--jjfhp-red);
  border-radius: 0 6px 6px 0;
}

.jj-freedom-health-plan .jjfhp-callout-heading {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-callout p {
  margin: 0 0 14px;
  color: var(--jjfhp-text);
  line-height: 1.7;
}

.jj-freedom-health-plan .jjfhp-callout p:last-child {
  margin-bottom: 0;
}

.jj-freedom-health-plan .jjfhp-policy-point {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--jjfhp-bg-soft);
  border-left: 4px solid var(--jjfhp-navy);
  border-radius: 6px;
}

.jj-freedom-health-plan .jjfhp-policy-point h4 {
  margin: 0 0 10px;
  font-size: 16px !important;
  font-weight: 800;
  color: var(--jjfhp-navy);
}

.jj-freedom-health-plan .jjfhp-policy-point p {
  margin: 0 0 12px;
  color: var(--jjfhp-text);
  line-height: 1.65;
}

.jj-freedom-health-plan .jjfhp-policy-point p:last-child {
  margin-bottom: 0;
}

.jj-freedom-health-plan .jjfhp-block-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.jj-freedom-health-plan .jjfhp-block-list:first-child {
  margin-top: 0;
}

.jj-freedom-health-plan .jjfhp-block-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--jjfhp-text);
  line-height: 1.6;
}

.jj-freedom-health-plan .jjfhp-block-list li:last-child {
  margin-bottom: 0;
}

.jj-freedom-health-plan .jjfhp-block-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--jjfhp-red);
  font-weight: 700;
}

.jj-freedom-health-plan .jjfhp-block-list li strong {
  color: var(--jjfhp-navy);
}

/* ---------- Policy topic grid (title + icon cards) ---------- */

.jj-freedom-health-plan .jjfhp-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jj-freedom-health-plan .jjfhp-topic-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--jjfhp-bg-soft);
  border: 1px solid var(--jjfhp-border);
  border-left: 4px solid var(--jjfhp-navy);
  border-radius: 6px;
}

.jj-freedom-health-plan .jjfhp-topic-icon {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--jjfhp-navy);
  color: var(--jjfhp-white);
  font-size: 16px;
}

.jj-freedom-health-plan .jjfhp-topic-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--jjfhp-navy);
  line-height: 1.35;
}

/* ---------- MAHA record ---------- */

.jj-freedom-health-plan .jjfhp-record {
  background: var(--jjfhp-navy);
  border-radius: 8px;
  padding: 36px 26px;
}

.jj-freedom-health-plan .jjfhp-checklist--inverse li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.jj-freedom-health-plan .jjfhp-checklist--inverse li span:last-child {
  color: rgba(255, 255, 255, 0.92);
}

.jj-freedom-health-plan .jjfhp-checklist--inverse .jjfhp-check-icon {
  background: var(--jjfhp-red);
}

.jj-freedom-health-plan .jjfhp-record-box {
  max-width: 800px;
  margin: 0 auto;
}

.jj-freedom-health-plan .jjfhp-record-box p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
}

.jj-freedom-health-plan .jjfhp-record-box p:last-of-type {
  margin-bottom: 0;
}

.jj-freedom-health-plan .jjfhp-record-intro {
  font-weight: 700;
  color: var(--jjfhp-white) !important;
  text-align: center;
}

.jj-freedom-health-plan .jjfhp-video-embed {
  margin-top: 24px;
  text-align: center;
}

.jj-freedom-health-plan .jjfhp-video-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: var(--jjfhp-red);
  color: var(--jjfhp-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--jjfhp-red);
  transition: background 0.2s ease, color 0.2s ease;
}

.jj-freedom-health-plan .jjfhp-video-link:hover,
.jj-freedom-health-plan .jjfhp-video-link:focus-visible {
  background: transparent;
  color: var(--jjfhp-white);
  border-color: var(--jjfhp-white);
}

.jj-freedom-health-plan .jjfhp-video-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

/* ---------- A James Administration Will ---------- */

.jj-freedom-health-plan .jjfhp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.jj-freedom-health-plan .jjfhp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--jjfhp-bg-soft);
  border: 1px solid var(--jjfhp-border);
  border-radius: 6px;
}

.jj-freedom-health-plan .jjfhp-check-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--jjfhp-navy);
  position: relative;
}

.jj-freedom-health-plan .jjfhp-check-icon::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--jjfhp-white);
  border-bottom: 2px solid var(--jjfhp-white);
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- Closing statement ---------- */

.jj-freedom-health-plan .jjfhp-closing {
  margin-top: 8px;
  padding: 26px;
  text-align: center;
  border-top: 3px solid var(--jjfhp-red);
}

.jj-freedom-health-plan .jjfhp-closing p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--jjfhp-navy);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .jj-freedom-health-plan .jjfhp-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .jj-freedom-health-plan .jjfhp-container {
    padding: 36px 16px 48px;
  }

  .jj-freedom-health-plan .jjfhp-checklist,
  .jj-freedom-health-plan .jjfhp-topic-grid {
    grid-template-columns: 1fr;
  }

  .jj-freedom-health-plan .jjfhp-record {
    padding: 28px 18px;
  }

  .jj-freedom-health-plan .jjfhp-accordion-trigger {
    padding: 16px;
  }

  .jj-freedom-health-plan .jjfhp-accordion--top .jjfhp-accordion-title {
    font-size: 14px;
  }

  .jj-freedom-health-plan .jjfhp-quote,
  .jj-freedom-health-plan .jjfhp-callout,
  .jj-freedom-health-plan .jjfhp-policy-point {
    padding: 16px 18px;
  }
}
