/* Research destinations share the archive system, with distinct jobs. */
.record-topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.record-topic-filters a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #bfc7c0;
  color: #435048;
  text-decoration: none;
  font-size: 13px;
}
.record-topic-filters a[aria-current='page'] {
  background: #34413c;
  color: #f4f3ec;
  border-color: #34413c;
}
.record-topic-filters small {
  font-family: var(--font-mono, monospace);
  opacity: 0.8;
}
.research-topic-label {
  margin: 0 0 8px;
  font-size: 11px;
  color: #59675f;
}
.market-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 30px 0 24px;
  padding: 20px;
  background: rgba(216, 222, 216, 0.55);
  border: 1px solid #bec8c0;
}
.market-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.market-controls input,
.market-controls select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #a6b3a9;
  background: #f6f6ef;
  color: #23312b;
  border-radius: 0;
  padding: 0 10px;
  font: inherit;
}
.market-controls button {
  min-height: 44px;
  background: #34413c;
  color: #f5f5ef;
  border: 1px solid #34413c;
  padding: 10px 16px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.market-clear {
  grid-column: 1/-1;
  justify-self: start;
  font-size: 12px;
}
.market-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-bottom: 1px solid #b9c5bc;
}
.market-metrics > div {
  padding: 12px 24px 20px;
  border-right: 1px solid #b9c5bc;
}
.market-metrics > div:first-child {
  padding-left: 0;
}
.market-metrics > div:last-child {
  border-right: 0;
}
.market-metrics dt {
  color: #5b685f;
  font-size: 12px;
}
.market-metrics dd {
  margin: 6px 0 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.2;
}
.market-status {
  font-size: 12px;
  color: #59675f;
  margin: 16px 0 30px;
}
.market-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin: 0 0 16px;
}
.market-section-heading h2 {
  margin: 0;
}
.market-section-heading p {
  margin: 0;
  color: #59675f;
  font-size: 13px;
}
.market-price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.market-price-card {
  border: 1px solid #b9c5bc;
  background: #f7f6f0;
  min-width: 0;
}
.market-price-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1.8;
  background: #d8ded8;
  overflow: hidden;
}
.market-price-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.market-price-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  background: rgba(19, 30, 25, 0.85);
  font-size: 9px;
  padding: 6px 10px;
}
.market-price-body {
  padding: 22px;
}
.market-price-body h3 {
  font-size: 20px;
  margin: 8px 0 26px;
}
.market-price-body h3 a {
  text-decoration: none;
  color: inherit;
}
.market-price-body .market-price {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.055em;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.market-price-meaning {
  font-size: 11px;
  color: #526057;
  margin: 0 0 20px;
}
.market-outcome {
  display: inline-block;
  margin: 0;
  border: 1px solid #adb9b0;
  padding: 4px 7px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
}
.market-price-note {
  font-size: 12px;
  line-height: 1.6;
  color: #526057;
  min-height: 38px;
  margin: 10px 0 20px;
}
.market-source {
  font-size: 11px;
  border-top: 1px solid #ccd3cc;
  padding-top: 16px;
  margin: 0 0 12px;
  color: #59675f;
}
.market-price-body > a {
  font-size: 13px;
}
.market-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 36px 0;
}
.market-outcomes {
  padding: 28px;
  background: #dee2dc;
  border: 1px solid #b9c5bc;
}
.market-context h2 {
  font-size: 22px;
  margin: 10px 0 24px;
}
.market-outcome-row {
  display: block;
  color: inherit;
  text-decoration: none;
  margin: 0 0 20px;
}
.market-outcome-legend {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.market-bar {
  display: block;
  height: 5px;
  background: #c4cdc5;
}
.market-bar > span {
  display: block;
  height: 100%;
  background: #536b60;
}
.market-limits {
  padding: 28px;
  background: #17241e;
  color: #f0f1e9;
}
.market-limits .technical-label {
  color: #b8c4bb;
}
.market-limits > p:not(.technical-label) {
  color: #c7d0c8;
  font-size: 13px;
  line-height: 1.7;
}
.market-readiness {
  margin: 24px 0 0;
  font-size: 12px;
}
.market-readiness > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #405047;
}
.market-readiness dd {
  margin: 0;
  color: #bcc8be;
  text-align: right;
}
.market-history {
  padding-top: 26px;
  border-top: 1px solid #b9c5bc;
}
.market-history h2 {
  margin: 12px 0;
}
.market-history table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
  text-align: left;
}
.market-history th {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 400;
  background: #dfe4dd;
  padding: 14px;
}
.market-history td {
  padding: 20px 14px;
  border-bottom: 1px solid #c7d0c7;
  vertical-align: top;
}
.market-history small {
  display: block;
  font-size: 10px;
  color: #59675f;
  margin-top: 5px;
  max-width: 180px;
}
.market-history td > a {
  color: inherit;
}
.record-panel .market-price-cards {
  grid-template-columns: minmax(0, 560px);
}
@media (max-width: 1000px) {
  .market-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-query {
    grid-column: 1/3;
    grid-row: 1;
  }
  .market-controls button {
    grid-column: 3;
    grid-row: 1;
  }
  .market-price-cards {
    gap: 12px;
  }
  .market-price-body {
    padding: 16px;
  }
}
@media (max-width: 700px) {
  .market-controls {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .market-query {
    grid-column: 1/-1;
  }
  .market-controls button {
    grid-column: 2;
    grid-row: 3;
  }
  .market-price-cards,
  .market-context {
    grid-template-columns: 1fr;
  }
  .market-price-cards {
    gap: 20px;
  }
  .market-price-card figure {
    aspect-ratio: 2.1;
  }
  .market-price-body {
    padding: 22px;
  }
  .market-price-body h3 {
    margin-bottom: 22px;
  }
  .market-metrics > div {
    padding: 10px 12px 16px;
  }
  .market-metrics dt {
    font-size: 10px;
  }
  .market-metrics dd {
    font-size: 32px;
  }
  .market-section-heading {
    display: block;
  }
  .market-section-heading p {
    margin-top: 8px;
  }
  .market-context {
    gap: 20px;
    margin: 28px 0;
  }
  .market-outcomes,
  .market-limits {
    padding: 22px;
  }
  .record-topic-filters {
    gap: 6px;
  }
  .record-topic-filters a {
    padding: 8px 9px;
    font-size: 12px;
  }
}
@media (forced-colors: active) {
  .market-bar {
    border: 1px solid CanvasText;
  }
  .market-bar > span {
    background: Highlight;
    forced-color-adjust: none;
  }
  .record-topic-filters a[aria-current='page'] {
    outline: 2px solid Highlight;
  }
}
