/* /deals/: Parenting Deals and Everyday Family Savings. Void Deck Playground tokens only; 375px first.
   Each type's colour comes from --c (one of the four playground colours) and always travels with a text label. */
.deals-intro{margin:0 0 var(--space-block)}
.deals-intro h1{font-size:2.125rem;line-height:1.1;margin:0 0 var(--space-3)}
.deals-intro p{max-width:46rem}
/* The live count is a fact about the page, not the reader's answer, so it is a quiet outlined strip with
   the count on a small ink pad. The yellow bolted tile stays for results. */
/* The count pad and its two lines sit side by side, and the lines wrap under the pad when large text leaves no room beside it. */
.deals-headline.spinner-panel{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);margin:0 0 var(--space-block);padding:var(--space-3) var(--space-4);border:3px solid var(--outline);border-radius:var(--radius);background:var(--card);box-shadow:none;color:var(--ink);text-align:left}
.deals-headline.spinner-panel::before,.deals-headline.spinner-panel::after{content:none}
.deals-headline-text{flex:1 1 9rem;min-width:0}
.deals-headline.spinner-panel .spinner-lead{margin:0 0 2px;color:var(--ink);font:800 1rem/1.25 var(--font-head)}
.deals-headline.spinner-panel .spinner-value{flex:none;display:grid;place-items:center;min-width:3.25rem;height:3.25rem;margin:0;padding:0 .5rem;border-radius:999px;background:var(--ink-base);color:var(--tabbar-on);font:900 1.5rem/1 var(--font-head);letter-spacing:0;box-shadow:inset 0 -4px 0 rgba(0,0,0,.25)}
.deals-headline-context{margin:0;font-size:.9375rem;font-weight:600;color:var(--muted)}
.deals-jump{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;margin:0 0 var(--space-4);font-size:.9375rem}
.deals-jump-label{color:var(--muted)}
.deals-jump ul{display:flex;flex-wrap:wrap;gap:0 16px;list-style:none;margin:0;padding:0}
.deals-jump a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:4px}
.deal-controls{margin:0 0 var(--space-2)}
.deal-parts,.deal-filters{display:flex;flex-wrap:wrap;gap:8px;padding:2px 2px 10px;margin:0 -2px 4px;scrollbar-width:thin}
.deal-parts button,.deal-filters button{flex:0 1 auto;max-width:100%;text-align:left;overflow-wrap:anywhere;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:3px solid var(--field-border);border-radius:999px;background:var(--card);color:var(--ink);font-size:.875rem;font-weight:700;cursor:pointer}
.deal-parts button[aria-pressed="true"],.deal-filters button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.deal-parts button:focus-visible,.deal-filters button:focus-visible,.deals-jump a:focus-visible,.deal-actions a:focus-visible,.deal-checked a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.deal-filters .dot,.deal-group h3 .dot,.deal-provider .dot{display:inline-block;flex:0 0 auto;width:12px;height:12px;border-radius:50%;background:var(--c,var(--brand));border:2px solid var(--outline)}
.deal-part{margin:var(--space-section) 0 0;padding-top:var(--space-block);border-top:3px dotted var(--outline);scroll-margin-top:12px}
/* The first part follows the filters, so it needs a block gap, not a section gap. */
.deal-controls~.deal-part:not(.deal-part~.deal-part){margin-top:var(--space-block)}
.deal-part h2{font-size:1.75rem;margin:0 0 var(--space-2)}
.deal-part-lead{font-size:.9375rem;color:var(--muted);margin:0 0 var(--space-block);max-width:46rem}
/* Groups: 40px between categories, 16px from a category heading to its cards, 20px between cards. */
.deal-group{margin:0}
.deal-group+.deal-group{margin-top:var(--space-group)}
.deal-group h3{display:flex;align-items:center;gap:10px;font-size:1.25rem;margin:0 0 var(--space-heading-after)}
/* Cards (visual-cards, 13 Oct 2026): the offer in big type first, then provider and title, one Ends
   line, the conditions (and the full terms) behind a disclosure, one Checked line, one button. Every
   card has a fixed image box, so nothing moves as images arrive. The visual order comes from `order`
   (and from grid areas in the grid layouts); the HTML keeps provider, title, offer for screen readers
   and the site search.
   Layout by the room each category has, not by the window (deals-fixes, 13 Oct 2026): each group is a
   size container measured in em, so the A+ control (which zooms main) and a larger root font both
   narrow it and the cards step down a layout instead of spilling. Under 16em: stacked cards, a 2:1
   image on top. 16em to 28em: a square thumbnail beside the offer and title (stacked at A+ 130% and
   150%). 28em to 44em: one column of wide cards, image left. 44em up two columns, 56em up three; a
   card left alone on its row (or a list of one) is a wide card. At 100% text a 375px phone gets
   thumbnails, 768px two columns and 992px up three. */
