/* The page (spec 2026-11-16 §1, §3 Web): one anatomy in every style, drawn
   from the resolved style's values, which document.html sets once on
   .block-card as --pg-<name> (blocks/services/render.py style_vars). Tops by
   [data-top], frames by [data-frame], the lead by .is-lead, Counter's lead
   offer by [data-lead-offer="tiles"]. A style has one ground: the page looks
   the same for every visitor, never following the light or dark setting.
   The drawings it follows: docs/superpowers/specs/assets/2026-11-16-pages-proposal.html. */

/* The page around the card takes the style's ground (blocks/_head.html sets
   --background-color and --text-color on :root from the same values); the
   top starts at the screen's edge. body.pg-page: the card page and the
   preview page set it on a page. Save lives in the top (spec §1 "The bar"):
   the card page draws its own Save button hidden, and the top presses it. */
body.pg-page { margin-top: 0; background: var(--background-color) !important; background-image: none !important;
  padding-left: 0 !important; padding-right: 0 !important; }

.block-card {
  /* What blocks.css (the kinds' own rules) reads, from the style. */
  --block-accent: var(--pg-accent); --on-accent: var(--pg-on-accent);
  --block-panel: var(--pg-panel); --block-panel-text: var(--pg-panel-ink);
  --block-muted: var(--pg-muted); --block-line: var(--pg-rule); --primary-text: var(--pg-link);
  --brand-primary-color: var(--pg-accent); --text-color: var(--pg-ink);
  --background-transparent-color: transparent; --transparent-border: 1px solid var(--pg-rule);
  --map-ground: color-mix(in srgb, currentColor 10%, transparent); --map-road: color-mix(in srgb, currentColor 14%, transparent);
  --pg-heading: var(--pg-heading-face, 'Titillium Web', sans-serif);
  --pg-text: var(--pg-text-face, 'Titillium Web', sans-serif);
  display: flex; flex-direction: column; padding: 0 0 28px; color: var(--pg-ink); background: var(--pg-ground);
  font-family: var(--pg-text); font-size: 16px; line-height: 1.4; text-align: start;
}
.block-card button, .block-card input, .block-card textarea, .block-card select { font-family: inherit; }
.block-card a { color: inherit; }
.block-card .block-muted { color: var(--block-muted); opacity: 1; }
/* html:root outranks the card page's own dark .rounded-section (:root[data-scheme="dark"] .rounded-section). */
html:root .block-card .rounded-section { background: transparent; border: 0; border-radius: 0; padding: 0; text-align: start; }
.block-card .divider { border: 0; border-top: 1px solid var(--block-line); background: none; }
.block-card .subsection-title { display: block; margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary-text); }
.block-card .subsection-title:first-child { margin-top: 0; }
.block-card .block-single-section { display: none; }

/* ---- The top ---------------------------------------------------------- */
.pg-top { position: relative; display: flex; flex-direction: column; }
.pg-top-head { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pg-name { margin: 0; font-family: var(--pg-heading); font-size: var(--pg-name-size); font-weight: var(--pg-name-weight);
  letter-spacing: var(--pg-name-tracking); text-transform: var(--pg-name-case); line-height: 1.02; overflow-wrap: break-word; hyphens: auto; }
.pg-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pg-top-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-mark { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 50%;
  font-family: var(--pg-heading); font-size: 20px; font-weight: 700; }
.pg-mark img { width: 100%; height: 100%; object-fit: cover; }
.pg-mark.is-logo { background: #FFFFFF; }
.pg-mark.is-logo img { object-fit: contain; padding: 14%; box-sizing: border-box; }
.pg-under { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 6px; }

/* The status line: a dot, the state, the next change. */
.pg-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 15px; }
.pg-status[hidden] { display: none; }
.pg-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pg-status-closed); }
.pg-status.is-open i { background: var(--pg-status-open); }
.pg-status b { font-weight: 700; }
/* The next change in the ground's muted colour, which the catalogue keeps at 4.5:1 (an
   opacity would not: Brand's ink on a mid primary reads barely 4.5:1 at full strength). */
