/* =================================================================
   Sunwave · products, category, product and support pages (built by site/pages.py), on top of styles.css.
   Same language as the home page (Tazio 2026-10-27: the first design is dropped, version 2 everywhere): paper grey,
   heavy uppercase Archivo, mono labels with the orange dash, hairlines, the specifications on ink like the home's
   "One energy system" interlude.
   ================================================================= */

.sub__main { padding-top: 72px; }  /* the fixed nav */
.sub__main > .quote { margin-top: clamp(80px, 10vw, 128px); }
.pd-specs + .quote { margin-top: 0; border-top: 0; }
/* the form's heading names the product here, so it runs longer: a size down */
.sub__main > .quote .display--sm { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }

/* breadcrumb strip under the nav */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 18px;
  font: 400 10px/1.4 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--black-55);
}
.crumbs a { color: var(--black-70); transition: color 0.3s; }
.crumbs a:hover { color: var(--orange-text); }
.crumbs [aria-current] { color: var(--ink); }

.display--page { font-size: clamp(2.6rem, 7.4vw, 6.4rem); }

/* the copy at the top of each page comes in once, on load (the home page's chapters do it on the scroll) */
@keyframes sub-rise { from { opacity: 0; transform: translateY(18px); } }
.phero__content > *, .phead .wrap > *, .pd__info > *, .pd__media {
  animation: sub-rise 0.9s var(--ease) both;
}
.phero__content > :nth-child(2), .phead .wrap > :nth-child(2), .pd__info > :nth-child(2) { animation-delay: 0.07s; }
.phero__content > :nth-child(3), .phead .wrap > :nth-child(3), .pd__info > :nth-child(3) { animation-delay: 0.14s; }
.phero__content > :nth-child(n+4), .pd__info > :nth-child(n+4) { animation-delay: 0.22s; }
.pd__media { animation-duration: 1.2s; }

/* =================================================================
   Photo band (products and category pages): a still chapter, the same photos as the home page
   ================================================================= */
.phero { position: relative; height: clamp(460px, 74svh, 780px); overflow: hidden; background: var(--paper); }
.phero__media, .phero__media picture { position: absolute; inset: 0; display: block; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero--render .phero__media img { object-position: 50% 28%; }  /* the render's product whole, not cut at the top */
/* solar panels: the module's corner moved right, clear of the title; its white studio floor meets the paper fade on the left */
@media (min-width: 800px) {
  .phero--solar-panels .phero__media img {
    object-position: 50% 40%; transform: translateX(26%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%);
  }
}
.phero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(244, 245, 245, 0.96), rgba(244, 245, 245, 0.7) 28%, rgba(244, 245, 245, 0.12) 56%, rgba(244, 245, 245, 0) 74%),
    linear-gradient(to right, rgba(244, 245, 245, 0.88), rgba(244, 245, 245, 0.32) 40%, rgba(244, 245, 245, 0) 62%);
}
/* the product renders: the product sits right of centre, a lighter fade keeps it clear */
.phero--render .phero__scrim {
  background:
    linear-gradient(to top, rgba(244, 245, 245, 0.92), rgba(244, 245, 245, 0.4) 18%, rgba(244, 245, 245, 0) 34%),
    linear-gradient(to right, rgba(244, 245, 245, 0.9), rgba(244, 245, 245, 0.5) 30%, rgba(244, 245, 245, 0) 50%);
}
.phero__content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(40px, 8vh, 96px);
}
.phero .body { max-width: 44ch; }
/* phones: the photo on top, the copy under it on paper (it would cover the product otherwise) */
@media (max-width: 799px) {
  .phero { height: auto; display: flex; flex-direction: column; }
  .phero__media { position: relative; height: 52svh; min-height: 300px; }
  .phero--render .phero__media { height: 62svh; }
  .phero--render .phero__media img { object-position: 50% 12%; }
  .phero__scrim, .phero--render .phero__scrim {
    inset: 0 0 auto 0; height: 52svh; min-height: 300px;
    background: linear-gradient(to top, var(--paper), rgba(244, 245, 245, 0) 30%);
  }
  .phero--render .phero__scrim { height: 62svh; }
  .phero__content { height: auto; margin-top: -36px; padding-bottom: 8px; }
  .phero--solar-panels .phero__media img { object-position: 62% 50%; }  /* the panel's corner, not the empty white */
}

