/* Your Benefits, revamped (V2 3.12.0, 2026-11-10). Loaded on /your-benefits/ only, after residency-stipend.css.

   Owner: "too bland... a bit repetitive in structure with the text boxes, not dynamic enough... make this pop off the
   page". Every part now has its own form instead of a heading over another set of boxes:
   - the opening: the statement beside Tribal Health's own clinicians, with a Deep Green "at a glance" band laid over
     the photograph's foot (the tuition figure counts to 100 once);
   - what your benefits include: one panel, the six plans in a ruled grid, each with a drawn mark;
   - on assignment: a Deep Green panel beside the Great Plains at sunrise;
   - beyond the basics: the training photograph and three tinted tiles, one per group;
   - the residency stipend leads with $2,500 at full size; its journey, terms and questions are unchanged;
   - a closing card.
   The marks draw once as each group arrives (pages/benefits.js); without JavaScript or with reduced motion they rest
   drawn. Sections are spaced with padding: the flow reset zeroes the margins of top-level blocks. */

.bn6{--bn-sec:clamp(76px,8.4vw,124px)}

/* ---------- Opening ---------- */
.bn6-open{padding:clamp(28px,3.6vw,52px) 0 0}
.bn6-open-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);column-gap:clamp(36px,5vw,84px);align-items:end}
.bn6-open-text{align-self:center;padding:clamp(8px,1vw,16px) 0 clamp(84px,8.6vw,128px)}
.bn6-open h1{margin:0 0 22px;max-width:13ch;font-size:clamp(42px,4.6vw,66px);line-height:1.03;letter-spacing:-.018em}
.bn6-open .th-lede{margin:0;max-width:44ch;font-size:clamp(17px,1.35vw,19px);line-height:1.6;color:var(--th-basalt)}
.bn6-open .th-actions{margin-top:30px}
.bn6-open-photo{align-self:stretch;margin:0;min-height:clamp(380px,36vw,540px);border-radius:26px;overflow:hidden;background:var(--th-cream)}
.bn6-open-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:36% 28%}

/* the band sits over the photograph's foot, one benefit per column */
.bn6-glance{grid-column:1/-1;position:relative;z-index:1;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 0;margin:calc(-1 * clamp(48px,5.4vw,80px)) 0 0;padding:clamp(26px,2.8vw,40px) clamp(28px,3.4vw,52px);border-radius:24px;background:var(--th-juniper);box-shadow:0 34px 60px -40px rgba(28,36,32,.7)}
.bn6-glance li{margin:0;padding:0 clamp(16px,2vw,32px);border-left:1px solid rgba(199,213,164,.32)}
.bn6-glance li:first-child{padding-left:0;border-left:0}
.bn6-glance b{display:block;font-family:THLora,Lora,Georgia,serif;font-weight:500;font-size:clamp(30px,3.1vw,46px);line-height:1.02;letter-spacing:-.015em;color:var(--th-lperidot);font-variant-numeric:lining-nums tabular-nums;word-spacing:-.06em;white-space:nowrap}
.bn6-glance span{display:block;margin-top:10px;font-size:clamp(14.5px,1.1vw,16px);line-height:1.4;color:#fff}

/* ---------- Section heads ---------- */
.bn6-head{margin:0 0 clamp(30px,3.2vw,46px)}
.bn6-head h2{margin:0!important;font-size:clamp(34px,3.35vw,48px);line-height:1.08;letter-spacing:-.012em}
.bn6-head p{margin:14px 0 0;max-width:60ch;font-size:17px;line-height:1.6;color:var(--th-basalt)}

/* ---------- What your benefits include ---------- */
.bn6-cover{padding:var(--bn-sec) 0 0}
.bn6-index{display:none}
.bn6-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border-radius:26px;overflow:hidden;background:var(--th-cream);box-shadow:inset 0 0 0 1px var(--th-line)}
.bn6-plans>div{margin:0;padding:clamp(28px,2.8vw,40px) clamp(24px,2.6vw,40px) clamp(30px,3vw,44px);scroll-margin-top:calc(var(--th-head-h) + 16px)}
.bn6-plans>div:nth-child(-n+3){border-bottom:1px solid var(--th-line)}
.bn6-plans>div:not(:nth-child(3n)){border-right:1px solid var(--th-line)}
.bn6-plans dt{display:flex;flex-direction:column;align-items:flex-start;gap:22px;margin:0 0 12px;font-family:THLora,Lora,Georgia,serif;font-weight:500;font-size:clamp(23px,2vw,28px);line-height:1.15;color:var(--th-basalt)}
.bn6-plans dd{margin:0;padding:0;font-size:16.5px;line-height:1.5;color:var(--th-basalt)}
.bn6-plans dd+dd{margin-top:12px;padding-top:12px;border-top:1px solid var(--th-line)}

