.template-logo {
  color: var(--accent);
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}
.template-logo img { width: auto; max-width: 180px; max-height: 52px; object-fit: contain; }
.template-demo { margin: 0; padding: 8px 5vw; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.template-hero-products { grid-template-columns: repeat(var(--items), minmax(0, 1fr)); }
.template-text-hero { grid-template-columns: 1fr; }
.template-family-grid, .template-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.template-family-grid .family-card { display: flex; flex-direction: column; gap: 8px; }
.family-card > strong { font-size: 17px; color: var(--ink); }
.product-visual > img { width: 100%; height: clamp(235px, 35vw, 445px); object-fit: contain; }
.product-visual:empty { display: none; }
.product-hero:has(.product-visual:empty) { grid-template-columns: 1fr; }
.product-summary, .hero > div, .factory-story > div { min-width: 0; }
.template-table { max-width: 100%; overflow-x: auto; }
.template-table th, .template-table td { text-align: start; }
.factory-story-media figure { margin: 0; }
.factory-story-media figcaption { color: #f1f4f9; }
.article-page > img { display: block; width: min(100%, 760px); max-height: 360px; object-fit: contain; margin: 24px auto; }
#catalog-search { display: block; max-width: 38rem; margin-block: 8px 20px; }
[hidden] { display: none !important; }
.template-logo img { width: 150px; }
.home-balanced .template-hero-products[style="--items:1"] a { background: #f4f6f8; }
.template-hero-products img, .product-visual > img { mix-blend-mode: multiply; }
.home-balanced .template-family-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.home-balanced .template-family-grid > .family-card:only-child { padding: clamp(1rem, 3vw, 1.75rem); }
.product-visual > img { max-width: 27rem; display: block; margin-inline: auto; }
.home-balanced .balanced-factory:not(:has(.factory-story-media)) { grid-template-columns: 1fr; }
.product-summary .template-table th, .product-summary .template-table td { overflow-wrap: anywhere; }
.evidence-note { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.catalogue-families { margin-block: 0 1.25rem; }
.local-enquiry { max-width: 46rem; padding: clamp(1rem, 4vw, 2rem); background: #f4f6f8; border: 1px solid var(--line); }
.enquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.local-enquiry label { display: grid; gap: .3rem; font-weight: 600; min-width: 0; margin-bottom: .75rem; }
.local-enquiry input, .local-enquiry select, .local-enquiry textarea { width: 100%; min-width: 0; background: #fff; padding: .55rem .65rem; border: 1px solid #8796a9; color: var(--ink); }
.local-enquiry textarea { resize: vertical; }
#enquiry-draft { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1rem; }
[dir="rtl"] .buyer-tasks > a { margin-inline: 0 18px; border-right: 0; border-inline-end: 1px solid var(--line); padding-inline: 0 22px; }
[dir="rtl"] .buyer-tasks > a:last-child { margin-inline-end: 0; border-inline-end: 0; }
[dir="rtl"] .buyer-tasks b { right: auto; inset-inline-end: 14px; }
@media (min-width: 761px) {
  .home-balanced .buyer-tasks:has(> a:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-balanced .template-family-grid > .family-card:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 2rem;
  }
  .home-balanced .template-family-grid > .family-card:only-child > img { grid-row: span 2; height: 180px; }
  .home-balanced .template-family-grid > .family-card:only-child > strong { align-self: end; font-size: 1.35rem; }
}
@media (max-width: 760px) {
  .template-hero-products { grid-template-columns: repeat(var(--items), minmax(0, 1fr)); }
  .template-logo { font-size: 19px; }
  .template-logo img { max-width: 130px; max-height: 40px; }
  .article-page > img { max-height: 240px; }
  .product-summary { display: contents; }
  .product-summary > .eyebrow, .product-summary > h1, .product-summary > .intro { margin-bottom: 0; }
  .product-hero > .product-visual { grid-row: 4; }
  .product-visual > img { height: clamp(190px, 64vw, 290px); }
  .product-summary .template-table th, .product-summary .template-table td { padding: .55rem .45rem; }
}
@media (max-width: 500px) {
  .enquiry-fields { grid-template-columns: minmax(0, 1fr); }
}
