/* Hrava studio - the VR hub and the six headset pages. Loads after core.css and page.css, uses only their tokens.
   The pages are written by scripts/studio/stamp-vr.py: change the markup there, not in the pages. */
/* headset table. The row header is the link to that headset's page: its 44px target reaches into the cell padding
   (and 8px to each side, so the focus ring does not touch the name), and every cell of a row stands on the link's baseline. */
.st-sets :is(th,td){vertical-align:baseline}
.st-sets tbody th{white-space:nowrap}
.st-sets tbody th>.st-link{margin:calc(-1*var(--st-2));padding-inline:var(--st-2)}
.st-sets .st-tag{margin-inline-start:var(--st-2)}
.st-sets td:last-child{text-wrap:balance}
/* Display: the headset's two panels to scale, beside two set lines (panel, field of view). Every row is two lines
   tall at any desktop width, so the other columns may wrap once without a row growing. The text carries the cell's
   baseline; the outlines' box (37px, set by the generator) is centred on the two lines, which stands the panels
   on the second baseline. */
.st-sets__display{display:flex;gap:var(--st-3)}
.st-sets__display>span{align-self:baseline}
.st-sets__display>span>span{display:block;white-space:nowrap}
.st-sets__eyes{flex:none;align-self:center;fill:var(--st-hover);stroke:var(--st-text-3)}
.st-sets__note{margin-top:var(--st-3)}
/* Under 1100 four columns no longer fit (cells wrapped to three and four lines), so every headset becomes a block
   with its labels printed - what core does for a stacked table at 640, started earlier - two to a row down to 640.
   The blocks of a row share their four tracks (subgrid): labels stay level when a name or a value needs a second
   line. The outlines move to the block's top corner; turned there, so each pair hugs that corner. A name with
   "This page" keeps the widest pair's room free beside it, so the tag goes under the name before it meets them.
   The link's 44px target is drawn in to exactly one line (48 - 4 = 44), so a linked name and the plain one are level. */
@media (max-width:1099px){
  .st-sets{display:block}
  .st-sets thead{display:none}
  .st-sets td{display:block}
  .st-sets tbody{display:grid;grid-template-columns:minmax(0,1fr)}
  .st-sets tbody tr{position:relative;display:grid;grid-row:span 4;grid-template-rows:subgrid;align-content:start;padding:var(--st-4) var(--st-row-x);border-bottom:1px solid var(--st-line)}
  .st-sets tbody tr:last-child{border-bottom:0}
  .st-table.st-sets tbody :is(th,td){padding:0;border:0}
  .st-table.st-sets tbody th{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--st-2);min-height:1lh;white-space:normal}
  .st-table.st-sets tbody th.is-hi{padding-inline-end:calc(var(--st-9) + var(--st-5))}
  .st-sets .st-tag{margin:0}
  .st-sets td{margin-top:var(--st-3)}
  .st-sets td::before{content:attr(data-label);display:block;margin-bottom:calc(var(--st-1)/2)}
  .st-sets tbody th>.st-link{margin-block:calc(-1*var(--st-3));margin-block:calc((1lh - var(--st-7) + var(--st-1))/2)}
  .st-sets__display>span>span{display:inline}
  .st-sets__eyes{position:absolute;top:var(--st-4);inset-inline-end:var(--st-row-x);transform:scale(-1)}
}
@media (min-width:641px) and (max-width:1099px){
  .st-sets tbody{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-sets tbody tr:nth-child(even){border-inline-start:1px solid var(--st-line)}
  .st-sets tbody tr:nth-last-child(2):nth-child(odd){border-bottom:0}
}
