/* ---------- Tray: on the page column like every other panel, #F2F2F2, holds the figure and the wall. */
.bk-rate__tray{width:min(1200px, 100% - 64px);margin:40px auto 0;padding:0 8px}

/* ---------- Figure: 1200 x 547.33 at 1440; the sheet window is 44 %, the card 56 % (528 / 672). */
.bk-rate__fig{display:grid;grid-template-columns:44% 56%;width:min(1200px, 100%);margin-inline:auto}
.bk-rate__sheet{align-self:center;width:100%;aspect-ratio:528 / 547.33;min-height:0;overflow:hidden;overflow:clip}
/* img/rate-sheet.webp is pdf-to-grid-sample.png cut at source x 768 (the raster card's drop shadow, x 744-791, would
   otherwise show as a one-sided grey strip beside the flat real card) and flattened onto the band's --wash (#DDF4EC), with
   x 652-768 filled the same so the circle arrow is gone: 35 KB instead of the 410 KB PNG. Drawn at 1.5x density, so 512
   of the window's 528. */
.bk-rate__sheet img{width:calc(100% * 512 / 528);max-width:none;height:auto}

/* ---------- The grid card: white, four rounded corners, a pale-teal header band, chips, the table, a footnote. */
.bk-rate__card{container:rate-card / inline-size;display:flex;flex-direction:column;min-width:0;overflow:hidden;overflow:clip;border-radius:12px;background:#fff;box-shadow:0 24px 48px -24px rgba(0,58,52,.28)}
.bk-rate__band{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:84.7px;padding:0 24px;background:#E4F1EF}
.bk-rate__ct{font-size:17px;line-height:22px;font-weight:640;color:var(--ink)}
.bk-rate__cs{margin-top:2px;font-size:15px;line-height:21px;font-weight:420;color:var(--muted);text-wrap:pretty}
/* A status tag, not a button: nothing here is interactive. */
.bk-rate__status{display:inline-flex;flex:none;align-items:center;gap:6px;min-height:31px;padding:0 14px;border-radius:8px;
  background:#177D75;color:#fff;font-size:15px;line-height:1;font-weight:600;white-space:nowrap}
.bk-rate__status svg{flex:none}

.bk-rate__chips{display:flex;flex-wrap:wrap;gap:10px;margin:18px 24px 0}
.bk-rate__chips li{display:flex;align-items:center;min-height:31px;padding:0 12px;border-radius:8px;background:var(--paper);
  color:var(--muted);font-size:15px;line-height:1.2;font-weight:420;white-space:nowrap}
/* Four chips: one row whenever they fit, otherwise two and two. */
@container rate-card (max-width:671px){
  .bk-rate__chips{gap:8px}
  .bk-rate__chips li{padding:0 10px}
}
@container rate-card (max-width:479px){
  .bk-rate__chips{max-width:340px}
}

/* The table sits 24px in from the card edges, as in Figma: the rule and the rounded stripes stop short of the card. */
.bk-rate__tablewrap{container:rate-table / inline-size;margin-top:18px}
.bk-rate__table{width:calc(100% - 48px);margin-inline:24px;border-spacing:0;border-collapse:separate;font-variant-numeric:tabular-nums}
.bk-rate__table th,.bk-rate__table td{padding:0 10px;font-size:15px;text-align:right;white-space:nowrap}
.bk-rate__table .c1{text-align:left}
.bk-rate__table thead th{padding-top:8px;padding-bottom:10px;line-height:21px;vertical-align:bottom;font-weight:600;color:var(--muted);border-bottom:1px solid #E9E4DA}
.bk-rate__table tbody th,.bk-rate__table tbody td{height:42px;line-height:21px;vertical-align:middle;color:var(--ink)}
.bk-rate__table tbody td{font-weight:420}
.bk-rate__table tbody th{font-weight:600}
.bk-rate__table tbody tr:nth-child(even) > *{background:#FBFAF7}
.bk-rate__table tbody tr:nth-child(even) > :first-child{border-radius:8px 0 0 8px}
.bk-rate__table tbody tr:nth-child(even) > :last-child{border-radius:0 8px 8px 0}
.bk-rate__vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Shown only when the narrow-table rules below hide a column. */
.bk-rate__more{display:none;padding:8px 16px 0;font-size:15px;line-height:1.4;color:var(--muted)}

.bk-rate__foot{margin-top:auto;padding:14px 24px 18px;font-size:15px;line-height:21px;font-weight:420;color:var(--muted);text-wrap:pretty}

/* ---------- 1600 and up the page column widens to 1376 (base.css): the tray widens with it, the 1200 figure centred. */

/* ---------- 1200-1279: the card takes 58 % so the chips keep their one row. */
@media (min-width:1200px) and (max-width:1279px){
  .bk-rate__fig{grid-template-columns:42% 58%}
}

/* ---------- 960-1199: the split holds at 40 / 60, all six columns stay; the wall flows into as many columns as fit. */
@media (max-width:1199px){
  .bk-rate__tray{padding:0}
  .bk-rate__fig{grid-template-columns:40% 60%}
}

/* ---------- 760-959: the figure stacks. The window now crops the PNG to the sheet alone (source box x 0-652,
   y 76-740: the sheet, its PDF badge and its shadow), centred, --sh tall. The arrow points sideways, so it is left out. */
@media (max-width:959px){
  .bk-rate__fig{grid-template-columns:minmax(0, 1fr);row-gap:12px}
  .bk-rate__sheet{--sh:320px;justify-self:center;width:calc(var(--sh) * 652 / 664);height:var(--sh);aspect-ratio:auto}
  .bk-rate__sheet img{width:calc(var(--sh) * 768 / 664);margin-top:calc(var(--sh) * -76 / 664)}
}

/* ---------- 759 and below: one column, left aligned head (centred multi-line text is hard to read). */
@media (max-width:759px){
  .bk-rate__tray{width:min(1200px, 100% - 64px);margin-top:32px;padding:0}
  .bk-rate__sheet{--sh:240px}
  .bk-rate__band{flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:16px}
  .bk-rate__chips{gap:8px;margin:12px 16px 0}
  .bk-rate__tablewrap{margin-top:12px}
  .bk-rate__table{width:100%;margin-inline:0}
  .bk-rate__table th,.bk-rate__table td{padding-inline:3px}
  .bk-rate__table .c1{padding-left:16px}
  .bk-rate__table .c6{padding-right:16px}
  .bk-rate__table thead .c1{white-space:normal}   /* "Age band" may take two lines before a column has to go */
  .bk-rate__table tbody tr:nth-child(even) > *{border-radius:0}
  .bk-rate__foot{padding:12px 16px 16px}
}
@media (max-width:639px){
  .bk-rate__tray{width:calc(100% - 32px)}
}
/* ---------- Narrow tables: drop the widest benefit amounts rather than scroll sideways, and say so. */
@container rate-table (max-width:359px){
  .bk-rate__table .c6{display:none}
  .bk-rate__table .c5{padding-right:16px}
  .bk-rate__more--4{display:block}
}
@container rate-table (max-width:299px){
  .bk-rate__table .c5{display:none}
  .bk-rate__table .c4{padding-right:16px}
  .bk-rate__more--4{display:none}
  .bk-rate__more--3{display:block}
}

/* ---------- Home page: the band, the head (numeral, headline with the PDF mark riding the P, one short line),
   and the sheet tucked under the card's edge so the two read as one move. */
.bk-rate{margin-top:var(--sec);padding-block:var(--sec);background:var(--wash)}
.bk-rate__head{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:end;gap:24px 64px}
.bk-rate .ms-step{--nc:var(--mint-2)}
.bk-rate__h2{text-wrap:wrap}
.bk-rate__l{display:block}
.bk-rate__pdf{position:relative;display:inline-block;padding-left:.34em}
.bk-rate__mark{position:absolute;left:-.2em;top:-.3em;width:.7em;height:.7em;z-index:1;max-width:none;filter:drop-shadow(0 4px 8px rgba(0,58,52,.18))}
.bk-rate__desc{max-width:26em;padding-bottom:6px;font-size:var(--fs-lead);line-height:1.5}
.bk-rate__tray{margin-top:56px}
.bk-rate__card{position:relative;z-index:1;border-radius:20px;box-shadow:var(--shadow)}
.bk-rate__band{background:var(--wash)}
@media (min-width:960px){.bk-rate__sheet{translate:5% 0}}
@media (max-width:899px){.bk-rate__head{grid-template-columns:minmax(0,1fr)}}
@media (max-width:759px){.bk-rate__tray{width:calc(100% - 40px);margin-top:32px}}

/* ---------- The carrier sheet, drawn as a real page: logo, title, the full ten-row table. Tilted, on a mint disc. */
.bk-rate{background:var(--mint-3)}
.bk-rate__head{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}
.bk-rate__desc{max-width:none;justify-self:end;width:min(100%,25em)}
.bk-rate__band{background:var(--deep)}
.bk-rate__band .bk-rate__ct{color:#fff}
.bk-rate__band .bk-rate__cs{color:var(--on-deep)}
.bk-rate__status{background:var(--mint);color:var(--ink)}
.bk-rate__sheet{position:relative;overflow:visible;aspect-ratio:auto;align-self:center;translate:0 0}
.h-sheet__disc{position:absolute;left:50%;top:50%;width:112%;aspect-ratio:1;border-radius:50%;background:var(--mint);translate:-56% -50%}
.h-sheet{position:relative;width:86%;margin-left:2%;padding:26px 26px 20px;border-radius:6px;background:#fff;color:#28303a;font-size:12px;line-height:1.4;rotate:-3deg;box-shadow:var(--shadow);transition:rotate .5s var(--ease),translate .5s var(--ease)}
.bk-rate__fig:hover .h-sheet{rotate:-1deg;translate:10px -6px}
.h-sheet__pdf{position:absolute;left:-14px;top:18px;padding:5px 9px;border-radius:5px;background:#E5252A;color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em}
.h-sheet__top{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:2px solid #1D3A8A}
.h-sheet__logo{width:34px;height:34px;flex:none}
.h-sheet__top b{display:block;font-size:15px;font-weight:700;letter-spacing:-.01em;color:#1D3A8A}
.h-sheet__top span{display:block;font-size:10.5px;color:#6b7480}
.h-sheet__top em{margin-left:auto;font-style:normal;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6b7480}
.h-sheet__title{margin-top:12px;font-weight:600;color:#28303a}
.h-sheet table{width:100%;margin-top:10px;border-collapse:collapse;font-size:11.5px}
.h-sheet th,.h-sheet td{padding:5px 4px;text-align:right}
.h-sheet th:first-child,.h-sheet td:first-child{text-align:left}
.h-sheet th{font-weight:700;color:#1D3A8A}
.h-sheet tbody tr:nth-child(odd){background:#F3F5F9}
.h-sheet__foot{margin-top:10px;font-size:10px;color:#8a929c}
.bk-rate__card{transition:translate .5s var(--ease)}
.bk-rate__fig:hover .bk-rate__card{translate:-6px -4px}
@media (max-width:959px){.bk-rate__sheet{width:min(420px,92%);height:auto;justify-self:center;margin-bottom:8px}.h-sheet{width:100%;margin:0}.h-sheet__disc{width:120%}}

/* Someone walks in with the carrier's sheet under their arm, toward the plan Mint drafts from it. */
.bk-rate__head{position:relative}
.h-art--walker{position:absolute;left:39%;bottom:-30px;width:auto;height:clamp(170px,15vw,220px);pointer-events:none}
@media (max-width:1099px){.h-art--walker{display:none}}

/* The hold-and-read moment (script in 30-rate.html). Only active once the script adds .is-pinned. */
.bk-rate__fig{position:relative}
.h-sheet{position:relative;overflow:visible}
.h-sheet__pdf{z-index:4}
.bk-rate__sheet .h-sheet__logo{width:34px;height:34px;max-width:none;flex:none}
.h-pin-mark{display:block;height:0}
.h-pin-space{display:none}
.bk-rate.is-pinned .h-pin-space{display:block;height:110vh}
.bk-rate.is-pinned .bk-rate__tray{position:sticky;top:max(24px, calc(50vh - 300px))}
.bk-rate.is-pinned .bk-rate__table tbody tr{opacity:0}
.h-sheet tbody tr{transition:opacity .25s ease}
.bk-rate__status{opacity:0;translate:0 4px;transition:opacity .35s ease,translate .5s cubic-bezier(.2,.7,.3,1)}
.bk-rate__status.is-ready,.bk-rate:not(.is-pinned) .bk-rate__status{opacity:1;translate:0 0}
/* Ready to review: words and Mint's leaf, nothing that looks like a button. */
.bk-rate__band .bk-rate__status{display:inline-flex;align-items:center;gap:8px;min-height:0;padding:0;border-radius:0;background:none;color:var(--mint);font-size:15px;font-weight:600;letter-spacing:.005em}
.bk-rate__band .bk-rate__status{gap:10px;font-size:16px}
.bk-rate__band .bk-rate__status .bk-rate__tick{width:26px;height:auto;flex:none}
.bk-rate.is-pinned .bk-rate__status .bk-rate__tick{clip-path:inset(0 100% 0 0);transition:clip-path .55s cubic-bezier(.6,.05,.3,1) .1s}
.bk-rate.is-pinned .bk-rate__status.is-ready .bk-rate__tick{clip-path:inset(0 0 0 0)}
.h-chip{position:absolute;z-index:3;display:grid;grid-template-columns:1.25fr repeat(5,1fr);align-items:center;padding:0 .6em;border-radius:6px;
  background:#fff;color:#28303a;font-size:11.5px;line-height:1;white-space:nowrap;transform-origin:50% 50%;pointer-events:none;opacity:0;will-change:transform,opacity}
.h-chip span{padding:0 .5em;text-align:right;font-variant-numeric:tabular-nums}
.h-chip span:first-child{text-align:left;font-weight:600}

/* ---------- Phone view: the head in one column (numeral, headline, one line). The carrier's sheet becomes a small
   real page tilted behind the top of the plan card, so the move reads sheet in, plan out, and the plan card takes
   the full width with a table that stays legible. The scroll-hold is off here (see the script), the plan is shown done. */
@media (max-width:759px){
  .bk-rate__head{grid-template-columns:minmax(0,1fr);gap:16px}
  .bk-rate__desc{justify-self:start;width:auto;max-width:24em;padding-bottom:0}
  .bk-rate__tray{margin-top:28px}
  .bk-rate__fig{row-gap:0}
  .bk-rate__sheet{width:auto;height:auto;justify-self:start;margin:0 0 -132px 8px}
  .h-sheet{width:340px;margin:0;zoom:.58;rotate:-4deg}
  .h-sheet__disc{left:auto;right:-46%;top:-14%;width:96%;translate:none}
  .bk-rate__card{border-radius:18px}
  .bk-rate__band{flex-direction:column;align-items:flex-start;gap:10px;min-height:0;padding:18px 20px 16px}
  .bk-rate__band .bk-rate__status{font-size:16px}
  .bk-rate__band .bk-rate__status .bk-rate__tick{width:24px}
  .bk-rate__chips{margin:16px 20px 0}
  .bk-rate__tablewrap{margin-top:10px}
  .bk-rate__table .c1{padding-left:20px}
  .bk-rate__table .c6,.bk-rate__table .c5:last-child{padding-right:20px}
  .bk-rate__table tbody th,.bk-rate__table tbody td{height:44px;font-size:16px}
  .bk-rate__table thead th{font-size:15px}
  .bk-rate__more{padding:10px 20px 0}
  .bk-rate__foot{padding:8px 20px 20px}
}
@container rate-table (max-width:359px){
  .bk-rate__table .c5{padding-right:20px}
}


/* ---------- The drafted plan as a real Mint screen: the app's type and colours, a white header with the plan's icon,
   hairline rows, no pills and no striped bands. */
.bk-rate__card{border-radius:14px;font-family:"Mint UI",Inter,system-ui,sans-serif;box-shadow:0 1px 2px rgb(0 40 36 / .06),0 24px 48px -24px rgb(0 40 36 / .32)}
.bk-rate__band,.bk-rate .bk-rate__band{background:#fff;min-height:0;padding:20px 22px 0;gap:14px;justify-content:flex-start}
.bk-rate__icon{flex:none;width:auto;height:46px}
.bk-rate__titles{flex:1;min-width:0}
.bk-rate__band .bk-rate__ct{color:#111827;font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.01em}
.bk-rate__band .bk-rate__cs{margin-top:3px;color:#6B7280;font-size:13.5px;line-height:18px;font-weight:450}
.bk-rate__band .bk-rate__status{gap:7px;color:#1F8F88;font-size:14px;font-weight:600;letter-spacing:0}
.bk-rate__band .bk-rate__status .bk-rate__tick{width:20px}
.bk-rate__facts{margin:14px 22px 0;font-size:13.5px;line-height:19px;color:#6B7280}
.bk-rate__tablewrap{margin-top:12px}
.bk-rate__table{width:calc(100% - 44px);margin-inline:22px}
.bk-rate__table thead th{padding-top:6px;padding-bottom:9px;font-size:11.5px;line-height:16px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#6B7280;border-bottom:1px solid #E5E7EB}
.bk-rate__table tbody th,.bk-rate__table tbody td{height:40px;font-size:14.5px;color:#111827;border-bottom:1px solid #F0F2F1}
.bk-rate__table tbody td{font-weight:450}
.bk-rate__table tbody th{font-weight:600}
.bk-rate__table tbody tr:last-child > *{border-bottom:0}
.bk-rate__table tbody tr:nth-child(even) > *{background:none;border-radius:0}
.bk-rate__foot{margin-top:0;padding:10px 22px 16px;font-size:13.5px;line-height:19px;font-weight:450;color:#6B7280;border-top:1px solid #F0F2F1}
.bk-rate__more{font-size:13.5px;color:#6B7280}
.h-chip{font-family:"Mint UI",Inter,system-ui,sans-serif;color:#111827}

/* A quiet cue while the section holds: one wide chevron easing down at the bottom of the screen. */
.h-cue{position:fixed;left:50%;bottom:26px;z-index:5;display:grid;place-items:center;width:56px;height:36px;translate:-50% 8px;opacity:0;pointer-events:none;
  transition:opacity .35s ease,translate .45s cubic-bezier(.2,.7,.3,1)}
.h-cue svg{width:30px;height:15px;fill:none;stroke:var(--deep);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;animation:h-cue 1.8s ease-in-out infinite}
@keyframes h-cue{0%,100%{translate:0 -2px}50%{translate:0 4px}}
.bk-rate.is-pinned.is-holding .h-cue{opacity:.75;translate:-50% 0}
@media (prefers-reduced-motion:reduce){.h-cue{display:none}}
@media (max-width:759px){
  .bk-rate__band,.bk-rate .bk-rate__band{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 18px 0}
  .bk-rate__icon{height:42px}
  .bk-rate__band .bk-rate__status{order:3;flex-basis:100%;padding-left:54px;font-size:14px}
  .bk-rate__facts{margin:12px 18px 0}
  .bk-rate__table thead th{font-size:11px}
  .bk-rate__table .c1{padding-left:18px}
  .bk-rate__table .c6,.bk-rate__table .c5:last-child{padding-right:18px}
  .bk-rate__table tbody th,.bk-rate__table tbody td{height:42px;font-size:15px}
  .bk-rate__foot{padding:10px 18px 14px}
}
.bk-rate__table tbody tr:nth-child(even) > :first-child,.bk-rate__table tbody tr:nth-child(even) > :last-child{border-radius:0;background:none}
.bk-rate__more,.bk-rate__more--3,.bk-rate__more--4{display:none!important}
