/* Ranking sheet (banzuke). Design size 1088 x 612.
   Values from kit/studies/05-banzuke.html, round three (black ground, paper rules, red ranks).
   Every length is in design pixels: calc(N * var(--u)). Names are sized from the fixture through --fs.
   Colours: --ink ground, --paper text and rules, --red ranks and the note label, --dim captions. */

.bz,.bz *{box-sizing:border-box;margin:0;padding:0}
.bz{
  position:absolute;inset:0;
  background:var(--ink);color:var(--paper);
  font-family:var(--f-head);font-weight:400;font-style:normal;
  line-height:normal;letter-spacing:normal;text-transform:none;text-align:left;
}

/* the frame: a 4 px rule with a 1 px line inside it */
.bz-frame{
  position:absolute;inset:calc(14 * var(--u));
  border:calc(4 * var(--u)) solid var(--paper);
  outline:calc(1 * var(--u)) solid var(--paper);
  outline-offset:calc(-9 * var(--u));
}

/* the two halves: West on the left, East on the right */
.bz-half{position:absolute;top:calc(24 * var(--u));bottom:calc(24 * var(--u));width:calc(466 * var(--u))}
.bz-west{left:calc(28 * var(--u))}
.bz-east{right:calc(28 * var(--u))}

.bz-hd{
  display:flex;align-items:center;justify-content:center;gap:calc(14 * var(--u));
  height:calc(44 * var(--u));
  border-bottom:calc(2.5 * var(--u)) solid var(--paper);
  font-family:var(--f-label);font-weight:700;font-size:calc(26 * var(--u));
  line-height:1;letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;
}
/* the kanji: a pixel glyph, 1.5 design pixels a cell (24 high, about 1.3 times the cap height, as in the reference),
   strokes two cells, no font. Centred on the caps. */
.bz-glyph{
  --cell:1.5;
  display:block;flex:none;
  align-self:center;margin-top:calc(1 * var(--u));
  width:calc(var(--gw) * var(--cell) * var(--u));
  height:calc(var(--gh) * var(--cell) * var(--u));
  fill:currentColor;
  shape-rendering:crispEdges;
}
/* Under one device pixel a cell, crisp squares drop whole bars, and the east glyph loses the box in its middle.
   A cell is 1.5 / 1088 of the width: under 726 px wide on a 1x screen, under 363 px on a 2x one.
   There the glyph is drawn smooth, like the type around it. */
@media (max-resolution:1.99dppx){
  @container (max-width:725.32px){ .bz-glyph{shape-rendering:geometricPrecision} }
}
@container (max-width:362.66px){ .bz-glyph{shape-rendering:geometricPrecision} }

/* tier 1: the ranked names, right to left */
.bz-t1{
  display:flex;flex-direction:row-reverse;align-items:flex-start;gap:calc(8 * var(--u));
  height:calc(338 * var(--u));
  padding:calc(12 * var(--u)) calc(6 * var(--u)) 0;
  border-bottom:calc(1.5 * var(--u)) solid var(--paper);
}
.bz-e{flex:none;display:flex;flex-direction:row-reverse;align-items:flex-start;gap:calc(3 * var(--u))}

.bz-name,.bz-cap,.bz-rn,.bz-title,.bz-sub{writing-mode:vertical-rl;text-orientation:sideways;white-space:nowrap}

.bz-name,.bz-rn,.bz-title{
  font-family:var(--f-label);font-weight:700;
  font-size:calc(var(--fs) * var(--u));
  line-height:1;letter-spacing:.01em;text-transform:uppercase;
}
.bz-name{--fs:30}

/* the caption beside each name: rank, year, prize */
.bz-cap{
  font-family:var(--f-head);font-weight:400;font-size:calc(11.5 * var(--u));
  line-height:1.1;letter-spacing:.03em;
  padding-top:calc(2 * var(--u));
}
.bz-rank{
  display:inline-block;margin-bottom:calc(7 * var(--u));
  font-family:var(--f-label);font-weight:600;font-size:calc(10 * var(--u));
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--red);
}
.bz-prize{display:inline-block;margin-top:calc(7 * var(--u));color:var(--dim)}

/* the note: takes what tier 1 leaves, text at the bottom */
.bz-note{
  flex:1;align-self:stretch;min-width:0;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 calc(14 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u));
  font-family:var(--f-head);font-weight:300;font-size:calc(16 * var(--u));line-height:1.28;
}
.bz-note-label{
  margin-bottom:calc(7 * var(--u));
  font-family:var(--f-label);font-weight:600;font-size:calc(10 * var(--u));
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--red);
}

/* tier 2: the runners up, right to left */
.bz-t2{
  display:flex;flex-direction:row-reverse;align-items:flex-start;gap:calc(15 * var(--u));
  height:calc(166 * var(--u));
  padding:calc(9 * var(--u)) calc(10 * var(--u)) 0;
}
.bz-r{flex:none;display:flex;flex-direction:column;align-items:center}
.bz-ry{display:block;height:calc(16 * var(--u));font-size:calc(11.5 * var(--u));color:var(--dim)}
.bz-rn{--fs:19}
.bz-lab{
  flex:1;align-self:flex-end;
  padding:0 calc(4 * var(--u)) calc(12 * var(--u));
  font-family:var(--f-label);font-weight:600;font-size:calc(10 * var(--u));
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--dim);
}

/* the middle column: title, subtitle, seal */
.bz-mid{
  position:absolute;left:calc(494 * var(--u));width:calc(100 * var(--u));
  top:calc(24 * var(--u));bottom:calc(24 * var(--u));
  display:flex;flex-direction:column;align-items:center;
  padding-top:calc(14 * var(--u));
  border-left:calc(2.5 * var(--u)) solid var(--paper);
  border-right:calc(2.5 * var(--u)) solid var(--paper);
}
.bz-title{--fs:33}
.bz-sub{
  margin-top:calc(10 * var(--u));
  font-family:var(--f-head);font-weight:400;font-size:calc(10.5 * var(--u));
  line-height:1.3;letter-spacing:.04em;
  color:var(--dim);
}
.bz-mid .bz-seal{margin-top:auto;margin-bottom:calc(10 * var(--u))}
