/* Generated website sections (cms/sections.mjs). They reuse the shop's band, carousel, card, kit and partner
   styles; this file only adds spacing, headings and the kinds that have no existing look. Sharp corners. */
.cms-gen { position: relative; scroll-margin-top: calc(var(--nav-h, 70px) + 16px); }
.cms-gen--index { padding-block: clamp(3rem, 7vw, 6rem); }
.cms-gen--shop { margin-top: clamp(2.5rem, 6vw, 4rem); }
.cms-gen .band { margin-bottom: 0; }
.cms-gen__head { padding-top: 0; }
.cms-gen__head > div:first-child { min-width: 0; max-width: 70ch; }
.cms-gen__head .label--red { margin-bottom: .5rem; }
.cms-gen__intro { margin: .6rem 0 0; color: var(--paper-dim); font-size: clamp(.875rem, 1.1vw, 1rem); line-height: 1.55; }
.cms-gen__side { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cms-gen__grid { margin-top: 0; }

/* category tiles */
.cms-tiles { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); background: var(--ink-line); border: 1px solid var(--ink-line); }
.cms-tile { display: grid; justify-items: start; align-content: start; gap: .6rem; padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--ink-deep, var(--ink)); color: var(--paper); min-height: 150px; transition: background .3s var(--ease), color .3s var(--ease); }
.cms-tile img, .cms-tile__blank { width: 64px; height: 64px; object-fit: contain; }
.cms-tile__blank { display: block; background: repeating-linear-gradient(115deg, var(--red) 0 6px, transparent 6px 14px); opacity: .5; }
.cms-tile__name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(.9375rem, 1.4vw, 1.125rem); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cms-tile__count { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); }
.cms-tile:hover, .cms-tile:focus-visible { background: var(--ink-soft); }
.cms-tile:hover .cms-tile__count, .cms-tile:focus-visible .cms-tile__count { color: var(--red); }
.cms-tile:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* promo banner: the shop's .promo look, optionally over a picture */
.cms-promo { min-height: clamp(180px, 24vw, 300px); }
.cms-promo--image .promo__body { margin-left: 0; }
.cms-promo__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cms-promo--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(var(--ink-deep-rgb, 20 19 23) / .92) 0%, rgb(var(--ink-deep-rgb, 20 19 23) / .7) 55%, rgb(var(--ink-deep-rgb, 20 19 23) / .25) 100%); }
.cms-promo .promo__sub { max-width: 60ch; }
.cms-promo__action { margin: 1.25rem 0 0; }

/* questions and answers */
.cms-faq { border-top: 1px solid var(--ink-line); max-width: 900px; }
.cms-faq details { border-bottom: 1px solid var(--ink-line); }
.cms-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--display); font-weight: 800; font-size: clamp(.9375rem, 1.4vw, 1.125rem); line-height: 1.3; color: var(--paper); }
.cms-faq summary::-webkit-details-marker { display: none; }
.cms-faq summary::after { content: "+"; color: var(--red); font-weight: 900; flex: none; transition: transform .3s var(--ease); }
.cms-faq details[open] summary::after { transform: rotate(45deg); }
.cms-faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cms-faq p { margin: 0 0 1.2rem; color: var(--paper-dim); line-height: 1.7; max-width: 70ch; }

/* text */
.cms-gen__text { margin: 0; max-width: 760px; }
.cms-gen__text h2 { font-size: clamp(1.25rem, 2.6vw, 2rem); }
.cms-gen__text ul { padding-left: 1.2rem; list-style: square; }

/* shop: subcategory picture chips (only when a subcategory has its own picture) */
.cms-subchips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 1rem 0 .25rem; scroll-snap-type: x proximity; }
.cms-subchips::-webkit-scrollbar { display: none; }
.cms-subchip { flex: none; display: flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .35rem; min-height: 44px; background: var(--ink); border: 1px solid var(--ink-line); color: var(--paper); font: 600 .75rem/1.2 var(--sans); scroll-snap-align: start; cursor: pointer; }
.cms-subchip img { width: 36px; height: 36px; object-fit: contain; background: var(--ink-soft); }
.cms-subchip[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.cms-subchip:hover { border-color: var(--red); }
.cms-subchip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (max-width: 760px) {
  .cms-gen__head { align-items: flex-start; }
  .cms-gen__side { width: 100%; justify-content: space-between; }
  .cms-tile { min-height: 132px; }
  .cms-tile img, .cms-tile__blank { width: 48px; height: 48px; }
}

/* long product descriptions stay short inside generated rows */
.cms-gen .card__perk { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Generated grids, tiles and logo strips: no grey filler cells in a partial last row. The shared shop
   style draws the lines with a 1px gap over a grey background; here each cell draws its own line. */
.cms-gen .grid-products, .cms-gen .cms-tiles, .cms-gen .partners__row { background: transparent; border: 0; gap: 1px; }
.cms-gen .grid-products > *, .cms-gen .cms-tiles > *, .cms-gen .partners__row > * { box-shadow: 0 0 0 1px var(--ink-line); }
