/* Revision 11: client round 11 (convert). Loaded after the r6 files. */

/* ==========================================================================
   Insurance and financing (page-templates/template-insurance.php)
   Client item 9: the page now carries everything eliteod.com publishes on
   insurance and payment. Sections: participating plans by specialty, how
   benefits differ, how insurance is handled, ways to pay, HSA and FSA,
   questions. The home insurance summary is not touched here.
   ========================================================================== */

/* ---- Participating plans: one card per specialty ----------------------- */
.page-template-template-insurance .plan-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 0.8rem + 1.5vw, 1.75rem); }
.page-template-template-insurance .plan-card {
  position: relative; height: 100%; border-radius: 1.25rem; border-color: var(--line-soft, #efedf5);
  box-shadow: 0 1px 2px rgba(26, 18, 54, 0.04), 0 24px 50px -40px rgba(26, 18, 54, 0.45);
}
.page-template-template-insurance .plan-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ortho);
}
.page-template-template-insurance .plan-card--ped::before { background: var(--ped); }
.page-template-template-insurance .plan-card .card__body { height: 100%; padding: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); gap: 1.35rem; }
.page-template-template-insurance .plan-card__head { display: flex; align-items: flex-start; align-self: stretch; gap: 1rem; }
.page-template-template-insurance .plan-card__head .disc { width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; }
.page-template-template-insurance .plan-card__title { display: grid; justify-items: start; gap: 0.4rem; min-width: 0; }
.page-template-template-insurance .plan-card__title h3 {
  margin: 0.15rem 0 0; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); line-height: 1.12; letter-spacing: -0.028em;
}
.page-template-template-insurance .plan-card__who { margin: 0; color: var(--body); font-size: var(--fs-sm); line-height: 1.45; text-wrap: pretty; }