.deal-group{container:deal-group/inline-size}
.deal-list{display:grid;gap:var(--space-grid)}
.deal-card{position:relative;display:flex;flex-direction:column;background:var(--card);border:3px solid var(--outline);border-top:10px solid var(--c,var(--brand));border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);min-width:0}
.deal-card>*:not(.deal-media){margin-left:var(--space-card);margin-right:var(--space-card)}
.deal-media{grid-area:media;order:0;position:relative;aspect-ratio:2/1;margin:0;background:var(--soft);border-bottom:3px solid var(--outline);overflow:hidden}
.deal-media img{display:block;width:100%;height:100%;object-fit:cover}
.deal-credit{position:absolute;right:6px;bottom:6px;padding:1px 6px;border-radius:var(--radius-btn);background:var(--card);color:var(--muted);font-size:.75rem;font-weight:700}
.deal-offer{grid-area:offer;order:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;margin-top:var(--space-4);margin-bottom:0}
/* No min-width:0: a price never shrinks below its own figure; "was" wraps under it instead. */
.deal-price{font:900 2rem/1.05 var(--font-head);letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.deal-was{font-size:.9375rem;font-weight:700;color:var(--muted)}
.deal-unit{flex-basis:100%;margin-top:2px;font-size:.9375rem;font-weight:700;line-height:1.35;color:var(--ink)}
/* The provider name sits beside its logo and wraps there; it moves under the logo only when less than 5.5em (or its longest word) is left beside it. */
.deal-provider{grid-area:provider;order:2;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) 8px;margin-top:var(--space-3);margin-bottom:0;font:800 .875rem/1.3 var(--font-head);color:var(--muted)}
.deal-provider-name{flex:1 1 5.5em}
.deal-logo{display:inline-flex;align-items:center;flex:none;max-width:100%;height:28px;padding:3px 7px;border:1px solid var(--hair);border-radius:var(--radius-field)}
/* Theme-proof chips: --on-ink stays white and --ink-base stays ink in both themes, so a dark logo and a white logo both show. */
.deal-logo--light{background:var(--on-ink)}
.deal-logo--dark{background:var(--ink-base);border-color:var(--ink-base)}
.deal-logo img{display:block;height:20px;width:auto;max-width:112px;object-fit:contain}
.deal-card h4{grid-area:title;order:3;font:800 1.1875rem/1.3 var(--font-head);letter-spacing:-.01em;margin-top:var(--space-1);margin-bottom:0}
.deal-ends{grid-area:ends;order:4;margin-top:var(--space-2);margin-bottom:0;font-size:.9375rem;font-weight:700;color:var(--ink)}
.deal-more{grid-area:more;order:5;margin-top:var(--space-3);border-top:1px solid var(--hair)}
.deal-more summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none;font:800 .9375rem/1.3 var(--font-head);color:var(--ink)}
.deal-more summary::-webkit-details-marker{display:none}
.deal-more summary::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.deal-more[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.deal-more summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.deal-detail{margin:0 0 var(--space-2);font-size:.9375rem;line-height:1.5}
.deal-conditions{margin:0 0 var(--space-3);padding-left:18px;font-size:.9375rem;line-height:1.5}
.deal-conditions li+li{margin-top:var(--space-tight)}
/* The provider's full terms, last inside the conditions: a 44px tall link that only shows once a parent asks for the conditions. */
.deal-terms{margin:calc(-1 * var(--space-2)) 0 var(--space-2);font-size:.9375rem}
.deal-terms a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.deal-checked{grid-area:checked;order:6;margin-top:var(--space-1);margin-bottom:0;font-size:.8125rem;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.deal-actions{grid-area:actions;order:7;margin-top:auto;padding:var(--space-3) 0 var(--space-card)}
.deal-actions .btn{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;font-size:.9375rem;text-align:center}
/* One narrow column (a phone, or a wider screen at large text): compact type and 12px card edges. */
@container deal-group (max-width:27.99em){
  .deal-card>*:not(.deal-media){margin-left:var(--space-3);margin-right:var(--space-3)}
  .deal-offer{margin-top:var(--space-3)}
  .deal-card h4{font-size:1.0625rem}
  .deal-price{font-size:1.625rem}
  .deal-actions{padding-bottom:var(--space-3)}
}
/* Thumbnails: a square image beside the offer and title. At A+ 130% and 150% the thumbnail would squeeze the offer, so the card stays stacked. */
@container deal-group (min-width:16em) and (max-width:27.99em){
  :root:not([data-text-size="2"]):not([data-text-size="3"]) .deal-card{display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-areas:"media offer" "media provider" "media title" "media ends" "more more" "checked checked" "actions actions";grid-template-rows:auto auto auto 1fr;column-gap:var(--space-3);align-content:start;padding:var(--space-3) var(--space-3) 0}
  :root:not([data-text-size="2"]):not([data-text-size="3"]) .deal-card>*:not(.deal-media){margin-left:0;margin-right:0}
  :root:not([data-text-size="2"]):not([data-text-size="3"]) .deal-media{align-self:start;aspect-ratio:1/1;border:2px solid var(--outline);border-radius:var(--radius-field)}
  /* An 88px thumbnail has no room for the credit: it stays in the HTML for screen readers. */
  :root:not([data-text-size="2"]):not([data-text-size="3"]) .deal-credit{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  :root:not([data-text-size="2"]):not([data-text-size="3"]) .deal-offer{margin-top:0}
  :root:not([data-text-size="2"]):not([data-text-size="3"]) .deal-provider{margin-top:var(--space-1)}
}
/* Wide cards, image left: every card in one roomy column, and a card left alone on a row of two or three. */
@container deal-group (min-width:28em) and (max-width:43.99em){
  .deal-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:repeat(6,auto) 1fr;grid-template-areas:"media offer" "media provider" "media title" "media ends" "media more" "media checked" "media actions";column-gap:var(--space-5)}
  .deal-card>*:not(.deal-media){margin-left:0}
  .deal-media{aspect-ratio:auto;height:100%;min-height:12rem;border-bottom:0;border-right:3px solid var(--outline)}
  .deal-actions .btn{width:auto;min-width:min(14rem,100%);justify-self:start}
}
/* Rows never leave a card on its own: two or four cards sit two-up, three or more three-up, and a
   card left alone on the last row (or a list of one) turns into one wide card. Counted over cards
   still shown, so a deal the browser hides on its end day keeps the rule. */
@container deal-group (min-width:44em){
  .deal-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container deal-group (min-width:44em) and (max-width:55.99em){
  .deal-list>.deal-card:not([hidden]):nth-child(odd of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden])){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:repeat(6,auto) 1fr;grid-template-areas:"media offer" "media provider" "media title" "media ends" "media more" "media checked" "media actions";column-gap:var(--space-5)}
  .deal-list>.deal-card:not([hidden]):nth-child(odd of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden]))>*:not(.deal-media){margin-left:0}
  .deal-list>.deal-card:not([hidden]):nth-child(odd of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden])) .deal-media{aspect-ratio:auto;height:100%;min-height:12rem;border-bottom:0;border-right:3px solid var(--outline)}
  .deal-list>.deal-card:not([hidden]):nth-child(odd of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden])) .deal-actions .btn{width:auto;min-width:14rem;justify-self:start}
}
@container deal-group (min-width:56em){
  .deal-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .deal-list:has(>.deal-card:not([hidden]):nth-child(1 of .deal-card:not([hidden])):nth-last-child(2 of .deal-card:not([hidden]))),.deal-list:has(>.deal-card:not([hidden]):nth-child(1 of .deal-card:not([hidden])):nth-last-child(4 of .deal-card:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))}
  .deal-list:not(:has(>.deal-card:not([hidden]):nth-child(1 of .deal-card:not([hidden])):nth-last-child(4 of .deal-card:not([hidden]))))>.deal-card:not([hidden]):nth-child(3n+1 of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden])){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:repeat(6,auto) 1fr;grid-template-areas:"media offer" "media provider" "media title" "media ends" "media more" "media checked" "media actions";column-gap:var(--space-5)}
  .deal-list:not(:has(>.deal-card:not([hidden]):nth-child(1 of .deal-card:not([hidden])):nth-last-child(4 of .deal-card:not([hidden]))))>.deal-card:not([hidden]):nth-child(3n+1 of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden])) .deal-media{aspect-ratio:auto;height:100%;min-height:12rem;border-bottom:0;border-right:3px solid var(--outline)}
  .deal-list:not(:has(>.deal-card:not([hidden]):nth-child(1 of .deal-card:not([hidden])):nth-last-child(4 of .deal-card:not([hidden]))))>.deal-card:not([hidden]):nth-child(3n+1 of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden])) .deal-actions .btn{width:auto;min-width:14rem;justify-self:start}
  .deal-list:not(:has(>.deal-card:not([hidden]):nth-child(1 of .deal-card:not([hidden])):nth-last-child(4 of .deal-card:not([hidden]))))>.deal-card:not([hidden]):nth-child(3n+1 of .deal-card:not([hidden])):nth-last-child(1 of .deal-card:not([hidden]))>*:not(.deal-media){margin-left:0}
}
.deals-empty{padding:var(--space-card);border:3px dashed var(--field-border);border-radius:var(--radius);background:var(--soft)}
@media(min-width:760px){
  .deals-intro h1{font-size:3rem}
  .deal-part h2{font-size:2rem}
    }

/* /deals/ builds its own head (render-deals.js), so the header fixes in polish.css are repeated here:
   Sign In stays on one line at 1280px. */
.site-header .member-login-link{white-space:nowrap}.site-header .member-login-icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
/* Five phone tabs on one row (as wayfinding.css does on every page that loads it). */
@media(max-width:767px){.tab-bar{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.tab-bar a span{white-space:nowrap}}
