:root {
  --ground: #f5f6f8;
  --surface: #fff;
  --ink: #161b22;
  --muted: #5b6573;
  --faint: #8a93a1;
  --hair: #e3e6eb;
  --navy: #1e40af;
  --warm: #2f9e54;
  --warm-wash: #e7f5ec;
  --t1: #161b22;
  --t2: #3b4756;
  --t3: #9aa3b1;
  --t4: #6b7686;
  --pm: #16a34a;
  --cit: #ea580c;

  /* Type scale — 8 semantic, even-numbered sizes. Change once here to retune globally. */
  --fs-display: clamp(34px, 5vw, 48px); /* hero title (h1) */
  --fs-title: 48px; /* panel name */
  --fs-stat: 24px; /* KPI figures */
  --fs-heading: 24px; /* section headings */
  --fs-subheading: 18px; /* smaller headings, nav arrows */
  --fs-body: 16px; /* body copy, card names, panel subheaders, intro, links */
  --fs-caption: 12px; /* table, labels, pills, tabs, tags, tooltips */
  --fs-micro: 10px; /* carets, sort arrows, tiny labels */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: none;
  margin: 0;
  padding: 34px 40px 60px;
}

h1 em {
  font-style: normal;
  color: #cc0000;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 20px 0 0;
}

.viewtabs {
  display: inline-flex;
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ground);
  flex: none;
}

.vt {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.vt.on {
  background: var(--ink);
  color: #fff;
}

.sw {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.sw.dia {
  border-radius: 1px;
  transform: rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--navy);
}

.sw.self {
  background: var(--warm);
  box-shadow: 0 0 0 2px var(--warm);
}

.subctrls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  color: var(--faint);
}

.subctrls > span:first-child {
  font-size: var(--fs-body);
}

.subctrls .ctrls {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--faint);
  user-select: none;
  font-size: var(--fs-body);
}

.toggle input {
  accent-color: var(--navy);
  width: 13px;
  height: 13px;
}

.stage {
  position: relative;
  margin-top: 12px;
}

.plotcard {
  background: none;
  border: none;
  position: relative;
  overflow: hidden;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.qlabel {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  fill: var(--faint);
}

.qlabel.hot {
  fill: var(--warm);
}

.axttl {
  font-family: "Archivo";
  font-weight: 600;
  font-size: var(--fs-caption);
  fill: #999999;
}

.quadhit {
  transition: fill 0.15s;
}

.quadhit:hover {
  fill: rgba(30, 64, 175, 0.035);
}

.node {
  cursor: pointer;
}

.node:focus {
  outline: none;
}

.node.sel .ring {
  opacity: 1;
}

.ring {
  opacity: 0;
}

.nlabel {
  font-family: "Archivo", sans-serif;
  font-size: var(--nlfs, 10px);
  fill: var(--ink);
  pointer-events: none;
  opacity: 0.82;
}

.nlabel.self {
  fill: var(--warm);
  font-weight: 600;
  font-size: var(--fs-caption);
  opacity: 1;
}

.nlabel.hidden {
  display: none;
}

.edge {
  stroke: var(--navy);
  stroke-width: 1;
  opacity: 0.15;
  fill: none;
  pointer-events: none;
  transition: opacity 0.2s;
}

.edge.hide {
  opacity: 0;
}

.zoomout {
  position: absolute;
  top: 20px;
  left: 12px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  background: var(--ink);
  color: #fff;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 3;
}

.zoomout.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: var(--fs-caption);
  line-height: 1.35;
  max-width: 220px;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 4;
  box-shadow: 0 6px 22px rgba(20, 26, 34, 0.22);
}

.tip.on {
  opacity: 1;
}

.tip b {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.tablewrap {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--ground);
  border-radius: 6px;
  overflow: hidden;
}

.tbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
  align-items: center;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.tbar button {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  padding: 4px 10px;
  border: 1px solid var(--hair);
  background: var(--ground);
  color: var(--faint);
  border-radius: 99px;
  cursor: pointer;
}

.tbar button.on {
  background: #e7ebf1;
  color: var(--ink);
  border-color: #cdd4de;
}

.tbar .texp {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.tbar .texp button {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tbar .texp button:hover {
  opacity: 0.9;
}

#colBtn,
#groupBtn {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  padding: 4px 13px;
  border: 1px solid var(--hair);
  background: var(--ground);
  color: var(--ink);
  border-radius: 99px;
  cursor: pointer;
}

#colBtn:hover,
#groupBtn:hover {
  border-color: #c5ccd6;
}

