/* Kit v3 Observatory (R75) and the data consoles that share its parts (development.html). Tokens from v3.css only. */
.obs-left { inset-block: 76px 200px; inset-inline-start: 76px; width: 380px; }
.obs-left .stats { margin-block-start: 12px; }
.obs-left .seg { margin-block-start: 12px; }
.find { display: flex; align-items: center; gap: 8px; height: 34px; margin-block-start: 10px; padding-inline: 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); }
.find:focus-within { border-color: var(--line-2); }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.find input::placeholder { color: var(--ink-3); }
.find em { font-style: normal; font: 500 11px/1 var(--m); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.chips button { height: 24px; padding-inline: 9px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.chips button em { font-style: normal; color: var(--ink-3); margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.chips button:hover { border-color: var(--line-2); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips button[aria-pressed="true"] em { color: inherit; opacity: .7; }

/* Tree */
.tree { padding: 6px; }
.nd { width: 100%; display: grid; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: var(--ink); }
.nd:hover { background: var(--bg-2); }
.nd svg { color: var(--ink-3); transition: transform .15s var(--ease); }
.nd[aria-expanded="true"] svg { transform: rotate(90deg); }
[dir="rtl"] .nd svg { transform: scaleX(-1); }
[dir="rtl"] .nd[aria-expanded="true"] svg { transform: rotate(90deg); }
.nd b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nd span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nd em { font-style: normal; font: 500 11.5px/1 var(--f); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nd--p { padding-block: 9px; }
.nd--p .k { font: 500 10.5px/1 var(--m); color: var(--ink-3); margin-inline-end: 6px; }
.lv1 { padding-inline-start: 14px; }
.lv2 { padding-inline-start: 28px; }
.ind { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 6px 8px 6px 50px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: var(--ink-2); font-size: 12.5px; }
[dir="rtl"] .ind { padding: 6px 50px 6px 8px; }
.ind span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ind small { font: 400 10.5px/1 var(--m); color: var(--ink-3); }
.ind:hover { background: var(--bg-2); color: var(--ink); }
.ind[aria-selected="true"] { background: var(--red-soft); color: var(--ink); }
.ind--flat { padding-inline-start: 8px; }
[dir="rtl"] .ind--flat { padding-inline-end: 8px; }
.more { display: block; margin: 6px 8px 10px; color: var(--ink-3); font-size: 12px; }

/* Dataset cards */
.dsg { padding: 10px 8px 2px; }
.dsg > .eyebrow { padding: 4px 8px 8px; display: flex; justify-content: space-between; }
.ds { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: var(--ink); }
.ds:hover { background: var(--bg-2); }
.ds[aria-selected="true"] { background: var(--red-soft); }
.ds__i { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.ds[aria-selected="true"] .ds__i { color: var(--red); border-color: transparent; background: var(--bg-1); }
.ds b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-block-start: 2px; }
.ds > em { font-style: normal; font: 600 15px/1 var(--f); letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-align: end; }
.ds > em small { font: 500 10.5px/1 var(--f); color: var(--ink-3); margin-block-start: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* Map tools and legend */
.obs-tools { inset-inline-start: 468px; max-width: calc(100% - 468px - 396px); }
.obs-tools .sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line); flex: none; }
.legend { position: absolute; z-index: 11; inset-block-end: 212px; inset-inline-start: 468px; width: 250px; padding: 12px 14px; border-radius: var(--r); }
.legend .eyebrow { display: flex; justify-content: space-between; }
.legend ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 14px minmax(0,1fr) auto; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); }
.legend li i { width: 14px; height: 10px; border-radius: var(--r); border: 1px solid var(--line-2); }
.legend li em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legend p { margin: 10px 0 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.35; }
.ramp { height: 10px; border-radius: var(--r); margin-block-start: 10px; border: 1px solid var(--line); }
.ramp + div { display: flex; justify-content: space-between; margin-block-start: 4px; font: 500 10.5px/1 var(--m); color: var(--ink-3); }

/* Inspector parts */
.obs-insp { max-height: none; inset-block-end: 200px; }
.obs-insp .panel__hd { padding-inline-end: 56px; }
.code { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-block-start: 10px; padding: 5px 8px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font: 500 11.5px/1.2 var(--m); color: var(--ink-2); }
.code span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.code button { border: 0; background: transparent; color: var(--ink-3); padding: 0; display: grid; }
.code button:hover { color: var(--ink); }
.def { margin: 14px 16px 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.def[data-open] { -webkit-line-clamp: unset; display: block; }
.lnk { border: 0; background: transparent; padding: 0; margin: 4px 16px 0; color: var(--ink-3); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.lnk:hover { color: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 14px 16px 0; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.kv div { background: var(--bg-1); padding: 10px 12px; min-width: 0; }
.kv dt { font: 500 10.5px/1 var(--f); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.kv dd { margin: 6px 0 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.kv dd small { display: block; color: var(--ink-3); font: 400 11px/1.3 var(--m); margin-block-start: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .w { grid-column: 1 / -1; }
.sec { margin: 18px 16px 0; }
.sec > .eyebrow { display: flex; justify-content: space-between; align-items: center; margin-block-end: 8px; }
.sec > .eyebrow b { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 9px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tag b { font: 500 10.5px/1 var(--m); color: var(--ink-3); font-weight: 500; }
button.tag:hover { border-color: var(--line-2); color: var(--ink); }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pipe li { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 10px; align-items: start; padding-block: 7px; }
.pipe li::before { content: ""; position: absolute; inset-inline-start: 8px; inset-block: 22px -6px; width: 1px; background: var(--line-2); }
.pipe li:last-child::before { display: none; }
.pipe i { width: 17px; height: 17px; margin-block-start: 1px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--bg); display: grid; place-items: center; }
.pipe .ok i { border-color: var(--ink); background: var(--ink); }
.pipe .ok i::after { content: ""; width: 7px; height: 4px; border: solid var(--bg); border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
.pipe .now i { border-color: var(--red); }
.pipe .now i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pipe b { display: block; font-weight: 500; }
.pipe small { display: block; color: var(--ink-3); font-size: 12px; margin-block-start: 1px; }
.pipe em { font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.figs { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.fg { min-width: 0; overflow-wrap: anywhere; }
.fg { padding: 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); }
.fg b { display: block; font: 600 20px/1.15 var(--f); letter-spacing: -.02em; }
.fg b.sm { font-size: 14px; letter-spacing: 0; line-height: 1.35; }
.fg small { display: block; margin-block-start: 4px; color: var(--ink-3); }
.fg .src { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 8px; padding-block-start: 8px; border-block-start: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.fg .src a, .fg .src span:first-child { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fg .src a:hover { color: var(--ink); }
.fg--sel { border-color: var(--red); }
.empty { padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12.5px; }
.empty b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin-block-end: 2px; }
.mini { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border: 0; border-block-end: 1px solid var(--line); background: transparent; text-align: start; font-size: 12.5px; color: var(--ink-2); }
.mini:last-child { border-block-end: 0; }
.mini span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini em { font-style: normal; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.mini .nr { color: var(--ink-3); font-weight: 400; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 16px 0; }
.dl .btn { justify-content: center; }
.lic { margin: 8px 16px 16px; color: var(--ink-3); font-size: 11.5px; line-height: 1.4; }
.cls { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.cls div { background: var(--bg-1); padding: 9px 8px; min-width: 0; }
.cls i { display: block; height: 6px; border-radius: var(--r); margin-block-end: 8px; border: 1px solid var(--line); }
.cls b { display: block; font: 600 18px/1 var(--f); font-variant-numeric: tabular-nums; }
.cls span { display: block; margin-block-start: 4px; font-size: 10.5px; color: var(--ink-3); line-height: 1.2; }
.opt { width: 100%; display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); text-align: start; margin-block-end: 6px; font-size: 12.5px; }
.opt i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.opt[aria-pressed="true"] { border-color: var(--ink-2); }
.opt[aria-pressed="true"] i { border: 4px solid var(--red); }
.opt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.opt em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Strip: the chart of the selection */
.strip { position: absolute; z-index: 12; inset-inline: 76px 12px; inset-block-end: 12px; height: 176px; display: grid; grid-template-columns: 236px minmax(0,1fr); }
.strip__l { padding: 14px 16px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.strip__l b { display: block; font: 600 15px/1.25 var(--f); margin-block-start: 6px; }
.strip__l small { display: block; color: var(--ink-3); font-size: 12px; margin-block-start: 4px; line-height: 1.35; }
.strip__big { font: 600 30px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.strip__big span { font: 500 12px/1 var(--f); color: var(--ink-3); letter-spacing: 0; margin-inline-start: 6px; }
.strip__ch { position: relative; min-width: 0; }
.strip__ch svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.strip__ch text { font: 500 10px var(--m); fill: var(--ink-3); }
.strip__ch .ax line, .strip__ch .ax path { stroke: var(--line-2); }
.strip__ch .gl { stroke: var(--line); }
.strip__ch .rb { fill: var(--ink-2); }
.strip__ch .rb.on, .strip__ch .dot.on { fill: var(--red); }
.strip__ch .hit { fill: transparent; cursor: pointer; }
.strip__ch .hit:hover + .dot { fill: var(--ink); }
.strip__ch .hit:hover + .rb:not(.on) { opacity: .75; }
.strip__ch .dot { fill: var(--ink); }
.strip__ch .nc { fill: none; stroke: var(--ink-3); stroke-dasharray: 2 2; }
.strip__ch .lab { font: 500 9.5px var(--m); fill: var(--ink-3); }
.strip__ch .lab.on { fill: var(--red); }
.strip__ch .msg { font: 600 13px var(--f); fill: var(--ink-2); }
.strip__ch .msg2 { font: 400 11.5px var(--f); fill: var(--ink-3); }

/* Rich hover card */
.tipcard .l2 { display: block; color: var(--ink-3); margin-block-start: 3px; font-size: 11.5px; }
.tipcard .l2 + .l2 { margin-block-start: 1px; }

@media (max-width: 1180px) {
  .legend { display: none; }
  .obs-left { width: 352px; }
  .obs-tools { inset-inline-start: 440px; max-width: calc(100% - 440px - 396px); }
}
@media (max-width: 760px) {
  .obs-left { inset-block: auto 8px !important; }
  .obs-left .stats { display: none; }
  .strip { display: none; }
  .obs-tools { inset-inline: 8px; inset-block-start: 64px; max-width: none; }
  .obs-insp { inset-block-end: 8px; max-height: 64vh; }
  .obs-insp[data-phone-hide] { display: none; }
  .kv { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}

.strip__ch svg, .code, .find em { direction: ltr; }
[dir="rtl"] .chips button, [dir="rtl"] .ind small, [dir="rtl"] .nd em, [dir="rtl"] .ds > em { unicode-bidi: isolate; }
.chips button em { margin-inline: 4px 0; }
[dir="rtl"] .chips button em { margin-inline: 0 4px; }

/* Flags (SPINE.flag) where a place is named */
.mini span .fl { width: 18px; height: 12px; margin-inline-end: 8px; vertical-align: -2px; }
.strip__ch .flr { fill: none; stroke: var(--line-2); stroke-width: 1; }

/* Data bars: the ink scale of the map classes (values in monochrome); red only on the selection */
.strip__ch .hit:hover + .rb.on { fill: var(--red); opacity: 1; }

/* The platform rail floats on the inline end: the tools, the strip and the map padding clear it */
.has-rail-end .obs-tools { max-width: calc(100% - 468px - 460px); }
.has-rail-end .strip { inset-inline-end: 76px; }
@media (max-width: 1180px) {
  .has-rail-end .obs-tools { max-width: calc(100% - 440px - 460px); }
}
@media (max-width: 760px) {
  .has-rail-end .obs-tools { max-width: none; }
  .has-spine .obs-tools { inset-block-start: 112px; }
}

/* Right to left: Latin figures and their words keep their own order */
[dir="rtl"] .obs-insp .chip, [dir="rtl"] .legend li span, [dir="rtl"] .ds small, [dir="rtl"] .strip__big, [dir="rtl"] .strip__l small, [dir="rtl"] .fg small { unicode-bidi: plaintext; }
[dir="rtl"] .fg > b, [dir="rtl"] .def, [dir="rtl"] .strip__l small { unicode-bidi: plaintext; text-align: right; }

/* The reader's context: a line that says for which place the list is ranked */
.forln { margin-block-end: 6px; }
.sugg { font-size: 12.5px; }
