/* Match day card, 1088 x 612. Values from kit/studies/03-match-day.html, in design pixels.
   Every rule is scoped to .fmt--matchday, so nothing here reaches the host page.
   Text elements set their own line height, so a host page's line height does not move them. */

/* the study's body: Geist 16, line height normal (the tag sits on that line box) */
.fmt--matchday .md{
  font-family:var(--f-head);font-size:calc(16 * var(--u));font-weight:400;font-style:normal;line-height:normal;
  letter-spacing:normal;text-transform:none;text-align:left;white-space:normal;
  color:var(--paper);
}

/* art on the right edge, faded in from the left */
.fmt--matchday .md-art{
  position:absolute;right:0;top:0;
  width:calc(456 * var(--u));height:calc(612 * var(--u));
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%);
          mask-image:linear-gradient(90deg,transparent 0,#000 22%);
}

/* the text block: tag, the big words, the meta line */
.fmt--matchday .md-tx{position:absolute;left:calc(56 * var(--u));top:calc(54 * var(--u));width:calc(600 * var(--u));line-height:normal}
.fmt--matchday .md-hl{margin:calc(44 * var(--u)) 0 0;font-size:calc(56 * var(--u))}
/* The VS sits inside the study's h1, so it takes the heading's weight 700. Press Start 2P has only 400,
   so the reference shows the browser's bold of it. font-synthesis:weight keeps that bold on hosts that turn synthesis off. */
.fmt--matchday .md-vs{
  display:block;
  margin:calc(14 * var(--u)) 0 calc(12 * var(--u)) calc(4 * var(--u));
  font-family:var(--f-pixel);font-weight:700;font-synthesis:weight;font-size:calc(13 * var(--u));line-height:var(--hl-lead);
  color:var(--red);
}
.fmt--matchday .md-meta{
  margin-top:calc(30 * var(--u));
  font-size:calc(12 * var(--u));line-height:normal;
  color:var(--label-ink,#b5afa6);
  white-space:pre-wrap;
}

/* the foot: the caption, then the bottom row, anchored at left 56 and bottom 40.
   The study puts the caption's foot at bottom 96, which is 4 over the one row board. The 4 px gap keeps that,
   and a board with a second row pushes the caption up instead of covering it. */
.fmt--matchday .md-foot{
  position:absolute;left:calc(56 * var(--u));bottom:calc(40 * var(--u));
  display:flex;flex-direction:column;align-items:flex-start;gap:calc(4 * var(--u));
}
.fmt--matchday .md-cap{
  max-width:calc(600 * var(--u));
  font-family:var(--f-head);font-weight:400;font-size:calc(15 * var(--u));line-height:normal;
  color:var(--soft);
}

/* bottom row: the date board, the venue, the seal */
.fmt--matchday .md-row{display:flex;align-items:center;gap:calc(18 * var(--u))}
.fmt--matchday .md-row .f-flap span{text-transform:uppercase}
.fmt--matchday .md-venue{font-size:calc(12 * var(--u));line-height:normal;color:var(--paper);white-space:nowrap}