.grpwrap {
  position: relative;
}

.grpmenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 130px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 26, 34, 0.14);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.grpwrap.open .grpmenu {
  display: flex;
}

.grp-opt {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  padding: 7px 10px;
  border: none;
  background: none;
  color: var(--ink);
  border-radius: 5px;
  cursor: pointer;
}

.grp-opt:hover {
  background: var(--ground);
}

.grp-opt.on {
  background: #e7ebf1;
  font-weight: 600;
}

.grouphdr td {
  background: #f2f4f7;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
  user-select: none;
}

.grouphdr:hover td {
  background: #e9edf2;
}

.grpcaret {
  display: inline-block;
  margin-right: 7px;
  font-size: var(--fs-micro);
  color: var(--faint);
  transition: transform 0.15s;
}

.grouphdr.collapsed .grpcaret {
  transform: rotate(-90deg);
}

.grouphdr .grpn {
  float: right;
  color: var(--t2);
  font-weight: 600;
  background: #eceef1;
  border-radius: 999px;
  padding: 1px 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 34, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
  z-index: 30;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(20, 26, 34, 0.28);
  padding: 24px 24px 20px;
  width: 440px;
  max-width: 100%;
  position: relative;
  transform: translateY(8px);
  transition: transform 0.16s;
}

.modal.open .modal-card {
  transform: none;
}

.modal-card .x {
  position: absolute;
  top: 14px;
  right: 15px;
  border: none;
  background: none;
  font-size: var(--fs-heading);
  color: var(--faint);
  cursor: pointer;
}

.modal-card .x:hover {
  color: var(--ink);
}

.mh {
  font-size: var(--fs-subheading);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.msub {
  margin: 5px 0 16px;
  font-size: var(--fs-caption);
  color: var(--muted);
  line-height: 1.45;
}

.colchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.colchips button {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  padding: 6px 12px;
  border: 1px solid var(--hair);
  background: var(--ground);
  color: var(--faint);
  border-radius: 99px;
  cursor: pointer;
}

.colchips button.on {
  background: #e7ebf1;
  color: var(--ink);
  border-color: #cdd4de;
}

.mactions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  align-items: center;
}

.mactions button {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  padding: 7px 13px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--muted);
  border-radius: 7px;
  cursor: pointer;
}

.mactions .primary {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

table {
  border-collapse: collapse;
  font-size: var(--fs-body);
  table-layout: fixed;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  text-align: left;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

thead th:hover {
  color: var(--ink);
}

thead th .ar {
  opacity: 0.6;
  font-size: var(--fs-micro);
}

thead th.num {
  text-align: right;
  width: 64px;
}

tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: top;
}

tbody td.num {
  text-align: right;
  font-family: "Archivo", sans-serif;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f7f9fb;
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}

#tilesView .tdot,
#tableView .tdot {
  display: none;
}

tbody tr:hover .nm {
  color: var(--navy);
}

tbody tr:hover .nm::after {
  content: " ›";
  color: var(--navy);
  font-weight: 700;
}

.nm {
  font-weight: 600;
}

td.col-n {
  white-space: nowrap;
}

/* Cells don't wrap; long text truncates with an ellipsis. */
#tbl th,
#tbl td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Initial column widths (table-layout: fixed); drag the header edge to resize. */
#tbl thead th:nth-child(1) {
  width: 220px;
}
#tbl thead th:nth-child(2) {
  width: 150px;
}
#tbl thead th:nth-child(3) {
  width: 170px;
}
#tbl thead th:nth-child(4) {
  width: 190px;
}
#tbl thead th:nth-child(5) {
  width: 220px;
}
#tbl thead th.num {
  width: 84px;
}
.col-resize {
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 4;
}
/* Freeze the first column; the rest scroll left/right. */
#tbl thead th:first-child,
#tbl td.col-n {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  border-right: 1px solid var(--hair);
}
#tbl thead th:first-child {
  z-index: 3;
}
tbody tr:hover td.col-n {
  background: #f7f9fb;
}

