/* Visual language of the compact calculator card in the site's home hero. */
.wsc-app {
  --ink: #111315;
  --muted: #747474;
  --line: #d9d9d6;
  --soft: #f4f4f3;
  --orange: #f0a126;
  --green: #111315;
  --navy: #111315;
  width: min(1500px, calc(100% - clamp(48px, 6vw, 120px)));
  margin: 34px auto 76px;
  font-family: Onest, Arial, sans-serif;
}
.wsc-hero { margin: 0 0 24px; }
.wsc-hero p { color: #a96608; letter-spacing: .13em; }
.wsc-hero h1 { max-width: 850px; margin: 7px 0 10px; font-size: clamp(42px, 4.2vw, 68px); line-height: .92; }
.wsc-hero span { display: block; max-width: 760px; color: #626566; font-size: 15px; }

.wsc-calculator,
.wsc-options,
.wsc-custom {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .1);
}
.wsc-calculator { padding: 30px 34px 32px; color: var(--ink); }
.wsc-layout { grid-template-columns: 330px minmax(0, 1fr); gap: 34px; }
.wsc-order {
  padding: 0 34px 0 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.wsc-title { align-items: center; }
.wsc-title > b {
  flex-basis: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--ink);
  font-size: 12px;
}
.wsc-title h2 { font-size: 26px; line-height: 1; letter-spacing: -.035em; }
.wsc-title p { margin-top: 5px; color: var(--muted); }
.wsc-fixed {
  margin: 25px 0 18px;
  padding: 14px 16px;
  border-radius: 0;
  background: var(--soft);
}
.wsc-fixed strong { font-weight: 500; }
.wsc-order form { gap: 0; border-top: 1px solid var(--line); }
.wsc-order label {
  min-height: 61px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 128px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.wsc-order label > .wsc-field-control {
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--soft);
}
.wsc-order label > .wsc-field-label {
  min-width: 0;
  height: auto;
  margin: 0;
  border: 0;
  display: block;
  background: transparent;
}
.wsc-field-label-short,
.wsc-support-label-short,
.wsc-total-label-short { display: none; }
.wsc-order input { padding: 0 12px; font-size: 18px; font-weight: 500; }
.wsc-stepper { display: none; }
.wsc-order label b { font-weight: 400; }
.wsc-support-choice {
  margin: 0;
  padding: 13px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.wsc-support-choice legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}
.wsc-order .wsc-support-choice label {
  min-height: 35px;
  border: 0;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  cursor: pointer;
}
.wsc-order .wsc-support-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--orange);
}
.wsc-order .wsc-support-choice label > span {
  height: auto;
  margin: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  line-height: 1.25;
}
.wsc-order .wsc-support-choice strong { font-size: 11px; font-weight: 600; }
.wsc-order .wsc-support-choice small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
.wsc-order .wsc-support-choice input[value="1"]:checked + span small { color: #a96500; font-weight: 700; }
.wsc-total { min-height: 58px; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.wsc-total strong { font-size: 18px; font-weight: 600; }
.wsc-order button,
.wsc-custom button,
.wsc-table button {
  min-height: 52px;
  margin-top: 18px;
  border-radius: 0;
  background: var(--orange);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.wsc-results-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.wsc-results-body,
.wsc-results-aside { min-width: 0; }
.wsc-results .wsc-title > b { background: var(--ink); color: #fff; }
.wsc-status { border-radius: 0; background: var(--soft); color: #55595a; font-weight: 600; }
.wsc-comparison { gap: 18px; }
.wsc-comparison article,
.wsc-comparison .wsc-plywood {
  padding: 23px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.wsc-comparison .wsc-plywood { border-top: 5px solid var(--orange); padding-top: 19px; }
.wsc-comparison .kicker { color: #6f7273; font-size: 10px; letter-spacing: .12em; }
.wsc-comparison .price { color: var(--ink); font-size: clamp(44px, 4vw, 62px); font-weight: 800; }
.wsc-comparison .price.advantage,
.wsc-metric.advantage strong { color: #c97800; }
.wsc-comparison .name { min-height: 38px; color: #5f6263; }
.wsc-comparison .badges { min-height: 31px; }
.wsc-comparison .badges span { padding: 5px 8px; border-color: var(--line); border-radius: 0; background: var(--soft); }
.wsc-card-facts { margin-top: 7px; border-top: 1px solid var(--line); }
.wsc-card-facts > div {
  min-height: 34px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wsc-card-facts span { color: #747778; font-size: 10px; }
.wsc-card-facts strong { color: var(--ink); font-size: 11px; text-align: right; }
.wsc-comparison .metrics { margin-top: 14px; border-top-color: var(--line); }
.wsc-metric { min-height: 42px; align-items: center; padding: 8px 0; border-bottom-color: var(--line); color: #626566; font-size: 13px; }
.wsc-metric strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.wsc-metric.highlight { margin: 0 -12px; padding-inline: 12px; border-radius: 0; background: var(--soft); }
.wsc-comparison .source { color: #777a7b; }
.wsc-comparison .source a { color: #a96500; font-weight: 700; }
.wsc-verdict {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 0;
  background: var(--soft);
  color: var(--ink);
}
.wsc-verdict strong { color: var(--ink); }
.wsc-method { margin-top: 12px; border-color: var(--line); border-radius: 0; }
.wsc-method summary { color: #404344; }
.wsc-method-title {
  margin: 0;
  padding: 10px 12px;
  color: #404344;
  font-size: 12px;
}
.wsc-method > .wsc-method-content {
  display: block;
  border-top: 1px solid var(--line);
  background: #fff;
}
.wsc-method > .wsc-method-content > div {
  padding: 0;
  border: 0;
  background: #fff;
}
.wsc-method-common,
.wsc-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wsc-method-common > div,
.wsc-method-grid > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.wsc-method-common > div:nth-child(2n),
.wsc-method-grid > div:nth-child(2n) { border-right: 0; }
.wsc-method-group { border-top: 3px solid var(--ink); }
.wsc-method-group.wsc-method-plywood { border-top-color: var(--orange); }
.wsc-method-group h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wsc-method span { color: #747778; }

.wsc-options,
.wsc-custom { margin-top: 18px; padding: 25px 34px; }
.wsc-options-summary > span { border-radius: 0; background: var(--ink); }
.wsc-options-summary strong { color: var(--ink); }
.wsc-options-summary small { color: var(--muted); }
.wsc-section-head select,
.wsc-custom input { border-color: var(--line); border-radius: 0; background: var(--soft); }
.wsc-table { border-color: var(--line); border-radius: 0; }
.wsc-table th { background: var(--soft); color: #606364; }
.wsc-table tr.selected { background: #fff4df; }
.wsc-table tr.selected button { background: var(--orange); color: var(--ink); }
.wsc-custom button.ghost { border-color: var(--line); border-radius: 0; background: #fff; }

@media (max-width: 1000px) {
  .wsc-layout { grid-template-columns: 1fr; }
  .wsc-order { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 650px) {
  .wsc-app { width: calc(100% - 32px); }
  .wsc-hero h1 { font-size: clamp(32px, 9.2vw, 36px); line-height: .94; }
  .wsc-calculator,
  .wsc-options,
  .wsc-custom { padding: 22px 20px; border-radius: 0; }
  .wsc-order label { grid-template-columns: 1fr 118px; }
  .wsc-method-common,
  .wsc-method-grid { grid-template-columns: 1fr; }
  .wsc-method-common > div,
  .wsc-method-grid > div { border-right: 0; }
}

/* Keep the complete primary comparison inside a common desktop viewport. */
@media (min-width: 1001px) and (min-height: 680px) {
  .wsc-app { margin-top: 18px; }
  .wsc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: end;
    gap: 32px;
    margin-bottom: 13px;
  }
  .wsc-hero p { grid-column: 1; margin-bottom: 2px; }
  .wsc-hero h1 { grid-column: 1; margin: 0; font-size: clamp(36px, 3.2vw, 50px); }
  .wsc-hero span { grid-column: 2; grid-row: 1 / span 2; padding-left: 20px; border-left: 1px solid #777; font-size: 13px; line-height: 1.4; }
  .wsc-calculator { padding: 18px 20px 19px; }
  .wsc-layout { grid-template-columns: 285px minmax(0, 1fr); gap: 20px; }
  .wsc-order { padding-right: 20px; }
  .wsc-title > b { flex-basis: 31px; height: 31px; }
  .wsc-title h2 { font-size: 23px; }
  .wsc-title p { font-size: 11px; }
  .wsc-fixed { margin: 12px 0 8px; padding: 9px 11px; }
  .wsc-fixed strong { font-size: 15px; }
  .wsc-order label { min-height: 47px; grid-template-columns: 1fr 108px; font-size: 11px; }
  .wsc-order label > .wsc-field-control { height: 34px; }
  .wsc-order input { font-size: 15px; }
  .wsc-total { min-height: 45px; font-size: 11px; }
  .wsc-total strong { font-size: 16px; }
  .wsc-order button { min-height: 43px; margin-top: 10px; }
  .wsc-results-head { margin-bottom: 10px; padding-bottom: 9px; }
  .wsc-status { padding: 7px 9px; font-size: 10px; }
  .wsc-comparison { gap: 12px; }
  .wsc-comparison article,
  .wsc-comparison .wsc-plywood { padding: 13px 16px 11px; }
  .wsc-comparison .wsc-plywood { padding-top: 10px; border-top-width: 4px; }
  .wsc-comparison .price { margin-top: 4px; font-size: clamp(38px, 3.2vw, 49px); }
  .wsc-comparison .name { min-height: 28px; margin: 4px 0; font-size: 11px; }
  .wsc-comparison .badges { min-height: 23px; }
  .wsc-comparison .badges span { padding: 3px 6px; font-size: 9px; }
  .wsc-comparison .metrics { margin-top: 7px; }
  .wsc-metric { min-height: 31px; padding: 4px 0; font-size: 11px; }
  .wsc-metric strong { font-size: 12px; }
  .wsc-metric.highlight { margin-inline: -8px; padding-inline: 8px; }
  .wsc-comparison .source { margin-top: 6px; font-size: 9px; }
  .wsc-verdict { margin-top: 9px; padding: 10px 13px; font-size: 12px; }
  .wsc-verdict strong { font-size: 14px; }
  .wsc-method { margin-top: 7px; }
  .wsc-method summary { padding: 7px 10px; font-size: 11px; }
}

/* Dense desktop layout: compact order and a fixed-width comparison panel. */
@media (min-width: 1280px) {
  .wsc-app {
    width: min(var(--shell, 1680px), calc(100% - clamp(48px, 6vw, 120px)));
    margin-top: 12px;
  }
  .wsc-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 24px;
    row-gap: 2px;
    margin-bottom: 10px;
  }
  .wsc-hero h1 { max-width: 1000px; font-size: clamp(30px, 2.3vw, 36px); }
  .wsc-hero span { padding-left: 16px; font-size: 12px; line-height: 1.35; }
  .wsc-calculator {
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 14px 16px 15px;
  }
  .wsc-options { position: relative; z-index: 1; }
  .wsc-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
  }
  .wsc-order {
    padding-right: 16px;
    display: flex;
    flex-direction: column;
  }
  .wsc-order .wsc-title { align-items: flex-start; }
  .wsc-fixed { margin: 9px 0 6px; padding: 7px 9px; }
  .wsc-fixed span,
  .wsc-fixed small { font-size: 9px; }
  .wsc-fixed strong { margin: 1px 0; font-size: 13px; }
  .wsc-order label {
    min-height: 42px;
    grid-template-columns: 1fr 90px;
    gap: 7px;
    font-size: 10px;
  }
  .wsc-order label > .wsc-field-control { height: 31px; }
  .wsc-order input { padding-inline: 9px; font-size: 14px; }
  .wsc-order label b { padding-right: 8px; font-size: 10px; }
  .wsc-order form {
    flex: 1;
    grid-template-rows: repeat(3, minmax(42px, 1fr)) auto auto;
  }
  .wsc-total { min-height: 39px; font-size: 10px; }
  .wsc-total strong { font-size: 14px; }
  .wsc-order button { min-height: 38px; margin-top: 8px; }

  .wsc-results-head {
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 7px;
  }
  .wsc-results-body {
    display: grid;
    grid-template-columns: minmax(580px, 650px) minmax(250px, 1fr);
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .wsc-comparison {
    grid-column: 1;
    grid-row: 1;
  }
  .wsc-comparison { gap: 8px; }
  .wsc-comparison article,
  .wsc-comparison .wsc-plywood { padding: 11px 12px 9px; }
  .wsc-comparison .wsc-plywood { padding-top: 8px; }
  .wsc-comparison .price { font-size: clamp(35px, 2.8vw, 43px); }
  .wsc-comparison .name { min-height: 25px; font-size: 10px; }
  .wsc-comparison .badges { min-height: 21px; gap: 3px; }
  .wsc-comparison .badges span { padding: 2px 5px; font-size: 8px; }
  .wsc-comparison .metrics { margin-top: 6px; }
  .wsc-metric { min-height: 28px; padding: 3px 0; font-size: 10px; }
  .wsc-metric strong { font-size: 11px; }
  .wsc-metric.highlight { margin-inline: -6px; padding-inline: 6px; }
  .wsc-comparison .source { margin-top: 5px; font-size: 8px; }

  .wsc-results-aside {
    display: contents;
  }
  .wsc-verdict {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding: 9px 11px;
    font-size: 11px;
    line-height: 1.35;
  }
  .wsc-verdict strong {
    display: inline;
    margin: 0 4px 0 0;
    font-size: 13px;
  }
  .wsc-verdict small { font-size: 9px; line-height: 1.35; }
  .wsc-method {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: block;
    align-self: stretch;
    overflow: hidden;
    margin: 0;
    background: #fff;
  }
  .wsc-method summary {
    padding: 9px 10px;
  }
  .wsc-method-title { padding: 9px 10px; font-size: 11px; }
  .wsc-method > .wsc-method-content {
    width: 100%;
    overflow: visible;
    border-top: 1px solid var(--line);
  }
  .wsc-method .wsc-method-common,
  .wsc-method .wsc-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsc-method .wsc-method-common > div,
  .wsc-method .wsc-method-grid > div {
    padding: 8px 9px;
  }
  .wsc-method .wsc-method-group h3 {
    padding: 8px 9px;
    font-size: 10px;
  }
  .wsc-method .wsc-method-content span { font-size: 9px; }
  .wsc-method .wsc-method-content strong { font-size: 11px; }
}

/* Comparison matrix: own equipment, three plastic options and a custom option. */
.wsc-results-head { align-items: center; }
.wsc-results-tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}
.wsc-sort {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #747778;
  font-size: 9px;
  font-weight: 700;
}
.wsc-sort select {
  min-width: 170px;
  height: 34px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.wsc-results-body {
  display: block;
  min-width: 0;
}
.wsc-comparison {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  background: #fff;
  scrollbar-color: var(--orange) #ededeb;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.wsc-comparison::-webkit-scrollbar { height: 9px; }
.wsc-comparison::-webkit-scrollbar-track { background: #ededeb; }
.wsc-comparison::-webkit-scrollbar-thumb { background: var(--orange); }
.wsc-matrix {
  width: max-content;
  min-width: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  color: var(--ink);
}
.wsc-matrix th,
.wsc-matrix td {
  box-sizing: border-box;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.wsc-matrix tr > *:last-child { border-right: 0; }
.wsc-matrix tbody tr:last-child > * { border-bottom: 0; }
.wsc-matrix-label-head,
.wsc-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 155px;
  min-width: 155px;
  max-width: 155px;
  padding: 10px 12px;
  background: #f1f1ef;
  color: #55595a;
  text-align: left;
}
.wsc-matrix-label-head {
  z-index: 5;
  vertical-align: middle;
  text-align: center;
}
.wsc-matrix-logo {
  display: block;
  width: min(100%, 118px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.wsc-matrix tbody th {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.wsc-matrix-solution,
.wsc-matrix-value {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}
.wsc-matrix-solution {
  padding: 0;
  vertical-align: top !important;
  background: #fff;
  text-align: left;
}
.wsc-solution-head {
  min-height: 220px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wsc-solution-image {
  width: 100%;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.wsc-solution-image img {
  width: 100%;
  height: 100%;
  padding: 7px;
  display: block;
  object-fit: contain;
}
.wsc-solution-image--placeholder {
  background: repeating-linear-gradient(135deg, #f6f6f4 0, #f6f6f4 8px, #efefec 8px, #efefec 9px);
  color: #8b8e8f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wsc-solution-copy {
  width: 100%;
  min-height: 108px;
  padding: 10px 12px 11px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}
.wsc-solution-copy p {
  margin: 0 0 7px;
  color: #737677;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.wsc-solution-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.17;
  letter-spacing: -.02em;
}
.wsc-solution-copy > span {
  margin-top: 6px;
  color: #6e7172;
  font-size: 9px;
  line-height: 1.35;
}
.wsc-solution-head--plywood {
  border-top: 4px solid var(--orange);
  background: #fff7e8;
}
.wsc-solution-head--plywood .wsc-solution-image { height: 108px; }
.wsc-solution-head--plywood .wsc-solution-copy { background: #fff7e8; }
.wsc-solution-head--plywood p { color: #aa6200; }
.wsc-solution-head--custom { background: #f7f7f5; }
.wsc-solution-head--custom p { color: #55595a; }
.wsc-solution-head--empty { background: #fafaf9; }
.wsc-solution-head--empty h3,
.wsc-solution-head--empty .wsc-solution-copy > span { color: #9a9c9c; }
.wsc-solution-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 5px;
}
.wsc-solution-actions button {
  min-height: 29px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid var(--orange);
  border-radius: 0;
  background: var(--orange);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.wsc-solution-actions button.ghost {
  border-color: var(--line);
  background: #fff;
}
.wsc-matrix-value {
  min-height: 36px;
  padding: 8px 11px;
  background: #fff;
  color: #383b3c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}
.wsc-matrix-value--plywood { background: #fffbf2; }
.wsc-matrix-price {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.03em;
}
.wsc-matrix-value--plywood .wsc-matrix-price { color: #c97800; }
.wsc-own-value {
  color: #c97800;
  font-weight: 800;
}
.wsc-matrix-value--source {
  height: 52px;
  vertical-align: top !important;
  color: #747778;
  font-size: 8px;
  font-weight: 500;
}
.wsc-matrix-value--source span,
.wsc-matrix-value--source small,
.wsc-matrix-value--source a { display: block; }
.wsc-matrix-value--source small { margin-top: 3px; }
.wsc-matrix-value--source a {
  margin-top: 3px;
  color: #a96500;
  font-weight: 800;
}
.wsc-verdict {
  width: fit-content;
  max-width: min(900px, 100%);
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}
.wsc-method {
  position: static;
  display: block;
  width: 100%;
  margin-top: 10px;
}
.wsc-verdict-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 12px;
}
.wsc-verdict-line > strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
}
.wsc-verdict-line > span {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}
.wsc-verdict-line b { color: #b96d00; }
.wsc-verdict-note {
  margin: 0;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  color: #6f7273;
  font-size: 9px;
  line-height: 1.35;
}

.wsc-method > .wsc-method-title {
  position: relative;
  padding: 10px 36px 10px 12px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.wsc-method > .wsc-method-title::-webkit-details-marker { display: none; }
.wsc-method > .wsc-method-title::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 12px;
  translate: 0 -50%;
  font-size: 18px;
  font-weight: 500;
}
.wsc-method[open] > .wsc-method-title::after { content: "−"; }
.wsc-method > .wsc-method-content {
  display: block;
  border-top: 1px solid var(--line);
  background: #fff;
}
.wsc-method-context {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--soft) !important;
}
.wsc-method-context span {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
}
.wsc-method-context strong { margin: 0; font-size: 11px; }
.wsc-method-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  padding: 0 !important;
}
.wsc-method-card {
  min-width: 0;
  display: grid;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
}
.wsc-method-card:first-child { grid-column: 1; }
.wsc-method-card:last-child { grid-column: 2; }
.wsc-method-card:first-child { border-right: 1px solid var(--line); }
.wsc-method-card h3 {
  margin: 0;
  padding: 8px 11px;
  border-bottom: 2px solid var(--ink);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wsc-method-card.wsc-method-plywood h3 { border-bottom-color: var(--orange); }
.wsc-method-card > div {
  min-height: 36px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
}
.wsc-method-card > div > span { font-size: 9px; }
.wsc-method-card > div > strong {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}
.wsc-method-card strong small,
.wsc-method-card > div > small {
  display: block;
  margin-top: 2px;
  color: #777a7b;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}
.wsc-method-card > .wsc-method-total {
  border-bottom: 0;
  background: #faf7f0;
}
.wsc-method-card > .wsc-method-total strong { font-size: 12px; }

@media (min-width: 1001px) {
  .wsc-order { align-self: start; }
  .wsc-matrix {
    width: 100%;
    table-layout: fixed;
  }
}

@media (min-width: 1280px) {
  .wsc-order form {
    flex: none;
    grid-template-rows: repeat(3, minmax(42px, auto)) auto auto;
  }
}

/* Custom-bin dialog. */
body.wsc-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
.wsc-custom-modal[hidden] { display: none; }
.wsc-custom-modal {
  width: 100%;
  width: var(--wsc-modal-viewport-width, 100%);
  height: 100vh;
  height: 100dvh;
  height: var(--wsc-modal-viewport-height, 100dvh);
  position: fixed;
  z-index: 100000;
  top: var(--wsc-modal-viewport-top, 0px);
  right: auto;
  bottom: auto;
  left: var(--wsc-modal-viewport-left, 0px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}
.wsc-custom-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 19, 21, .72);
  cursor: default;
}
.wsc-custom-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100% - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px;
  border-top: 5px solid var(--orange);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wsc-custom-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.wsc-custom-dialog .kicker {
  margin: 0 0 5px;
  color: #a96500;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wsc-custom-dialog h2 { margin: 0; font-size: 30px; }
.wsc-custom-dialog > p:not(.kicker) { margin: 8px 0 20px; color: #6c6f70; }
.wsc-custom-dialog form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wsc-custom-dialog label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #55595a;
  font-size: 11px;
  font-weight: 700;
}
.wsc-custom-dialog label.wide { grid-column: 1 / -1; }
.wsc-custom-dialog input {
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
  color: var(--ink);
}
.wsc-custom-dialog__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 5px;
}
.wsc-custom-dialog__actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--orange);
  border-radius: 0;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.wsc-custom-dialog__actions button.ghost {
  border-color: var(--line);
  background: #fff;
}

@media (max-width: 1000px) {
  .wsc-results-tools { align-items: flex-start; }
  .wsc-comparison {
    scroll-padding-inline-start: 155px;
    scroll-snap-type: x mandatory;
  }
  .wsc-matrix-solution,
  .wsc-matrix-value {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    scroll-snap-align: start;
  }
}

@media (max-width: 650px) {
  .wsc-order {
    padding: 0 0 12px;
  }
  .wsc-order .wsc-title {
    align-items: center;
    gap: 8px;
  }
  .wsc-order .wsc-title > b {
    flex-basis: 30px;
    height: 30px;
    font-size: 10px;
  }
  .wsc-order .wsc-title h2 { font-size: 22px; }
  .wsc-order .wsc-title p { display: none; }
  .wsc-order .wsc-fixed {
    min-height: 42px;
    margin: 12px 0 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .wsc-order .wsc-fixed > span { flex: 0 0 auto; }
  .wsc-order .wsc-fixed strong {
    margin: 0;
    font-size: 14px;
    text-align: right;
  }
  .wsc-order .wsc-fixed small { display: none; }
  .wsc-order form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 7px;
    row-gap: 9px;
    border-top: 0;
  }
  .wsc-order form > label {
    min-width: 0;
    min-height: 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    font-size: 10px;
  }
  .wsc-field-label-long { display: none; }
  .wsc-field-label-short {
    display: block;
    color: #55595a;
    line-height: 1.2;
  }
  .wsc-order label > .wsc-field-control {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-items: center;
    overflow: hidden;
    background: var(--soft);
  }
  .wsc-order .wsc-field-control input {
    min-width: 0;
    padding: 0 1px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
  }
  .wsc-order .wsc-field-control input::-webkit-outer-spin-button,
  .wsc-order .wsc-field-control input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
  .wsc-order .wsc-stepper {
    width: 20px;
    min-width: 20px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: #c96f00;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    touch-action: manipulation;
  }
  .wsc-order .wsc-stepper:first-child { border-right: 1px solid #d7d7d3; }
  .wsc-order .wsc-stepper:nth-of-type(2) { border-left: 1px solid #d7d7d3; }
  .wsc-order .wsc-stepper:active { background: #fff0d7; color: var(--ink); }
  .wsc-order .wsc-field-control b {
    display: none;
  }
  .wsc-order form > .wsc-height-field { grid-column: auto; }
  .wsc-support-choice {
    grid-column: 1 / -1;
    margin: 0;
    padding: 9px 0 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .wsc-support-choice legend {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    font-size: 10px;
  }
  .wsc-support-label-long { display: none; }
  .wsc-support-label-short { display: inline; }
  .wsc-order .wsc-support-choice label {
    min-height: 48px;
    padding: 7px;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 6px;
    background: var(--soft);
  }
  .wsc-order .wsc-support-choice input {
    width: 16px;
    height: 16px;
  }
  .wsc-order .wsc-support-choice strong { font-size: 10px; }
  .wsc-order .wsc-support-choice small {
    margin-top: 1px;
    font-size: 8px;
    line-height: 1.2;
  }
  .wsc-total {
    grid-column: 1 / -1;
    min-height: 32px;
    padding: 2px 0;
    border-bottom: 0;
  }
  .wsc-total-label-long { display: none; }
  .wsc-total-label-short { display: inline; }
  .wsc-total strong { font-size: 15px; }
  .wsc-order form > button {
    grid-column: 1 / -1;
    min-height: 42px;
    margin-top: 0;
  }
  .wsc-comparison {
    width: calc(100% + 8px);
    margin-left: -8px;
    scroll-padding-inline-start: 86px;
  }
  .wsc-results-head { align-items: stretch; }
  .wsc-results-tools { width: 100%; align-items: stretch; justify-content: flex-end; }
  .wsc-sort { flex: 0 0 180px; }
  .wsc-sort select { width: 100%; min-width: 0; }
  .wsc-status {
    flex: 1;
    align-self: flex-end;
    white-space: normal;
    text-align: right;
  }
  .wsc-matrix-label-head,
  .wsc-matrix tbody th {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    padding-inline: 5px;
  }
  .wsc-matrix-logo {
    width: 66px;
    max-width: none;
    height: auto;
    margin-inline: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .wsc-matrix tbody th { font-size: 9px; line-height: 1.22; }
  .wsc-matrix-solution,
  .wsc-matrix-value {
    width: 164px;
    min-width: 164px;
    max-width: 164px;
  }
  .wsc-solution-head { min-height: 218px; }
  .wsc-solution-image { height: 108px; }
  .wsc-solution-head--plywood .wsc-solution-image { height: 104px; }
  .wsc-solution-copy { padding: 10px; }
  .wsc-matrix-value { padding: 8px; }
  .wsc-verdict { width: 100%; }
  .wsc-verdict-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .wsc-method-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .wsc-method-columns {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .wsc-method-card { display: block; }
  .wsc-method-card:first-child { border-right: 0; }
  .wsc-method-card + .wsc-method-card { border-top: 4px solid var(--line); }
  .wsc-custom-modal { padding: 0; place-items: stretch; }
  .wsc-custom-dialog {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: calc(28px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  }
  .wsc-custom-dialog__close {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
  }
  .wsc-custom-dialog form { grid-template-columns: 1fr; }
  .wsc-custom-dialog label.wide,
  .wsc-custom-dialog__actions { grid-column: auto; }
  .wsc-custom-dialog__actions { flex-direction: column; }
}

@media (max-width: 340px) {
  .wsc-comparison { scroll-padding-inline-start: 76px; }
  .wsc-matrix-label-head,
  .wsc-matrix tbody th {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    padding-inline: 4px;
  }
  .wsc-matrix tbody th { font-size: 8px; }
}