.pg-status span { color: var(--pg-muted); }
[data-top="band"] .pg-status span { color: inherit; }  /* in the band: its fill or the photo's scrim */
.block-card[data-status-centred] .pg-status { justify-content: center; }

/* The four small actions: equal tiles with an icon over a word. */
.pg-actions { display: flex; gap: 8px; }
.pg-action { flex: 1 1 0; min-width: 0; min-height: 60px; display: grid; justify-items: center; align-content: center; gap: 4px;
  padding: 9px 4px; box-sizing: border-box; border-radius: calc(var(--pg-radius) * .7 + 6px);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent); background: transparent; color: inherit;
  font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pg-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-action span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The top's Save while the save runs (blocks.js): the picker's pulse, and no second press. */
.pg-action[aria-busy="true"] { animation: block-picker-pulse 1s ease-in-out infinite; pointer-events: none; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .pg-action[aria-busy="true"] { animation: none; opacity: .55; } }
/* A drawn border (Counter's 2px ink) on panels and actions alike. */
.block-card .pg-action { border-width: max(1px, var(--pg-border-width)); }
.block-card[data-bordered] .pg-action { border-color: var(--pg-border); background: var(--pg-panel); color: var(--pg-panel-ink); }

/* band (Brand): the page's colour, everything in it; a photo behind, the words on the scrim. */
[data-top="band"] .pg-top { background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="band"] .pg-top-head { gap: 14px; padding: 28px 20px 22px; }
[data-top="band"] .pg-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; }
[data-top="band"] .pg-mark { width: 44px; height: 44px; font-size: 18px; background: var(--pg-accent); color: var(--pg-on-accent); }
[data-top="band"] .pg-top[data-photo] { min-height: 420px; justify-content: flex-end; overflow: hidden; }
[data-top="band"] .pg-top[data-photo] .pg-top-photo { position: absolute; inset: 0; }
[data-top="band"] .pg-top[data-photo] .pg-top-head { padding-top: 64px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .62) 48px, rgba(0, 0, 0, .78) 100%); }

/* paper (Table, Chambers): centred like a printed card; Chambers' is filled. */
[data-top="paper"] .pg-top-head { align-items: center; text-align: center; gap: 10px; padding: 34px 24px 10px;
  background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="paper"] .pg-mark { width: 62px; height: 62px; font-size: 22px; border: 1.5px solid var(--pg-top-mark); color: var(--pg-top-mark); }
.pg-top-rule { width: 52px; margin: 4px 0; border: 0; border-top: 2px solid var(--pg-top-mark); }
[data-top="paper"] .pg-top-head:has(+ .pg-under) { padding-bottom: 26px; }
[data-top="paper"] .pg-under { padding-top: 18px; }

/* poster (Counter, Trade, Class): a filled block, a large name. */
[data-top="poster"] .pg-top-head { gap: 10px; padding: 38px 20px 24px; background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="poster"] .pg-mark { width: 48px; height: 48px; border-radius: calc(var(--pg-radius) * .5 + 4px); }

/* arch (Chair): words beside the picture in an arch. */
[data-top="arch"] .pg-top-head { display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: end; gap: 16px;
  padding: 26px 20px 4px; background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="arch"] .pg-top-words { display: grid; gap: 10px; padding-bottom: 8px; }
.pg-arch { height: 218px; border-radius: 999px 999px 18px 18px; overflow: hidden; background: color-mix(in srgb, currentColor 10%, transparent); }

/* clean (Clinic): a rounded badge beside the name; the picture as a card under the actions. */
[data-top="clean"] .pg-top-head { flex-direction: row; align-items: center; gap: 14px; padding: 24px 20px 0;
  background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="clean"] .pg-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--pg-accent); color: var(--pg-on-accent); }
