/* A service page (catalogue plan task 4.2; spec SV2). The service page's part of the mockup's
   pages.css (docs/design/home-sections/pages.css) 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 eyebrow keeps the mockup's size (SZ1).
   Only features on the phone floor of docs/decisions.md section 15 (iOS 15.4, Chrome 108).
   Tokens from site.css; the page head, the drawings, the blocks, the option table, the
   information box and the honest note from catalogue.css. */

/* the page (pages.css:3): the mockup's width, the content starting closer to the header */
.page { display: block; padding-top: calc(var(--header-h) + var(--safe-t) + 18px); }

/* "Todos los servicios" back to step 1 (pages.css:8-9) and "Ver todos los productos"
   (pages.css:6-7), buttons at 17 px and 48 px */
.pg-back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); margin-bottom: 4px;
  color: var(--moss); font-weight: 700; font-size: 17px; text-decoration: none; }
.pg-back::before { content: "←"; }
.all-link { display: inline-flex; gap: 6px; align-items: center; justify-self: start; min-height: var(--tap);
  color: var(--moss); font-weight: 700; font-size: 17px; text-decoration: none; }
.all-link::after { content: "→"; }

/* the head (its layout from catalogue.css): the brand line is the heading's smaller second
   line (spec MT2, difference 9) */
.pg-head h1 .pg-brand { display: block; margin-top: 8px; font: 500 clamp(22px, 5vw, 30px)/1.2 var(--display); color: var(--moss); }

/* the time and the price under the description (pages.css:88-91) */
.pg-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 2px 0 0; font-size: 20px; font-variant-numeric: tabular-nums; }
.pg-quick span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pg-quick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pg-quick b { padding: 4px 12px; border-radius: 999px; background: var(--moss); color: #fff; }

/* the blocks beside the products (pages.css:13-14) */
.pg-grid { display: grid; gap: 18px; }
.pg-main, .pg-side { display: grid; gap: 18px; align-content: start; }

/* the price note (pages.css:18), at 18 px */
.pg-block .pg-small { color: var(--muted); }

/* what the price includes (pages.css:113-115), heading and text at 18 px; the text names the
   service's products, so a long product name breaks rather than widening the page
   (administration spec R2) */
.pg-incl { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #EEF4E8; }
.pg-incl h3 { margin: 0; font: 700 18px/1.3 var(--body); color: var(--moss); }
.pg-incl p { line-height: 1.5; overflow-wrap: anywhere; }

/* the appointment's steps, numbered (pages.css:25-27); a list in the template (role="list") */
.pg-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
/* a step's long word or link breaks within its track rather than widening the page (spec R2,
   review T4) */
.pg-steps li { counter-increment: st; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.pg-steps li::before { content: counter(st); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--moss); color: #fff; font: 700 17px/1 var(--body); }

/* the skin-test block (pages.css:28) */
.pg-test { background: #FFF7E3; border-color: #F0D9A0; }

/* "Productos que usamos" (pages.css:29-33), its text at 18 px; a list in the template
   (role="list"); the thumbnail and the drawing from catalogue.css; a long product name breaks
   rather than widening the page (administration spec R2), and so does its "Qué es" (review T4),
   its column never wider than the entry and overflow-wrap: anywhere being on the floor
   (floor.md) */
.pg-prods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-prods a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 16px;
  background: var(--linen); border: 1px solid var(--line); text-decoration: none; }
.pg-prods span { display: grid; gap: 2px; font-size: 18px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.pg-prods b { font-size: 18px; color: var(--ink); overflow-wrap: anywhere; }

@media (min-width: 900px) {
  /* the products beside the blocks (pages.css:73-76) */
  .pg-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 28px; align-items: start; }
  .pg-side { position: sticky; top: calc(var(--header-h) + 20px); }
}