.page-template-template-insurance .plans-list {
  display: grid; align-self: stretch; column-gap: 1.5rem; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line-soft, #efedf5);
}
.page-template-template-insurance .plans-list__item {
  display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); align-items: start; gap: 0.75rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft, #efedf5);
}
.page-template-template-insurance .plans-list__mark { padding-top: 0.2rem; color: var(--ortho); line-height: 0; }
.page-template-template-insurance .plan-card--ped .plans-list__mark { color: var(--ped); }
.page-template-template-insurance .plans-list__text { display: grid; gap: 0.15rem; min-width: 0; }
.page-template-template-insurance .plans-list__name { color: var(--ink); font-family: var(--display); font-size: 1.02rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.page-template-template-insurance .plans-list__type { color: var(--body); font-size: var(--fs-sm); line-height: 1.45; text-wrap: pretty; }
.page-template-template-insurance .plan-card__acts { align-self: stretch; margin-top: auto; padding-top: 0.25rem; }
.page-template-template-insurance .plan-card__panel { display: grid; align-self: stretch; gap: 1.25rem; }
/* The first carriers, named while the list is folded on a phone. */
.page-template-template-insurance .plan-card__sum { display: none; }

.page-template-template-insurance .plan-card__note {
  display: flex; align-items: flex-start; align-self: stretch; gap: 0.65rem; padding: 0.9rem 1.05rem;
  border-radius: 0.8rem; background: var(--ped-tint); color: var(--body-strong, #3c3450); font-size: var(--fs-sm); line-height: 1.5;
}
.page-template-template-insurance .plan-card__note svg { flex-shrink: 0; margin-top: 1px; color: var(--ped); }

/* Under the two lists: when they were checked, the printable list, the small
   print and a call to check a plan. */
.page-template-template-insurance .plan-meta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem;
  margin-top: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); padding: 1.15rem 1.5rem;
  border: 1px solid var(--line-soft, #efedf5); border-radius: 1rem; background: var(--mist);
}
.page-template-template-insurance .plan-meta__facts { display: grid; justify-items: start; gap: 0.45rem; }
.page-template-template-insurance .plan-meta__date,
.page-template-template-insurance .plan-meta__pdf {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--ink); font-size: var(--fs-sm); font-weight: 700; line-height: 1.35;
}
.page-template-template-insurance .plan-meta__pdf { color: var(--ortho); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-template-template-insurance .plan-meta__pdf:hover { color: var(--ortho-dark); }
.page-template-template-insurance .plan-meta svg { flex-shrink: 0; color: var(--ortho); }
.page-template-template-insurance .plan-meta__small { max-width: 64ch; margin: 0; color: var(--body); font-size: var(--fs-sm); line-height: 1.5; text-wrap: pretty; }
.page-template-template-insurance .plan-meta__call { min-height: 48px; white-space: nowrap; }

/* ---- How benefits differ: four short cards ------------------------------ */
.page-template-template-insurance .benefit-grid { align-items: stretch; gap: 1.25rem; }
.page-template-template-insurance .benefit-card { height: 100%; border-radius: 1.2rem; border-color: var(--line-soft, #efedf5); }
.page-template-template-insurance .benefit-card .card__body { height: 100%; padding: 1.6rem 1.5rem 1.7rem; gap: 0.85rem; }
.page-template-template-insurance .benefit-card .fold-head { display: grid; justify-items: start; align-self: stretch; gap: 1rem; }
.page-template-template-insurance .benefit-card .fold-head > h3 { margin: 0; font-size: 1.2rem; line-height: 1.22; letter-spacing: -0.02em; }
.page-template-template-insurance .benefit-grid > .benefit-card .card__body > .fold-panel { margin: 0; color: var(--body-strong, var(--body)); font-size: 0.97rem; line-height: 1.6; text-wrap: pretty; }

/* ---- How insurance is handled: the stepper on a white section ----------- */
.page-template-template-insurance .ins-next .stepper { background: var(--paper); }

/* ---- Ways to pay: the dark card and what is agreed up front ------------- */
.page-template-template-insurance .pay-terms { border-radius: 1.25rem; border-color: var(--line-soft, #efedf5); }
.page-template-template-insurance .pay-terms__list { display: grid; align-self: stretch; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.page-template-template-insurance .pay-terms__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line-soft, #efedf5);
}
.page-template-template-insurance .pay-terms__item:first-child { padding-top: 0.4rem; border-top: 0; }
.page-template-template-insurance .pay-terms__item .disc { width: 44px; height: 44px; border-radius: 0.8rem; }
.page-template-template-insurance .pay-terms__item h4 {
  margin: 0; color: var(--ink); font-family: var(--display); font-size: 1.12rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em;
}
.page-template-template-insurance .pay-terms__item .fold-panel { margin: 0.3rem 0 0; color: var(--body); font-size: 0.93rem; line-height: 1.55; }
.page-template-template-insurance .pay-terms__acts {
  align-self: stretch; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-soft, #efedf5);
}

/* ---- HSA and FSA --------------------------------------------------------- */
.page-template-template-insurance .hsa-grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); }
.page-template-template-insurance .hsa-card { border-radius: 1.25rem; border-color: var(--line-soft, #efedf5); }
.page-template-template-insurance .hsa-card .card__body { height: 100%; padding: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); gap: 1.2rem; }
.page-template-template-insurance .hsa-card h3 { margin: 0; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; }
.page-template-template-insurance .hsa-list { display: grid; align-self: stretch; gap: 0.75rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.page-template-template-insurance .hsa-list li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.page-template-template-insurance .hsa-list svg {
  flex-shrink: 0; box-sizing: content-box; width: 12px; height: 12px; margin-top: 1px; padding: 4px; border-radius: 50%;
  background: var(--lane-tint, var(--ortho-tint)); color: var(--lane, var(--ortho));
}
.page-template-template-insurance .hsa-card__note {
  align-self: stretch; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-soft, #efedf5);
  color: var(--body); font-size: var(--fs-sm); line-height: 1.5;
}
.page-template-template-insurance .hsa-tips { display: grid; gap: 1rem; }
.page-template-template-insurance .hsa-tip {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 1rem;
  padding: 1.25rem 1.4rem; border: 1px solid var(--line-soft, #efedf5); border-radius: 1.1rem; background: var(--mist);
}
.page-template-template-insurance .hsa-tip h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.015em; }
.page-template-template-insurance .hsa-tip p { margin: 0.3rem 0 0; color: var(--body); font-size: 0.95rem; line-height: 1.55; }

/* The practice's own articles on cost and tax, under the HSA and FSA notes. */
.page-template-template-insurance .ins-reads { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.page-template-template-insurance .ins-reads__k {
  margin: 0 0 0.85rem; color: var(--ortho); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.page-template-template-insurance .ins-reads__list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.page-template-template-insurance .ins-reads__list .go-link { display: flex; justify-content: space-between; width: 100%; height: 100%; text-align: left; }
@media (min-width: 48rem) {
  .page-template-template-insurance .ins-reads__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Wider screens ------------------------------------------------------- */
@media (min-width: 40rem) {
  .page-template-template-insurance .plans-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .page-template-template-insurance .plans-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Wide desktop: each specialty is one wide card, its heading and booking on
   the left and the carriers beside them, so the two cards need not match. */
@media (min-width: 80rem) {
  .page-template-template-insurance .plan-card .card__body {
    display: grid; grid-template-columns: minmax(0, 22.5rem) minmax(0, 1fr); grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 1rem + 2.5vw, 3.5rem); row-gap: 1.25rem; align-items: start;
  }
  .page-template-template-insurance .plan-card__head { grid-column: 1; grid-row: 1; }
  .page-template-template-insurance .plan-card__title h3 { font-size: clamp(1.45rem, 1.1rem + 0.6vw, 1.7rem); }
  .page-template-template-insurance .plan-card__acts { grid-column: 1; grid-row: 2; align-self: end; margin: 0; padding: 0; }
  .page-template-template-insurance .plan-card__panel { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 48rem) {
  .page-template-template-insurance .hsa-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  /* The list beside the four tips, two by two, each tip's icon above it. */
  .page-template-template-insurance .hsa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .page-template-template-insurance .hsa-list { grid-template-columns: minmax(0, 1fr); }
  .page-template-template-insurance .hsa-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .page-template-template-insurance .hsa-tip { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.85rem; padding: 1.35rem 1.35rem 1.45rem; }
}

/* ---- Tablet -------------------------------------------------------------- */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .page-template-template-insurance .plan-meta { grid-template-columns: minmax(0, 1fr) auto; }
  .page-template-template-insurance .plan-meta__small { grid-column: 1 / -1; grid-row: 2; }
  .page-template-template-insurance .plan-meta__call { grid-column: 2; grid-row: 1; }
}

/* ---- Phones -------------------------------------------------------------- */
@media (max-width: 47.99rem) {
  /* Each list folds behind its heading, as the ways to pay do; the first
     carriers are named until it opens. */
  .page-template-template-insurance .plan-card .card__body { gap: 1rem; }
  .page-template-template-insurance .plan-card__head { align-items: center; }
  .page-template-template-insurance .plan-card__head .disc { display: none; }
  .page-template-template-insurance .plan-card__title { flex: 1; }
  .page-template-template-insurance .plan-card__title h3 { font-size: 1.35rem; }
  .page-template-template-insurance .plan-card--ped .fold-btn { color: var(--ped); }
  .r2-js .page-template-template-insurance .plan-card:not(.is-open) .plan-card__sum {
    display: flex; align-items: flex-start; gap: 0.55rem; margin: 0; padding: 0.8rem 0 0.1rem;
    border-top: 1px solid var(--line-soft, #efedf5); color: var(--ink); font-size: 0.95rem; font-weight: 600; line-height: 1.45;
  }
  .page-template-template-insurance .plans-list__item { padding: 0.7rem 0; }
  .page-template-template-insurance .plan-card__acts .btn { width: 100%; }

  .page-template-template-insurance .plan-meta { grid-template-columns: 1fr; padding: 1.1rem; }
  .page-template-template-insurance .plan-meta__call { width: 100%; justify-content: center; }

  /* Each benefit is a row that opens, as the ways to pay do. */
  .page-template-template-insurance .benefit-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .page-template-template-insurance .benefit-card .card__body { padding: 0.8rem 0.9rem 0.8rem 1rem; gap: 0; }
  .page-template-template-insurance .benefit-card .fold-head { display: flex; align-items: center; gap: 0.8rem; }
  .page-template-template-insurance .benefit-card .fold-head > h3 { flex: 1; font-size: 1.05rem; }
  .page-template-template-insurance .benefit-grid > .benefit-card .card__body > .fold-panel { margin: 0.7rem 0 0.25rem; font-size: 0.95rem; }

  .page-template-template-insurance .pay-terms__item { padding-block: 0.7rem; }
  .page-template-template-insurance .pay-terms__item .fold-head { min-height: 44px; }
  .page-template-template-insurance .pay-terms__item .fold-head > h4 { font-size: 1.02rem; }
  .page-template-template-insurance .pay-terms__acts .btn { width: 100%; }

  .page-template-template-insurance .hsa-tip { padding: 1rem 1.1rem; }
}
