.ws-page {
  padding-bottom: 4rem;
}
.ws-page .page-head {
  max-width: 54rem;
}
.ws-page .page-head h1 {
  max-width: 16ch;
}
.ws-block {
  margin: 2.75rem 0;
}
.ws-block > h2,
.ws-results-head h2,
.ws-method h2 {
  margin: 0 0 .5rem;
}
.ws-block > p,
.ws-method p {
  max-width: 76ch;
}
.ws-mode,
.ws-bid {
  margin: 0;
  min-width: 0;
}
.ws-mode {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  border: 0;
  padding: 0;
  margin: 1.4rem 0;
}
.ws-mode legend,
.ws-bid label,
.ws-inputs label {
  display: block;
  font-weight: 700;
  margin-bottom: .4rem;
}
.ws-mode label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  min-height: 2.2rem;
}
.ws-mode input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
.ws-bid-grid,
.ws-inputs,
.ws-bid-ratings {
  display: grid;
  gap: 1rem;
}
.ws-bid-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.ws-page .panel {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid #b7bcad;
}
.ws-bid legend {
  margin-left: -.3rem;
  padding: 0 .3rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.ws-page input[type="number"],
.ws-page select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .38rem .55rem;
  font: inherit;
  border: 1px solid #797e72;
  border-radius: .25rem;
  color: #1f2925;
  background: #fff;
}
.ws-page input[readonly] {
  background: #eff0e9;
}
.ws-page :focus-visible {
  outline: 3px solid #267184;
  outline-offset: 2px;
}
.ws-page input[aria-invalid="true"] {
  border-color: #a03b26;
}
.ws-page [hidden] {
  display: none !important;
}
.ws-bid-ratings {
  grid-template-columns: repeat(auto-fit,minmax(min(11rem,100%),1fr));
  margin-top: .9rem;
}
.ws-match-note,
.ws-unit {
  display: block;
  overflow-wrap: anywhere;
  font-size: .87rem;
  line-height: 1.5;
}
.ws-match-note {
  margin: .4rem 0 1rem;
}
.ws-unit {
  margin-top: .35rem;
}
.ws-inputs {
  grid-template-columns: repeat(auto-fit,minmax(min(13rem,100%),1fr));
  margin-top: 1.2rem;
}
.ws-results-head,
.ws-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.ws-results-head {
  justify-content: space-between;
}
.ws-actions button {
  cursor: pointer;
}
.ws-clear {
  padding: .55rem .2rem;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  background: none;
}
.ws-page .ws-results {
  padding: 0;
}
.ws-results table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.ws-results th,
.ws-results td {
  padding: .8rem 1rem;
  border-bottom: 1px solid #ccd0c6;
  text-align: right;
  overflow-wrap: anywhere;
}
.ws-results th:first-child {
  width: 46%;
  text-align: left;
}
.ws-results .ws-total {
  background: #e7ebdf;
  color: #19251a;
  font-weight: 700;
}
.ws-findings {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 0;
  padding: 1rem;
  gap: 1.15rem;
}
.ws-findings dt {
  font-weight: 700;
}
.ws-findings dd {
  margin: .3rem 0 0;
  overflow-wrap: anywhere;
}
.ws-method {
  border-top: 1px solid #b7bcad;
  padding-top: 1.4rem;
}
.ws-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 700px) {
  .ws-bid-grid,
  .ws-findings {
    grid-template-columns: 1fr;
  }
  .ws-results td,
  .ws-results th {
    padding: .65rem .45rem;
    font-size: .93rem;
  }
}
@media print {
  .ws-page {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 10pt;
    color: #111;
  }
  body:has(.ws-page) > header,
  body:has(.ws-page) > footer,
  body:has(.ws-page) nav,
  .ws-actions,
  .ws-noscript {
    display: none !important;
  }
  .ws-page .page-head,
  .ws-block {
    margin: .7rem 0;
    padding: 0;
  }
  .ws-page .page-head h1 {
    font-size: 20pt;
    max-width: none;
  }
  .ws-page h2 {
    font-size: 14pt;
  }
  .ws-mode {
    margin: .25rem 0;
  }
  .ws-page .panel,
  .ws-results td,
  .ws-results th {
    padding: .35rem .45rem;
  }
  .ws-page input[type="number"],
  .ws-page select {
    min-height: 1.65rem;
    padding: .1rem .25rem;
  }
  .ws-bid-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ws-inputs {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .ws-findings {
    grid-template-columns: repeat(3,minmax(0,1fr));
    padding: .5rem;
  }
  .ws-page .panel,
  .ws-method {
    break-inside: avoid;
  }
}
