/* Explorer. Light working surface: filters on top, everything below recomputes. */

body { background: #fbfaf7; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.top { padding: 62px 0 18px; }
.top h1 { font-size: clamp(27px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
.top .lede { margin: 0; max-width: 48em; color: #574f47; font-size: 16px; }

.filters { position: sticky; top: 41px; z-index: 300; background: #f3efe8; border-top: 1px solid #ddd6ca; border-bottom: 1px solid #ddd6ca; }
.filters .wrap { padding-top: 11px; padding-bottom: 11px; }
.fgroups { display: flex; flex-direction: column; gap: 8px; }
.frow { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.fgroup { display: flex; align-items: center; gap: 7px; }
.fgroup .glabel { font-size: 11.5px; color: #8a8175; min-width: 46px; text-align: right; letter-spacing: 0.01em; }
.fgroup .opts { display: flex; gap: 4px; }
.fgroup button, .fgroup select {
  font: inherit; font-size: 12.5px; height: 28px; line-height: 1;
  border: 1px solid #d5cec2; background: #fff; color: #574f47; border-radius: 999px; cursor: pointer;
}
.fgroup button { padding: 0 10px; }
.fgroup button:hover, .fgroup select:hover { border-color: #8a8175; }
.fgroup button.on { background: #2b2621; color: #fbfaf7; border-color: #2b2621; }
.fgroup select { padding: 0 26px 0 10px; width: 158px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8175' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }

.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e4dfd5; }
.matchline { font-size: 13px; color: #574f47; }
.matchline b { font-size: 16px; color: #2b2621; }
.matchline span { color: #8a8175; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.chips .chip {
  font-size: 12px; padding: 2px 6px 2px 9px; border-radius: 999px;
  background: #2b2621; color: #fbfaf7; display: inline-flex; align-items: center; gap: 5px;
}
.chips .chip button { background: none; border: 0; color: #cdc4b4; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.chips .chip button:hover { color: #fff; }
.reset { font: inherit; font-size: 12.5px; padding: 4px 11px; border: 1px solid #c2695f; color: #a8544a; background: #fff; border-radius: 999px; cursor: pointer; }
.reset:hover { background: #c2695f; color: #fff; }

.loading { padding: 60px 22px; color: #8a8175; }

.kpis .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 22px; }
.kpi .v { font-size: clamp(25px, 3.4vw, 35px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.kpi .k { font-size: 12.5px; color: #8a8175; margin-top: 3px; }
.kpi .d { font-size: 12px; margin-top: 2px; color: #8a8175; }
.kpi .d.up { color: #a8544a; }
.kpi .d.down { color: #4e8d80; }

.panel { padding: 24px 0 6px; }
.panel h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.015em; }
.panel h3 { font-size: 14.5px; margin: 0 0 7px; color: #574f47; font-weight: 600; }
.panel-head .hint { margin: 0 0 12px; font-size: 13.5px; color: #8a8175; max-width: 62em; }
.note { font-size: 12.5px; color: #8a8175; margin: 6px 0 0; max-width: 42em; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 24px; }

.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: inherit; font-size: 12px; }
/* No fill here: a class rule would override the per-label colours set on each
   text element. The default is set once on the svg and inherited instead. */

#aspect-table { overflow-x: auto; }
.atable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; }
.atable th { text-align: left; font-weight: 500; color: #8a8175; font-size: 11.5px; padding: 5px 7px; border-bottom: 1px solid #ddd6ca; white-space: nowrap; }
.atable th.num, .atable td.num { text-align: right; }
.atable td { padding: 6px 7px; border-bottom: 1px solid #efebe3; vertical-align: middle; }
.atable tr.row { cursor: pointer; }
.atable tr.row:hover td { background: #f5f2ec; }
.atable tr.row.selected td { background: #edf4f2; }
.atable td.topic { font-weight: 600; white-space: nowrap; }
.atable td.topic small { display: block; font-weight: 400; color: #a29a8d; font-size: 11px; }
.atable td.bars { width: 32%; min-width: 150px; }
.bar { height: 6px; border-radius: 2px; }
.bar.pos { background: #5f9e91; margin-bottom: 3px; }
.bar.neg { background: #c2695f; }
.atable td.muted { color: #a29a8d; }
.chg.up { color: #a8544a; }
.chg.down { color: #4e8d80; }

.detail { background: #f3efe8; border-top: 1px solid #ddd6ca; border-bottom: 1px solid #ddd6ca; padding-bottom: 24px; }
.compare-ctl { margin-bottom: 6px; font-size: 12.5px; color: #8a8175; }
.compare-ctl select { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid #d5cec2; border-radius: 6px; background: #fff; }
.quotes { list-style: none; padding: 0; margin: 0; }
.quotes li { border-left: 2px solid #c2695f; padding: 2px 0 2px 11px; margin: 0 0 9px; font-size: 13.5px; color: #3a342d; }
.quotes li span { color: #a29a8d; font-size: 11.5px; margin-left: 5px; }

.method { padding-bottom: 28px; }
.method-grid { display: block; max-width: 56em; font-size: 13.5px; color: #574f47; border-top: 1px solid #e4dfd5; }
.mblock { border-bottom: 1px solid #e4dfd5; }
.mblock summary {
  cursor: pointer; list-style: none;
  padding: 11px 26px 11px 0; position: relative;
  color: #2b2621; font-weight: 600; font-size: 14.5px;
}
.mblock summary::-webkit-details-marker { display: none; }
.mblock summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 8px; height: 8px; margin-top: -5px;
  border-right: 1.5px solid #8a8175; border-bottom: 1.5px solid #8a8175;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.mblock[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.mblock summary:hover { color: #8a6a60; }
.mblock > div { padding: 0 0 14px; max-width: 46em; }
.method table { border-collapse: collapse; font-size: 12.5px; margin-top: 5px; }
.method td, .method th { padding: 2px 10px 2px 0; text-align: left; border-bottom: 1px solid #efebe3; }
.method th { font-weight: 500; color: #8a8175; }

.foot { padding: 16px 22px 36px; font-size: 12.5px; color: #8a8175; border-top: 1px solid #ddd6ca; }

@media (min-width: 780px) {
  .kpis .wrap { grid-template-columns: repeat(6, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .fgroup .glabel { min-width: 0; text-align: left; }
  .fgroup select { width: 140px; }
  .atable th.hide-sm, .atable td.hide-sm { display: none; }
  .filters { position: static; }
}
