/* Homepage preview overlay, v6. Copied from v5; key label size only, to keep 10px tile padding.
   Loaded after home0711.css. Does not restyle the hero. */

:root{
  /* Live tile height H from getBoundingClientRect at 1280 and 390: 89.59375px */
  --hc-live-h:89.59375px;
  --hc-card-badge:63px; /* round(0.70 * 89.59375) */
  --hc-key-badge:40px;  /* same box as the signed-off v2 key preview */
  --hc-key-row-h:114.390625px; /* live first-row / D-wrap height */
  --hc-key-short-h:89.59375px; /* live NG row at 1280; A,B,C,NG at 390 */
  --hc-key-count:30px; /* within 28–32px on desktop */
}

@media (max-width:600px){
  :root{--hc-key-count:26px} /* slightly smaller at 390 */
}

/* Listing cards: live grid, padding and row layout unchanged.
   Badge is 70% of live H; height is locked so the tile does not grow. */
.h7-cards a{
  height:var(--hc-live-h);
  min-height:0;
  overflow:hidden;
}
.h7-cards a img{
  width:var(--hc-card-badge);
  height:var(--hc-card-badge);
  flex:0 0 var(--hc-card-badge);
  object-fit:contain;
}

/* Hygiene checks: live grid and tile sizes.
   Title on its own line, Bricolage 800, one step above body (16px to 20px). */
.h7-checks li strong{
  display:block;
  font-family:"Bricolage Grotesque",sans-serif;
  font-weight:800;
  font-size:1.25rem;
  line-height:1.25;
  letter-spacing:-.015em;
  margin:0 0 6px;
  color:inherit;
}
.h7-checks li .h7-check-desc{
  display:block;
}

/* Letters key: live grid and wrap. Seal stays 40px, left of the copy.
   Count is a large centred Bricolage 800 figure above the label.
   Tile boxes are locked to the live measurements so size delta stays 0. */
.h7-key img{
  width:var(--hc-key-badge);
  height:var(--hc-key-badge);
  flex:0 0 var(--hc-key-badge);
  object-fit:contain;
}
.h7-key li{
  height:var(--hc-key-short-h);
  min-height:0;
  overflow:hidden;
}
.h7-key li:nth-child(4){
  height:var(--hc-key-row-h);
}
@media (min-width:992px){
  .h7-key li{height:var(--hc-key-row-h)}
  .h7-key li:nth-child(5){height:var(--hc-key-short-h)}
}
.h7-key-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:2px;
  min-width:0;
  flex:1;
  text-align:center;
}
.h7-key-count{
  display:block;
  font-family:"Bricolage Grotesque",sans-serif;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
  font-size:var(--hc-key-count);
  line-height:1;
  letter-spacing:-.03em;
  color:inherit;
}
.h7-key-label{
  display:block;
  font-family:"Bricolage Grotesque",sans-serif;
  font-weight:800;
  /* Uniform 17px / 1.15 so a three-line D label still leaves ≥10px pad. */
  font-size:17px;
  line-height:1.15;
  letter-spacing:-.015em;
  color:inherit;
}
