/* CTA banners (scripts/banners.mjs, 27 Nov 2026): seasonal strip, in-grid promo tile, end-of-page panel.
   Sage and terracotta tokens from style.css; flat (no gradients, no shadow at rest), one action each. */

/* 1. Seasonal strip: one line under the header, ≤ 48 px on phones where it fits. */
.season-strip { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); padding: 10px 16px; border-radius: var(--radius); background: var(--sage-100); color: var(--sage-ink); font-size: var(--t-sm); line-height: 1.35; }
.season-strip[hidden] { display: none; }
.season-strip p { margin: 0; flex: 1; }
.season-strip a { color: var(--sage-ink); font-weight: 800; text-underline-offset: 3px; white-space: nowrap; }
.season-strip .ss-x { flex: none; min-height: 44px; padding: 0 6px; color: var(--sage-ink); font-size: var(--t-xs); }
@media (max-width: 640px) { .season-strip { padding: 6px 4px 6px 12px; font-size: var(--t-xs); } }

/* 2. In-grid promo tile: the size of a card, a sage field instead of a white sheet. */
.promo-tile { display: flex; flex-direction: column; border: 2px solid var(--sage-200); border-radius: var(--radius); overflow: hidden; background: var(--sage-50); color: var(--ink); text-decoration: none; transition: transform .28s var(--spring, ease), box-shadow .28s var(--spring, ease); }
.promo-tile .pt-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--well); }
.promo-tile .pt-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-tile .pt-b { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.promo-tile .pt-h { font-weight: 800; font-size: var(--t-base); line-height: 1.25; }
.promo-tile .pt-p { color: var(--muted); font-size: var(--t-sm); line-height: 1.35; }
.promo-tile .pt-go { margin-top: auto; color: var(--sage-ink); font-weight: 800; font-size: var(--t-sm); }
@media (hover: hover) { .promo-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(45, 49, 66, .10); } .promo-tile:hover .pt-go { text-decoration: underline; } }
.promo-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 3. End-of-page panel: picture and one button, on the warm well colour. */
.end-panel { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: var(--s6); margin-bottom: var(--s6); padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--terra-50); border: 2px solid var(--terra-100); }
.end-panel.ep-gap { margin-top: var(--s7); }
.end-panel .ep-art { aspect-ratio: 2.4 / 1; overflow: hidden; background: var(--well); }
.end-panel .ep-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.end-panel .ep-b { padding: var(--s5); }
.end-panel h2 { margin: 0 0 var(--s2); font-size: var(--h3); }
.end-panel p { margin: 0 0 var(--s4); max-width: var(--measure); }
.end-panel p:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .end-panel { grid-template-columns: minmax(220px, 34%) 1fr; align-items: stretch; }
  .end-panel .ep-art { aspect-ratio: auto; min-height: 220px; }
  .end-panel .ep-b { padding: var(--s6); align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .promo-tile { transition: none; } .promo-tile:hover { transform: none; } }
/* The strip and the panel drop the .wrap padding, so they keep a 16 px side gutter on phones themselves. */
.season-strip, .end-panel { box-sizing: border-box; width: calc(100% - 32px); max-width: 1128px; margin-inline: auto; }
