/* sm-service.css: service pages only (design-lead, 2026-11-18). Dan's pick: service board round 2, treatment A,
   "Catalog entry" (deliver/boards/service.html#A). Built by HTML Build/build-service.js; tokens and shared parts
   (header, footer, .form, .button) are in sm-site.css. Everything here is scoped to body.sm-page.service.
   Colors only through the tokens. Amber (--cta) is the button only; small accents on light use --accent. */

/* ---------- the catalog entry (Dan's markup, 2026-11-19, REWRITE-STANDARD 13.7 and 13.8) ----------
   Room above the H1, the H1 across the top, then two columns that are not a 50/50 split: the photo left (4:3, or 1:1
   where the text column runs taller) and the text column right (the lead, then the price list). No credentials, no form. */
.sm-page.service .cat-entry { padding: 32px 0 0; }
.sm-page.service .cat-entry h1 { font-size: var(--h1-inner); margin: 0 0 24px; }
.sm-page.service .cat-row { display: grid; gap: 26px; }
.sm-page.service .cat-plate { margin: 0; }
.sm-page.service .cat-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.sm-page.service .cat-lead { font-size: 18px; }
/* the hero panel's own shape (build-service.js heroMore, REWRITE-STANDARD 12.12): whatever blocks the sheet gives after
   the lead, in its order. Body size; a small heading at the related-card title size; bullets carry the page's small gold
   square (the sort blocks' marker), numbers in the accent. Never a box (13.4). */
