/* The products page (catalogue plan task 4.3; spec PD1 to PD4): its part of the mockup's
   pages.css (docs/design/home-sections/) with the size rules of docs/decisions.md section 1 and
   the catalogue spec, section 7, difference 8: every sentence at 18 px, button text at 17 px,
   every tap target at least 48 px; the brand tag, a label of SZ1, keeps the mockup's 14 px.
   Only features on the phone floor of docs/decisions.md section 15 (iOS 15.4, Chrome 108).
   Tokens from site.css; the eyebrow, the page head with its photo beside the heading, the photo
   frames, the blocks, the information box and the honest note from catalogue.css. */

/* the page (pages.css:3): the list starts closer to the header, its blocks spaced by their own
   margins as in the mockup */
.page { display: block; padding-top: calc(var(--header-h) + var(--safe-t) + 18px); }

/* "why we tell you everything" (pages.css:58) */
.pg-why { margin: 0 0 22px; max-width: 52rem; background: #EEF4E8; border-color: #D3DFC6; }

/* the cards (pages.css:40-57); a card reached by its anchor clears the fixed header (review D4) */
.pg-cards { display: grid; gap: 18px; }
.pg-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); scroll-margin-top: 16px; }
.pg-brand { position: absolute; top: 12px; left: 14px; padding: 4px 10px; border-radius: 999px; background: var(--paper);
  font: 700 14px/1.2 var(--body); color: var(--moss); }
/* every text of the card breaks a long word or link rather than widening the card, which would
   cut it off (administration spec R2, review T4: "Qué es", a fact) */
.pg-card-body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; overflow-wrap: anywhere; }
/* a long name breaks rather than widening the card, which would cut it off (administration spec
   R2: a 120-character product name the editor allows), overflow-wrap: anywhere being on the floor
   (floor.md) */
.pg-card-body h2 { margin: 0; font: 500 30px/1.1 var(--display); overflow-wrap: anywhere; }
.pg-card-body > p { margin: 0; font-size: 18px; line-height: 1.55; color: #3F4D42; }
.pg-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-facts li { display: grid; grid-template-columns: 22px 1fr; font-size: 18px; line-height: 1.5; }
.pg-facts svg { width: 18px; height: 18px; margin: 4px 5px 0 0; fill: none; stroke: var(--moss); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.pg-seal { margin: 0; padding: 10px 12px; border-radius: 12px; background: #EEF4E8; font-size: 18px; font-weight: 600; color: var(--moss); }
.pg-meta { margin: 0; font-size: 18px; color: var(--muted); }
.pg-meta b { color: var(--ink); }
/* the link to the brand's product sheet sits in running text, underlined like the site's other
   links in text (site.css .home-link); its hit area is padded to 48 px */
.pg-meta a { padding: 13px 0; color: var(--ink); text-underline-offset: 4px; }
/* a service's link: a long name breaks inside the pill rather than widening the card, which would
   cut it off (administration spec R2: a 120-character service name; lead's addition at plan 2.4);
   the vertical padding only shows once a name takes two lines, a one-line pill keeping the tap
   height */
.pg-used { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-used a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 14px; border-radius: 24px;
  border: 1.5px solid var(--moss); color: var(--moss); font-weight: 700; font-size: 17px; text-decoration: none;
  overflow-wrap: anywhere; }

/* the brand's shop, only while its address is set (pages.css:117-121); the shared note beside it
   breaks a long word inside the card, which would cut it off (spec R2, plan 3.2) */
.pg-shop { display: grid; gap: 4px; margin: 0; }
.pg-shop a { display: inline-flex; align-items: center; justify-self: start; min-height: var(--tap); padding: 0 18px;
  border-radius: 24px; background: var(--moss); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.pg-shop a::after { content: " ↗"; margin-left: 6px; }
.pg-shop span { font-size: 18px; color: var(--muted); overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