[data-top="clean"] .pg-top-words { display: grid; gap: 4px; min-width: 0; }
[data-top="clean"] .pg-name { line-height: 1.15; }
[data-top="clean"] .pg-kicker { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--pg-muted); }
.pg-clean-photo { height: 170px; margin: 10px 20px 0; overflow: hidden; border-radius: var(--pg-radius); }

/* cover (Studio, Stage, Flow): the picture across the screen, the words at its foot. */
[data-top="cover"] .pg-top-head { justify-content: flex-end; min-height: 340px; overflow: hidden;
  border-radius: 0 0 var(--pg-cover-foot) var(--pg-cover-foot); background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="cover"] .pg-top-photo { position: absolute; inset: 0; }
[data-top="cover"] .pg-top-words { position: relative; display: grid; gap: 6px; padding: 72px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .62) calc(100% - 48px), rgba(0, 0, 0, 0)); }
[data-style="studio"][data-top="cover"] .pg-top-head { min-height: 450px; }
[data-style="stage"][data-top="cover"] .pg-top-head { min-height: 400px; }
[data-style="stage"][data-top="cover"] .pg-name { line-height: .9; }
[data-style="flow"][data-top="cover"] .pg-top-head { min-height: 310px; }

/* label (Shopfront): a tilted label over the picture's foot. */
[data-top="label"] .pg-top-head { height: 320px; }
.pg-label { position: absolute; left: 18px; bottom: -24px; z-index: 1; max-width: calc(100% - 56px); display: grid; gap: 2px;
  padding: 12px 20px 10px; border-radius: 8px; background: var(--pg-top); color: var(--pg-top-ink);
  transform: rotate(-2.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.pg-label .pg-kicker { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
[data-top="label"] .pg-under { padding-top: 46px; }

/* compact (Estate, and an arch without its picture). */
[data-top="compact"] .pg-top-head { gap: 6px; padding: 30px 20px 2px; background: var(--pg-top); color: var(--pg-top-ink); }
[data-top="compact"] .pg-mark { width: 48px; height: 48px; margin-bottom: 6px; border-radius: calc(var(--pg-radius) * .5 + 4px); }

/* ---- Chips ------------------------------------------------------------ */
.block-card .block-chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; margin: 0;
  padding: 14px 20px 14px; background: var(--pg-ground); scrollbar-width: none; }
.block-card .block-chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--pg-ink);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; }
.block-card .block-chips .block-chip:first-child { background: var(--pg-ink); color: var(--pg-ground); border-color: transparent; }

/* ---- Blocks and frames ------------------------------------------------- */
.block-card .block { margin: 0; scroll-margin-top: 72px; }
.block-card .section-title { margin: 0 0 12px; font-family: var(--pg-heading); font-size: var(--pg-title-size);
  font-weight: var(--pg-title-weight); letter-spacing: var(--pg-title-tracking); text-transform: var(--pg-title-case);
  text-align: var(--pg-title-align); line-height: 1.1; color: inherit; opacity: 1; }
.block-card .is-lead > .section-title { font-size: calc(var(--pg-title-size) * 1.18); }

/* panel: filled and rounded. */
[data-frame="panel"] .block:not(.block-contact) { margin: 0 12px 12px; padding: 20px 18px; border-radius: var(--pg-radius);
  background: var(--pg-panel); color: var(--pg-panel-ink); border: var(--pg-border-width) solid var(--pg-border);
  --block-muted: var(--pg-panel-muted); --text-color: var(--pg-panel-ink); }
/* rule: a hairline between blocks. */
[data-frame="rule"] .block:not(.block-contact) { padding: 24px 20px; border-top: 1px solid var(--pg-rule); }
/* plain: space only. */
[data-frame="plain"] .block:not(.block-contact) { padding: 18px 20px; }
/* tile (Bento's): the title on the ground, the block's content a tile. */
[data-frame="tile"] .block:not(.block-contact) { padding: 12px 16px; }
html:root [data-frame="tile"] .block:not(.block-contact) > .rounded-section,
[data-frame="tile"] .block:not(.block-contact) > .block-legal { padding: 18px; border-radius: var(--pg-radius); background: var(--pg-panel);
  color: var(--pg-panel-ink); --block-muted: var(--pg-panel-muted); --text-color: var(--pg-panel-ink); }