/* page header without a photo (support) */
.phead { padding: clamp(48px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); border-block: 1px solid var(--black-10); }
.phead .body { max-width: 52ch; }

/* =================================================================
   Search, sort, count
   ================================================================= */
.cat-list { padding-top: clamp(40px, 6vw, 80px); }
.cat-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; }
.cat-search {
  flex: 1 1 320px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25); transition: border-color 0.3s;
}
.cat-search:focus-within { border-color: var(--orange); }
.cat-search svg { width: 18px; height: 18px; fill: none; stroke: var(--black-55); stroke-width: 1.6; stroke-linecap: round; flex: none; }
.cat-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 0;
}
.cat-search input::placeholder { color: rgba(0, 0, 0, 0.42); }
.cat-search input::-webkit-search-cancel-button { filter: grayscale(1); cursor: pointer; }
.cat-sort { display: flex; align-items: center; gap: 14px; font: 400 10px/1.4 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--black-55); }
.cat-sort select {
  font: inherit; font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.25); border-radius: 0; padding: 12px 4px;
}
.cat-sort select:focus { outline: none; border-color: var(--orange); }
.cat-count { margin: 28px 0 20px; font: 400 10px/1.4 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--black-55); }

/* =================================================================
   Product cards (category pages)
   ================================================================= */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cat-card[hidden] { display: none; }
.cat-card__link {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--black-10);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-card__link:hover, .cat-card__link:focus-visible { border-color: rgba(0, 0, 0, 0.4); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.07); }
/* the product cut-outs on a soft studio light */
.cat-card__media, .pd__media {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 32%, #fff 0, #F1F2F2 52%, #E3E5E5 100%);
}
.cat-card__media { aspect-ratio: 4 / 3; padding: 28px; border-bottom: 1px solid var(--black-10); }
.cat-card__media img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.16));
  transition: transform 0.8s var(--ease);
}
.cat-card__link:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.cat-card__series { margin: 0; font: 400 10px/1.5 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--black-55); }
.cat-card__name {
  margin: 10px 0 18px; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 108;
  font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.01em;
}
.cat-card__name span { color: var(--orange-text); }
.cat-card__lead { margin: 0 0 20px; font-size: 15px; color: rgba(0, 0, 0, 0.68); }
.cat-card__specs { margin: 0 0 22px; }
.cat-card__specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--black-10); }
.cat-card__specs dt { font: 400 10px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--black-55); }
.cat-card__specs dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }
.cat-card__soon { margin: 0 0 20px; font: 400 10px/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-text); }
.cat-card__more { margin-top: auto; font: 400 11px/1.4 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); }
.cat-card__more span { display: inline-block; transition: transform 0.4s var(--ease); }
.cat-card__link:hover .cat-card__more, .ptile__link:hover .cat-card__more { color: var(--orange-text); }
.cat-card__link:hover .cat-card__more span, .ptile__link:hover .cat-card__more span { transform: translateX(4px); }

.cat-empty { padding: 48px 0; font-size: 17px; }
.cat-empty p { margin: 0 0 8px; }
.cat-empty a { color: var(--orange-text); }

.cat-switch { padding-top: clamp(56px, 8vw, 104px); }
.cat-switch .actions { margin-top: 0; }

/* =================================================================
   Products page: one tile per family
   ================================================================= */
.ptiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .ptiles { grid-template-columns: 1fr 1fr; } }
.ptile__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--black-10); transition: border-color 0.4s var(--ease); }
.ptile__link:hover { border-color: rgba(0, 0, 0, 0.4); }
.ptile__media { aspect-ratio: 16 / 9; overflow: hidden; }
.ptile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ptile__link:hover .ptile__media img { transform: scale(1.04); }
.ptile__body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 40px); }
.ptile__body .kicker { margin-bottom: 18px; }
.ptile__name {
  margin: 0; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 112;
  font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 0.95; letter-spacing: -0.02em;
}
.ptile__lead { margin: 16px 0 28px; max-width: 46ch; color: rgba(0, 0, 0, 0.68); }

/* =================================================================
   Product page
   ================================================================= */
.pd { display: grid; gap: clamp(32px, 5vw, 88px); padding-top: clamp(8px, 2vw, 32px); align-items: start; }
@media (min-width: 1000px) { .pd { grid-template-columns: 6fr 5fr; } }
.pd__media { aspect-ratio: 1 / 1; padding: clamp(32px, 6vw, 88px); border: 1px solid var(--black-10); }
.pd__media img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.2)); }
/* room for the shadow inside the image's own box (36 px blur, 30 px down), taken back by negative margins so nothing moves:
   iPhone Safari cuts a drop-shadow at the image's edges while the box fades in, which drew hard pale lines beside the
   product (Stephan's screenshot 2026-11-12) */
.pd__media img, .cat-card__media img { box-sizing: content-box; }
.pd__media img { padding: 40px 40px 72px; margin: -40px -40px -72px; }
.cat-card__media img { padding: 24px 24px 40px; margin: -24px -24px -40px; }
@media (min-width: 1000px) { .pd__media { position: sticky; top: 96px; } }
/* product without a photo yet (catalog.py: no "image") */
.pd-nophoto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(0, 0, 0, 0.18); }
.pd-nophoto span { font: 400 10px/1.4 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--black-55); }
.pd__info .kicker { line-height: 1.6; }
.pd__title { font-size: clamp(2.3rem, 4.4vw, 4.4rem); line-height: 0.94; }
.pd__info .body { max-width: 46ch; }
.pd__info .figs { margin-top: 32px; }
.pd__info .actions { margin-top: 36px; }
.pd__info .quote__note { margin-top: 28px; }
.pd__stamp {
  display: flex; align-items: center; gap: 14px; margin: 28px 0 0;
  font: 400 10px/1.4 var(--mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--black-55);
}
.pdf-tag { font: 500 9px/1 var(--mono); letter-spacing: 0.12em; padding: 3px 5px; border: 1px solid currentColor; opacity: 0.7; }

/* power class / model chips, like the form's product choices */
.pd-classes { margin-top: 32px; }
.pd-classes__label { margin: 0 0 12px; font: 400 10px/1.5 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--black-55); }
.pd-classes__label span { font-family: var(--display); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.pd-classes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-class {
  font: 400 12px/1 var(--mono); letter-spacing: 0.08em; padding: 11px 14px; background: transparent; color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.18); cursor: pointer; transition: border-color 0.3s, background-color 0.3s;
}
.pd-class:hover { border-color: rgba(0, 0, 0, 0.5); }
.pd-class[aria-pressed="true"] { border-color: var(--orange); background: rgba(240, 96, 0, 0.08); color: var(--orange-text); }

/* features: numbered, on hairlines */
.pd-feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 40px;
  margin-top: clamp(64px, 9vw, 128px); padding-top: 40px; border-top: 1px solid var(--black-10);
}
.pd-feat__n { font: 400 11px/1 var(--mono); letter-spacing: 0.2em; color: var(--orange); }
.pd-feat h3 { margin: 14px 0 10px; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 108; font-size: 1.05rem; line-height: 1.15; letter-spacing: -0.005em; }
.pd-feat p { margin: 0; font-size: 15px; color: rgba(0, 0, 0, 0.68); }

