/* pages-about.css: group CSS for our-office.html and our-smiles.html (B5b, 2026-09-27).
   Holds the group-only component WALL (v2-specs/components/WALL.md; gate rows tools/specs/_components/WALL.json).
   Tokens only; no shared class is restyled here. */

/* ---------------------------------------------------------------- WALL: native-ratio photo wall
   schillingfarms-int/07 (Pass 1b): one run of 500px photos with 5px margins, centred, top-aligned lines that
   leave white holes under the shorter photo; 2-up only when the column reaches 1020 (viewport >= 1040). */
.wall { padding: 80px 0; }
.wall__rail { width: min(1180px, 100%); margin: 0 auto; padding: 0 10px; }
.wall__h2 {
  margin: 0 0 30px; padding: 0 10px;
  font: 600 36px/40.5px var(--font-display); color: var(--grey-logo); text-wrap: balance;   /* TITLES 2026-09-27: H2 tier 36 / 28 */
}
.wall__grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  margin: 0; padding: 0; list-style: none;
}
.wall__item { flex: none; width: min(500px, calc(100% - 10px)); margin: 5px; }
.wall__img { display: block; width: auto; max-width: 100%; height: auto; }

/* grouped (our-smiles): a group is one tile, its label on the image edge */
.wall--grouped .wall__grid { row-gap: 30px; }
.wall__group > .wall__h2 { margin: 0 0 16px; padding: 0; }
/* M5 (INTERIOR-PLAN 10.9, FIX-5b 2026-09-27): the grouped tiles show their images at min(620px, native, 100%),
   never upscaled (the img keeps width:auto; max-width:100%). The rail widens to 1280 (column 1260) so two 620 tiles
   + their 5px margins fill one line from 1346 up (1440: tiles at x 95 / 725). Narrower, the rail keeps 33px each
   side, so the first tile's edge sits on the masthead H1's 48px well (.nl-wrap) instead of 15px from the viewport
   edge; from 1040 to 1345 the pair shares the line at 50% - 10, never under the old 500 tile (rail floor 1040, so
   the 27-character label stays on one line); below 1040 one centred 620 tile per line; phones stay full-bleed. */
.wall--grouped .wall__rail { width: min(1280px, 100% - 66px); }
.wall--grouped .wall__item { width: min(620px, calc(100% - 10px)); }
@media (min-width: 1040px) {
  .wall--grouped .wall__rail { width: min(1280px, max(100% - 66px, 1040px)); }
  .wall--grouped .wall__item { width: min(620px, calc(50% - 10px)); }
}
@media (max-width: 600px) { .wall--grouped .wall__rail { width: 100%; } }

/* the brand card (our-office): a tile in its row partner's 4:3 frame (WALL.md WL.6, DECISION) */
.wall__card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 32px 24px; background: var(--sky); text-align: center; border-radius: 0;
}
.wall__card-logo { display: block; width: 250px; height: auto; margin: 0 0 20px; }
.wall__card-rule { display: block; width: 120px; height: 1px; margin: 0 0 20px; background: var(--grey-logo); }
.wall__card-name { margin: 0 0 8px; font: 700 22px/28px var(--font-display); color: var(--grey-logo); }
.wall__card-line { margin: 0; font: 400 17px/25.5px var(--font-body); color: var(--ink); }

@media (max-width: 600px) {
  .wall { padding: 48px 0; }
  .wall__rail { padding: 0; }
  .wall__h2 { margin-bottom: 24px; padding: 0 20px; font-size: 28px; line-height: 31.5px; }
  .wall__group > .wall__h2 { margin-bottom: 16px; padding: 0 20px; }
  .wall__item { width: min(500px, 100%); margin: 5px 0; }
  .wall--grouped .wall__item { width: min(620px, 100%); }
}

/* ---------------------------------------------------------------- WALL swipe (`.wall--swipe`, our-office)
   M4 (INTERIOR-PLAN 10.9, FIX-5b 2026-09-27; WALL.md ADDENDUM, class A house mobile law): never 5 full-bleed photos
   back to back on phones. At <= 1039 (wherever the wall would be one tile per line) the list becomes the house swipe
   row: the homepage H6 / RVROW scroll-snap mechanism, driven by the generic [data-swipe] of js/interior.js. FIX-7
   (2026-09-27, WALL.md ADDENDUM): every slide, photo or card, sits in the SAME 4:3 frame (`.wall__item`
   aspect-ratio: 4/3, overflow hidden); photos cover-crop (`.wall__img` width/height 100%, object-fit: cover,
   object-position: center), never native-ratio, so the wide treatment-bay photo no longer leaves empty track space
   below it. The slide keeps the wall's 500 tile cap, so tablets show a 500 slide and a wider peek. The brand card
   is the LAST slide: it is last in the DOM, and at >= 1040 `order` puts it back in its desktop slot (third), so the
   desktop wall (native ratios, no crop) lands exactly as before. The nav is the homepage atom (.car-arrow,
   .rev__dots / .rev__dot, styled by site.css, never restyled here) in the wall's own .wall__nav wrapper. */
