/* CEH Website V4.0 — page-type styles: markup that exists on ONE page type only (src/pages/pages.mjs).
   Shared components, dark surfaces and anything rendered by src/components/* live in components.css. No page keeps private CSS. */

/* ---------- category ---------- */
.cat-hero__img { justify-self: center; display: flex; align-items: center; justify-content: center; width: 180px; height: 180px; margin: 0 auto;
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--white); }
.cat-hero__img .photo-well { width: 100%; height: 100%; }
.cat-hero__img img { width: 88%; height: auto; }
@media (min-width: 1024px) { .cat-hero__img { width: 200px; height: 200px; margin-right: 0; } }
@media (max-width: 767px) { .cat-hero__img { display: none; } }   /* no tall image block above the products on phones */
.cat-thumbs { display: flex; gap: 10px; overflow-x: auto; list-style: none; margin: 0; padding: 4px 0 8px; }
.cat-thumbs a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 112px; padding: 10px 8px; border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--green-900); font-weight: 600; font-size: var(--fs-small); background: var(--white); }
.cat-thumbs a[aria-current="page"] { border-color: var(--green-900); box-shadow: inset 0 -3px 0 var(--lime-400); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 0; border-top: var(--border); border-bottom: var(--border); }
.toolbar p { margin: 0; }
.help-band { display: grid; gap: 0; align-items: stretch; border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px; }
@media (min-width: 1024px) { .help-band { grid-template-columns: 1.3fr 1fr 1fr; } }
.help-band .txt { padding: 24px; }
.help-band .txt p { color: var(--on-dark-muted); }
.help-band h2 { margin: 0 0 8px; }
.help-band .promo-tile { border-radius: 0; box-shadow: none; }
.faq details { border-bottom: var(--border); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--green-900); }
.faq h3 { text-transform: uppercase; color: var(--green-900); }
.att-intro { margin: 20px 0 14px; }   /* /attachments/ reference gallery (no CMS products yet) */
.att-intro h2 { margin: 0 0 4px; }
.att-cta { margin-top: 20px; }
.att-video { margin-top: 32px; max-width: 760px; }

/* ---------- product detail ---------- */
.pd-top { padding: 0 0 24px; }
.pd-grid { display: grid; gap: 20px; }
.pd-grid > * { min-width: 0; }   /* J15-C: a grid item must be allowed to shrink, otherwise the scrolling thumbnail strip widens the page on phones */
@media (min-width: 768px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }   /* tablet: photo beside the buy box */
@media (min-width: 1024px) { .pd-grid { grid-template-columns: 7fr 5fr; gap: 40px; } }
.buybox h1 { color: var(--green-900); margin: 6px 0 8px; text-transform: none; }
.buybox .summary { margin: 8px 0; }   /* /cart.html request-summary card */
/* Package option (CMS ext_package_desc / ext_package_price): the package text as published + its own price, never the regular price */
.package { border: 1px solid var(--steel-200); border-left: 4px solid var(--lime-400); border-radius: var(--radius-md); padding: 10px 14px; background: var(--white); margin-bottom: 14px; }
.package h2 { font-size: .95rem; margin: 0 0 4px; letter-spacing: .04em; }
.package p { margin: 0; }
.package .package__price { margin-top: 6px; font-size: var(--fs-small); }
.package__price strong { font-size: 1.05rem; color: var(--green-900); }
.buy-actions { margin-top: 4px; }
.buy-actions > * + * { margin-top: 10px; }
.rent-box { border: 1px solid var(--steel-200); border-radius: var(--radius-md); padding: 12px 14px; background: var(--surface); }
.rent-box summary { cursor: pointer; font-weight: 700; color: var(--green-900); }
.rent-fields { margin-top: 10px; }
.meta-links { display: grid; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; font-size: var(--fs-small); }
.meta-links li { display: flex; gap: 10px; align-items: center; }
.meta-links .ic { width: 26px; height: 26px; border-radius: 13px; background: var(--green-100); color: var(--green-900); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: 0 0 auto; }
.pd-section { scroll-margin-top: 130px; padding: 40px 0; }
.pdf-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-radius: var(--radius-lg); padding: 16px 18px; margin-top: 16px; }
.pdf-row .small { color: var(--on-dark-muted); }


/* ---------- warranty ---------- */
.policy-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .policy-grid { grid-template-columns: 220px 1fr 280px; gap: 36px; align-items: start; } .toc, .support-card { position: sticky; top: 100px; } }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: var(--fs-small); }
.toc a { display: block; padding: 6px 10px; border-radius: 4px; text-decoration: none; color: var(--steel-700); }
.toc a:hover { background: var(--surface); color: var(--green-900); }
.policy h2 { font-size: 1.4rem; margin-top: 24px; scroll-margin-top: 100px; }
.policy h2:first-child { margin-top: 0; }
.support-card { background: var(--white); border: var(--border); border-radius: var(--radius-lg); padding: 20px; }
.support-card h2 { font-size: 1.15rem; }

/* ---------- referral ---------- */
.terms details { border-bottom: var(--border); padding: 12px 0; }
.terms summary { font-weight: 600; cursor: pointer; color: var(--green-900); }

/* ---------- about ---------- */
.about-hero-img { border-radius: var(--radius-lg); width: 100%; height: auto; }

/* ---------- contact ---------- */
.contact-grid { margin-top: 20px; }
.channel { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: var(--border); }
.channel .icon { width: 36px; height: 36px; border-radius: 6px; background: var(--green-100); color: var(--green-900); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.channels .embed-gate { margin-top: 16px; }

/* ---------- My Equipment List (/cart.html); rows are rendered by site.js (components.css) ---------- */
.list-grid { margin-top: 16px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0 0 12px; font-size: var(--fs-small); }
.summary dt { color: var(--steel-600); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- videos ---------- */
.video-title { font-size: 1.15rem; margin-top: 10px; }