/* the marks: Deep Green lines, one Sedona detail */
.bn6-ico{display:block;flex:none;width:52px;height:52px;fill:none;stroke:var(--th-juniper);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.bn6-ico .a{stroke:var(--th-sedona)}
.bn6-plans .bn6-ico{width:72px;height:72px;padding:15px;border-radius:50%;background:#DFE5C9;stroke-width:2.1}
.bn6-plans>div:nth-child(1){--d:0}.bn6-plans>div:nth-child(2){--d:1}.bn6-plans>div:nth-child(3){--d:2}
.bn6-plans>div:nth-child(4){--d:3}.bn6-plans>div:nth-child(5){--d:4}.bn6-plans>div:nth-child(6){--d:5}
.bn6-perk--edu{--d:0}.bn6-perk--well{--d:1}.bn6-perk--extra{--d:2}
[data-bn-draw].is-armed .bn6-ico *{stroke-dasharray:1 1;stroke-dashoffset:1}
[data-bn-draw].is-on .bn6-ico *{stroke-dashoffset:0;transition:stroke-dashoffset .9s cubic-bezier(.55,0,.25,1) calc(var(--d,0) * 130ms)}
[data-bn-draw].is-on .bn6-ico .a{transition-delay:calc(var(--d,0) * 130ms + 420ms)}

/* ---------- On assignment ---------- */
.bn6-assign{padding:var(--bn-sec) 0 0}
.bn6-assign-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-radius:28px;overflow:hidden;background:var(--th-juniper);color:#fff}
.bn6-assign-photo{position:relative;margin:0;min-height:100%}
.bn6-assign-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:46% 60%}
.bn6-assign-text{padding:clamp(40px,5vw,80px) clamp(32px,4.6vw,76px)}
.bn6-assign h2{margin:0 0 22px;font-size:clamp(34px,3.35vw,48px);line-height:1.08;letter-spacing:-.012em;color:#fff}
.bn6-assign .bn6-quote{margin:0 0 26px;max-width:30ch;font-family:THLora,Lora,Georgia,serif;font-size:clamp(22px,2vw,28px);line-height:1.38;color:var(--th-lperidot)}
.bn6-assign-text p{margin:0;max-width:52ch;font-size:16.5px;line-height:1.65;color:#fff}
.bn6-assign-text .bn6-note{margin-top:24px;padding-top:20px;border-top:1px solid rgba(199,213,164,.3);font-size:14.5px;line-height:1.55;color:var(--th-cream)}

/* ---------- Beyond the basics ---------- */
.bn6-beyond{padding:var(--bn-sec) 0 0}
.bn6-perks{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));grid-template-rows:auto auto 1fr;gap:0 clamp(12px,1.3vw,18px)}
.bn6-perks-photo{grid-row:span 3;position:relative;margin:0;min-height:clamp(340px,30vw,420px);border-radius:24px;overflow:hidden;background:var(--th-cream)}
.bn6-perks-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 45%}
.bn6-perk{grid-row:span 3;display:grid;grid-template-rows:subgrid;align-content:start;padding:clamp(26px,2.6vw,36px) clamp(22px,2.2vw,30px) clamp(18px,2vw,26px);border-radius:24px;background:var(--th-cream)}
.bn6-perk--edu{background:var(--th-lperidot)}
.bn6-perk--well{background:#D6DEBA}
.bn6-perk--extra{background:#E6E6D0}
.bn6-perk .bn6-ico{width:64px;height:64px}
.bn6-perk h3{margin:30px 0 12px;font-family:THLora,Lora,Georgia,serif;font-weight:500;font-size:clamp(22px,1.9vw,26px);line-height:1.18;color:var(--th-basalt);text-wrap:balance}
.bn6-perk ul{list-style:none;margin:0;padding:0}
.bn6-perk li{margin:0;padding:12px 0;border-top:1px solid rgba(63,82,44,.24);font-size:16px;line-height:1.45;color:var(--th-basalt)}

/* ---------- Residency stipend: $2,500 at full size ---------- */
.bn6 .bn5-res{padding:var(--bn-sec) 0 clamp(64px,7vw,104px)}
.bn6 .bn5-res-top{align-items:center}
.bn6 .bn5-res-fig{max-width:24ch;margin:4px 0 22px;font-size:clamp(22px,2vw,27px);line-height:1.3}
.bn6 .bn5-res-fig b{display:block;margin:0 0 8px;font-size:clamp(78px,8.6vw,132px);line-height:.92;letter-spacing:-.035em;color:var(--th-juniper);font-variant-numeric:lining-nums}
.bn6 .bn5-res #eligibility{padding:clamp(28px,3vw,44px) clamp(26px,3vw,44px)}
/* How it works: the six terms as a grid of three across, each under a rule */
.bn6 .bn5-res-detail{grid-template-columns:minmax(0,1fr);gap:clamp(56px,6vw,88px)}
.bn6 .bn5-res-detail h3{margin:0 0 22px;font-size:clamp(26px,2.4vw,34px);line-height:1.15}
.bn6 [aria-labelledby="rs-how-title"] .th-terms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(28px,3.4vw,56px);border-top:0}
.bn6 [aria-labelledby="rs-how-title"] .th-terms>div{display:block;padding:20px 0 28px;border-bottom:0;border-top:1px solid var(--th-line-strong)}
.bn6 [aria-labelledby="rs-how-title"] .th-terms dt{margin:0 0 8px;font-family:THLora,Lora,Georgia,serif;font-weight:500;font-size:clamp(20px,1.6vw,22px);line-height:1.25}
.bn6 [aria-labelledby="rs-how-title"] .th-terms dd{font-size:16px;line-height:1.6}
/* What you get beyond the stipend: one Deep Green panel, the providers' words and the commitment beside the reasons */
.bn6 [aria-labelledby="rs-benefits-title"]{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"h t" "q t" "b t";grid-template-rows:auto auto 1fr;column-gap:clamp(36px,5vw,84px);padding:clamp(34px,4vw,60px) clamp(28px,4vw,60px);border-radius:28px;background:var(--th-juniper);color:#fff}
.bn6 [aria-labelledby="rs-benefits-title"] h3{grid-area:h;color:#fff}
.bn6 [aria-labelledby="rs-benefits-title"] .bn5-res-quote{grid-area:q;margin:0 0 32px;font-size:clamp(22px,2vw,28px);line-height:1.38;color:var(--th-lperidot)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-terms{grid-area:t;align-self:start;border-top:1px solid rgba(199,213,164,.35)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-terms>div{grid-template-columns:minmax(0,13em) minmax(0,1fr);border-bottom:1px solid rgba(199,213,164,.22)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-terms>div:last-child{border-bottom:0}
.bn6 [aria-labelledby="rs-benefits-title"] .th-terms dt{color:#fff;font-weight:600}
.bn6 [aria-labelledby="rs-benefits-title"] .th-terms dd{color:var(--th-cream)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-fig--bars{grid-area:b;align-self:end;margin:0}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars{gap:16px}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars li{grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars b{font-size:15px;color:#fff}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars-value{font-family:THLora,Lora,Georgia,serif;font-size:22px;line-height:1;color:#fff}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars-track{grid-column:1/-1;grid-row:2;height:14px;border-radius:7px;background:rgba(255,255,255,.12)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars-fill{border-radius:7px;background:rgba(255,255,255,.38)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars li:first-child .th-bars-fill{background:var(--th-lperidot)}
.bn6 [aria-labelledby="rs-benefits-title"] .th-bars li:first-child .th-bars-value{color:var(--th-lperidot)}

/* ---------- Close ---------- */
.bn6-close{padding:0 0 var(--bn-sec)}
.bn6-close-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px clamp(32px,4vw,64px);padding:clamp(30px,3.4vw,52px) clamp(28px,3.6vw,56px);border-radius:26px;background:var(--th-cream);box-shadow:inset 0 0 0 1px var(--th-line)}
.bn6-close h2{margin:0;max-width:24ch;font-size:clamp(28px,2.7vw,40px);line-height:1.14;letter-spacing:-.01em}
.bn6-close .th-actions{margin:0}

/* ---------- Tablets ---------- */
@media (max-width:1100px){
  /* the opening stacks so the photograph is wide enough for all three clinicians */
  .bn6-open-grid{grid-template-columns:minmax(0,1fr)}
  .bn6-open-text{padding-bottom:0}
  .bn6-open h1{max-width:16ch}
  .bn6-open .th-lede{max-width:60ch}
  .bn6-open-photo{align-self:auto;min-height:0;margin-top:clamp(28px,4vw,40px);aspect-ratio:2/1}
  .bn6-open-photo img{object-position:50% 30%}
  .bn6-glance{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:26px}
  .bn6-glance li:nth-child(3){padding-left:0;border-left:0}
  .bn6-plans{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bn6-plans>div{border-right:0!important;border-bottom:1px solid var(--th-line)}
  .bn6-plans>div:nth-child(odd){border-right:1px solid var(--th-line)!important}
  .bn6-plans>div:nth-last-child(-n+2){border-bottom:0}
  .bn6-perks{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;row-gap:clamp(12px,1.3vw,18px)}
  .bn6-perks-photo{grid-column:1/-1;grid-row:auto;min-height:0;aspect-ratio:21/9}
  .bn6-perk{row-gap:0}
  .bn6 [aria-labelledby="rs-benefits-title"]{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "q" "b" "t";grid-template-rows:none}
  .bn6 [aria-labelledby="rs-benefits-title"] .bn5-res-quote{max-width:40ch}
  .bn6 [aria-labelledby="rs-benefits-title"] .th-fig--bars{max-width:560px;margin:0 0 32px}
}
@media (max-width:900px){
  .bn6-assign-panel{grid-template-columns:minmax(0,1fr)}
  .bn6-assign-photo{min-height:0;aspect-ratio:16/9}
  .bn6-close-card{grid-template-columns:minmax(0,1fr)}
  .bn6 [aria-labelledby="rs-how-title"] .th-terms{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- Phones ---------- */
@media (max-width:760px){
  .bn6-open h1{font-size:clamp(36px,10vw,44px)}
  .bn6-open-photo{border-radius:20px;aspect-ratio:4/3}
  /* phones: one benefit per ruled row, the figure beside what it means */
  .bn6-glance{grid-template-columns:minmax(0,1fr);row-gap:0;margin-top:-40px;padding:8px 22px;border-radius:20px}
  .bn6-glance li,.bn6-glance li:nth-child(3){display:grid;grid-template-columns:minmax(0,53%) minmax(0,1fr);align-items:baseline;column-gap:14px;padding:16px 0;border-left:0}
  .bn6-glance li+li{border-top:1px solid rgba(199,213,164,.28)}
  .bn6-glance b{font-size:clamp(21px,6.6vw,28px)}
  .bn6-glance span{margin:0;font-size:14.5px}
  .bn6-index{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 22px}
  .bn6-index a{display:inline-flex;align-items:center;min-height:30px;font-size:15px;font-weight:500;color:var(--th-juniper);text-decoration:underline;text-decoration-color:rgba(63,82,44,.35);text-underline-offset:4px}
  .bn6-plans{grid-template-columns:minmax(0,1fr);border-radius:20px}
  .bn6-plans>div{padding:26px 22px 28px;border-right:0!important;border-bottom:1px solid var(--th-line)!important}
  .bn6-plans>div:last-child{border-bottom:0!important}
  .bn6-plans dt{flex-direction:row;align-items:center;gap:16px}
  .bn6-plans .bn6-ico{width:58px;height:58px;padding:12px}
  .bn6-assign-panel{border-radius:20px}
  .bn6-assign-photo{aspect-ratio:4/3}
  .bn6-assign-text{padding:30px 22px 32px}
  .bn6-perks{grid-template-columns:minmax(0,1fr)}
  .bn6-perks-photo{aspect-ratio:4/3;border-radius:20px}
  .bn6-perk{padding:26px 22px 16px;border-radius:20px}
  .bn6-perk .bn6-ico{width:54px;height:54px}
  .bn6-perk h3{margin-top:22px}
  .bn6 .bn5-res-fig b{font-size:clamp(68px,20vw,88px)}
  .bn6-close-card{padding:28px 22px;border-radius:20px}
  .bn6 [aria-labelledby="rs-how-title"] .th-terms{grid-template-columns:minmax(0,1fr)}
  .bn6 [aria-labelledby="rs-how-title"] .th-terms>div{padding:16px 0 20px}
  .bn6 [aria-labelledby="rs-benefits-title"]{padding:28px 22px 18px;border-radius:20px}
  .bn6 [aria-labelledby="rs-benefits-title"] .th-terms>div{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){[data-bn-draw] .bn6-ico *{transition:none!important;stroke-dasharray:none!important}}