.wall__nav { display: none; }
@media (min-width: 1040px) {
  .wall--swipe .wall__item:nth-child(n+3) { order: 2; }
  .wall--swipe .wall__item.wall__item--brand { order: 1; }
}
@media (max-width: 1039px) {
  .wall--swipe .wall__rail { padding: 0; }
  .wall--swipe .wall__rail > .wall__h2 { padding: 0 20px; }
  .wall--swipe .wall__grid {
    --wall-gap: 16px; --wall-peek: 36px;
    flex-wrap: nowrap; justify-content: flex-start; gap: var(--wall-gap);
    padding: 0 0 0 20px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .wall--swipe .wall__grid::-webkit-scrollbar { display: none; }
  /* end room: the last slide snaps at the 20px inset too (36 on phones; the slack beside a capped 500 slide on tablets) */
  .wall--swipe .wall__grid::after { content: ""; flex: 0 0 max(var(--wall-peek), calc(100% - 500px - var(--wall-gap))); }
  .wall--swipe .wall__item {
    width: min(500px, calc(100% - var(--wall-gap) - var(--wall-peek))); margin: 0;
    aspect-ratio: 4 / 3; overflow: hidden;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  .wall--swipe .wall__img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
  }
  .wall--swipe .wall__grid:focus-visible { outline: var(--focus-light); outline-offset: -4px; }
  html.js .wall--swipe .wall__nav {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    position: relative; width: 100%; margin-top: 20px;
  }
}
/* the brand slide in a phone slide's 4:3 frame (288 x 216 at 360): the chrome's own phone logo size and tighter air,
   so the card never outgrows its row partners */
@media (max-width: 600px) {
  .wall--swipe .wall__card { padding: 16px; }
  .wall--swipe .wall__card-logo { width: clamp(150px, 100vw - 170px, 250px); margin-bottom: 14px; }
  .wall--swipe .wall__card-rule { margin-bottom: 14px; }
}
/* six 44px dots + two 44px arrows = 352px of targets: under 380 the 8px gaps give way (360 keeps every target at 44);
   under the 360 house phone the dot buttons (not their 10px discs) narrow to 38 so 320 has no page overflow
   (316 of targets, every one >= 24 x 44, WCAG 2.5.8) */
@media (max-width: 379px) {
  html.js .wall--swipe .wall__nav { gap: 0; }
}
@media (max-width: 359px) {
  .wall--swipe .wall__nav .rev__dot { width: 38px; }
}

/* ================================================================ our-smiles v2 (agent SMILES, 2026-09-27; SMILES-3 2026-09-28)
   Owner: "smile gallery page is too empty/dated." Page spec v2-specs/pages/our-smiles.md (v2 addendum, deltas SM2.x).
   Every rule below is scoped to body[data-page="our-smiles"], except BA, a group-only component (its own .ba
   classes, used on this page only); our-office's WALL rules above are untouched. SMILES-3 removed the v2 framed
   WALL gallery rules (SM2.2 / SM2.3): the gallery is now BA (page spec v3 addendum, deltas SM3.x). */

/* ---- BA: before and after results band (SMILES-3, 2026-09-28; v2-specs/components/BA.md, gate rows
   tools/specs/_components/BA.json). Owner: "this page looks realy bad" (the two small framed composites on sky).
   No fully harvested before/after precedent exists (quincy/08 is static only), so BA is COMPOSED from harvested
   parts (class B, BA.md): the FEAT4 ink surface (.s-ink, white headings), the BLK 1192 rail and its text / media
   split, the house uppercase tracked kicker (worcester .comfort__kicker / .chk__kicker) as the case caption, and the
   house card radius on each pane. One unit per case: the composites are split into their real panes (crop only,
   assets/real/smiles/case<n>-before|after.png); our own Before / After chips replace the burnt-in labels.
   Density: every pane shows at min(380px, its column): 380 is case 3's native width, so desktop never drops under
   1.0x; phones (dpr 2) stack the panes full width in the 16px gutter, capped at each file's native CSS width
   (allow-listed in tools/specs/our-smiles.json with the figures). No JS: nothing to fall back from. */
/* the opener ground on this page: the OPENERS rule paints the NEXT band's surface under the panel (interior.css
   :has(+ .s-sky) / :has(+ .s-sky2), white otherwise). No rule covers an ink next band, so without this the panel
   would sit on white notches above the dark band; the page-scoped rule completes the same mechanism for .s-ink. */
body[data-page="our-smiles"] .op-band.s-grain:has(+ .ba.s-ink) { background: var(--ink); }
.ba { padding: 72px 0 80px; }
.ba__rail { max-width: 1192px; margin: 0 auto; padding: 0 20px; }
.ba__intro { max-width: 640px; margin: 0 0 40px; }
.ba__h2 { margin: 0 0 16px; font: 700 40px/45px var(--font-display); color: var(--white); text-wrap: balance; }
.ba__deck { margin: 0; font: 400 18px/27px var(--font-body); color: var(--white); }
.ba__cases { display: grid; row-gap: 40px; margin: 0; padding: 0; list-style: none; }
.ba__fig { margin: 0; }
.ba__cap {
  display: block; margin: 0 0 14px;
  font: 400 15px/20px var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--sky-strong);
}
.ba__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 12px; align-items: start; }
.ba__pane { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-eh-card); background: var(--ink); }
.ba__img { display: block; width: 100%; height: auto; }
.ba__chip {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 5px 9px; border-radius: var(--radius-button);
  font: 700 12px/14px var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--white); color: var(--ink);
}
.ba__chip--after { background: var(--primary); color: var(--white); }
/* >= 1192: the BLK split. Intro left (the rest of the rail), cases right (2 x 380 + 12 = 772), 64 apart; the H2 top
   sits on the first caption's line. */