/* The contact block on a business card: its own panels on the ground. */
.block-card .block.block-contact { padding: 4px 12px 16px; }

/* The lead: the style's lead colours, its title a step larger. */
/* Its secondary words in the lead's own ink: the lead has no muted colour of its own,
   and a mix of its ink read 3.6:1 on Clinic's teal. */
.block-card .block.is-lead { background: var(--pg-lead); color: var(--pg-lead-ink);
  --block-muted: var(--pg-lead-ink); --primary-text: var(--pg-lead-ink); --text-color: var(--pg-lead-ink);
  --block-line: color-mix(in srgb, var(--pg-lead-ink) 18%, transparent); }
[data-frame="rule"] .block.is-lead, [data-frame="plain"] .block.is-lead, [data-frame="tile"] .block.is-lead { border-top: 0; }
.block-card .is-lead .block-button { background: var(--pg-lead-ink); color: var(--pg-lead); }
.block-card .is-lead .subsection-title { color: inherit; }

/* Rows in lists: a hairline between. */
.block-card .block-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.block-card .block-row + .block-row { border-top: 1px solid var(--block-line); }
.block-card .block-row > div:first-child { flex: 1; min-width: 0; }
.block-card .block-strong { font-weight: 700; }
.block-card .block-price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
/* A menu reads like a printed card: dotted leaders to the price. */
.block-card .block-offer[data-variant="menu"] .block-row { align-items: baseline; }
.block-card .block-offer[data-variant="menu"] .block-leader { display: block; flex: 1; min-width: 16px;
  border-bottom: 1.5px dotted color-mix(in srgb, currentColor 40%, transparent); transform: translateY(-4px); }
.block-card .block-offer[data-variant="menu"] .block-row > div:first-child { flex: 0 1 auto; }

/* A row's Book button (spec §1 "Rows with a Book button"). */
.pg-row-book { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; background: var(--pg-accent); color: var(--pg-on-accent); }
.is-lead .pg-row-book { background: var(--pg-lead-ink); color: var(--pg-lead); }

/* Counter's lead offer: two-column tiles, the price as the tile's picture. */
[data-lead-offer="tiles"] .is-lead.block-offer .rounded-section:not(.block-menu-preview) { display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[data-lead-offer="tiles"] .is-lead.block-offer .subsection-title { grid-column: 1 / -1; margin: 0; }
[data-lead-offer="tiles"] .is-lead.block-offer .block-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 0; border: 0; }
[data-lead-offer="tiles"] .is-lead.block-offer .block-row .block-price { order: -1; display: grid; place-items: center;
  aspect-ratio: 1.25; border-radius: calc(var(--pg-radius) * .6 + 4px); background: color-mix(in srgb, currentColor 12%, transparent);
  font-family: var(--pg-heading); font-size: 30px; font-weight: 400; }
[data-lead-offer="tiles"] .is-lead.block-offer .block-leader { display: none; }