.sm-page.service .cat-more { margin-top: 18px; font-size: 17px; line-height: 1.6; }
.sm-page.service .cat-more > * + * { margin-top: 16px; }
.sm-page.service .cat-more p + ul, .sm-page.service .cat-more p + ol { margin-top: 10px; }
.sm-page.service .cat-more strong { color: var(--brand); font-weight: 700; }
.sm-page.service .cat-more h3 { font-size: 20px; line-height: 1.25; }
.sm-page.service .cat-more-box > ul, .sm-page.service .cat-more-box > ol { margin-top: 10px; }
.sm-page.service .cat-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-page.service .cat-more ul li { position: relative; padding-left: 24px; }
.sm-page.service .cat-more ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.sm-page.service .cat-more ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 8px; }
.sm-page.service .cat-more ol li { counter-increment: n; position: relative; padding-left: 30px; }
.sm-page.service .cat-more ol li::before { content: counter(n); position: absolute; left: 0; top: 0; font: 600 18px/1.5 var(--head); color: var(--accent); }
.sm-page.service .cat-prices { margin-top: 28px; }
.sm-page.service .cat-ph { font-size: 22px; margin: 0 0 10px; }
.sm-page.service .cat-plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brand); }
.sm-page.service .cat-plist li { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.sm-page.service .cat-plist strong { grid-column: 1 / -1; color: var(--brand); font-weight: 700; }
/* the rest of the label under the name (its comma is visually hidden, read aloud) */
.sm-page.service .cat-plist li > span { grid-column: 1; font-size: 14px; color: var(--muted); }
.sm-page.service .cat-plist b { grid-column: 2; grid-row: 2; font: 600 19px/1.2 var(--head); color: var(--brand); white-space: nowrap; }
.sm-page.service .cat-note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (min-width: 768px) {
  .sm-page.service .cat-entry { padding-top: 48px; }
  .sm-page.service .cat-entry h1 { margin-bottom: 32px; }
  .sm-page.service .cat-ph { font-size: 24px; }
}
/* from 1024 the photo and the text sit side by side; the text column is the narrower one. The H1 fills its first line
   rather than balancing, so that line runs on across the top of the text column (REWRITE-STANDARD 13.8 and 13.16) */
@media (min-width: 1024px) {
  .sm-page.service .cat-entry { padding-top: 64px; }
  .sm-page.service .cat-entry h1 { text-wrap: wrap; }
  .sm-page.service .cat-row { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
  .sm-page.service .cat-plate img { aspect-ratio: 1 / 1; }
}
@media (min-width: 1280px) {
  .sm-page.service .cat-row { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; }
  .sm-page.service .cat-plate img { aspect-ratio: 4 / 3; }
}

/* heading tails held together by build-service.js (no widows, REWRITE-STANDARD 12.1 and 13.12): an h2's last three words
   of 19 characters, everywhere except the guides report's heading cell at 1024-1179, which is narrower than the run; an
   H1 ending on a hyphenated word, from 768 up only (on a phone the run is wider than the column) */
.sm-page.service .cat-tail { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1179px) { .sm-page.service .cat-rep-h .cat-tail { white-space: normal; } }
@media (min-width: 768px) { .sm-page.service .cat-entry h1 .cat-h1-tail { white-space: nowrap; } }

/* ---------- sections ---------- */
.sm-page.service .cat-sec { padding: var(--band-pad) 0; }
.sm-page.service .cat-stone { background: var(--alt); }
.sm-page.service .cat-tight { padding-top: 0; }
/* a tight section after a stone band starts a new band, so it needs its top padding back (Dan, 2026-11-21: the FAQ heading sat
   on the band edge on Deck Repair and Deck Replacement; same on Patio Covers boards) */
.sm-page.service .cat-stone + .cat-tight { padding-top: var(--band-pad); }
.sm-page.service .cat-sec h2 { font-size: min(var(--h2), 38px); margin-bottom: 18px; }
.sm-page.service .cat-copy p + p { margin-top: 16px; }
.sm-page.service .cat-fig { margin: 0; }
.sm-page.service .cat-fig img { width: 100%; object-fit: cover; border-radius: var(--r-lg); }

/* what a new deck covers: text beside a photo */
.sm-page.service .cat-covers { display: grid; gap: 30px; }
.sm-page.service .cat-covers .cat-fig img { aspect-ratio: 4 / 3; }
/* railings: photo left, text right */
.sm-page.service .cat-rail { display: grid; gap: 30px; }
.sm-page.service .cat-rail .cat-fig img { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) {
  .sm-page.service .cat-covers { grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
  .sm-page.service .cat-rail { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .sm-page.service .cat-rail .cat-fig img { aspect-ratio: 4 / 5; }
}

/* the parts list: a picture of each part, ruled rows; the estimate form in a right column beside them (13.8).
   Below 1024 the form comes after the rows. */
.sm-page.service .cat-build { display: grid; gap: 48px; margin-top: 30px; }
.sm-page.service .cat-build .cat-form .form { max-width: 560px; margin: 0 auto; }
.sm-page.service .cat-parts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brand); }
.sm-page.service .cat-part { display: grid; grid-template-columns: 96px 1fr; gap: 14px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sm-page.service .cat-part figure { margin: 0; }
.sm-page.service .cat-part img, .sm-page.service .cat-nopic { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.sm-page.service .cat-nopic { display: block; background: var(--line); }
.sm-page.service .cat-part h3 { font-size: 22px; }
.sm-page.service .cat-part > div { grid-column: 1 / -1; }
.sm-page.service .cat-part p + p { margin-top: 10px; }
@media (min-width: 768px) {
  .sm-page.service .cat-part { grid-template-columns: 150px 180px 1fr; gap: 32px; padding: 22px 0; }
  .sm-page.service .cat-part > div { grid-column: auto; }
  .sm-page.service .cat-part img, .sm-page.service .cat-nopic { width: 150px; height: 100px; border-radius: var(--r); }
  .sm-page.service .cat-part h3 { font-size: 24px; }
}
/* from 1024: rows left, form right. The row keeps picture, name and text; the name sits over a shorter text line */
@media (min-width: 1024px) {
  .sm-page.service .cat-build { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .sm-page.service .cat-build .cat-form { position: sticky; top: calc(var(--hdr-top) + var(--hdr-h) + 24px); }
  .sm-page.service .cat-part { grid-template-columns: 150px 1fr; grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 6px; align-items: start; }
  .sm-page.service .cat-part figure, .sm-page.service .cat-part > .cat-nopic { grid-row: 1 / span 2; }
  .sm-page.service .cat-part > div { grid-column: 2; }
}
@media (min-width: 1280px) {
  .sm-page.service .cat-build { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; }
  .sm-page.service .cat-part { grid-template-columns: 150px 150px 1fr; grid-template-rows: auto; column-gap: 28px; align-items: center; }
  .sm-page.service .cat-part figure, .sm-page.service .cat-part > .cat-nopic { grid-row: auto; }
  .sm-page.service .cat-part > div { grid-column: auto; }
}

/* fewer than four rows (build-service.js STACK_BELOW): the rows would end well above the form beside them, so the rows
   run full width and the form sits centered under them at the town close's 560 px, no box (REWRITE-STANDARD 12.12, 13.4) */
.sm-page.service .cat-build.cat-build-stacked { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.sm-page.service .cat-build-stacked .cat-form { position: static; }
.sm-page.service .cat-build-stacked .cat-form .form { max-width: 560px; margin: 0 auto; }
@media (min-width: 768px) { .sm-page.service .cat-build.cat-build-stacked { gap: 44px; } }
@media (min-width: 1024px) { .sm-page.service .cat-build.cat-build-stacked { gap: 56px; } }
/* full width leaves room for the part's name: a wider name cell, so a joined name ("railing to match") never runs into the text */
@media (min-width: 1280px) { .sm-page.service .cat-build-stacked .cat-part { grid-template-columns: 150px 240px 1fr; } }

/* wood or composite: two swatches under a rule */
.sm-page.service .cat-swatch { display: grid; margin-top: 30px; }
.sm-page.service .cat-swatch article + article { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.sm-page.service .cat-swatch header { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.sm-page.service .cat-swatch img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.sm-page.service .cat-swatch h3 { font-size: 26px; }
@media (min-width: 768px) {
  .sm-page.service .cat-swatch { grid-template-columns: 1fr 1fr; margin-top: 34px; }
  .sm-page.service .cat-swatch article { padding-right: 40px; }
  .sm-page.service .cat-swatch article + article { margin-top: 0; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid var(--line); }
  .sm-page.service .cat-swatch img { width: 84px; height: 84px; }
  .sm-page.service .cat-swatch h3 { font-size: 30px; }
}
@media (min-width: 1024px) {
  .sm-page.service .cat-swatch article { padding-right: 56px; }
  .sm-page.service .cat-swatch article + article { padding-left: 56px; }
}

/* things settled before the build: two by two, a small gold square before each heading */
.sm-page.service .cat-sort { display: grid; gap: 26px; margin-top: 30px; }
.sm-page.service .cat-sort h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 6px; }
.sm-page.service .cat-sort h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
@media (min-width: 768px) { .sm-page.service .cat-sort { grid-template-columns: 1fr 1fr; gap: 30px 64px; } }

/* weather: a wide photo, then two columns */
.sm-page.service .cat-wide { margin: 26px 0 30px; }
.sm-page.service .cat-wide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.sm-page.service .cat-cols { display: grid; gap: 28px; }
.sm-page.service .cat-cols h3 { font-size: 24px; margin-bottom: 8px; }
@media (min-width: 768px) {
  .sm-page.service .cat-wide { margin: 26px 0 34px; }
  .sm-page.service .cat-wide img { aspect-ratio: 3 / 1; }
  .sm-page.service .cat-cols { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* faq: ruled on the left, one open at a time */
.sm-page.service .cat-faq { margin-top: 26px; border-left: 4px solid var(--brand); padding-left: 22px; max-width: 860px; }
.sm-page.service .cat-faq details + details { margin-top: 22px; }
.sm-page.service .cat-faq summary { list-style: none; cursor: pointer; font: 600 21px/1.3 var(--head); color: var(--brand); }
.sm-page.service .cat-faq summary::-webkit-details-marker { display: none; }
.sm-page.service .cat-faq details > p { margin-top: 12px; max-width: 68ch; }
@media (min-width: 768px) { .sm-page.service .cat-faq { padding-left: 30px; } .sm-page.service .cat-faq summary { font-size: 24px; } }

/* related services: a thumbnail beside each name, on stone, soft and rounded like the rest of the site.
   Tighter than a full band (Dan, 2026-11-19: "tighten this up"); the guides report sits right under it. */
.sm-page.service .cat-see-band { padding: 48px 0; }
.sm-page.service .cat-see { display: grid; gap: 22px; margin-top: 26px; }
.sm-page.service .cat-see a { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); }
.sm-page.service .cat-see a.no-photo { grid-template-columns: 1fr; }
.sm-page.service .cat-see img { width: 88px; height: 88px; border-radius: var(--r); object-fit: cover; }
.sm-page.service .cat-see b { display: block; font: 600 20px/1.25 var(--head); color: var(--brand); text-wrap: balance; }
.sm-page.service .cat-see a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sm-page.service .cat-see span span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
@media (min-width: 768px) { .sm-page.service .cat-see-band { padding: 56px 0; } }
@media (min-width: 1024px) {
  .sm-page.service .cat-see-band { padding: 64px 0; }
  .sm-page.service .cat-see { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 30px; }
  .sm-page.service .cat-see a { grid-template-columns: 104px 1fr; gap: 20px; }
  .sm-page.service .cat-see img { width: 104px; height: 104px; }
  .sm-page.service .cat-see b { font-size: 21px; }
}

/* the guides: a special report block (REWRITE-STANDARD 13.9 and 13.15), in the guide pages' look (sm-guide.css, not
   loaded here): a faint drawing grid behind it, square corners, a 2 px outer rule and 1.5 px rules between cells.
   One frame sized to what it holds: the heading in the left cell, each guide a ruled row to its right (the card photo
   framed at 180 x 120, the title and its line, an arrow cell). One guide is one compact row; more guides stack as rows
   in the same frame, so there is never a wide frame with one item in a corner. */
.sm-page.service {
  --cat-rule: var(--brand);
  --cat-grid: color-mix(in srgb, var(--brand) 6%, var(--card));
}
.sm-page.service .cat-report { padding: 40px 0 48px; background-color: var(--card);
  background-image: linear-gradient(var(--cat-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cat-grid) 1px, transparent 1px);
  background-size: 24px 24px; }
.sm-page.service .cat-rep { display: grid; grid-template-columns: minmax(0, 1fr); border: 2px solid var(--cat-rule); background: var(--card); }
.sm-page.service .cat-rep h2.cat-rep-h { padding: 20px; border-bottom: 1.5px solid var(--cat-rule); font-size: 22px; line-height: 1.2; }
.sm-page.service .cat-rep-list { list-style: none; margin: 0; padding: 0; }
.sm-page.service .cat-rep-list li { margin: 0; }
.sm-page.service .cat-rep-list li + li { border-top: 1.5px solid var(--cat-rule); }
/* phones: the photo small beside the words, the arrow after the title (as the guide index draws it on a phone) */
.sm-page.service .cat-rep-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px;
  text-decoration: none; color: inherit; }
.sm-page.service .cat-rep-item.no-photo { grid-template-columns: minmax(0, 1fr); }
.sm-page.service .cat-rep-pic img { width: 96px; height: 64px; object-fit: cover; border: 1.5px solid var(--cat-rule); }
.sm-page.service .cat-rep-text b { display: block; font: 600 19px/1.3 var(--head); color: var(--brand); text-wrap: balance; }
.sm-page.service .cat-rep-text b::after { content: "\00a0\2192"; color: var(--accent); font: 700 19px/1 var(--body); }
.sm-page.service .cat-rep-text span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.sm-page.service .cat-rep-go { display: none; }
.sm-page.service a.cat-rep-item:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* from 600: every part of a row is its own ruled cell, the arrow in a cell of its own */
@media (min-width: 600px) {
  .sm-page.service .cat-rep h2.cat-rep-h { padding: 22px 28px; font-size: 24px; }
  .sm-page.service .cat-rep-item { grid-template-columns: auto minmax(0, 1fr) 64px; gap: 0; align-items: stretch; padding: 0; }
  .sm-page.service .cat-rep-item.no-photo { grid-template-columns: minmax(0, 1fr) 64px; }
  .sm-page.service .cat-rep-pic { display: flex; align-items: center; padding: 18px; border-right: 1.5px solid var(--cat-rule); }
  .sm-page.service .cat-rep-pic img { width: 150px; height: 100px; }
  .sm-page.service .cat-rep-text { display: flex; flex-direction: column; justify-content: center; padding: 18px 28px; }
  .sm-page.service .cat-rep-text b { font-size: 20px; }
  .sm-page.service .cat-rep-text b::after { content: none; }
  .sm-page.service .cat-rep-go { display: flex; align-items: center; justify-content: center; border-left: 1.5px solid var(--cat-rule);
    color: var(--accent); font: 700 24px/1 var(--body); }
  .sm-page.service a.cat-rep-item:hover .cat-rep-go { background: var(--alt); }
}
@media (min-width: 768px) { .sm-page.service .cat-report { padding: 48px 0 56px; } }
/* from 1024: the heading in its own cell on the left, beside the rows (the guide pages' row: heading cell, then content) */
@media (min-width: 1024px) {
  .sm-page.service .cat-report { padding: 56px 0 64px; }
  .sm-page.service .cat-rep { grid-template-columns: 260px minmax(0, 1fr); }
  /* grid, not flex: the heading's text and its .cat-tail span stack as two lines instead of sitting side by side and running
     out of the cell (Dan, 2026-11-21, Patio Covers "Guides on / Covers and Pergolas") */
  .sm-page.service .cat-rep h2.cat-rep-h { display: grid; align-content: center; padding: 28px 32px; border-bottom: 0; border-right: 1.5px solid var(--cat-rule); font-size: 26px; }
  .sm-page.service .cat-rep-pic { padding: 20px; }
  .sm-page.service .cat-rep-pic img { width: 180px; height: 120px; }
  .sm-page.service .cat-rep-text { padding: 20px 32px; }
  .sm-page.service .cat-rep-text b { font-size: 21px; }
  .sm-page.service .cat-rep-item { grid-template-columns: auto minmax(0, 1fr) 76px; }
  .sm-page.service .cat-rep-item.no-photo { grid-template-columns: minmax(0, 1fr) 76px; }
}
@media (min-width: 1180px) { .sm-page.service .cat-rep { grid-template-columns: 340px minmax(0, 1fr); } }

/* the close: centered under a brand rule, one button to the form */
.sm-page.service .cta-bar { padding: var(--band-pad) 0; }
.sm-page.service .cat-close { text-align: center; border-top: 2px solid var(--brand); padding-top: 56px; }
.sm-page.service .cat-close h2 { font-size: min(var(--h2), 40px); }
.sm-page.service .cat-close p { margin: 14px auto 30px; font-size: 18px; }
@media (min-width: 1024px) { .sm-page.service .cat-close { padding-top: 72px; } }