@media (min-width: 1192px) {
  .ba__rail { display: grid; grid-template-columns: minmax(0, 1fr) 772px; column-gap: 64px; align-items: start; }
  .ba__intro { margin: 0; }
}
@media (max-width: 900px) { .ba__h2 { font-size: 36px; line-height: 40.5px; } }
/* phones: one pane per line, full width in the 16px gutter (the opener panel's edges), before above after; each
   pane capped at its file's native CSS width (380 case 3, 502 cases 1 and 2), so a 430 phone never stretches
   case 3 past its file */
@media (max-width: 600px) {
  .ba { padding: 40px 0 48px; }
  .ba__rail { padding: 0 16px; }
  .ba__intro { margin-bottom: 28px; }
  .ba__h2 { font-size: 28px; line-height: 31.5px; }
  .ba__deck { font-size: 16px; line-height: 24px; }
  .ba__cases { row-gap: 32px; }
  .ba__cap { margin-bottom: 12px; font-size: 14px; }
  .ba__pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ba__pane { max-width: 502px; }
  .ba__case--3 .ba__pane { max-width: 380px; }
  .ba__chip { top: 8px; left: 8px; }
}

/* ---- the treatments head (SM2.6): a plain left heading and a one-line deck on the first BLK band, on the BLK rail
   (1192, 20px sides), so its left edge is the first block's text edge (x 144 at 1440, 20 below 1192). H2 on the
   CHK tier (40, 36 at <= 900, 28 phones), above the blocks' 36 / 28 H3s and under the 48 / 40 / 32 H1. */
body[data-page="our-smiles"] .tx-head { max-width: 1192px; margin: 0 auto 56px; padding: 0 20px; }
body[data-page="our-smiles"] .tx-head__h2 {
  margin: 0 0 16px; font: 700 40px/45px var(--font-display); color: var(--grey-logo); text-wrap: balance;
}
body[data-page="our-smiles"] .tx-head__deck {
  max-width: 544px; margin: 0; font: 400 18px/27px var(--font-body); color: var(--body-ink);
}
@media (max-width: 900px) {
  body[data-page="our-smiles"] .tx-head__h2 { font-size: 36px; line-height: 40.5px; }
}
@media (max-width: 768px) {
  body[data-page="our-smiles"] .tx-head { margin-bottom: 32px; }
}
@media (max-width: 600px) {
  body[data-page="our-smiles"] .tx-head__h2 { font-size: 28px; line-height: 31.5px; }
  body[data-page="our-smiles"] .tx-head__deck { font-size: 16px; line-height: 24px; }
}
