/* I. Donohoe Snooker — site styles */
:root {
  --paper: #f3eee3;
  --paper-deep: #e9e2d2;
  --ink: #1d1a15;
  --ink-muted: #5c5648;
  --rule: #d8cfbb;
  --field: #c9bfa8;
  --baize: #1e5a3a;
  --mahogany: #6b2f22;
  --brass: #b8923e;
  --dark-muted: #b5ac97;
  --dark-rule: #4a4436;
  --serif: 'Cormorant Garamond', 'Cochin', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Gill Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--baize); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-muted); }
.eyebrow {
  display: block;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.eyebrow--baize { color: var(--baize); }
.eyebrow--mahogany { color: var(--mahogany); }
.eyebrow--brass { color: var(--brass); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  transition: background 120ms ease;
}
.btn:hover { background: #33302a; color: var(--paper); }
.btn--baize { background: var(--baize); }
.btn--baize:hover { background: #17482e; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 14px; }
.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-size: 15px; font-weight: 600;
}
.textlink .icon { width: 18px; height: 18px; transition: transform 120ms ease; }
.textlink:hover .icon { transform: translateX(3px); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }

/* Top bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 40px; background: var(--ink); color: #d9d1bf; font-size: 14px;
}
.topbar a { color: #d9d1bf; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.topbar__sep { color: #7d7663; }
.topbar__news { display: flex; gap: 10px; align-items: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--baize); }

/* Header / nav */
.header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 84px; border-bottom: 1px solid var(--rule);
  position: relative;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; }
.brand__tag { font-size: 10px; white-space: nowrap; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  display: flex; flex-direction: column;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 8px var(--gutter) 20px;
}
.menu__panel a { display: flex; align-items: center; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--rule); }
.menu__panel .btn { margin-top: 16px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  padding-top: 72px; padding-bottom: 80px; align-items: end;
}
.hero__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; padding-bottom: 24px; }
.hero__copy h1 { font-size: clamp(44px, 4.7vw, 68px); line-height: 1.02; }
.hero__copy .lede { font-size: 18px; max-width: 460px; }
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__media { grid-column: span 7; display: flex; flex-direction: column; gap: 14px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__caption { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.hero__caption em { font-family: var(--serif); font-style: italic; font-size: 16px; }

/* Proof strip */
.proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.proof > div { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-right: 1px solid var(--rule); }
.proof > div:first-child { padding-left: 0; }
.proof > div:last-child { padding-right: 0; border-right: 0; }
.proof strong { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; }
.proof strong sup { font-size: 24px; vertical-align: 0.4em; }
.proof span { font-size: 14px; color: var(--ink-muted); }

/* Section heads */
.section { padding-top: 96px; padding-bottom: 80px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(32px, 3vw, 44px); max-width: 620px; }
.section__head p { max-width: 440px; }
.section__head .stack { display: flex; flex-direction: column; gap: 16px; }

/* Two paths */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.path { display: flex; flex-direction: column; gap: 22px; color: var(--ink); }
.path:hover { color: var(--ink); }
.path img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.path__body { display: flex; flex-direction: column; gap: 10px; }
.path h3 { font-size: 32px; }
.path .textlink { margin-top: 6px; }
.path:hover .textlink { color: var(--baize); }

/* Materials */
.materials {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  padding-top: 80px; padding-bottom: 80px; background: var(--paper-deep);
}
.materials__intro { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.materials__intro h2 { font-size: clamp(32px, 3vw, 44px); }
.materials__intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 12px; }
.materials__grid { grid-column: span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.material { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--paper); }
.material svg { width: 28px; height: 28px; }
.material h3 { font-size: 24px; }
.material p { font-size: 15px; }

/* Heritage */
.heritage {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  padding-top: 96px; padding-bottom: 96px; align-items: center;
}
.heritage__media { grid-column: span 6; display: flex; flex-direction: column; gap: 12px; }
.heritage__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.2); }
.heritage__media figcaption { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.heritage__copy { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 24px; }
.heritage__copy h2 { font-size: clamp(32px, 3vw, 44px); }
.pull { font-family: var(--serif); font-size: 28px; line-height: 1.3; font-style: italic; border-left: 2px solid var(--baize); padding-left: 20px; margin: 0; }
.pull + span { font-size: 14px; color: var(--ink-muted); }

/* Process */
.process { display: flex; flex-direction: column; gap: 48px; padding-top: 80px; padding-bottom: 96px; background: var(--ink); color: var(--paper); }
.process a:hover { color: var(--brass); }
.process .section__head { margin-bottom: 0; }
.process .section__head p { color: var(--dark-muted); max-width: 400px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--dark-rule); }
.step__num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brass); }
.step h3 { font-size: 24px; }
.step p { font-size: 15px; color: var(--dark-muted); }
.workshop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 16px; }
.workshop > div { display: flex; gap: 14px; align-items: center; }
.workshop img { width: 72px; height: 72px; object-fit: cover; }
.workshop span { font-size: 14px; color: var(--dark-muted); line-height: 1.4; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.quote { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--paper-deep); margin: 0; }
.quote .eyebrow { font-size: 11px; color: var(--ink-muted); }
.quote p { font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.quote footer { font-size: 14px; color: var(--ink-muted); }

/* Partners */
.partners {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 0 var(--gutter); padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.partners > span { font-size: 14px; color: var(--ink-muted); }
.partners__marks { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.mark { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.mark em { font-weight: 500; letter-spacing: 0; }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--ink); padding: 8px 12px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  padding-top: 96px; padding-bottom: 96px; align-items: center;
}
.contact__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.contact__copy h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.contact__copy .lede { font-size: 17px; max-width: 480px; }
.contact__lines { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.contact__lines a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.form { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 16px; padding: 36px; background: #fff; border: 1px solid var(--rule); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--field); background: #fbf9f4; border-radius: 0; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1a15' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--baize); outline-offset: 0; border-color: var(--baize); }
.form .btn { margin-top: 8px; }
.form__note { font-size: 14px; color: var(--ink-muted); }

/* Footer */
.footer { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 40px; background: var(--paper-deep); border-top: 1px solid var(--rule); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.footer__brand { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.footer__brand p { font-size: 14px; max-width: 320px; }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__col .eyebrow { font-size: 11px; color: var(--ink-muted); margin-bottom: 4px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); padding-top: 24px; border-top: 1px solid var(--rule); }

/* Responsive */
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu { display: block; }
  .header .btn--small { display: none; }
}
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .hero__copy, .hero__media { grid-column: span 12; }
  .hero__copy { padding-bottom: 0; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div { padding: 22px 20px; }
  .proof > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .proof > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .proof > div:nth-child(4) { border-top: 1px solid var(--rule); }
  .proof strong { font-size: 32px; }
  .section { padding-top: 64px; padding-bottom: 56px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .materials__intro, .materials__grid, .heritage__media, .heritage__copy, .contact__copy, .form { grid-column: span 12; }
  .heritage__copy { grid-column: span 12; }
  .steps, .workshop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 12; }
  .footer__col { grid-column: span 6; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar { justify-content: center; }
  .topbar__contact { display: none; }
  .header { min-height: 64px; }
  .brand__name { font-size: 24px; }
  .brand__tag { font-size: 9px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__caption { flex-direction: column; gap: 4px; }
  .paths, .materials__grid, .steps, .workshop { grid-template-columns: 1fr; }
  .path h3 { font-size: 26px; }
  .pull { font-size: 24px; }
  .quote { padding: 24px; }
  .quote p { font-size: 22px; }
  .form { padding: 24px; }
  .partners { justify-content: flex-start; }
  .footer__col { grid-column: span 12; }
  .footer__legal { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------------- inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); } .crumbs a:hover { color: var(--baize); }
.crumbs span[aria-current] { color: var(--ink); }

/* Product (table) page */
.product { display: flex; flex-direction: column; gap: 36px; padding-top: 28px; padding-bottom: 72px; }
.product__head { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.product__head h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.04; }
.product__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.product__media { grid-column: span 8; }
.product__media img { width: 100%; height: auto; background: var(--paper-deep); }
.product__noimg { aspect-ratio: 16 / 9; background: var(--paper-deep); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.facts { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--rule); position: sticky; top: 24px; }
.facts__row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.facts__row span { color: var(--ink-muted); }
.facts__row strong { font-weight: 600; text-align: right; }
.facts__note { font-size: 14px; color: var(--ink-muted); }
.facts .btn { margin-top: 6px; }

/* Article body (product description, FAQ, buying, services) */
.article { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.6; }
.article h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; margin-top: 18px; }
.article h3 { font-size: 24px; margin-top: 14px; }
.article h2:first-child, .article h3:first-child { margin-top: 0; }
.article p { margin: 0; }
.article a { color: var(--baize); text-decoration: underline; text-decoration-color: rgba(30, 90, 58, 0.35); text-underline-offset: 3px; }
.article a:hover { color: var(--mahogany); }
.article ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article hr { border: 0; border-top: 1px solid var(--rule); margin: 12px 0; }
.article__figure { margin: 10px 0; }
.article__figure img { width: 100%; height: auto; background: var(--paper-deep); }
.photo-link { color: var(--baize); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cards--top { margin-top: 8px; }
.card { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card:hover h3 { color: var(--baize); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-muted); font-size: 14px; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__body .eyebrow { font-size: 11px; color: var(--ink-muted); }
.card h3 { font-size: 24px; line-height: 1.15; }
.card__price { font-size: 15px; font-weight: 600; }
.card--sold .card__media img { filter: grayscale(0.6); opacity: 0.8; }
.pill { position: absolute; left: 12px; top: 12px; padding: 5px 10px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pill--sold { background: var(--ink); color: var(--paper); }

/* Listing pages */
.listing { display: flex; flex-direction: column; gap: 56px; padding-top: 28px; padding-bottom: 72px; }
.listing__head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.listing__head h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.04; }
.listing__head .lede { font-size: 17px; }
.listing__group { display: flex; flex-direction: column; gap: 24px; }
.listing__grouphead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.listing__grouphead h2 { font-size: 32px; }
.listing__grouphead span { font-size: 14px; }
.listing__group--sold { padding-top: 24px; border-top: 2px solid var(--rule); }

/* Generic content page */
.page { display: flex; flex-direction: column; gap: 36px; padding-top: 28px; padding-bottom: 72px; }
.page__head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.page__head h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.04; }
.page__head .lede { font-size: 17px; }

/* Testimonial letters */
.letters { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.letter { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; background: var(--paper-deep); }
.letter .eyebrow { font-size: 11px; color: var(--ink-muted); }
.letter__body { display: flex; flex-direction: column; gap: 12px; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.letter__body p { margin: 0; }
.letter__body a { color: var(--baize); text-decoration: underline; text-decoration-color: rgba(30, 90, 58, 0.35); text-underline-offset: 3px; }

/* Site map */
.sitemap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.sitemap__group h2 { font-size: 28px; margin-bottom: 12px; }
.sitemap__group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.sitemap__group li a { display: inline-flex; align-items: center; min-height: 32px; }

/* Enquiry band */
.band { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 64px; margin: 0 var(--gutter); padding-left: 0; padding-right: 0; border-top: 1px solid var(--rule); }
.band__copy { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.band__copy h2 { font-size: clamp(30px, 3vw, 40px); }
.band__copy p { color: var(--ink-muted); }
.band__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

@media (max-width: 960px) {
  .product__media, .facts { grid-column: span 12; }
  .facts { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .sitemap { grid-template-columns: 1fr; }
  .letter { padding: 22px 20px; }
  .letter__body { font-size: 19px; }
  .article { font-size: 16px; }
  .listing__grouphead { flex-direction: column; gap: 4px; }
}

/* Article images: never upscale small photographs */
.article__figure img { width: auto; max-width: 100%; height: auto; }
.gallery { display: grid; gap: 16px; margin: 10px 0; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; height: auto; background: var(--paper-deep); }
@media (max-width: 640px) { .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- round two */
/* Never crop a table photograph: fit it inside the frame instead */
.card__media img { object-fit: contain; }
.path img { aspect-ratio: auto; }
@media (max-width: 640px) {
  .hero__media img { aspect-ratio: auto; }
}

/* Content pages read as a centred column */
.page { max-width: calc(860px + 2 * var(--gutter)); margin: 0 auto; }
.page .article, .page .letters, .page__head { max-width: none; }

/* Listing filters */
.filters { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); min-width: 64px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--field); border-radius: 0; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__count { font-size: 14px; color: var(--ink-muted); }

/* Pager */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; }
.pager__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager__pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 1px solid var(--rule); font-size: 14px; }
.pager__pages a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager__step { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; border: 1px solid var(--ink); }
.pager__step[aria-disabled] { color: var(--ink-muted); border-color: var(--rule); }
@media (max-width: 640px) {
  .pager { flex-wrap: wrap; }
  .pager__pages { order: 3; width: 100%; }
}

/* Author display rules must not defeat the hidden attribute (filters rely on it) */
[hidden] { display: none !important; }

/* Filters on small screens: label on its own line, chips in one row that scrolls sideways */
@media (max-width: 640px) {
  .filters { gap: 14px; padding: 16px 0; }
  .filters__group { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
  .filters__label { min-width: 0; }
  .filters__chips { min-width: 0; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; }
  .filters__count { padding-top: 2px; }
}

/* ---------------------------------------------------------------- content pages with a side rail */
.page--rail { max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; gap: 48px; }
.page__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; }
.page__top .page__head { grid-column: span 12; }
.page__top--hero .page__head { grid-column: span 6; padding-bottom: 12px; }
.page__hero { grid-column: 8 / span 5; margin: 0; }
.page__hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); }
.page__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.page__body .article { grid-column: span 8; max-width: none; }
.rail { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.rail__block { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--rule); font-size: 14px; }
.rail__block .eyebrow { font-size: 11px; color: var(--ink-muted); }
.rail__block ul, .rail__block ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rail__block li a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); }
.rail__block li a:hover { color: var(--baize); }
.rail__block li a .icon { width: 14px; height: 14px; }
.rail__toc ol { counter-reset: toc; }
.rail__toc li { counter-increment: toc; }
.rail__toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); font-size: 15px; color: var(--brass); min-width: 24px; }
.rail__contact { background: #fff; }
.rail__contact p { color: var(--ink-muted); }
.rail__contact > a:not(.btn) { display: inline-flex; align-items: center; min-height: 32px; font-size: 16px; font-weight: 600; }
.rail__lead { display: flex; gap: 8px; align-items: center; color: var(--ink-muted); }
.rail__contact .btn { margin-top: 6px; min-height: 46px; }

/* Data tables in articles */
.table-scroll { overflow-x: auto; margin: 6px 0; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.data thead th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.data tbody th { font-weight: 600; white-space: nowrap; }

@media (max-width: 960px) {
  .page__top--hero .page__head, .page__hero, .page__body .article, .rail { grid-column: span 12; }
  .page__body .article { max-width: none; }
  .rail { position: static; }
  .rail__toc { display: none; }
}

/* ---------------------------------------------------------------- structured table pages */
.product__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.product__body .article { grid-column: span 8; max-width: none; gap: 14px; }
.product__body .article h2 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 10px; }
.product__body .article h3 { font-size: 22px; margin-top: 6px; }
.product__side { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 20px; }
.spec { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; margin-top: 10px; border-top: 1px solid var(--rule); }
.spec__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; font-size: 16px; }
.spec__list li { position: relative; padding-left: 18px; line-height: 1.5; }
.spec__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--brass); }
.small { font-size: 14px; }
.data--prices th { width: 60%; }
.terms { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--rule); font-size: 14px; line-height: 1.55; }
.terms h2 { font-size: 22px; }
.terms ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.terms li { position: relative; padding-left: 16px; color: var(--ink-muted); }
.terms li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--baize); }
.terms a { color: var(--baize); text-decoration: underline; text-underline-offset: 3px; }
.gallery--captions { gap: 24px; }
.gallery--captions .gallery__item { display: flex; flex-direction: column; gap: 8px; }
.gallery--captions img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery--captions figcaption { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.gallery--1 { grid-template-columns: minmax(0, 720px); }
@media (max-width: 960px) {
  .product__body .article, .product__side { grid-column: span 12; }
  .spec__list { grid-template-columns: 1fr; }
}
