/* Styles for the seat plugin. Prefix every selector with .p-seat */

/* Header */
.view section.p-seat.p-seat-head { border-top: 0; margin-top: 18px; padding-top: 0; }
.p-seat-crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font: 500 13px/1.3 var(--mono); margin: 0 0 22px; }
.p-seat-crumbs a { text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; padding: 7px 10px; display: inline-block; }
.p-seat-crumbs a:hover { background: var(--mark); }
.p-seat-step, .p-seat-up { display: flex; flex-wrap: wrap; gap: 6px; }
.p-seat-head h1 { margin-bottom: 14px; max-width: none; }
.p-seat-head .deck { max-width: 26em; margin-bottom: 20px; }
.p-seat-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px 44px; align-items: start; }
.p-seat-dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; max-width: 560px; }
.p-seat-dot { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.p-seat-dot.hollow { background: none; box-shadow: inset 0 0 0 3px var(--c); }
.p-seat-sw { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; background: var(--c); margin-right: 7px; transform: translateY(1px); }
.p-seat-sw.hollow { background: none; box-shadow: inset 0 0 0 3px var(--c); }
.p-seat-odds { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.p-seat-odds li { display: flex; align-items: baseline; gap: 2px; border-top: 1px solid var(--rule); padding: 7px 0; font-size: 16px; }
.p-seat-odds .who { min-width: 0; }
.p-seat-odds .who b { font-weight: 700; }
.p-seat-odds .n { margin-left: auto; padding-left: 12px; font: 500 15px/1 var(--mono); white-space: nowrap; }
.p-seat-odds li:first-child .n { background: var(--mark); padding: 4px 6px; margin-right: -6px; }

.p-seat-card { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px 16px; background: var(--paper); margin-right: 4px; }
.p-seat-card dl { margin: 0 0 14px; }
.p-seat-card dl div { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.p-seat-card dl div:first-child { padding-top: 0; }
.p-seat-card dt, .p-seat-facts dt { font: 400 12px/1.3 var(--mono); color: var(--ink-2); margin-bottom: 2px; }
.p-seat-card dd, .p-seat-facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.p-seat-card dd .muted, .p-seat-facts dd .muted { font-weight: 400; }
.p-seat-note { display: block; font-weight: 400; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }
.p-seat-hint { border-bottom: 1px dashed var(--ink-3); cursor: help; }
.p-seat-find label { display: block; font: 400 12px/1.3 var(--mono); color: var(--ink-2); }
.p-seat-find label > span { display: flex; gap: 6px; margin-top: 5px; }
.p-seat-find input { flex: 1; min-width: 0; font: 400 16px var(--display); padding: 9px 10px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); }
.p-seat-find button, .p-seat-copy { font: 700 15px/1 var(--display); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 2px; background: var(--mark); color: var(--ink); cursor: pointer; }
.p-seat-find button:hover { background: var(--ink); color: #fff; }
.p-seat-find-msg { margin: 6px 0 0; font-size: 14px; min-height: 0; }
.p-seat-find-msg:empty { display: none; }
.p-seat-copy { display: block; width: 100%; margin-top: 10px; background: var(--paper); font-weight: 500; border-width: 1px; }
.p-seat-copy:hover { background: var(--wash); }
.p-seat-missing .p-seat-card { max-width: 460px; margin-top: 22px; }
.p-seat-missing h1 { margin-top: 8px; }

.p-seat-h3 { margin: 30px 0 8px; }
.p-seat .p-seat-two .p-seat-h3 { margin-top: 0; }
.p-seat .fine a, .p-seat .sub a { text-decoration: underline; }

/* Who could win */
.p-seat-row { display: grid; grid-template-columns: minmax(170px, 250px) 134px minmax(0, 1fr); gap: 0 18px; align-items: center; border-top: 1px solid var(--rule); padding: 9px 0; }
.p-seat-heads { border-top: 0; border-bottom: 1px solid var(--ink); padding: 0 0 6px; font: 400 12px/1.3 var(--mono); color: var(--ink-2); }
.p-seat-axis { border-top: 1px solid var(--ink); padding: 4px 0 0; }
.p-seat-row .who { display: flex; align-items: baseline; min-width: 0; }
.p-seat-row .who b { display: block; font-weight: 700; font-size: 16px; line-height: 1.25; }
.p-seat-row .who .muted { display: block; font-size: 13.5px; line-height: 1.3; }
.p-seat-row .odds { font: 500 15px/1.2 var(--mono); white-space: nowrap; }
.p-seat-row .odds .lab { display: none; }
.p-seat-row.p-seat-heads .odds { font: inherit; }
.p-seat-row .range { padding-right: 58px; min-width: 0; }
.p-seat-track { position: relative; height: 26px; }
.p-seat-track i { position: absolute; display: block; }
.p-seat-track .g { top: -9px; bottom: -9px; width: 1px; background: var(--rule); }
.p-seat-track .b90 { top: 9px; height: 8px; border-radius: 2px; min-width: 2px; }
.p-seat-track .b50 { top: 5px; height: 16px; border-radius: 2px; min-width: 2px; }
.p-seat-track .mid { top: 1px; bottom: 1px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 1px; }
.p-seat-track .val { position: absolute; top: 4px; margin-left: 8px; font: 500 13px/18px var(--mono); white-space: nowrap; }
.p-seat-axis .p-seat-track { height: 18px; }
.p-seat-track .t { position: absolute; top: 2px; transform: translateX(-50%); font: 400 12px/1 var(--mono); color: var(--ink-2); }
.p-seat-none { font-size: 13.5px; }

.p-seat-pairs { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.p-seat-pairs li { display: grid; grid-template-columns: minmax(150px, 360px) minmax(60px, 1fr) 84px; gap: 2px 14px; align-items: center; border-top: 1px solid var(--rule); padding: 9px 0; }
.p-seat-pairs .pair { font-weight: 700; font-size: 16px; }
.p-seat-pairs .pair .muted { font-weight: 400; margin: 0 7px 0 1px; }
.p-seat-pairs .pair.muted { font-weight: 400; }
.p-seat-pairs .nw { white-space: nowrap; display: inline-block; }
.p-seat-pairs .bar { height: 12px; background: var(--wash); border-radius: 2px; }
.p-seat-pairs .bar i { display: block; height: 100%; min-width: 2px; background: var(--ink); border-radius: 2px; }
.p-seat-pairs .n { font: 500 15px/1 var(--mono); text-align: right; white-space: nowrap; }
.p-seat-pairs .typ { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); max-width: 46em; }

/* Last time */
.p-seat-warn { margin-bottom: 18px; color: var(--ink); border-left: 5px solid var(--mark); }
.p-seat-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px 44px; align-items: start; margin-top: 6px; }
.p-seat-tcp { position: relative; display: flex; gap: 2px; height: 34px; margin-top: 12px; }
.p-seat-tcp i { display: block; border-radius: 2px; min-width: 2px; }
.p-seat-tcp b { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); }
.p-seat-tcp-labels { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1.3 var(--mono); margin-top: 9px; }
.p-seat-tcp-labels b { font: 700 16px var(--display); }
.p-seat-then { font-size: 15px; color: var(--ink-2); margin: 14px 0 0; max-width: 34em; }
.p-seat-fp { width: 100%; border-collapse: collapse; min-width: 430px; }
.p-seat-fp th { font: 400 12px/1.3 var(--mono); color: var(--ink-2); text-align: left; padding: 0 0 6px 12px; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.p-seat-fp th:first-child, .p-seat-fp td:first-child { padding-left: 0; }
.p-seat-fp td { padding: 8px 0 8px 12px; border-bottom: 1px solid var(--rule); font-size: 15px; vertical-align: top; }
.p-seat-fp td:first-child { font-weight: 600; white-space: nowrap; }
.p-seat-fp .r { text-align: right; }
.p-seat-fp td.r { font: 400 13.5px/1.5 var(--mono); }
.p-seat-fp td.r .muted { font-family: var(--display); font-size: 13.5px; }
.p-seat-shift { font-weight: 500; padding: 2px 5px; border-radius: 2px; background: var(--wash); white-space: nowrap; }
.p-seat-shift.up::after { content: " \25B2"; font-size: 9px; }
.p-seat-shift.down::after { content: " \25BC"; font-size: 9px; }

/* How it fits */
.p-seat-strip svg { display: block; width: 100%; height: 44px; overflow: visible; }
.p-seat-strip rect { cursor: pointer; }
.p-seat-strip a:hover rect { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.p-seat-strip .here { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.p-seat-strip .here-mark { fill: var(--ink); }
.p-seat-strip-ends { display: flex; justify-content: space-between; font: 400 12px/1.3 var(--mono); color: var(--ink-2); margin-top: 6px; }
.p-seat-pos { max-width: 46em; margin: 12px 0 0; font-size: 16px; }
.p-seat-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; max-width: 860px; }
.p-seat-stats div { border-top: 1px solid var(--ink); padding-top: 8px; }
.p-seat-stats b { display: block; font: 800 30px/1.05 var(--display); font-variation-settings: "wdth" 76; margin-bottom: 4px; }
.p-seat-stats span { font-size: 15px; color: var(--ink-2); display: block; max-width: 28em; }
.p-seat-if { max-width: 860px; margin: 0 0 20px; }
.p-seat-if .t { margin: 0 0 6px; font-size: 16px; }
.p-seat-if .t b { font-weight: 800; }
.p-seat-if .t .muted { font: 400 12.5px var(--mono); margin-left: 6px; }
.p-seat-cats { display: flex; gap: 2px; height: 28px; }
.p-seat-cats i { display: flex; align-items: center; justify-content: center; min-width: 3px; border-radius: 2px; overflow: hidden; font: 500 13px var(--mono); font-style: normal; color: var(--ink); }
.p-seat-cats i:first-child, .p-seat-cats i:last-child { color: #fff; }
.p-seat-chips { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 7px; font-size: 14px; color: var(--ink-2); }
.p-seat-chips span { display: inline-flex; align-items: baseline; gap: 6px; }
.p-seat-chips b { font: 500 14px var(--mono); color: var(--ink); }
.p-seat-chips em { font: 400 12px var(--mono); font-style: normal; color: var(--ink); background: var(--wash); padding: 1px 4px; border-radius: 2px; }

/* About */
.p-seat-facts { margin: 0; max-width: 760px; }
.p-seat-facts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-top: 1px solid var(--rule); }
.p-seat-facts dt { padding-top: 3px; }
.p-seat-facts dd { font-weight: 400; }

@media (max-width: 760px) {
  .p-seat-top, .p-seat-two { grid-template-columns: minmax(0, 1fr); }
  .p-seat-dots { grid-template-columns: repeat(20, 1fr); }
  .p-seat-facts div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .p-seat-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .p-seat-row .range { grid-column: 1 / -1; padding-right: 54px; }
  .p-seat-heads .range, .p-seat-heads .odds { display: none; }
  .p-seat-axis .who, .p-seat-axis .odds { display: none; }
  .p-seat-row .odds .lab { display: inline; font-weight: 400; color: var(--ink-2); font-size: 12px; }
  .p-seat-row .odds { text-align: right; white-space: normal; }
  .p-seat-row .odds .lab { display: block; }
  .p-seat-pairs li { grid-template-columns: minmax(0, 1fr) 84px; }
  .p-seat-pairs .bar { grid-column: 1 / -1; grid-row: 2; }
  .p-seat-stats { grid-template-columns: minmax(0, 1fr); }
  .p-seat-crumbs { margin-bottom: 16px; }
  .p-seat-strip svg { height: 40px; }
}