.nmlabel {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.q {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
}

.q.Superconnector {
  color: #1e7b43;
}

.q.Bridge {
  color: var(--navy);
}

.q.Megaphone {
  color: #6b7686;
}

.q.Specialist {
  color: #9aa3b1;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 34, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
  z-index: 20;
}

.backdrop.on {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 50vw;
  min-width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  box-shadow: -18px 0 48px rgba(20, 26, 34, 0.16);
  padding: 30px 26px 36px;
  overflow: auto;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 21;
}

.panel.on {
  transform: none;
  pointer-events: auto;
}

.panel .x {
  position: absolute;
  top: 26px;
  right: 13px;
  cursor: pointer;
  color: #c4cad3;
  font-size: 28px;
  line-height: 1;
  border: none;
  background: none;
}

.panel .x:hover {
  color: var(--ink);
}

.pname {
  font-family: "Newsreader", Georgia, serif;
  font-style: normal;
  font-size: var(--fs-title);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 8px 26px 16px 0;
  line-height: 1.1;
}

.posread {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: #f6f7f9;
  border-radius: 8px;
  padding: 13px 15px;
  margin: 2px 0 15px;
}

.pnav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 24px 12px 0;
}

.pinner.anim-next {
  animation: panel-in-next 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.pinner.anim-prev {
  animation: panel-in-prev 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes panel-in-next {
  from {
    transform: translateX(26px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes panel-in-prev {
  from {
    transform: translateX(-26px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pinner.anim-next,
  .pinner.anim-prev {
    animation: none;
  }
}

.pnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 48%;
  min-width: 0;
  font:
    600 15px/1.2 "Archivo",
    sans-serif;
  letter-spacing: 0.02em;
  color: var(--faint);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.12s;
}

.pnav-next {
  margin-left: auto;
}

.pnav-btn:hover {
  color: var(--ink);
}

.pnav-nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnav-ar {
  font-size: var(--fs-subheading);
  flex: none;
}

.plinks {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 14px;
}

.psep {
  margin: 0 9px;
  color: var(--faint);
}

.plink {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.plink:hover {
  border-bottom-color: currentColor;
}

.locator {
  margin: 18px 0 12px;
}

.locsvg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  background: #fbfcfd;
  border-radius: 8px;
}

.kpis {
  display: flex;
  gap: 8px;
  margin: 14px 0 14px;
  position: relative;
}

.kpi {
  flex: 1;
  background: #f6f7f9;
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.12s;
}

.kpi:hover {
  background: #eef1f5;
}

.kpitip {
  position: absolute;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  line-height: 1.4;
  padding: 9px 11px;
  border-radius: 7px;
  max-width: 100%;
  box-shadow: 0 6px 22px rgba(20, 26, 34, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition:
    opacity 0.12s,
    transform 0.12s;
}

.kpitip.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.kpi-n {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-stat);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-n small {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--faint);
}

.kpi-l {
  display: block;
  margin-top: 6px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  letter-spacing: 0;
  color: #333333;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.badge {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  background: #eceef1;
  color: var(--ink);
}

.dlist {
  margin: 4px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.dlist li {
  margin: 6px 0;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--ink);
}

.dlist li::marker {
  color: var(--t3);
}

.dl-k {
  font-weight: 700;
  color: var(--ink);
  margin-right: 5px;
}

.dl-k::after {
  content: ":";
}

.pnote {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0 0;
  padding-top: 12px;
}

.pnh {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0;
  color: #333333;
  margin-bottom: 4px;
}

.pnh-sec {
  margin-top: 28px;
}

.prec {
  font-size: var(--fs-body);
  line-height: 1.45;
  margin: 14px 0 0;
  color: var(--muted);
}

.prec b {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0;
  display: block;
  margin-bottom: 4px;
  color: #333333;
}

.quadblock {
  margin-top: 32px;
  position: relative;
}

.quadplot {
  position: relative;
  padding: 6px 0 0;
}

.quadgrid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.quad h3 {
  margin: 0 0 9px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.18;
}

.quad p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--muted);
}

.mapname {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: #b9c0cc;
  transition: text-decoration-color 0.12s;
}

.mapname:hover {
  text-decoration-color: var(--ink);
}

.punch {
  margin-top: 28px;
  border-left: 3px solid var(--navy);
  padding: 4px 0 4px 18px;
}

.punch p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  max-width: 84ch;
}

.note {
  margin-top: 22px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  color: var(--faint);
  line-height: 1.6;
  max-width: 92ch;
}

.hide {
  display: none !important;
}

.searchrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}

.filterbtn {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: center;
  background: none;
  border: none;
  color: var(--t2);
  cursor: pointer;
  padding: 0 4px;
}
.filterbtn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.filterbtn.on {
  color: var(--ink);
}

.qbox {
  position: relative;
  flex: 1 1 480px;
  max-width: 560px;
  display: flex;
}

.qac {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #cfd5de;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(22, 27, 34, 0.14);
  z-index: 60;
  overflow: hidden;
  display: none;
}

.qac.open {
  display: block;
}

.qac-i {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  cursor: pointer;
  font:
    12px/1.2 "Archivo",
    sans-serif;
  color: var(--ink);
}

.qac-i:hover,
.qac-i.on {
  background: #eef1f6;
}

.qac-i b {
  font-weight: 600;
}

.qac-t {
  color: #9aa3b1;
  margin-left: auto;
  font-size: var(--fs-caption);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
}

.idxdate {
  color: #9aa3b1;
  font-weight: 500;
  position: relative;
}
.edtrig {
  cursor: pointer;
  position: relative;
}
.edtrig:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.edcaret {
  color: #9aa3b1;
  margin-left: 0.22em;
  display: inline-block;
  line-height: 0;
}
.edcaret svg {
  width: 0.5em;
  height: 0.5em;
  vertical-align: -0.01em;
}
.edtrig:hover .edcaret {
  color: var(--ink);
}
.edmenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 26, 34, 0.14);
  padding: 6px;
  z-index: 20;
  min-width: 150px;
}
.idxdate.edopen .edmenu {
  display: block;
}
.edopt {
  display: block;
  font-family: "Archivo", sans-serif;
  font-style: normal;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.edopt:hover {
  background: var(--ground);
}
.edopt.on {
  color: var(--navy);
  font-weight: 700;
}

.qsearch {
  font:
    15px/1.2 "Archivo",
    sans-serif;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid #cfd5de;
  border-radius: 7px;
  padding: 9px 12px;
  width: 100%;
  min-width: 0;
  outline: none;
}

.qsearch::placeholder {
  color: #9aa3b1;
}

.qsearch:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.qn {
  font:
    11px/1 "Archivo",
    sans-serif;
  color: var(--t3);
  white-space: nowrap;
  min-width: 62px;
}

.rising {
  margin-top: 34px;
}

.risetag {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0ea5e9;
  font-weight: 600;
}

.shapekey {
  margin-top: 22px;
}
.shapelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.shapelist li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}
.shapelist .shp {
  width: 18px;
  height: 18px;
  flex: none;
}
.shapelist b {
  color: var(--ink);
  font-weight: 600;
}