/* Events: a date tile in the accent. */
.block-card .block-event { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.block-card .block-event + .block-event { border-top: 1px solid var(--block-line); }
.block-card .block-event-text { flex: 1; }
.block-card .block-date-tile { width: 58px; min-height: 62px; justify-content: center; border-radius: calc(var(--pg-radius) * .4 + 4px);
  background: var(--pg-accent); color: var(--pg-on-accent); }
.block-card .block-date-kicker { color: inherit; font-size: 11px; letter-spacing: .08em; }
.block-card .block-date-day { font-family: var(--pg-heading); font-size: 22px; font-weight: 700; }
.block-card .is-lead .block-date-tile { background: var(--pg-lead-ink); color: var(--pg-lead); }

/* Photos: rounded with the style's radius; Studio's run edge to edge. */
.block-card .block-grid .block-photo img { border-radius: calc(var(--pg-radius) * .5 + 2px); }
.block-card .block-carousel, .block-card .block-before-after, .block-card .block-video-frame,
.block-card .block-video iframe { border-radius: calc(var(--pg-radius) * .5 + 4px); }
[data-gallery-bleed] .block-work .block-grid { margin: 0 -20px; gap: 3px; }
[data-gallery-bleed] .block-work .block-grid .block-photo img, [data-gallery-bleed] .block-work .block-carousel { border-radius: 0; }
[data-gallery-bleed] .block-work .block-carousel { margin: 0 -20px; }
[data-gallery-bleed] .block-work .block-grid figcaption { padding-left: 20px; padding-right: 20px; }

/* Team: long words wrap inside their cell. */
.block-card div.block-team > * { min-width: 0; }
.block-card .block-person { min-width: 0; max-width: 100%; }
.block-card .block-person > span { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }

/* Buttons in blocks: the accent, the style's corners. */
.block-card .block-button { border-radius: 999px; font-weight: 700; }
.block-card .block-button-secondary { background: transparent; color: inherit; border: 1.5px solid var(--block-line); }
.block-card .block-menu-more { border-color: currentColor; color: inherit; }
.block-card .block-tag { background: var(--pg-accent); color: var(--pg-on-accent); }
.block-card .block-stars::after { color: var(--pg-accent); }
.block-card .is-lead .block-stars::after { color: currentColor; }
.block-card .block-score { font-family: var(--pg-heading); font-size: 40px; font-weight: 700; }
.block-card .block-person-initial { background: color-mix(in srgb, currentColor 12%, transparent); font-weight: 700; }
html:root .block-card .rounded-section a, .pg-find-us a { color: inherit; }
.block-card .block-contact-icon { background: color-mix(in srgb, var(--pg-accent) 16%, var(--pg-panel)); color: var(--pg-link); }

/* ---- The next free times (spec §1) --------------------------------------- */
.pg-next-times { margin-bottom: 4px; }
.pg-next-times[hidden], .pg-no-times[hidden] { display: none; }
.pg-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-slot { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.pg-slot.pg-slot-more { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.pg-slot svg { display: none; }
.pg-slot.is-loading { width: 86px; border-style: dashed; opacity: .4; }
.pg-next-times:not([hidden]) ~ .block-button { display: none; }
.pg-no-times { margin: 0 0 12px; }

/* ---- Find us: quiet, small type, at the end ------------------------------ */
.pg-find-us { display: grid; gap: 16px; margin-top: 12px; padding: 22px 20px 8px; border-top: 1px solid var(--pg-rule);
  font-size: 14px; color: var(--pg-ink); --block-muted: var(--pg-muted); --primary-text: var(--pg-ink); }
.pg-find-us-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-muted); }
.pg-quiet { display: grid; gap: 10px; }
.pg-quiet-title { margin: 0; font-size: 15px; font-weight: 700; }
.pg-find-us .block-place { display: grid; gap: 8px; }
.pg-find-us .block-place + .block-place { margin-top: 10px; }
.pg-find-us .block-map-tile { height: 110px; border-radius: calc(var(--pg-radius) * .5 + 4px); }
.pg-find-us iframe.block-map { height: 170px; border-radius: calc(var(--pg-radius) * .5 + 4px); }
.pg-find-us .block-place-text { gap: 4px; padding: 0; }
.pg-find-us .block-place-address { font-weight: 700; text-decoration: none !important; }
.pg-hours summary { display: flex; flex-wrap: wrap; gap: 4px 10px; cursor: pointer; list-style: none; }
.pg-hours summary::-webkit-details-marker { display: none; }
.pg-hours summary u { text-underline-offset: 2px; font-weight: 700; }
.pg-hours .block-today { margin: 0; font-weight: 400; }
.pg-hours .block-hours { margin-top: 6px; max-width: 360px; }
.pg-hours .block-row { padding: 4px 0; border: 0 !important; font-size: 14px; }
.pg-hours .block-row > span:first-child { flex: 1; }
/* The contact rows inline, every one (no "Show all"), icons small. */
.pg-find-us .block-contact-rows { gap: 12px; margin: 0; }
.pg-find-us .block-contact-part { gap: 0; }
.pg-find-us .block-contact-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pg-find-us .block-contact-panel { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; padding: 0; border-radius: 0; background: none; color: inherit; }
.pg-find-us .block-contact-row { min-height: 32px; gap: 7px; padding: 0; border: 0 !important; }
.pg-find-us .block-contact-icon { width: auto; height: auto; background: none; color: inherit; }
.pg-find-us .block-contact-glyph { width: 16px; height: 16px; }
.pg-find-us .block-contact-label, .pg-find-us .block-contact-host, .pg-find-us .block-contact-go { display: none; }
.pg-find-us .block-contact-value, .pg-find-us .block-contact-title { font-size: 14px; font-weight: 700; -webkit-line-clamp: 1; }
.pg-find-us .block-socials { justify-content: flex-start; gap: 10px; }
.pg-find-us .block-social { width: 40px; height: 40px; }
.pg-find-us .block-social .block-contact-glyph { width: 18px; height: 18px; }
.pg-find-us .block-legal { font-size: 12px; color: var(--pg-muted); }
.pg-find-us .block-area { color: var(--pg-muted); }

/* ---- Footer ----------------------------------------------------------- */
.pg-footer { display: grid; justify-items: center; gap: 8px; padding: 20px 20px 4px; font-size: 14px; }
.pg-footer:empty { display: none; }  /* _footer.html leaves no whitespace when it has nothing */
.pg-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.pg-languages a { min-height: 32px; display: inline-flex; align-items: center; color: var(--pg-muted); text-underline-offset: 3px; }
.pg-languages a[aria-current] { color: inherit; font-weight: 700; text-decoration: none; }
.pg-translating { margin: 0; color: var(--pg-muted); }
/* What the card page draws after the card ("Made with NFC.cool") sits on the style's ground. */
body.pg-page .card-footer a { color: var(--pg-ink, var(--text-color)) !important; }

/* ---- The bar: the page's own action, a Call circle beside it ------------- */
.block-bar { background: var(--pg-bar); color: var(--pg-bar-icon); border-color: color-mix(in srgb, var(--pg-bar-icon) 16%, transparent); }
.block-bar .block-bar-main { min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 700;
  font-family: var(--pg-text); background: var(--pg-bar-pill); color: var(--pg-bar-pill-ink); }
.block-bar .block-bar-main svg { display: none; }
.block-bar .block-bar-call { border-color: color-mix(in srgb, var(--pg-bar-icon) 35%, transparent); background: transparent;
  color: var(--pg-bar-icon); }

/* What opens over the page (the request sheet, a full menu) is drawn in the panel's
   colours, whatever block it opened from: blocks.css draws its fields, steppers and
   times in --text-color on --background-transparent-color, which on the page are the
   ground's ink on the panel, so Shopfront's cream ink sat on its cream panel (1:1) and
   Brand's white ink on its white panel. A full menu inside the lead took the lead's
   ink (white) on the panel. The vars are :root's (blocks/_head.html), the same inside
   the card and out. */
body.pg-page .block-sheet-panel, body.pg-page dialog.block-menu-full {
  background: var(--block-panel); color: var(--block-panel-text); --text-color: var(--block-panel-text);
  --block-muted: var(--block-panel-muted); --primary-text: var(--block-panel-text); --background-transparent-color: var(--block-panel); }
body.pg-page .block-sheet-panel .block-muted, body.pg-page dialog.block-menu-full .block-muted { color: var(--block-panel-muted); opacity: 1; }
body.pg-page .block-sheet-close { color: inherit; }

/* "Link copied" after Share, for a browser with no share sheet. */
.pg-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 300; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; background: var(--pg-ink); color: var(--pg-ground); font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }

/* Listings: a gap between the rows. */
.block-card div.block-listings { gap: 14px; }
