/* The instrument, its labels, and the reading share one continuous surface. */
.dc {
  --dc-gold: var(--chart-2, #efc785);
  --dc-rule: #393d41;
  --dc-paper: #101419;
  container: doctrine / inline-size;
  background: var(--dc-paper);
  border-bottom: 1px solid var(--dc-rule);
}
.dc h2,
.dc h3,
.dc p,
.dc dl,
.dc dd,
.dc ol {
  margin: 0;
}
.dc h2,
.dc h3 {
  font-family: var(--display);
}
.dc-observatory {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.13fr) minmax(0, 0.91fr);
  grid-template-areas: "open model reading" "tools model reading";
  gap: 18px 12px;
  padding: 22px 16px 19px;
  align-items: start;
}
.dc-opening {
  grid-area: open;
  align-self: end;
}
.dc-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dc-gold);
  font-size: 13px;
}
.dc-opening h2 {
  font-size: var(--type-feature);
  line-height: 1.48;
  font-weight: 600;
  margin: 14px 0 12px;
  text-wrap: pretty;
}
.dc h2 em {
  font-style: normal;
  color: var(--dc-gold);
}
.dc-opening > p:not(.dc-kicker) {
  font-size: 15px;
  line-height: 1.75;
  color: #c2c8ca;
}
.dc-opening .dc-case {
  margin-top: 17px;
  color: var(--foreground);
}
.dc-case span {
  display: inline-block;
  margin-right: 7px;
  border: 1px solid #62543b;
  border-radius: 4px;
  padding: 0 7px;
  font-size: 12px;
  color: var(--dc-gold);
}
.dc-case b {
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.dc-tools {
  grid-area: tools;
}
.dc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dc-links .btn {
  min-width: 0;
  min-height: 39px;
  padding: 6px;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}
.dc-tools p,
.dc-loop > p:not(.dc-detail) {
  margin-top: 11px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.65;
}
.dc-model {
  grid-area: model;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4/5;
  align-self: center;
  max-width: 355px;
  justify-self: center;
}
.dc-model img,
.dc-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dc-model img {
  pointer-events: none;
}
.dc-hit {
  pointer-events: none;
}
.dc-hit path {
  fill: none;
  stroke: transparent;
  stroke-width: 4;
  pointer-events: stroke;
  cursor: pointer;
}
.dc-core {
  pointer-events: none;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: grid;
  color: #fff4d6;
  text-shadow:
    0 1px 6px #21190e,
    0 1px 2px #271809;
}
.dc-core span,
.dc-core small {
  font-size: var(--type-caption);
  line-height: 1.55;
}
.dc-core b {
  font: 600 var(--type-section)/1.25 var(--display);
  white-space: nowrap;
}
.dc-plaque {
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 85%;
  width: 100%;
  color: #ead098;
  font: 600 13px/1.4 var(--display);
  text-shadow: 0 1px 3px #080809;
}
.dc-label {
  background: transparent;
  border: 0;
  border-radius: 3px;
  padding: 0;
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  display: flex;
  align-items: center;
  min-height: 44px;
  transform: translate(-100%, -50%);
  color: #efe8d8;
}
.dc-label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid #d9cba6;
  background: #201f1a;
  border-radius: 50%;
  order: 3;
}
.dc-label::after {
  content: "";
  height: 1px;
  background: #bbaa88;
  width: clamp(7px, 1.2cqw, 17px);
  order: 2;
}
.dc-label span {
  order: 1;
  display: grid;
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left;
  line-height: 1.2;
  background: var(--dc-paper);
}
.dc-label b {
  font: 600 16px/1.25 var(--display);
}
.dc-label small {
  font-size: var(--type-caption);
  color: #bdc0c2;
  white-space: nowrap;
}
.dc-project,
.dc-risk {
  transform: translate(0, -50%);
  flex-direction: row-reverse;
}
.dc-label:hover span,
.dc-label[aria-pressed="true"] span {
  border-color: #9b8056;
  color: var(--dc-gold);
  background: #26241c;
}
.dc-label[aria-pressed="true"]::before {
  background: var(--dc-gold);
  box-shadow: 0 0 0 3px #cca15b50;
}
.dc-label:focus-visible,
.dc-steps button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.dc-aside {
  grid-area: reading;
  align-self: center;
  min-width: 0;
  padding-left: clamp(10px, 1.5cqw, 21px);
  border-left: 1px solid var(--dc-rule);
}
.dc-reading h3 {
  display: flex;
  gap: 9px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: var(--type-card);
  line-height: 1.35;
}
.dc-reading h3 span {
  color: var(--muted-foreground);
  font: 13px var(--font-sans);
}
.dc-reading dl {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.dc-reading dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dc-gold);
  font-size: 14px;
}
.dc-reading dt span {
  color: #c9b997;
  font-size: 12px;
}
.dc-reading dd {
  margin: 3px 0 0 23px;
  font-size: 14px;
  line-height: 1.65;
  color: #d4d6d6;
}
.dc-media {
  padding: 4px;
  border: 1px solid var(--dc-rule);
  border-radius: 6px;
  margin-top: 15px;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #15191d;
  text-align: left;
}
.dc-media:hover {
  border-color: #9b8056;
}
.dc-media img {
  display: block;
  width: 31%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
}
.dc-media span {
  display: grid;
  gap: 2px;
}
.dc-media b {
  font: 600 15px var(--display);
}
.dc-media small {
  font-size: 12px;
  color: var(--muted-foreground);
}
.dc-media > .icon {
  margin-left: auto;
  margin-right: 10px;
  color: var(--dc-gold);
}
.dc-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 21px 0;
  margin: 0 16px;
  border-block: 1px solid var(--dc-rule);
}
.dc-principles > div {
  padding: 0 clamp(11px, 1.6cqw, 20px);
  border-left: 1px solid var(--dc-rule);
}
.dc-principles > div:first-child {
  padding-left: 0;
  border: 0;
}
.dc-principles > div:last-child {
  padding-right: 0;
}
.dc-principles h3,
.dc-loop h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-principles h3 {
  font-size: var(--type-card);
  line-height: 1.45;
}
.dc-principles .icon,
.dc-loop h2 .icon {
  color: var(--dc-gold);
  flex: none;
}
.dc-principles p {
  color: #c7cbce;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}
.dc-loop {
  padding: 22px 16px;
}
.dc-loop h2 {
  font-size: var(--type-section);
  line-height: 1.4;
}
.dc-loop > p:not(.dc-detail) {
  margin-top: 5px;
}
.dc-steps {
  list-style: none;
  padding: 0 0 21px;
  margin: 17px 0 0 !important;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dc-steps::after {
  content: "";
  position: absolute;
  border: solid #91774b;
  border-width: 0 1px 1px;
  left: 4.5%;
  right: 4.5%;
  bottom: 5px;
  height: 11px;
  border-radius: 0 0 4px 4px;
}
.dc-steps::before {
  content: "";
  position: absolute;
  left: calc(4.5% - 3px);
  bottom: 12px;
  width: 6px;
  height: 6px;
  border: solid #ab8d5c;
  border-width: 1px 1px 0 0;
  transform: rotate(-45deg);
}
.dc-steps li {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.dc-steps li:last-child {
  flex: 0 1 auto;
}
.dc-steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 3px;
  border-top: 1px solid #73654b;
}
.dc-steps button {
  min-height: 36px;
  padding: 5px clamp(5px, 1cqw, 14px);
  border: 1px solid #51565b;
  background: transparent;
  border-radius: 24px;
  white-space: nowrap;
  font: 500 13px/1.3 var(--font-sans);
}
.dc-steps button:hover,
.dc-steps button[aria-pressed="true"] {
  color: var(--dc-gold);
  border-color: var(--dc-gold);
  background: #27251d;
}
.dc-detail {
  display: flex;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  color: #cbd0d2;
  line-height: 1.65;
}
.dc-detail b {
  color: var(--dc-gold);
  flex: none;
  font-weight: 550;
}
.dc-film {
  display: block;
  width: 100%;
  max-height: 65dvh;
  border-radius: 6px;
  background: #07090e;
}
#dialog:has(.dc-film) {
  width: min(820px, 94vw);
}
@container doctrine (max-width:960px) {
  .dc-observatory {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "open model" "tools model" "reading reading";
    gap: 16px 24px;
  }
  .dc-model {
    max-width: 280px;
  }
  .dc-aside {
    align-self: auto;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--dc-rule);
  }
  .dc-reading dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .dc-media {
    max-width: 230px;
  }
  .dc-principles {
    grid-template-columns: 1fr 1fr;
    gap: 19px 0;
  }
  .dc-principles > div:nth-child(3) {
    border: 0;
    padding-left: 0;
  }
}
@container doctrine (max-width:740px) {
  .dc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 13px;
    padding: 0;
  }
  .dc-steps::after,
  .dc-steps::before,
  .dc-steps li::after {
    display: none;
  }
  .dc-steps li {
    display: block;
  }
  .dc-steps button {
    width: 100%;
    min-height: 44px;
  }
  .dc-steps {
    counter-reset: station;
  }
  .dc-steps li {
    counter-increment: station;
  }
  .dc-steps button::before {
    content: counter(station, decimal-leading-zero);
    margin-right: 5px;
    color: #b5a891;
    font-size: var(--type-caption);
  }
  .dc-detail {
    justify-content: start;
    margin-top: 14px !important;
  }
}
@container doctrine (max-width:560px) {
  .dc-observatory {
    grid-template-columns: 1fr;
    grid-template-areas: "open" "model" "reading" "tools";
    padding: 17px 15px 19px;
    gap: 12px;
  }
  .dc-opening h2 {
    margin: 10px 0;
  }
  .dc-opening .dc-case {
    margin-top: 9px;
  }
  .dc-model {
    max-width: min(79%, 275px);
  }
  .dc-label b {
    font-size: 16px;
  }
  .dc-reading dl {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dc-reading dl > div {
    scroll-margin-block-end: 74px;
  }
  .dc-aside {
    padding-top: 12px;
  }
  .dc-media {
    max-width: none;
  }
  .dc-media img {
    width: 76px;
  }
  .dc-tools {
    margin-top: 2px;
  }
  .dc-links .btn {
    min-height: 44px;
  }
  .dc-principles {
    margin: 0 15px;
    padding: 17px 0;
  }
  .dc-principles h3 {
    align-items: start;
    font-size: 16px;
    gap: 5px;
  }
  .dc-principles h3 svg {
    width: 16px;
    margin-top: 1px;
  }
  .dc-principles p {
    font-size: 14px;
  }
  .dc-loop {
    padding: 17px 15px;
  }
  .dc-detail {
    display: block;
  }
  .dc-detail b {
    display: block;
    margin-bottom: 2px;
  }
}