.risehd {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-heading);
  margin: 6px 0 4px;
  color: var(--ink);
}

.risesub {
  color: var(--t3);
  max-width: 700px;
  margin: 0 0 16px;
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.rising .risesub,
.quadblock .risesub,
.getlisted .risesub {
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: none;
}

.risegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ristar {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--ground);
  font-family: "Archivo", sans-serif;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.ristar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12);
}

.ristar b {
  display: block;
  font-size: var(--fs-body);
  margin-bottom: 5px;
  color: var(--ink);
}

.ristar span {
  display: block;
  color: var(--t2);
  font-size: var(--fs-body);
  line-height: 1.45;
}

.getlisted {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.gl-l {
  width: 100%;
}

.getlisted .risehd {
  margin: 5px 0 4px;
}

.getlisted .risesub {
  margin: 0;
}

.gl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.gf {
  font:
    600 12px/1 "Archivo",
    sans-serif;
  padding: 7px 12px;
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 7px;
  cursor: pointer;
  color: var(--t2);
  transition: all 0.12s;
}

.gf:hover {
  border-color: var(--navy);
  color: var(--ink);
}

.gf.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.num,
#tbl {
  font-variant-numeric: tabular-nums;
}

.seg {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ground);
  flex: none;
}

.seg > button {
  font:
    600 12px/1 "Archivo",
    sans-serif;
  padding: 8px 13px;
  border: none;
  border-left: 1px solid var(--hair);
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 0;
  transition:
    background 0.12s,
    color 0.12s,
    opacity 0.12s;
}

.seg > button:first-child {
  border-left: none;
}

.seg > button:hover {
  color: var(--ink);
  background: var(--ground);
}

.seg .vt.on,
.seg .gf.on {
  background: var(--ink);
  color: #fff;
}

.seg .vt svg {
  display: block;
  width: 15px;
  height: 15px;
}

.seg.tiertags > button {
  color: var(--ink);
}

.seg.tiertags > button.off {
  opacity: 0.36;
  text-decoration: line-through;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-caption);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition:
    opacity 0.12s,
    border-color 0.12s;
  font:
    600 12px/1 "Archivo",
    sans-serif;
}