/* specifications on ink, like the home's interlude */
.pd-specs { margin-top: clamp(72px, 10vw, 136px); padding: clamp(80px, 12vh, 136px) 0; background: var(--ink); color: var(--paper); scroll-margin-top: 0; }
.pd-specs .kicker { color: var(--paper-70); }
.pd-specs .display--sm { margin-bottom: 8px; }
.pd-block { margin-top: clamp(36px, 5vw, 56px); }
.pd-block__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px;
  font: 400 11px/1.5 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--paper);
}
.pd-block__title small { font-family: var(--display); font-size: 13px; letter-spacing: 0; text-transform: none; color: rgba(244, 245, 245, 0.5); }
.pd-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--paper-15); }
.pd-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pd-table th, .pd-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--paper-15); white-space: nowrap; }
.pd-table th[scope="row"], .pd-table thead th:first-child { position: sticky; left: 0; text-align: left; font-weight: 400; color: var(--paper-70); background: var(--ink); }
.pd-table thead th { font: 400 10px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); background: #141416; }
.pd-table thead th:first-child { background: #141416; color: rgba(244, 245, 245, 0.5); }
.pd-table td { color: var(--paper); }
.pd-table tbody tr:last-child > * { border-bottom: 0; }
.pd-table .is-picked { background: rgba(240, 96, 0, 0.16); }
.pd-table thead .is-picked { background: var(--orange); color: #fff; }
.pd-lists { display: grid; gap: 0 56px; }
@media (min-width: 900px) { .pd-lists { grid-template-columns: 1fr 1fr; } }
.pd-list { margin: 0; }
.pd-list div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--paper-15); font-size: 14px; }
.pd-list div:last-child { border-bottom: 1px solid var(--paper-15); }
.pd-list dt { color: var(--paper-70); }
.pd-list dd { margin: 0; font-weight: 600; text-align: right; }
.pd-note { margin: 32px 0 0; font: 400 11px/1.6 var(--mono); letter-spacing: 0.04em; color: rgba(244, 245, 245, 0.5); }
.pd-soon .body { color: var(--paper-70); }

/* =================================================================
   Support & Downloads
   ================================================================= */
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black-10); }
.dl-row { display: grid; gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--black-10); }
.dl-row[hidden] { display: none; }
@media (min-width: 880px) { .dl-row { grid-template-columns: minmax(260px, 1fr) 2fr; align-items: start; } }
.dl-row__name { margin: 8px 0 14px; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 108; font-size: 1.4rem; line-height: 1.05; letter-spacing: -0.01em; }
.dl-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dl-row__head > .cat-card__series, .dl-row__head > .dl-row__name { flex-basis: 100%; }
.dl-status { font: 400 9px/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--black-70); border: 1px solid rgba(0, 0, 0, 0.2); padding: 5px 8px; }
.dl-status--old { color: var(--orange-text); border-color: var(--orange); }
.dl-row__docs { margin: 0; }
.dl-row__docs div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--black-10); font-size: 15px; }
.dl-row__docs div:last-child { border-bottom: 0; }
.dl-row__docs dt { color: var(--black-70); }
.dl-row__docs dd { margin: 0; text-align: right; }
.dl-row__docs dd a { display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: color 0.3s; }
.dl-row__docs dd a:hover { color: var(--orange-text); }
.dl-row__docs dd a.dl-req { font-family: var(--display); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--black-55); text-decoration: underline; text-underline-offset: 3px; }
.dl-row__docs dd a.dl-req:hover { color: var(--orange-text); }
.dl-row__docs small { color: var(--black-55); letter-spacing: 0.06em; }
.dl-older { margin-top: clamp(56px, 8vw, 104px); padding: clamp(28px, 4vw, 56px); background: #fff; border: 1px solid var(--black-10); }
.dl-older .actions { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .phero__content > *, .phead .wrap > *, .pd__info > *, .pd__media { animation: none; }
  .cat-card__media img, .ptile__media img, .cat-card__more span { transition: none; }
}
