/* Shared by index.php and category.php. Rules in the first part are copied
   from product.php's <style> so all pages share one type scale and spacing. */
:root { --m: 35px; --title-overlap: 8px; }
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}
a, button { color: #111; -webkit-appearance: none; appearance: none; }
a:hover, a:active, button:hover, button:active { color: #666; }
a:visited { color: #111; }

.productwrap { max-width: 480px; margin: 0 auto; }
/* Computer layout: see the end of this file */

.breadcrumb { font-size: 14px; line-height: 1.5; color: #666; padding: 8px var(--m); border-bottom: 1px solid #f0f0f0; }
.breadcrumb a { text-decoration: none; }

.hero { position: relative; }
.hero-photo { position: relative; height: 210px; background: #222; overflow: hidden; }
.hero-photo .heroimg { width: 100%; height: 100%; object-fit: cover; display: block; } /* photo or video (1.11.26) */
.hero .herotext { position: absolute; top: 50%; left: var(--m); right: var(--m); transform: translateY(-50%); color: #fff; font-size: 20px; line-height: 1.4; }
.hero .herotitle { position: absolute; bottom: calc(-1 * var(--title-overlap)); left: var(--m); right: var(--m); color: #fff; line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.hero .herotitle .h1 { font-size: 50px; font-weight: 400; }
.hero .herotitle .h2 { font-size: 28px; font-weight: 400; }

h1.pname { display: flex; align-items: baseline; gap: 10px; line-height: 1; margin: 6px 0 1px; flex-wrap: wrap; }
h1.pname .h1 { font-size: 50px; font-weight: 400; }
h1.pname .h2 { font-size: 28px; font-weight: 400; }
/* Product/range name is a link (Stephen 9.11.26): stays black, grey on hover or tap like every other link */
h1.pname a.name-link, h1.pname a.name-link:visited { color: #111; text-decoration: none; -webkit-tap-highlight-color: rgba(0,0,0,0.08); }
h1.pname a.name-link:hover, h1.pname a.name-link:active { color: #666; }

ul.specs { list-style: none; margin: 0 0 12px; padding: 0; font-size: 17px; line-height: 1.7; }
ul.specs li b { font-weight: 700; }

.section { padding: 35px var(--m); position: relative; }
/* Divider line between sections, same as product.php (28.9.26). Pages that
   want them wrap their sections in .lined (about, support). */
.lined .section + .section::before { content: ""; position: absolute; top: 0; left: var(--m); right: var(--m); border-top: 1px solid #111; }
.section > :last-child { margin-bottom: 0; }
.section h2 { font-size: 25px; font-weight: 400; margin: 0 0 15px; line-height: 33px; } /* same H2 rule on every page (27.9.26); 15px gap under, same as H3 (3.10.26) */
.section h3 { font-size: 20px; font-weight: 400; margin: 35px 0 15px; } /* one line of space above every H3 (27.9.26) */
.section .more { font-size: 15px; text-decoration: none; display: inline-block; margin: 2px 0 10px; }
.section p { font-size: 17px; line-height: 1.5; color: #222; margin: 0 0 12px; }
.section details.more-detail { margin: 2px 0 10px; }
.section details.more-detail summary { font-size: 15px; color: #111; cursor: pointer; list-style: none; }
.section details.more-detail summary::-webkit-details-marker { display: none; }
.section details.more-detail summary::marker { content: ""; }
.section details.more-detail summary:hover { color: #666; }
.section details.more-detail[open] summary { margin-bottom: 8px; }
.section img.sectimg, .section video.sectimg { width: 100%; display: block; margin: 8px 0; background: #f2f2f2; }
/* From product.php: section header photo (250px high, sides cropped; supply ~1300x406),
   wide line art shown near its own size, and the small grey caption under a photo. */
.sectimg-banner { display: block; width: 100%; height: 250px; object-fit: cover; object-position: center; margin: 8px 0; background: #f2f2f2; }
/* On a computer, section header photos show their whole 1300x406 shape instead of
   a cropped 250px strip - same as the product page's desktop trial (28.9.26). */
@media (min-width: 768px) { .sectimg-banner { height: auto; aspect-ratio: 1300 / 406; } }
.sectimg-native { position: relative; width: 100%; overflow: hidden; margin: 8px 0; background: #f2f2f2; --native-x: 50%; }
.sectimg-native img { position: absolute; left: var(--native-x); top: 0; height: 100%; width: auto; max-width: none; transform: translateX(calc(-1 * var(--native-x))); display: block; }
.section p.photo-caption { font-size: 14px; font-style: italic; color: #666; margin: -2px 0 15px; }


/* From the home/category Sketch */
.hero-photo.tall { height: auto; aspect-ratio: 990 / 1299; max-height: 85vh; }
.hero .herotext p { margin: 0 0 12px; } /* the site's normal 12px paragraph gap (was 1.4em) - 27.10.26 */
.hero .herotext p:last-child { margin: 0; }
h1.pname { margin-bottom: 14px; }
h1.pname .sub { flex-basis: 100%; font-size: 20px; font-weight: 400; }
.diagram { display: block; max-width: 100%; margin: 21px 0 14px; }
.photo { margin: 0 0 var(--m); }
a.photo { display: block; } /* range photos are links (27.10.26) */
.range-photos > .photo:last-child { margin-bottom: 0; }
.photo img { width: 100%; display: block; background: #f2f2f2; }
.photo .herotitle { left: 0; }
/* "Which top do I need?" chart (Replacement Tops page) - same look as the freight tables (26.10.26).
   One table per badge section, a gap between them; fixed columns so they line up down the page. */
.top-chart { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 25px; table-layout: fixed; }
.top-chart col.label { width: 34%; }
.top-chart th, .top-chart td { border: 1px solid #ccc; padding: 6px 8px; text-align: center; vertical-align: middle; }
.top-chart th { background: #f5f5f5; font-weight: 700; }
.top-chart th.group, .top-chart td:first-child { text-align: left; }
.top-chart a { text-decoration: none; }
.top-chart td a { white-space: nowrap; }
.top-chart .code { display: block; font-weight: 700; }
.top-chart .muted { color: #999; font-weight: 400; }
.top-chart th .sub { font-weight: 400; color: #666; }
.top-chart th a.sub { font-size: 14px; text-decoration: underline; }
@media (max-width: 480px) { .top-chart { font-size: 14px; } .top-chart th, .top-chart td { padding: 5px 3px; } .top-chart th a.sub { font-size: 13px; } }
.divider { border: 0; border-top: 1px solid #111; margin: 0 var(--m); } /* full width, 1px - same as product.php's section lines (26.10.26) */

/* Buttons on the cart/checkout/payment pages - same look as product.php's "Add to cart" */
.update-btn, .buy-btn, .submit-btn, .pay-btn { display: inline-block; border: 1px solid #333; background: #fff; color: #111; padding: 10px 22px; font-size: 17px; line-height: 1; font-family: inherit; text-decoration: none; cursor: pointer; margin: 22px 0 0; }
.update-btn:hover, .buy-btn:hover, .submit-btn:hover, .pay-btn:hover { color: #666; }
.pay-btn:disabled { opacity: 0.5; cursor: default; }

/* Computer: 1000px page (was 900; Stephen 26.10.26), same as product.php's desktop layout.
   Paragraph text stops at 700px so lines stay readable; photos use the full width.
   Header photos keep their 1300x406 shape; section photos/diagrams 450px, centred. */
/* (Kept last so it wins over the phone rules above.) */
@media (min-width: 768px) {
  .productwrap { max-width: 1000px; }
  .section p { max-width: 700px; }
  .hero-photo:not(.tall) { height: auto; aspect-ratio: 1300 / 406; }
  .section img.sectimg, .section video.sectimg, .section .sectimg + p { max-width: 450px; margin-left: auto; margin-right: auto; } /* caption under a photo or video stays with it */
  .section.videos-left video.sectimg, .section.videos-left .sectimg + p { margin-left: 0; } /* home videos lined up with the text on the left (Stephen trial 30.10.26) */
  /* home photo on a computer: full page width, 600px high, top of the photo kept (stage lights, pulpit top,
     text) and the bottom cut off - it was up to 85% of the screen tall (Stephen 27.10.26). Phones unchanged. */
  .hero-photo.tall { aspect-ratio: auto; height: 600px; max-height: none; }
  .hero-photo.tall img.heroimg { object-position: center top; }
  /* its text: at the site's H2 size (25px) and the
     700px paragraph width - existing sizes, no new style (Stephen 27.10.26) */
  .hero-photo.tall .herotext { font-size: 25px; line-height: 33px; max-width: 700px; } /* centred vertically, as on phones */
}

/* Category pages (trialled on Arc2 Black, every category from 26.10.26): on a computer the
   product blocks sit 2 across - title, prices, drawing, specs and photo in
   each column - instead of one 830px-wide portrait photo per product.
   The short divider line between products is dropped there; the gap does
   that job. Phones unchanged. */
@media (min-width: 768px) {
  .range-grid.two-across { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; align-items: stretch; margin-bottom: var(--m); }
  /* last row: the middle line stops level with the bottom of the photos; the 35px above the footer comes from the margin above (26.10.26) */
  .range-grid.two-across .range-cell.last-row .section { padding-bottom: 0; }
  /* no intro and no line above the first row (W Lecterns): the middle line starts level with the
     top of the first products, 35px below the header photo - same rule as the bottom (26.10.26) */
  .range-grid.two-across.no-intro { margin-top: var(--m); }
  .range-grid.two-across .range-cell.first-row .section { padding-top: 0; }
  /* photos sit at the bottom of each column, so a row's photos line up whatever the text above (26.10.26) */
  .range-grid.two-across .range-cell { display: flex; flex-direction: column; }
  .range-grid.two-across .range-cell .section { flex: 1; display: flex; flex-direction: column; }
  .range-grid.two-across .range-text + .more { margin-top: auto; align-self: flex-start; } /* "View" + photos together at the bottom */
  /* 1px line down the middle of each row, meeting the lines across (26.10.26) */
  .range-grid.two-across .range-cell.right { border-left: 1px solid #111; }
  .range-grid.two-across .range-cell.left:last-child { border-right: 1px solid #111; margin-right: -1px; } /* -1px puts this line exactly under the right-hand products' line */ /* odd one at the end gets the middle line too (26.10.26) */
  /* one line across the page above each row; the line before a right-hand product is dropped */
  .range-grid.two-across > .divider { grid-column: 1 / -1; }
  .range-grid.two-across > .divider.mid-row { display: none; }
  .range-grid.two-across .range-cell.left .section { padding-right: calc(var(--m) / 2); }
  .range-grid.two-across .range-cell.right .section { padding-left: calc(var(--m) / 2); }
}

/* Home page on a computer (26.10.26): ranges one under another, each range's
   photos 2 across at the same size as product-page photos (~450px). */
@media (min-width: 768px) {
  .home-ranges .range-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); }
  .home-ranges .range-photos .photo { margin: 0; }
}

/* home trial video 2 (1.11.26): on phones the same tall box as the home photo, keeping the right of
   the frame (left side cropped off) so the text fits; on a computer the whole 16:9 frame (Stephen 2.11.26) */
.hero-photo.wholeframe .heroimg { object-position: right center; }
@media (min-width: 768px) { .hero-photo.tall.wholeframe { height: auto; aspect-ratio: 16 / 9; max-height: none; } }
/* Home trial 3.11.26: photos stacked, the script in index.php fades each new one in on top of the last. */
.fadeshow .heroimg { position: absolute; inset: 0; opacity: 0; }
.fadeshow .heroimg:first-child { opacity: 1; }
.fadeshow .herotext { z-index: 3; }
/* Easier-to-read text without a band (Stephen 3.11.26): a soft dark glow fading out from behind the text, plus a soft shadow on the letters. */
.fadeshow::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 75% 45% at 35% 50%, rgba(0,0,0,0.45), rgba(0,0,0,0) 100%); }
.fadeshow .herotext { z-index: 4; text-shadow: 0 1px 2px rgba(0,0,0,0.7), 0 0 14px rgba(0,0,0,0.5); }
/* Phone: crop the home header just above the base - the base shows an older model we no longer make; top and stem read as a current Arc2 (Stephen 3.11.26). */
@media (max-width: 767px) {
  .hero-photo.tall.fadeshow { aspect-ratio: 990 / 1040; }
  .fadeshow .heroimg { object-position: center top; }
}

/* Home testimonials grey box (4.11.26): names line + 3 quotes, 3 across on a computer */
.section .quote-box { background: #f2f2f2; padding: 20px; margin-top: 20px; }
.section .quote-box p { margin: 0 0 15px; }
.section .quote-box .quote-row p:last-child { margin-bottom: 0; }
.section .quote-box .more { margin: 15px 0 0; }
.section .quote-box .quote-who { font-size: 15px; color: #666; }
@media (min-width: 768px) {
  .section .quote-box p { max-width: none; }
  .section .quote-box .quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
  .section .quote-box .quote-row p { margin: 0; }
}

/* Testimonials page (4.11.26): one grey box per testimonial, 2 across on a computer */
.section .quote-list { display: grid; gap: 15px; }
.section .quote-list .quote-box { margin: 0; }
.section .quote-list .quote-box p { margin: 0; }
@media (min-width: 768px) { .section .quote-list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
/* photo at the top of a testimonial box: same 4:3 frame for all, whole photo shown on the grey (4.11.26) */
.section .quote-box img.quote-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e6e6e6; margin: 0 0 12px; }

/* Freight tables (support, Questions and Answers) - moved here from support.php 18.11.26 so every
   page using site.css gets the same table. product.php keeps its own copy in its <style>. */
.freight-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.freight-table th, .freight-table td { border: 1px solid #ccc; padding: 6px 8px; text-align: center; }
.freight-table th { background: #f5f5f5; font-weight: 700; }
.freight-table td:first-child, .freight-table th:first-child { text-align: left; }
@media (max-width: 480px) { .freight-table th, .freight-table td { padding: 6px 4px; } }
.freight-note { font-size: 14px; color: #666; line-height: 1.5; }

/* Two drawings in a row: 2 across on a computer, one under the other on a phone.
   Same rule as the Diagram section on every product page (product.php .diagram-grid);
   a lone drawing is centred (18.11.26). */
@media (min-width: 768px) {
  .diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); max-width: none; }
  .section .diagram-grid .sectimg { max-width: none; margin: 0; }
  .section .diagram-grid .sectimg:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: auto; max-width: 100%; max-height: 675px; }
}

/* Two drawings, each with its own text under it (compare page, 18.11.26) */
@media (min-width: 768px) {
  .section .diagram-grid.captioned > div > .sectimg { max-width: none; margin: 0 0 8px; }
  .section .diagram-grid.captioned > div > p { max-width: none; }
}