.chip:hover {
  border-color: var(--navy);
}

.chip.off {
  opacity: 0.36;
  text-decoration: line-through;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.seg.cattags > button {
  color: var(--ink);
}

.seg.cattags > button.off {
  opacity: 0.36;
  text-decoration: line-through;
  color: var(--muted);
}

.sub-l {
  flex: 1 1 320px;
  min-width: 240px;
}

.subbtn {
  font:
    600 13px/1 "Archivo",
    sans-serif;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.subbtn:hover {
  background: #000;
}

.subbtn.alt {
  color: var(--ink);
  background: transparent;
}

.subbtn .bicon {
  display: none;
}

.subbtn.alt:hover {
  background: var(--ground);
}

.sharerow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.shbtn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.dropwrap {
  display: contents;
}

.droptrig {
  display: none;
}

.subscribe .subbtn {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.subscribe .subbtn:hover {
  background: #e9edf2;
}

.subscribe .subbtn.alt {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.subscribe .subbtn.alt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.subscribe .shbtn {
  background: none;
  color: rgba(255, 255, 255, 0.85);
  border-color: transparent;
  padding: 6px;
}

.subscribe .shbtn:hover {
  background: none;
  border-color: transparent;
  color: #fff;
}

.subactions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.shbtn {
  font:
    600 12px/1 "Archivo",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 7px;
  padding: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shbtn svg {
  width: 16px;
  height: 16px;
  display: block;
}

h1 {
  font-family: "Newsreader", Georgia, serif;
  font-style: normal;
  font-size: var(--fs-display);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.32em 0 16px;
  margin-top: 40px;
}

.sub {
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: none;
  line-height: 1.5;
  margin: 0;
}

.subscribe .risesub {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.quad {
  background: var(--ground);
  border: none;
  border-radius: 12px;
  padding: 20px 20px 22px;
  position: relative;
  z-index: 1;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.quad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 27, 34, 0.08);
}

.quad.hot {
  background: var(--warm-wash);
}

.quad.hot:hover {
  box-shadow: 0 8px 20px rgba(47, 158, 84, 0.16);
}

.quad .co {
  display: block;
  margin: 0 0 7px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.qsugg {
  margin: 9px 0 0;
  font:
    500 14px/1.4 "Archivo",
    sans-serif;
  color: var(--faint);
}

.qsg {
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.qsg:hover {
  text-decoration: underline;
}

.tilesgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  align-items: flex-start;
  border: none;
  border-radius: 12px;
  background: var(--ground);
  padding: 14px 16px;
  cursor: pointer;
  font-family: "Archivo", sans-serif;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 27, 34, 0.08);
}

.tile-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tile-n {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.tile-sn {
  font-size: var(--fs-body);
  color: var(--t2);
  margin-top: 2px;
}

.tile-m {
  font-size: var(--fs-caption);
  color: var(--faint);
  margin-top: auto;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.tile-m b {
  color: var(--t3);
  font-weight: 600;
}

.tilestack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 14px;
}

.tilegroup-n {
  margin-left: auto;
  font-weight: 600;
  color: var(--t2);
  font-size: var(--fs-caption);
  background: #eceef1;
  border-radius: 999px;
  padding: 2px 9px;
}

.tilegroup .tilesgrid {
  margin-top: 0;
}

.tilegroup {
  margin: 0;
}

summary.tilegroup-h {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

summary.tilegroup-h::-webkit-details-marker {
  display: none;
}

.tilegroup-h .caret {
  width: 0;
  height: 0;
  border-left: 6px solid var(--t3);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s;
  flex: none;
}

.tilegroup[open] .tilegroup-h .caret {
  transform: rotate(90deg);
}

.tilebar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.tilebtn {
  font:
    600 12px/1 "Archivo",
    sans-serif;
  color: var(--t2);
  background: var(--ground);
  border: 1px solid var(--hair);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}

.tilebtn:hover {
  border-color: var(--navy);
  color: var(--ink);
}

.tilebar + .tilestack {
  margin-top: 24px;
}

.flabel {
  font:
    600 11px/1 "Archivo",
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 2px;
}

.followrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tile-q {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: #eceef1;
  border-radius: 99px;
  padding: 3px 11px;
  display: inline-block;
  white-space: nowrap;
}
.tile-q {
  margin-left: auto;
}

.tilegroup-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.subscribe .sub-l {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe .risehd {
  color: #fff;
  font-size: var(--fs-subheading);
  margin: 0;
}

.subscribe {
  position: sticky;
  top: 0;
  z-index: 15;
  margin-top: -34px;
  padding: 24px;
  border: none;
  border-radius: 0;
  background: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-left: -40px;
  margin-right: -40px;
  border-left-width: 0;
  border-right-width: 0;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.pimg {
  width: 150px;
  height: 150px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 8px 0 14px;
}

.subscribe,
.qsugg,
#tableView,
#tilesView,
.rising,
.quadblock,
.getlisted {
  filter: grayscale(1);
}

@media (max-width: 720px) {
  .wrap {
    padding: 24px 18px 48px;
  }
  .risegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quadgrid {
    gap: 14px;
  }
  .quadblock {
    padding: 18px 16px 18px;
  }
  .subctrls .ctrls {
    margin-left: 0;
    width: 100%;
  }
  .panel {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: auto;
    width: auto;
    max-width: none;
    max-height: none;
    border: none;
    border-radius: 0;
    transform: translateY(100%);
    box-shadow: none;
    z-index: 40;
  }
  .panel.on {
    transform: none;
  }
  .pname {
    font-size: 32px;
    margin-top: 20px;
    margin-right: 0;
    text-align: center;
  }
  .badges {
    justify-content: center;
  }
  .plinks {
    justify-content: center;
  }
  .kpitip {
    left: 0 !important;
    width: 100% !important;
  }
  .subscribe .risesub {
    display: none;
  }
  .subscribe .subbtn {
    flex: none;
    padding: 6px;
    color: #fff;
  }
  .subscribe .subbtn.alt {
    background: none;
    border-color: transparent;
  }
  .subbtn .btxt {
    display: none;
  }
  .subbtn .bicon {
    display: block;
    width: 16px;
    height: 16px;
  }
  table {
    font-size: var(--fs-caption);
  }
  tbody td,
  thead th {
    padding: 8px 9px;
  }
  .subscribe {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
    margin-top: -24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .searchrow {
    width: 100%;
    flex-wrap: wrap;
  }
  .qbox {
    flex: 1 1 auto;
    max-width: none;
  }
  .filterbtn {
    display: inline-flex;
  }
  .qn {
    width: 100%;
  }
  .mobhide {
    display: none;
  }
  h1 {
    font-size: clamp(18px, 7.2vw, 34px);
    white-space: nowrap;
  }
  .qsugg {
    display: none;
  }
  .risegrid {
    grid-template-columns: 1fr;
  }
  .grppre {
    display: none;
  }
  .tile-m {
    display: none;
  }
  .seg.viewtabs,
  .seg.lenstabs {
    display: none;
  }
  .subscribe {
    padding: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: nowrap;
  }
  .sub-l {
    flex: 1 1 auto;
    min-width: 0;
  }
  .flabel {
    display: none;
  }
  .subbtn {
    flex: 1 1 auto;
    justify-content: center;
  }
  #chartView {
    display: none;
  }
  #tableView {
    display: none;
  }
  .seg.viewtabs {
    display: none;
  }
  .subactions {
    flex-direction: row;
    width: auto;
    align-items: center;
  }
  .followrow {
    width: auto;
  }
  .sharerow {
    display: none;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .topbar.fopen {
    display: flex;
  }
  .legend {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .dropwrap {
    display: block;
    position: relative;
    width: 100%;
  }
  .droptrig {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    font:
      600 13px/1 "Archivo",
      sans-serif;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 8px;
    padding: 11px 12px;
    cursor: pointer;
  }
  .droptrig .caret {
    margin-left: auto;
    transition: transform 0.15s;
  }
  .droptrig .droplab {
    color: var(--faint);
    font-weight: 500;
  }
  .dropwrap.open .droptrig .caret {
    transform: rotate(180deg);
  }
  .seg.tiertags,
  .seg.cattags {
    display: none;
  }
  .dropwrap.open .seg {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 6px;
    border-radius: 8px;
  }
  .dropwrap.open .seg > button {
    width: 100%;
    justify-content: flex-start;
    border-left: none;
    border-top: 1px solid var(--hair);
  }
  .dropwrap.open .seg > button:first-child {
    border-top: none;
  }
  #tilesView {
    display: block !important;
  }
  .tilebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .tilebar > * {
    min-width: 0;
  }
  #cardGroupBtn {
    width: 100%;
  }
  .quadblock {
    display: none;
  }
  .pimg {
    height: auto;
    aspect-ratio: 1;
  }
}
