/* ==========================================================================
   KX theme additions on top of assets/site.css (which is a byte-for-byte copy of
   prototype/assets/css/site.css; do not edit that copy, change the prototype and re-copy).
   Same rules as the prototype: design tokens only, LOGICAL properties only, no external URLs.
   ========================================================================== */

/* Header search box (not in the prototype). Placed after the language links so the header keeps the
   Demo's order (wordmark | menu | languages). Narrow screens: full-width row under the menu toggle,
   hidden together with the collapsed menu. */
.site-search {
  order: 5;
  display: flex;
  gap: var(--s-2);
  flex: 1 1 100%;
}
html[data-js="on"] .site-nav[data-open="false"] ~ .site-search { display: none; }
@media (min-width: 64em) {
  .site-search { order: 4; flex: 0 1 15rem; }
  html[data-js="on"] .site-nav[data-open="false"] ~ .site-search { display: flex; }
}
.site-search input[type="search"] {
  flex: 1 1 auto;
  min-inline-size: 0;
  min-block-size: 2.75rem;
  padding-block: 0;
  padding-inline: var(--s-3);
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.site-search .btn { min-block-size: 2.75rem; }

/* Product detail extras */
.kx-summary { font-size: var(--fs-700); color: var(--muted); max-inline-size: 60ch; }
.kx-hero-image { margin-block: var(--s-5); margin-inline: 0; }
.kx-hero-image img, .kx-content img, .card__media img { max-inline-size: 100%; block-size: auto; }
.spec-table + .spec-table, .table-scroll + .table-scroll { margin-block-start: var(--s-5); }

/* Front page: bands are Group blocks with class "band", inner Group with class "wrap"
   (built by ops/dev/seed-pages.sh). Core wraps groups in a layout container; neutralise it. */
.kx-front > .wp-block-group.band { margin-block: 0; }
.kx-front .wp-block-group.wrap { margin-inline: auto; }
/* "Call to action" paragraph: a paragraph block with class kx-cta, its link looks like the primary button. */
.kx-cta a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-block: 0;
  padding-inline: var(--s-5);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
}
.kx-cta a:hover { background: var(--accent-ink); }
/* 「全部产品」「了解更多」(HANDOFF #16; tier-1 look, Ryan 11-06): the words, then a round button with an arrow
   (the reprolife.jp 「See Latest News →」 pattern). The arrow is decoration only: no text for screen readers. */
