/* Public site shell. Everything inside .cms-site is styled by @cms/renderer;
   this adds the page shell, blog, status pages and the preview bar, using the
   same theme variables so every company's blog matches its pages. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cms-accent, #3347d6); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.blog-wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.blog-head { padding: 72px 0 28px; }
.blog-title { font-family: var(--cms-font-heading); font-size: clamp(36px, 5cqi, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--cms-text); }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.blog-cats a { padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cms-text) 14%, transparent); color: var(--cms-muted); text-decoration: none; font-size: 15px; }
.blog-cats a:hover { color: var(--cms-text); border-color: color-mix(in srgb, var(--cms-text) 30%, transparent); }
.blog-cats a[aria-current="page"] { background: var(--cms-primary); border-color: var(--cms-primary); color: var(--cms-on-primary); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; padding-bottom: 32px; }
@container cms-site (max-width: 1023.98px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container cms-site (max-width: 767.98px) { .blog-grid { grid-template-columns: 1fr; } .blog-head { padding-top: 48px; } }
.blog-card { display: grid; gap: 16px; align-content: start; }
.blog-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--cms-radius-md); background: var(--cms-surface); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.03); }
.blog-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--cms-surface), var(--cms-secondary)); }
.blog-card__body { display: grid; gap: 8px; }
.blog-card__title { font-family: var(--cms-font-heading); font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.blog-card__title a { color: var(--cms-text); text-decoration: none; }
.blog-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card__excerpt { color: var(--cms-muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-tag { justify-self: start; font-size: 14px; font-weight: 600; color: var(--cms-accent); text-decoration: none; }
.blog-meta { color: var(--cms-muted); font-size: 14px; }
.blog-empty { color: var(--cms-muted); padding: 24px 0 80px; }
.blog-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 24px 0 96px; color: var(--cms-muted); font-size: 15px; }
.blog-pager a { color: var(--cms-primary); font-weight: 600; text-decoration: none; }
.blog-pager a[rel="next"] { justify-self: end; }

.post-head { padding: 64px 0 40px; display: grid; gap: 40px; }
.post-col { width: min(720px, 100% - 48px); margin-inline: auto; display: grid; gap: 16px; }
.post-crumbs { font-size: 15px; color: var(--cms-muted); }
.post-crumbs a { color: var(--cms-accent); font-weight: 600; text-decoration: none; }
.post-title { font-family: var(--cms-font-heading); font-size: clamp(34px, 4.6cqi, 52px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.post-lede { font-size: 20px; line-height: 1.5; color: var(--cms-muted); }
.post-cover { width: min(1160px, 100% - 48px); margin: 0 auto; }
.post-cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: var(--cms-radius-lg); display: block; }
.post-body { padding-bottom: 72px; font-size: 19px; line-height: 1.7; }
.post-body :where(h2) { font-family: var(--cms-font-heading); font-size: 30px; line-height: 1.2; margin-top: 1.6em; }
.post-body :where(h3) { font-family: var(--cms-font-heading); font-size: 23px; line-height: 1.3; margin-top: 1.4em; }
.post-body :where(blockquote) { border-left: 3px solid var(--cms-accent); padding-left: 20px; font-size: 21px; color: var(--cms-text); }
.post-body :where(a) { color: var(--cms-primary); text-underline-offset: 3px; }
.post-body :where(hr) { border: 0; border-top: 1px solid color-mix(in srgb, var(--cms-text) 14%, transparent); margin: 2.2em 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 0; margin-bottom: 0; padding: 0 0 56px; list-style: none; font-size: 15px; }
.post-tags a { color: var(--cms-primary); text-underline-offset: 3px; }
.status-body--lines { white-space: pre-line; }
.post-related { border-top: 1px solid color-mix(in srgb, var(--cms-text) 10%, transparent); padding-top: 56px; padding-bottom: 40px; }
.post-related__title { font-family: var(--cms-font-heading); font-size: 28px; margin-bottom: 28px; }

.status-page { padding: 120px 0 140px; display: grid; justify-items: start; gap: 18px; }
.status-code { font-family: var(--cms-font-heading); font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--cms-accent); }
.status-body { color: var(--cms-muted); font-size: 18px; max-width: 46ch; }

.soon { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; font: 16px/1.5 ui-sans-serif, system-ui, sans-serif; color: #1b2430; background: #f5f6f8; }
.soon h1 { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.soon p { margin: 0; color: #5b6675; }
.soon__name { font-weight: 600; color: #1b2430 !important; }

.preview-bar { position: sticky; top: 0; z-index: 100; display: flex; gap: 12px; align-items: center; padding: 8px 16px; background: #1a1e2c; color: #d9dce3; font: 13px/1.4 ui-sans-serif, system-ui, sans-serif; }
.preview-bar strong { background: #b7791f; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }

/* ── Product catalogue and product pages ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.catalog-head { padding-bottom: 8px; }
.catalog-head .post-crumbs { margin-bottom: 12px; }
.catalog-head__logo { display: inline-block; height: .9em; width: auto; vertical-align: -0.08em; }
.catalog-head__logo + .catalog-head__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.catalog-cats { margin-top: 12px; }
.product { width: min(1120px, 100% - 48px); margin-inline: auto; padding: 56px 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5cqi, 72px); align-items: start; }
.product__gallery { position: sticky; top: 24px; }
.product-gallery__single, .product-gallery__slide { margin: 0; aspect-ratio: 1; display: grid; place-items: center; background: var(--cms-surface); border-radius: var(--cms-radius-lg); overflow: hidden; }
.product-gallery__single img, .product-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__ph { display: block; background: repeating-linear-gradient(45deg, var(--cms-surface) 0 10px, var(--cms-secondary) 10px 11px); }
.product-gallery__pick { position: absolute; opacity: 0; pointer-events: none; }
.product-gallery__slide { display: none; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product-gallery__thumbs label { width: 72px; aspect-ratio: 1; border-radius: var(--cms-radius-sm); border: 2px solid transparent; background: var(--cms-surface); overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumbs label:hover { border-color: color-mix(in srgb, var(--cms-primary) 45%, transparent); }
.product-gallery__pick:nth-of-type(1):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(1) { display: grid; }
.product-gallery__pick:nth-of-type(1):checked ~ .product-gallery__thumbs label:nth-child(1) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(1):focus-visible ~ .product-gallery__thumbs label:nth-child(1) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(2):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(2) { display: grid; }
.product-gallery__pick:nth-of-type(2):checked ~ .product-gallery__thumbs label:nth-child(2) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(2):focus-visible ~ .product-gallery__thumbs label:nth-child(2) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(3):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(3) { display: grid; }
.product-gallery__pick:nth-of-type(3):checked ~ .product-gallery__thumbs label:nth-child(3) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(3):focus-visible ~ .product-gallery__thumbs label:nth-child(3) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(4):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(4) { display: grid; }
.product-gallery__pick:nth-of-type(4):checked ~ .product-gallery__thumbs label:nth-child(4) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(4):focus-visible ~ .product-gallery__thumbs label:nth-child(4) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(5):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(5) { display: grid; }
.product-gallery__pick:nth-of-type(5):checked ~ .product-gallery__thumbs label:nth-child(5) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(5):focus-visible ~ .product-gallery__thumbs label:nth-child(5) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(6):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(6) { display: grid; }
.product-gallery__pick:nth-of-type(6):checked ~ .product-gallery__thumbs label:nth-child(6) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(6):focus-visible ~ .product-gallery__thumbs label:nth-child(6) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(7):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(7) { display: grid; }
.product-gallery__pick:nth-of-type(7):checked ~ .product-gallery__thumbs label:nth-child(7) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(7):focus-visible ~ .product-gallery__thumbs label:nth-child(7) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product-gallery__pick:nth-of-type(8):checked ~ .product-gallery__stage .product-gallery__slide:nth-child(8) { display: grid; }
.product-gallery__pick:nth-of-type(8):checked ~ .product-gallery__thumbs label:nth-child(8) { border-color: var(--cms-primary); }
.product-gallery__pick:nth-of-type(8):focus-visible ~ .product-gallery__thumbs label:nth-child(8) { outline: 2px solid var(--cms-primary); outline-offset: 2px; }
.product__info { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3cqi, 40px); border-radius: var(--cms-radius-lg); background: color-mix(in srgb, var(--cms-primary) 7%, var(--cms-background)); }
.product__brand { height: 36px; width: auto; max-width: 200px; object-fit: contain; align-self: flex-end; }
.product__title { font-family: var(--cms-font-heading); font-size: clamp(32px, 4cqi, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--cms-text); }
.product__variant { margin: -10px 0 0; font-size: 17px; color: var(--cms-muted); }
.product__desc p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; white-space: pre-line; }
.product__desc p:last-child { margin-bottom: 0; }
.product__specs h2 { font-size: 20px; margin: 4px 0 14px; }
.product__specs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.product__specs dt { font-size: 15px; color: var(--cms-muted); }
.product__specs dd { margin: 4px 0 0; font-size: 17px; font-weight: 650; color: var(--cms-text); }
.product__buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.product__buy .cms-btn { gap: 10px; }
.product-related { padding-bottom: 24px; }
@container cms-site (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .product__gallery { position: static; }
}
@container cms-site (max-width: 560px) {
  .product__specs dl { grid-template-columns: minmax(0, 1fr); }
  .product__buy .cms-btn { flex: 1 1 100%; }
}
