/* Hrava studio - the comparison family: /vs/ and the five competitor pages. Loads after core.css and page.css,
   uses only their tokens. Parts here that other families may want are listed for a lift into core:
   st-yn, st-table--duo, st-table--facts, st-compare, st-next, st-key. (Evidence first is page.css's st-mirror--mid.) */

/* yes / no / partly: one voxel and the word. Neutral on purpose: on these pages "no" is often the good answer. */
.st-yn{display:inline-flex;align-items:center;gap:var(--st-2);font-weight:600;color:var(--st-text);white-space:nowrap;overflow-wrap:anywhere}
.st-yn::before{content:"";flex:none;width:8px;height:8px;background:currentColor}
.st-yn.is-part::before{background:linear-gradient(90deg,currentColor 50%,transparent 0);outline:1px solid currentColor;outline-offset:-1px}
.st-yn.is-no{font-weight:400;color:var(--st-text-3)}
.st-yn.is-no::before{background:none;outline:1px solid currentColor;outline-offset:-1px}

/* table beside its notes: 8 | 4 */
.st-compare{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--st-gap);row-gap:var(--st-stack);align-items:start}
.st-compare>*{grid-column:1/-1;min-width:0}
.st-compare__notes{display:grid;gap:var(--st-3)}
@media (min-width:1100px){
  .st-compare>.st-table-wrap{grid-column:1/9}
  .st-compare>.st-compare__notes{grid-column:9/13;position:sticky;top:calc(var(--st-header) + var(--st-5));padding-top:var(--st-4)}
}

/* two answers to one question: the label column, then two equal value columns */
.st-table--duo{table-layout:fixed}
.st-table--duo thead th:first-child{width:36%}
.st-table--duo td{text-wrap:pretty}
@media (max-width:640px){
  .st-table--stack.st-table--duo tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--st-4)}
  .st-table--stack.st-table--duo th{grid-column:1/-1}
}

/* a matrix of short facts (the hub): a three-up grid when the rows stack. The row that is ours (tr.is-own) and the
   group rows (tr.st-table__group) are core's */
.st-table--facts tbody th a{display:inline-flex;align-items:center;min-height:var(--st-7);margin-block:calc(-1*var(--st-3))}
@media (max-width:1099px){
  .st-table--facts thead th{white-space:normal}
  .st-table--facts :is(th,td){padding-inline:var(--st-2)}
}
/* seven columns still fit at 641px, where the rows do not stack yet: the cells give up half their gutter
   (with the full gutter the table needs 623px and scrolled sideways inside its panel up to about 690px) */
@media (max-width:820px){.st-table--facts :is(th,td){padding-inline:var(--st-1)}}
@media (max-width:640px){
  .st-table--stack.st-table--facts tr:not(.st-table__group){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--st-2)}
  .st-table--stack.st-table--facts tr>:is(th,td){padding:0}
  .st-table--stack.st-table--facts tr>:is(th,td:first-of-type){grid-column:1/-1}
}

/* the way on to the next comparison: a label and links on one hairline */
.st-next{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--st-6);margin-top:var(--st-head);padding-top:var(--st-4);border-top:1px solid var(--st-line)}
.st-next>.st-label{margin-inline-end:auto;padding-block:var(--st-3)}
/* stacked, the accordion above already ends on a full-width rule: a second one would be a double line */
@media (max-width:1099px){.st-next{padding-top:0;border-top:0}}
@media (max-width:640px){.st-next{display:grid;gap:0}}

/* the hub: the three routes, then the ten options and the key to the columns */
.st-matrix{display:grid;gap:var(--st-stack);margin-top:var(--st-head)}
/* the key: four short lines on the grid under the table; above it where the rows stack and repeat the labels */
.st-key{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--st-3) var(--st-gap)}
.st-key>li{grid-column:span 3}
.st-key b{color:var(--st-text-2);font-weight:600}
@media (max-width:1099px){.st-key>li{grid-column:span 6}}
@media (max-width:640px){
  .st-key{order:-1}
  .st-key>li{grid-column:1/-1}
}
