/* Curdes storefront. No JavaScript; layout is plain CSS grid. */

:root {
  --ink: #1d2430;
  --heading-ink: #333;
  --muted: #5d6675;
  --line: #dde1e7;
  --bg: #ffffff;
  --panel: #f5f7fa;
  --accent: #1f5fa8;
  --accent-ink: #ffffff;
  --good: #1e7a46;
  --listing-cols: 3;        /* products per row on listing pages */
  --thumb: 5.5rem;          /* listing thumbnail */
  --detail-price-col: 18rem;
}


.listing-main a {
     color: var(--heading-ink);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
/* Links aren't underlined; the underline appears on hover (and keyboard focus). */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.sku { color: var(--muted); font-size: 0.85em; }

/* Header: three full-width bands (account links, logo, main menu) */
.band-top { background: #fff; border-bottom: 1px solid var(--line); }
.band-menu { max-width: 68rem; margin-inline: auto; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.35rem 0.5rem; padding-block: 0.5rem; font-size: 0.85rem; }
.top-nav a, .top-nav .link-button { color: #000; background: #e9ecef; border: 1px solid #d3d8de; border-radius: 6px; padding: 0.25rem 0.8rem; font-weight: 600; }
.top-nav a:hover, .top-nav a:focus-visible, .top-nav .link-button:hover, .top-nav .link-button:focus-visible { background: #dde1e6; border-color: #bfc6ce; text-decoration: none; }
.band-brand { background: #fff; border-bottom: 1px solid var(--line); }
.band-brand .wrap { padding-block: 1.25rem; }
.brand { display: inline-block; line-height: 0; }
.brand img { height: 3.5rem; width: auto; }
.page-home .brand img { height: 5.5rem; }
.band-menu { background: #fff; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 0.6rem; font-weight: 600; }
.main-nav a { color: #000; background: #e9ecef; border: 1px solid #d3d8de; border-radius: 6px; padding: 0.4rem 1rem; }
.main-nav a:hover, .main-nav a:focus-visible { background: #dde1e6; border-color: #bfc6ce; }
form.inline { display: inline; margin: 0; }
.top-search input { width: 11rem; max-width: 40vw; padding: 0.15rem 0.5rem; font-size: 0.85rem; border: 1px solid #d3d8de; border-radius: 6px; }

/* Search page */
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 32rem; margin-bottom: 1rem; }
.search-form input { flex: 1 1 14rem; }
.search-count, .search-note { color: var(--muted); font-size: 0.9em; }
.search-results { list-style: none; padding: 0; }
.search-results li { margin-bottom: 1.1rem; }
.search-results p { margin: 0.2rem 0 0; }
.search-kind { color: var(--muted); font-size: 0.8em; margin-left: 0.4rem; }
.search-results mark { background: #fff3b0; color: inherit; padding: 0 0.1em; }

main.wrap { padding-block: 1.25rem 3rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 1rem; font-size: 0.85em; }

/* Buttons & forms */
button, .button {
  display: inline-block; border: 0; border-radius: 4px; padding: 0.5rem 1rem;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center;
}
.button:hover, .button:focus-visible { text-decoration: none; }
.button.po { background: #cfe6f7; color: #0b3a5e; }
.button.po:hover, .button.po:focus-visible { background: #b9dcf2; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.link-button { background: none; color: var(--accent); padding: 0; font-weight: normal; }
.link-button:hover, .link-button:focus-visible { text-decoration: underline; }
input[type=number] { width: 4.5rem; }
input { font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; }
.narrow-form { display: grid; gap: 0.75rem; max-width: 22rem; }
.narrow-form label { display: grid; gap: 0.25rem; }

.flash { background: #eef5ff; border: 1px solid #c6dcf5; padding: 0.5rem 0.75rem; border-radius: 4px; }
.bundle-note { background: #f1f8f3; border-left: 3px solid var(--good); padding: 0.5rem 0.75rem; font-size: 0.9em; }
.bundle-note.ok { font-weight: 600; color: var(--good); }
.login-hint { font-size: 0.9em; color: var(--muted); }
.intro { color: var(--muted); margin-top: -0.5rem; }

/* Flags */
.flag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.1rem 0.4rem; border-radius: 3px; vertical-align: middle;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
}
.flag-new { background: #fff4df; color: #8a5a00; border-color: #f0d8a8; }
.flag-featured { background: #e9f1fb; color: var(--accent); border-color: #c6dcf5; }

/* Price box: the right-hand column on both listing and detail pages */
.price-box { text-align: right; }
.price-main { font-size: 1.15rem; font-weight: 700; }
.price-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.price-list { font-size: 0.85rem; color: var(--muted); }
.price-saving { font-size: 0.8rem; color: var(--good); font-weight: 600; }

/* Listing pages: a grid of thumbnail + name + SKU */
.toc ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.group-heading { scroll-margin-top: 1rem; font-size: 1.1rem; margin: 1.75rem 0 0.25rem; }
.group-heading a { color: var(--ink); }
.listing { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--listing-cols), 1fr); gap: 0.75rem 1rem; }
.listing-row { display: grid; grid-template-columns: var(--thumb) 1fr; gap: 0.75rem; align-items: center; padding: 0.5rem; border: 1px solid var(--line); border-radius: 6px; }
.listing-thumb {
  width: var(--thumb); height: var(--thumb); border-radius: 6px; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: contain; }
.listing-main h4 { font-size: 1rem; margin: 0; }
.listing-section + .listing-section { margin-top: 1.5rem; }
.sub-heading { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 0 0.4rem; }

/* Product detail: roomier, with a price card on the right */
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.detail { display: grid; grid-template-columns: 1fr var(--detail-price-col); gap: 2.5rem; align-items: start; }
.detail h1 { font-size: 2rem; margin: 1.25rem 0 0.25rem; }
.detail-meta { color: var(--muted); }
.lede { font-size: 1.15rem; }
.hero img, .hero-placeholder { width: 100%; border-radius: 8px; }
.hero-placeholder {
  aspect-ratio: 16 / 7; display: grid; place-items: center;
  background: linear-gradient(135deg, #e9f1fb, #f5f7fa); color: #9fb3cc;
  font-size: 2.5rem; font-weight: 700; letter-spacing: 0.08em;
}
.thumbs { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.thumbs img { width: 4.5rem; height: 4.5rem; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: block; }
.hero img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.detail .hero img { max-width: 28rem; aspect-ratio: 1 / 1; }

/* Product gallery (no JS): radio inputs pick which hero image shows; thumbnails are labels */
.gallery-radio { position: absolute; opacity: 0; pointer-events: none; }
.gallery .slide { display: none; cursor: zoom-in; }
.gallery-zoom { position: absolute; opacity: 0; pointer-events: none; }
/* Click the image to enlarge it over the page; click again to put it back */
.gallery-zoom:checked ~ .hero .slide {
  position: fixed; inset: 0; z-index: 100; place-items: center;
  background: rgba(0, 0, 0, 0.85); cursor: zoom-out; padding: 1rem;
}
.gallery-zoom:checked ~ .hero .slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; }
.gallery .slide:only-child { display: grid; }
.gallery .thumbs label { cursor: pointer; display: block; }
.gallery-radio:focus-visible ~ .thumbs { outline: 2px solid var(--accent, #1a5fb4); outline-offset: 2px; }
.gallery-radio:nth-of-type(1):checked ~ .hero .slide:nth-of-type(1) { display: grid; }
.gallery-radio:nth-of-type(1):checked ~ .thumbs li:nth-child(1) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(2):checked ~ .hero .slide:nth-of-type(2) { display: grid; }
.gallery-radio:nth-of-type(2):checked ~ .thumbs li:nth-child(2) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(3):checked ~ .hero .slide:nth-of-type(3) { display: grid; }
.gallery-radio:nth-of-type(3):checked ~ .thumbs li:nth-child(3) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(4):checked ~ .hero .slide:nth-of-type(4) { display: grid; }
.gallery-radio:nth-of-type(4):checked ~ .thumbs li:nth-child(4) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(5):checked ~ .hero .slide:nth-of-type(5) { display: grid; }
.gallery-radio:nth-of-type(5):checked ~ .thumbs li:nth-child(5) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(6):checked ~ .hero .slide:nth-of-type(6) { display: grid; }
.gallery-radio:nth-of-type(6):checked ~ .thumbs li:nth-child(6) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(7):checked ~ .hero .slide:nth-of-type(7) { display: grid; }
.gallery-radio:nth-of-type(7):checked ~ .thumbs li:nth-child(7) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(8):checked ~ .hero .slide:nth-of-type(8) { display: grid; }
.gallery-radio:nth-of-type(8):checked ~ .thumbs li:nth-child(8) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(9):checked ~ .hero .slide:nth-of-type(9) { display: grid; }
.gallery-radio:nth-of-type(9):checked ~ .thumbs li:nth-child(9) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(10):checked ~ .hero .slide:nth-of-type(10) { display: grid; }
.gallery-radio:nth-of-type(10):checked ~ .thumbs li:nth-child(10) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(11):checked ~ .hero .slide:nth-of-type(11) { display: grid; }
.gallery-radio:nth-of-type(11):checked ~ .thumbs li:nth-child(11) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(12):checked ~ .hero .slide:nth-of-type(12) { display: grid; }
.gallery-radio:nth-of-type(12):checked ~ .thumbs li:nth-child(12) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(13):checked ~ .hero .slide:nth-of-type(13) { display: grid; }
.gallery-radio:nth-of-type(13):checked ~ .thumbs li:nth-child(13) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(14):checked ~ .hero .slide:nth-of-type(14) { display: grid; }
.gallery-radio:nth-of-type(14):checked ~ .thumbs li:nth-child(14) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(15):checked ~ .hero .slide:nth-of-type(15) { display: grid; }
.gallery-radio:nth-of-type(15):checked ~ .thumbs li:nth-child(15) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(16):checked ~ .hero .slide:nth-of-type(16) { display: grid; }
.gallery-radio:nth-of-type(16):checked ~ .thumbs li:nth-child(16) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(17):checked ~ .hero .slide:nth-of-type(17) { display: grid; }
.gallery-radio:nth-of-type(17):checked ~ .thumbs li:nth-child(17) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(18):checked ~ .hero .slide:nth-of-type(18) { display: grid; }
.gallery-radio:nth-of-type(18):checked ~ .thumbs li:nth-child(18) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(19):checked ~ .hero .slide:nth-of-type(19) { display: grid; }
.gallery-radio:nth-of-type(19):checked ~ .thumbs li:nth-child(19) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.gallery-radio:nth-of-type(20):checked ~ .hero .slide:nth-of-type(20) { display: grid; }
.gallery-radio:nth-of-type(20):checked ~ .thumbs li:nth-child(20) img { border-color: var(--accent, #1a5fb4); box-shadow: 0 0 0 1px var(--accent, #1a5fb4); }
.mr-badge { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 4px; margin: 0.75rem 0 0; }
.mr-safe { background: #e7f5ec; color: var(--good); border: 1px solid #b9e0c7; }
.mr-unsafe { background: #fdecec; color: #a12a2a; border: 1px solid #f1c0c0; }
.description h2, .backup h2 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
.description ul { padding-left: 1.25rem; }
.description li { margin: 0.2rem 0; }
.description table { border-collapse: collapse; margin: 1rem 0; }
.description th, .description td { border: 1px solid var(--line); padding: 0.3rem 0.6rem; text-align: left; }
.specs { border-collapse: collapse; width: 100%; }
.specs th, .specs td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); }
.specs th { width: 40%; color: var(--muted); font-weight: 500; }
.detail-price {
  position: sticky; top: 1rem; padding: 1.25rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); display: grid; gap: 1rem;
}
.price-box.large .price-main { font-size: 1.9rem; }
.add-to-cart { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.add-to-cart .field { display: grid; gap: 0.25rem; width: 100%; font-size: 0.85rem; color: var(--muted); }
.add-to-cart select { max-width: 100%; }
.price-note { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0.75rem; }
.add-to-cart select, .add-to-cart input[type=text] { font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.price-from { font-size: 0.75em; font-weight: 500; color: var(--muted); }
.serial { font-size: 0.85em; font-weight: 600; }

/* Cart / checkout / quote */
.two-col { display: grid; grid-template-columns: 1fr var(--detail-price-col); gap: 2rem; align-items: start; }
.col-side { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.lines th, .lines td { padding: 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lines th { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }
.num { text-align: right !important; white-space: nowrap; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; margin: 0; }
.totals dd { margin: 0; text-align: right; }
.totals .discount { color: var(--good); }
.totals .grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.3rem; }

.quote { border: 1px solid var(--line); border-radius: 8px; padding: 2rem; margin-bottom: 1.5rem; }
.quote-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.quote-head h1 { margin: 0 0 0.75rem; }
.quote-logo { height: 3.25rem; width: auto; margin-bottom: 0.5rem; }
.quote-from { line-height: 1.4; }
.quote-from .company-name { font-weight: 700; }
.quote-title { text-align: right; }
.quote-title .quote-meta { margin-left: auto; }
.quote-meta { border-collapse: collapse; }
.quote-meta th, .quote-meta td { text-align: left; vertical-align: top; padding: 0.1rem 0 0.1rem 1rem; }
.quote-meta th { color: var(--muted); font-weight: normal; white-space: nowrap; }
.quote-totals { max-width: 22rem; margin-left: auto; }
.quote-terms { margin-top: 2rem; font-size: 0.9rem; }
.quote-terms h2 { font-size: 1rem; margin-bottom: 0.25rem; }
.quote-terms ol { margin: 0; padding-left: 1.25rem; }
.shipping-choice { border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.75rem; margin: 0; display: grid; gap: 0.3rem; }
.shipping-choice legend { font-weight: 600; padding: 0 0.25rem; }
.shipping-choice label { display: flex; gap: 0.5rem; align-items: baseline; }
.shipping-choice .muted { margin-left: auto; }
.checkout-form { display: grid; gap: 0.75rem; }

.stub-processor { max-width: 30rem; margin: 2rem auto; text-align: center; }
.stub-banner { background: #fff4df; border: 1px dashed #d9a84a; padding: 0.5rem; }

@media (max-width: 900px) { :root { --listing-cols: 2; } }
@media (max-width: 560px) { :root { --listing-cols: 1; } }
@media (max-width: 720px) {
  .detail, .two-col { grid-template-columns: 1fr; }
  .detail-price { position: static; }
  :root { --thumb: 4rem; }
}

@media print {
  .site-header, .site-footer, .no-print, .flash { display: none; }
  .quote { border: 0; padding: 0; }
}

.quote-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Tech Docs */
.techdoc { max-width: 52rem; }
.techdoc h1 { font-size: 1.9rem; margin-top: 0.5rem; }
.techdoc h2 { font-size: 1.35rem; margin-top: 2rem; }
.techdoc h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.techdoc img, .techdoc video { max-width: 100%; height: auto; }
.techdoc table { border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.techdoc th, .techdoc td { border: 1px solid var(--line); padding: 0.35rem 0.6rem; vertical-align: top; text-align: left; }
.techdoc tr:has(td[colspan]) td { background: var(--panel); }
.techdoc pre { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 1rem; overflow-x: auto; }
.techdoc code { font-size: 0.9em; }
.techdoc .toc { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 1rem; display: inline-block; }
.techdoc .toc .toctitle { font-weight: 600; }
.techdoc .toc ul { margin: 0.25rem 0; padding-left: 1.25rem; }

/* Company pages */
.prose { max-width: 48rem; }
.prose img { max-width: 100%; height: auto; }
.prose img[src*="/distributors/"] { max-height: 3rem; width: auto; margin-top: 1rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; }
.prose h3 + ul { margin-top: 0; }
.citations { padding-left: 1.5rem; }
.citations li { margin-bottom: 1rem; }
.citations cite { font-style: italic; font-weight: 600; }
.cite-authors, .cite-journal { font-size: 0.9rem; }
.cite-authors { color: var(--muted); }
.journal-name { font-style: italic; }
.tiles-pubs .journal-name { color: var(--accent); }
.footer-links { margin-bottom: 0.4rem; }

/* Admin */
.admin-search { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0; }
.admin-search input[type=search] { min-width: 18rem; }
.admin-table td { font-size: 0.9rem; }
.admin-nav { display: flex; gap: 1.25rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.admin-nav [aria-current] { font-weight: 600; color: var(--ink); text-decoration: none; }
.admin-order { display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; }
.admin-order h2, .admin-order + h2 { font-size: 1rem; margin-bottom: 0.25rem; }
.pending { color: #a15c00; }
.admin-form { max-width: 34rem; }
.admin-form .check { display: flex; gap: 0.5rem; align-items: baseline; }
.admin-form textarea { font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; }
.flash.error { background: #fdecec; border-color: #f1c0c0; }


/* Home page: a sharp-cornered hero, then small tiles */
:root { --tile-w: 11rem; --tile-gap: 0.75rem; }
.page-home .hero { position: relative; margin: 1rem 0 1.5rem; overflow: hidden; background: var(--panel); }
.page-home .hero img { display: block; width: 100%; height: auto; min-height: 14rem; max-height: 28rem; object-fit: cover; }
.page-home .hero-text { position: absolute; top: 1.5rem; right: 1.5rem; width: min(24rem, 45%); padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.9); }
.page-home .hero-text h1 { margin: 0 0 0.4rem; font-size: 1.5rem; line-height: 1.2; color: var(--heading-ink); }
.page-home .hero-text p { margin: 0 0 0.75rem; color: var(--ink); }
.tiles-heading { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; }
.tiles { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: var(--tile-gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-w), 1fr)); }
.tile { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.tile > a { display: block; color: var(--heading-ink); }
.tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-product img { object-fit: contain; padding: 0.5rem 0.5rem 2.2rem; }
.tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.9); font-size: 0.85rem; line-height: 1.25; }
.tile-caption strong, .tile-caption span { display: grid; }
.tile-caption span { color: var(--muted); font-size: 0.8rem; }
/* Featured tiles: the caption sits below the photograph instead of over it */
.tile-below .tile-caption { display: block; position: static; background: none; padding: 0.25rem 0.0625in 0.35rem; }
/* The link fills the whole tile (tiles in a row share a height), and the blue highlight
   replaces the tile's own border so it sits right at the edge of the box */
.tile-below > a { height: 100%; box-sizing: border-box; }
.tile-below:hover, .tile-below:focus-within { border-color: var(--accent); }
.tile.tile-below > a:hover::after, .tile.tile-below > a:focus-visible::after { border-width: 1px; }
.tile-text > a, .tile-text > div { display: block; padding: 0.7rem 0.8rem; font-size: 0.85rem; height: 100%; box-sizing: border-box; }
.tile-text strong, .tile-text span { display: grid; }
.tile-more > a { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--panel); }
.tile > a { position: relative; }
.tile > a:hover, .tile > a:focus-visible { text-decoration: none; }
/* The highlight is an overlay so it draws above the caption instead of under it */
.tile > a:hover::after, .tile > a:focus-visible::after { content: ""; position: absolute; inset: 0;
  border: 2px solid var(--accent); pointer-events: none; z-index: 2; }
/* Keep the caption inside the highlight line too, so it can never sit over it */
.tile > a:hover .tile-caption, .tile > a:focus-visible .tile-caption { left: 2px; right: 2px; bottom: 2px; }
/* News and publications: one per row, two or three tiles wide */
.tiles-list { grid-template-columns: 1fr; }
.tiles-list .tile { justify-self: start; width: 100%; box-sizing: border-box; }
.tiles-news .tile { max-width: calc(2 * var(--tile-w) + var(--tile-gap)); }
.tiles-pubs .tile { max-width: calc(3 * var(--tile-w) + 2 * var(--tile-gap)); }
@media (max-width: 640px) {
  .page-home .hero-text { position: static; width: auto; }
  .tiles:not(.tiles-list) { grid-template-columns: repeat(2, 1fr); }
}

/* Build a system */
.build-step h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.choices { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; max-width: 40rem; }
.choices li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.75rem; }
.choices label { display: flex; gap: 0.6rem; align-items: flex-start; }
.choices label.qty { align-items: center; white-space: nowrap; }
.choices .qty input { width: 4.5rem; }
.choice-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1rem; }
.choices label.option { align-items: center; white-space: nowrap; }
.choices select { font: inherit; padding: 0.25rem 0.4rem; border: 1px solid var(--line); border-radius: 4px; max-width: 12rem; }

/* Related products on a product page */
.related h3 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related-list a { display: block; width: 6.5rem; text-align: center; font-size: 0.8rem; line-height: 1.25; color: var(--heading-ink); }
.related-list img { display: block; width: 6.5rem; height: 5rem; object-fit: contain; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; margin-bottom: 0.25rem; }

.small-heading { font-size: 1rem; margin: 2rem 0 0.5rem; }

/* Exhibitions page: year on the left, its exhibitions in an indented column, no bullets */
.page-exhibitions ul { list-style: none; padding-left: 0; }
.page-exhibitions li { padding-left: 4.5rem; margin-bottom: 0.5em; }
.page-exhibitions li strong { float: left; width: 4.5rem; margin-left: -4.5rem; }
.page-exhibitions img[src*="/exhibitions/"] { width: 400px; max-width: 100%; }

/* Purchase order page: the items on the left, the customer's details to fill in on the right */
.po-form { display: grid; gap: 0.75rem; }
.po-form label { display: grid; gap: 0.25rem; font-size: 0.9rem; color: var(--muted); }
.po-form input { color: var(--ink); width: 100%; box-sizing: border-box; }
.po-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.po-email-line { margin: 0.5rem 0 0; font-weight: 600; }
