.order-trends {
  --ot-ink: var(--ink-deep);
  --ot-accent: var(--blue-dark);
  --ot-muted: var(--muted);
  --ot-rule: var(--line);
  background: #f8f9fa;
  color: var(--ot-ink);
  padding-block: clamp(48px, 7vw, 96px);
}
.order-trends .ot-inner {min-width: 0}
.order-trends .ot-kicker {
  color: var(--ot-accent);
  font: 700 .74rem/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .09em;
  margin: 0 0 .8rem;
  text-transform: uppercase;
}
.order-trends h2 {
  color: var(--ot-ink);
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  letter-spacing: -.047em;
  line-height: 1.08;
  margin: 0;
}
.order-trends .ot-intro {color: var(--ink); font-size: 1.04rem; line-height: 1.65; max-width: 72ch; margin: 1rem 0 2rem}
.order-trends .ot-tools {align-items: center; border-bottom: 1px solid var(--ot-rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 0 0 .75rem}
.order-trends .ot-axis-caption {color: var(--ot-accent); font-weight: 700; margin: 0; font-size: .93rem}
.order-trends .ot-switch {align-items: center; border: 1px solid var(--muted); border-radius: 5px; display: none; min-width: 0; margin: 0; padding: 2px}
.order-trends .ot-switch label {color: var(--ink); border-radius: 3px; cursor: pointer; font-weight: 650; font-size: .85rem; line-height: 1.4; padding: .46rem .8rem}
.order-trends .ot-switch input:checked + label {background: var(--blue); color: var(--ink-deep)}
.order-trends .ot-switch input:focus-visible + label {outline: 2px solid var(--ot-ink); outline-offset: 2px; position: relative; z-index: 1}
.order-trends .ot-switch input, .order-trends .ot-sr {clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; white-space: nowrap}
.order-trends .ot-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); row-gap: 1.8rem; margin-block: 1.6rem 1.5rem}
.order-trends .ot-figure {min-width: 0; margin: 0; padding: 0}
.order-trends [data-subject="pooling"] {--ot-series: #5689a5}
.order-trends [data-subject="amendments"] {--ot-series: #a07936}
.order-trends [data-subject="commingling"] {--ot-series: #88759d}
.order-trends [data-subject="disposal"] {--ot-series: #40867f}
.order-trends figcaption {font-size: 1.08rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 1.9rem}
.order-trends .ot-plot {display: grid; gap: .35rem; grid-template-columns: 2.1rem minmax(0, 1fr); padding-bottom: 1.6rem}
.order-trends .ot-ticks {position: relative; color: var(--ot-muted); font: .71rem/1.1 ui-monospace, Consolas, monospace; text-align: right}
.order-trends .ot-ticks > span {position: absolute; right: 0; transform: translateY(-50%)}
.order-trends .ot-ticks > span:first-child {top: 0}
.order-trends .ot-ticks > span:nth-child(2) {top: 50%}
.order-trends .ot-ticks > span:last-child {top: 100%}
.order-trends .ot-bars {
  background: linear-gradient(var(--ot-rule), var(--ot-rule)) top / 100% 1px no-repeat,
              linear-gradient(var(--ot-rule), var(--ot-rule)) center / 100% 1px no-repeat;
  border-bottom: 1px solid var(--muted);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 9rem;
  list-style: none;
  margin: 0;
  padding: 0 .12rem;
}
.order-trends .ot-bars li {color: var(--ot-series, var(--ot-accent)); min-width: 0; position: relative; margin: 0; padding: 0}
.order-trends .ot-bar {
  background: currentColor;
  border-radius: 2px 2px 0 0;
  bottom: 0;
  height: calc(100% * var(--ot-count-height));
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: min(54%, 2.7rem);
}
.order-trends .ot-value, .order-trends .ot-year {font: 600 .78rem/1.1 ui-monospace, Consolas, monospace; left: 50%; position: absolute; transform: translateX(-50%); white-space: nowrap}
.order-trends .ot-value {bottom: 100%; color: var(--ot-ink); padding-bottom: .3rem}
.order-trends .ot-year {color: var(--ot-muted); top: 100%; margin-top: .4rem; font-size: .71rem; font-weight: 500}
.order-trends .ot-bars li:last-child .ot-year {color: var(--ot-ink); font-weight: 800}
.order-trends .ot-share {display: none}
@supports selector(:has(input:checked)) {
  .order-trends .ot-switch {display: inline-flex}
  .order-trends:has(#ot-select-share:checked) .ot-count {display: none}
  .order-trends:has(#ot-select-share:checked) .ot-share {display: inline}
  .order-trends:has(#ot-select-share:checked) .ot-bar {height: calc(100% * var(--ot-share-height))}
}
.order-trends .ot-source {color: var(--ot-muted); font-size: .87rem; line-height: 1.6; margin: 0; max-width: 100ch}
.order-trends .ot-details {border-top: 1px solid var(--ot-rule); border-bottom: 1px solid var(--ot-rule); margin: 1.25rem 0 0}
.order-trends summary {color: var(--ot-accent); cursor: pointer; font-size: .9rem; font-weight: 700; padding: .9rem 0}
.order-trends summary:focus-visible, .order-trends .ot-table-scroll:focus-visible {outline: 2px solid var(--ot-accent); outline-offset: 2px}
.order-trends .ot-table-scroll {overflow-x: auto; margin-bottom: 1rem}
.order-trends table {border-collapse: collapse; font-size: .87rem; font-variant-numeric: tabular-nums; width: 100%}
.order-trends caption {color: var(--ot-muted); font-size: .85rem; text-align: left; padding: 0 0 .6rem}
.order-trends th, .order-trends td {border-top: 1px solid var(--ot-rule); padding: .55rem .5rem; text-align: right; vertical-align: middle}
.order-trends th:first-child {min-width: 8rem; padding-left: 0; text-align: left}
.order-trends td {min-width: 4.6rem}
.order-trends td small {display: block; color: var(--ot-muted); font-size: .76rem}
.order-trends tfoot {font-weight: 700}
@media (min-width: 1180px) {
  .order-trends .ot-grid {grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.6rem}
  .order-trends .ot-bars {height: 9.75rem}
}
@media (max-width: 660px) {
  .order-trends .ot-grid {grid-template-columns: minmax(0, 1fr); gap: 1.6rem}
  .order-trends .ot-bars {height: 6.3rem}
  .order-trends .ot-figure figcaption {margin-bottom: 1.35rem}
}
@media (forced-colors: active) {
  .order-trends .ot-bar {background: CanvasText; forced-color-adjust: none}
  .order-trends .ot-switch input:checked + label {outline: 2px solid Highlight; outline-offset: -2px}
}