.kx-more a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-block-size: 2.75rem;
  padding: 0;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: 0;
  text-decoration: none;
}
.kx-more a::after {
  content: "\2192" / "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  border: 1px solid var(--brand);
  border-radius: 50%;
  font-size: 1.125rem;
  transition: background-color .15s, color .15s;
}
.kx-more a:hover::after { background: var(--brand); color: #fff; }
[dir="rtl"] .kx-more a::after { transform: scaleX(-1); }
/* Home cards (HANDOFF #16): the whole card (picture and text) opens the link in its title. */
.kx-front .card { position: relative; }
.kx-front .card h3 a::after { content: ""; position: absolute; inset: 0; }
.kx-front .card:hover { border-color: var(--accent); }
.kx-front .card h3 a:focus-visible { outline: none; }
/* F6 #81: the frame only for keyboard focus; a mouse click or tap leaves none (it looked like a missed click) */
.kx-front .card:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.kx-content img, .kx-front img { max-inline-size: 100%; block-size: auto; }
/* Text the customer pastes (a long URL, a line of box-drawing characters) wraps instead of widening the page on a
   phone (HANDOFF #16 site walk: 冷冻管123dd scrolled sideways by 38px at 390px). */
.kx-content, .kx-front .card__body { overflow-wrap: anywhere; }
.kx-footer-block + .kx-footer-block { margin-block-start: var(--s-5); }

/* Inquiry honeypot: out of sight and out of the accessibility tree (aria-hidden in the markup). */
.kx-hp {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================================
   Demo layout for block content (2026-10-29). The pages' text lives in ordinary blocks; Group blocks
   carry the prototype's own class names (band / wrap / hero / grid / card / card__body / card__media),
   so site.css styles them unchanged. Arranged by ops/dev/relayout-v1.php; the customer keeps editing
   every heading, paragraph and image inside them.
   ========================================================================== */

/* Group blocks are plain <div>s here: no extra margins from the block layout wrappers. */
.wp-block-group.band, .wp-block-group.wrap, .wp-block-group.grid,
.wp-block-group.card, .wp-block-group.card__body, .wp-block-group.card__media,
.wp-block-group.kx-media, .wp-block-group.hero { margin-block: 0; }
.wp-block-group.wrap { margin-inline: auto; }

/* The Demo's accent rule above each band's first heading (site.css .rule), without a markup element:
   a customer's new band gets it automatically. */
.wp-block-group.wrap > .wp-block-heading:first-child::before,
.hero > .wp-block-group:first-child > .wp-block-heading:first-child::before {
  content: "";
  display: block;
  inline-size: 3rem;
  block-size: 4px;
  margin-block-end: var(--s-4);
  background: var(--accent);
}
.band--brand .wp-block-group.wrap > .wp-block-heading:first-child::before { background: var(--on-brand); }

/* A page title band followed by its lead band reads as one band, as in the Demo.
   (kx.css loads after site.css, so these win over its 64em .band padding too.) */
.kx-title-band { padding-block-end: 0; }
.kx-title-band + .band.kx-lead { padding-block-start: 0; }
.kx-title-band:not(:has(+ .kx-lead)) { padding-block-end: var(--s-6); }
.kx-lead p { font-size: 1.125rem; }

/* Image slots: an empty one shows a neutral placeholder; an image inserted into it fills it. */
.kx-media:not(:has(img)),
.card__media:not(:has(img, svg)) {
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.kx-media:not(:has(img)) {
  border: 2px dashed var(--ph-stroke);
  border-radius: var(--radius);
}
.card__media:not(:has(img, svg)) { outline: 2px dashed var(--ph-stroke); outline-offset: -8px; }
.kx-media figure, .card__media figure { margin: 0; }
.kx-media img, .card__media img { display: block; inline-size: 100%; block-size: auto; }

/* Product page: images | facts + about. K4 #93 (customer 11-15: 文字向右移，图片向上移): the images sit right under
   the title on the start side, the facts (英文名称 / 所属分类 / 产品编号 / 一句话简述) head the end side above the text,
   tops aligned. Two equal columns from 64em; one column (images first) below. */
.kx-product-grid { align-items: start; margin-block-start: var(--s-5); }
@media (min-width: 64em) {
  .grid.kx-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kx-product-side > :first-child { margin-block-start: 0; }
.kx-facts { margin-block: 0 var(--s-5); }
/* Product images (G1 #64): fixed square frames, so switching images never moves the page. Images are fitted in
   whole (never cropped); the rest of the square is the light surface colour. Thumbnails are squares of one size. */
.gallery__main > figure { position: relative; aspect-ratio: 1; margin-inline: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.gallery__main > figure > a, .gallery__main > figure > img, .gallery__main > figure > svg { display: block; inline-size: 100%; block-size: 100%; }
.gallery__main > figure img { inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: contain; }
.gallery__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; block-size: auto; }
.gallery__thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; }
/* Product video (V1 #57): the last item of the same square frame; the browser's own player, letterboxed. */
.gallery__main > figure > video { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; background: #000;
  border-radius: var(--radius); }
/* Home company video band (V2 #58): under the 主营业务 cards, same tint; the browser's own player, at most 60rem wide. */
.kx-video-band__media { margin-block: var(--s-5) 0; margin-inline: 0; }
.kx-video-band video { display: block; inline-size: 100%; max-inline-size: 60rem; block-size: auto; margin-inline: auto;
  background: #000; border-radius: var(--radius); }
.gallery__thumb--video { position: relative; background: #000; }
.gallery__thumb--video::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  inline-size: 0; block-size: 0; margin-block-start: -0.7rem; margin-inline-start: -0.45rem;
  border-block: 0.7rem solid transparent; border-inline-start: 1.1rem solid #fff; filter: drop-shadow(0 0 3px rgb(0 0 0 / 60%)); }
/* a play sign always points the way time runs, also on a right-to-left page (code review 2026-11-02) */
[dir="rtl"] .gallery__thumb--video::after { transform: scaleX(-1); }
html[data-js="on"] .gallery__open { cursor: zoom-in; }

/* Magnifier (G3 #66): a square beside the image on its inline-end side, over the product text while the mouse is
   on the image. kx.js places the lens under the mouse and shows that part of the original in the window. */
.kx-lens, .kx-zoom { position: absolute; pointer-events: none; }
.kx-lens { border: 1px solid var(--brand); background: rgb(255 255 255 / 25%); }
.kx-zoom { z-index: 20; inset-block-start: -1px; inset-inline-start: calc(100% + var(--s-4)); inline-size: 100%; aspect-ratio: 1;
  background-color: #fff; background-repeat: no-repeat; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(var(--shade) / 18%); }

/* Full-screen viewer (G2 #65): a native <dialog> (focus stays inside, Esc closes). */
.kx-viewer { inline-size: 100vw; block-size: 100vh; max-inline-size: none; max-block-size: none; margin: 0; padding: 0;
  border: 0; background: rgb(var(--shade) / 94%); color: #fff; }
.kx-viewer::backdrop { background: rgb(var(--shade) / 60%); }
.kx-viewer__fig { display: flex; align-items: center; justify-content: center; block-size: 100%; margin: 0;
  padding-block: var(--s-7); padding-inline: var(--s-8); touch-action: pinch-zoom; }
.kx-viewer__fig img { max-inline-size: 100%; max-block-size: 100%; inline-size: auto; block-size: auto; object-fit: contain; background: #fff; }
.kx-viewer__btn { position: absolute; display: flex; align-items: center; justify-content: center; inline-size: 3rem; block-size: 3rem;
  border: 1px solid rgb(255 255 255 / 60%); border-radius: 50%; background: rgb(0 0 0 / 40%); color: #fff;
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.kx-viewer__btn:hover { background: rgb(0 0 0 / 70%); }
.kx-viewer__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kx-viewer__close { inset-block-start: var(--s-4); inset-inline-end: var(--s-4); }
.kx-viewer__prev, .kx-viewer__next { inset-block-start: calc(50% - 1.5rem); }
.kx-viewer__prev { inset-inline-start: var(--s-4); }
.kx-viewer__next { inset-inline-end: var(--s-4); }
.kx-viewer__count { position: absolute; inset-block-end: var(--s-4); inset-inline: 0; margin: 0; text-align: center; font-size: var(--fs-300); }
@media (max-width: 40em) { .kx-viewer__fig { padding-inline: var(--s-2); } }

/* About page photo bands (F2 #77, 资质证书 / 工厂图片): a grid of square frames, each image fitted whole (certificates
   are upright, factory photos wide); a click opens the full-screen viewer (kx.js, [data-kx-photos]). */
.kx-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; list-style: none;
  padding-inline-start: 0; margin-block: 1.5rem 0; margin-inline: 0; }
.kx-photos > li { margin: 0; }
.kx-photos a, .kx-photos img { display: block; inline-size: 100%; }
.kx-photos img { block-size: auto; aspect-ratio: 1; object-fit: contain; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.kx-photos a:hover img { border-color: var(--brand); }

/* 合作洽谈: OEM-OBL and Distributors | form. K8 #97 (customer 11-15 PPT page 8: two text blocks with a coloured head,
   where the contact details were). Colours only from the palette; white on --accent / --brand is checked in F6. */
.kx-contact-grid { align-items: start; }
.kx-coops { display: grid; gap: var(--s-5); }
.kx-coop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg, 20px); overflow: hidden; }
.kx-coop h2.kx-coop__title { margin: 0; padding-block: var(--s-3); padding-inline: var(--s-5); color: #fff; font-size: 1.5rem; }
.kx-coop--obl .kx-coop__title { background: var(--accent); }
.kx-coop--dist .kx-coop__title { background: var(--brand); }
.kx-coop__body { padding-block: var(--s-4) var(--s-5); padding-inline: var(--s-5); }
.kx-coop__body > :last-child { margin-block-end: 0; }

/* Space between a card grid and the link line under it (the Demo puts links inside the cards). */
.wp-block-group.grid { margin-block-end: var(--s-5); }
.wp-block-group.grid:last-child { margin-block-end: 0; }

/* Header search: keep the button label on one line. */
.site-search .btn { white-space: nowrap; padding-inline: var(--s-4); }

/* Footer contact list ("<strong>Label</strong>: value" lines): Demo footer look, no bullets. */
.site-footer .wp-block-list { list-style: none; padding-inline-start: 0; }
.site-footer .wp-block-list li { margin-block-end: var(--s-2); }
.site-footer .wp-block-list strong { color: var(--on-brand); }
.site-footer p { max-inline-size: none; }


/* Language dropdown (2026-10-29, Ryan's reference: globe + current language + chevron, list below).
   Takes the place of the prototype's inline .lang-switch in the header order. */
.lang-menu { order: 2; position: relative; }
@media (min-width: 64em) { .lang-menu { order: 3; } }
.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-block-size: 2.75rem;
  padding-inline: var(--s-2);
  color: var(--ink);
  font-size: var(--fs-500);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.lang-menu__toggle::-webkit-details-marker { display: none; }
.lang-menu__toggle:hover { color: var(--brand); }
.lang-menu__globe { inline-size: 1.375rem; block-size: 1.375rem; }
.lang-menu__chev { inline-size: 1rem; block-size: 1rem; transition: transform .15s; }
.lang-menu[open] .lang-menu__chev { transform: rotate(180deg); }
.lang-menu .lang-switch {
  position: absolute;
  z-index: 30;
  inset-block-start: calc(100% + var(--s-2));
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-inline-size: 11rem;
  padding-block: var(--s-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(var(--shade) / 12%);
}
.lang-menu .lang-switch a,
.lang-menu .lang-switch__current {
  display: block;
  min-block-size: 0;
  padding-block: var(--s-3);
  padding-inline: var(--s-4);
  font-size: var(--fs-500);
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu .lang-switch a:hover { background: var(--surface); color: var(--brand); }
.lang-menu .lang-switch__current { background: var(--surface); font-weight: 600; }

/* F4 #79: home slideshow (kx_mc_carousel + kx.js). Every slide sits in one 1920:700 frame and the image covers it
   (cropped at the edges, Ryan 11-05), so the page does not jump between slides of different shapes;
   controls sit on top of the image. Logical properties only. */
.kx-hero-band { padding-block: var(--s-5); }
.kx-carousel { position: relative; margin-inline: var(--s-5); }   /* phones: inside the page margins (the wrap's) */
.kx-carousel__track { touch-action: pan-y; }
/* No background on the slide here: the side colour (--kx-slide-bg) is for computers only ("T4" at the end).
   On phones it showed in the four corners around the rounded image (release walk, Ryan's red test colour, 11-06). */
.kx-carousel__slide[hidden] { display: none; }
.kx-carousel__slide a { display: block; }
/* phones: the frame has the shape 1920 x the admin's computer height (Ryan 11-06); computers: see "T4" at the end */
.kx-carousel__img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1920 / var(--kx-slide-hn, 600); object-fit: cover;
  margin-inline: auto; border-radius: var(--radius); }
.kx-carousel__arrow, .kx-carousel__pause, .kx-carousel__dot {
  border: 0; cursor: pointer; background: rgb(0 0 0 / .45); color: #fff;
}
.kx-carousel__arrow {
  position: absolute; inset-block-start: 50%; transform: translateY(-50%);
  inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%; font-size: 1.75rem; line-height: 1;
}
.kx-carousel__arrow--prev { inset-inline-start: var(--s-3); }
.kx-carousel__arrow--next { inset-inline-end: var(--s-3); }
[dir="rtl"] .kx-carousel__arrow span { display: inline-block; transform: scaleX(-1); }
.kx-carousel__pause {
  position: absolute; inset-block-start: var(--s-3); inset-inline-end: var(--s-3); z-index: 1;
  inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%;
}
.kx-carousel__pause-icon { display: inline-block; inline-size: .75rem; block-size: .875rem;
  border-inline-start: .25rem solid #fff; border-inline-end: .25rem solid #fff; }
.kx-carousel__pause.is-paused .kx-carousel__pause-icon {   /* a play triangle */
  inline-size: 0; block-size: 0; border-inline-end: 0;
  border-block-start: .45rem solid transparent; border-block-end: .45rem solid transparent; border-inline-start: .75rem solid #fff;
}
.kx-carousel__dots {
  position: absolute; inset-block-end: var(--s-3); inset-inline: 0;
  display: flex; justify-content: center; gap: var(--s-2);
}
.kx-carousel__dot { inline-size: .75rem; block-size: .75rem; border-radius: 50%; padding: 0; background: rgb(255 255 255 / .6);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.kx-carousel__dot[aria-current="true"] { background: #fff; }
.kx-carousel__arrow:focus-visible, .kx-carousel__pause:focus-visible, .kx-carousel__dot:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgb(0 0 0 / .6);
}
/* phones: the image is short, so the arrows would sit on the pause button; swipe and the dots change the slide there */
@media (max-width: 640px) {
  .kx-carousel__arrow { display: none; }
  .kx-carousel__pause { inline-size: 2.25rem; block-size: 2.25rem; inset-block-start: var(--s-2); inset-inline-end: var(--s-2); }
  .kx-carousel__dots { inset-block-end: var(--s-2); }
}

/* F5 #80: main menu 产品 > product categories (cats.php + kx.js). Phone menu: the categories indented under 产品;
   computer: a dropdown under the item. Without JS the sub-list simply shows. */
.site-nav li.kx-has-cats { display: flex; flex-wrap: wrap; align-items: center; }
.site-nav li.kx-has-cats > a { flex: 1 1 auto; }
.kx-subnav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
/* the chevron: the same thin "v" as the language menu's, right next to the word (Ryan 11-06) */
.kx-subnav-toggle span { inline-size: .45rem; block-size: .45rem; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg); margin-block-start: -.2rem; transition: transform .15s; }
.kx-subnav-toggle[aria-expanded="true"] span { transform: rotate(-135deg); margin-block-start: .2rem; }
.site-nav .sub-menu { flex-basis: 100%; padding-inline-start: var(--s-5); }
.site-nav .sub-menu[hidden] { display: none; }
.site-nav .sub-menu a { font-weight: 400; }
@media (min-width: 64em) {
  /* the same space between every two menu WORDS (Ryan 11-06, second round): the 产品 chevron hangs just after the
     word, outside the item's width, so it does not push 关于我们 away; the spacing (2.5rem) leaves room for it */
  .site-nav ul { gap: 2.5rem; }
  .site-nav li.kx-has-cats { position: relative; flex-wrap: nowrap; gap: 0; }
  .site-nav li.kx-has-cats > .kx-subnav-toggle { position: absolute; inset-inline-start: calc(100% + var(--s-1)); inset-block-start: 50%;
    transform: translateY(-50%); }
  .kx-subnav-toggle { inline-size: 1rem; }
  /* the panel looks like the language menu's: white, 8px corners, the same shadow and item padding */
  .site-nav .sub-menu {
    position: absolute; inset-block-start: 100%; inset-inline-start: calc(-1 * var(--s-4)); z-index: 20;
    flex-direction: column; gap: 0; min-inline-size: 11rem; padding-block: var(--s-2); padding-inline: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgb(var(--shade) / 12%);
  }
  .site-nav .sub-menu a { padding-block: var(--s-3); padding-inline: var(--s-4); border-block-end: 0; color: var(--ink); white-space: nowrap; }
  .site-nav .sub-menu a:hover { background: var(--surface); color: var(--brand); text-decoration: none; }
}

/* K2 #91 (customer 11-17: 每行 3 张): the product list is one grid, 1 per row on a phone, 2 from 40em, 3 from 64em and
   never more (the site's .grid would fit 4 on a wide screen). It was grouped by category with a menu (F5 #80). */
.grid.kx-plist { grid-template-columns: 1fr; }
.kx-plist + .navigation { margin-block-start: var(--s-6); }
@media (min-width: 40em) {
  .grid.kx-plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .grid.kx-plist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Tier-1 look (Ryan 11-06, after reprolife.jp): the same page layout, a softer finish. Large light headings with
   more air, big round corners on cards and pictures, pill-shaped buttons and language button, light bands that
   fade from light grey to light pink-purple. Only system fonts (hard rule 4): weight 300 picks Microsoft YaHei
   Light / PingFang SC Light / Segoe UI Light where they exist.
   ========================================================================== */
:root { --radius-lg: 20px; --radius-pill: 999px; }

h1, h2 { font-weight: 300; letter-spacing: .01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-weight: 500; }
.band p, .band li { line-height: 1.8; }
.band--tint { background: linear-gradient(180deg, var(--surface), var(--surface-3)); }

/* cards: big round corners, a faint shadow; no heavy accent strip on top */
.card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px rgb(var(--shade) / 6%);
  transition: box-shadow .2s, border-color .2s; }
.card--featured { border-block-start: 1px solid var(--line); }
.kx-front .card:hover { box-shadow: 0 14px 36px rgb(var(--shade) / 12%); }

/* pictures and their frames */
.kx-media img, .kx-media:not(:has(img)), .kx-hero-image img, .kx-carousel__img, .kx-video-band video,
.kx-photos img, .gallery__main > figure, .ph { border-radius: var(--radius-lg); }
.gallery__main > figure img, .gallery__main > figure > video, .gallery__main > figure > svg { border-radius: inherit; }
.gallery__thumb { border-radius: 12px; }

/* buttons, the search box and the language button: pills */
.btn, .kx-cta a { border-radius: var(--radius-pill); padding-inline: var(--s-6); }
.site-search input[type="search"] { border-radius: var(--radius-pill); padding-inline: var(--s-4); }
.site-search .btn { padding-inline: var(--s-5); }
.lang-menu__toggle { border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding-inline: var(--s-3); }
.lang-menu__toggle:hover { border-color: var(--brand); }

/* ==========================================================================
   T4 (Ryan 11-06): the home slideshow on computers runs from the screen's start edge to its end edge, as high as
   the number in the admin's 横幅 block (--kx-slide-h, set on the section), at most 70% of the window's height so a
   short laptop screen still shows something below it. The image covers the frame (cropped, as chosen on 11-05)
   but is never wider than itself (max-inline-size on the img), so on a wider screen it sits in the middle with
   the chosen colour (--kx-slide-bg) beside it. No round corners at the screen edges. Phones: the rules above.
   ========================================================================== */
@media (min-width: 64em) {
  .kx-hero-band .kx-carousel { margin-inline: 0; }
  .kx-carousel__slide { background: var(--kx-slide-bg, var(--surface)); }
  /* two classes: wins over ".kx-front img { block-size: auto }" (one class + one element) earlier in this file */
  .kx-carousel .kx-carousel__img { block-size: min(var(--kx-slide-h, 600px), 70vh); aspect-ratio: auto; border-radius: 0; }
}

/* ==========================================================================
   Customer 11-20 PPT page 3 (spec #100). Last in the file: these must win over ".band p, .band li" above.
   ========================================================================== */
/* P1 #101 (小图尺寸能否加大): three thumbnails a row, together as wide as the big image; a 4th (3 images + the video)
   starts the next row. Still squares (aspect-ratio on .gallery__thumb). */
html[data-js="on"] .gallery__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__thumbs .gallery__thumb { inline-size: auto; min-inline-size: 0; }
/* P2 #102 (行距…默认固定也可以，左右文字图片落差有点大): the product page's text column is set tighter than the rest
   of the site, fixed (not in the admin): line height 1.5 (WCAG 1.4.12's floor) instead of 1.8, smaller gaps between
   the facts and between paragraphs. Only under .kx-product-side. */
.kx-product-side, .kx-product-side :is(p, li, dd) { line-height: 1.5; }
.kx-product-side .kx-facts { margin-block-end: var(--s-4); }
.kx-product-side dt { margin-block-start: var(--s-3); }
.kx-product-side dt:first-child { margin-block-start: 0; }
.kx-product-side :is(p, ul, ol) { margin-block-end: var(--s-3); }
