.ih-article header p {
  max-width: 65ch;
}

.ih-article .ih-topic {
  margin: 28px 0;
}

.ih-article .ih-topic + .ih-topic {
  padding-top: 6px;
}

.ih-article .ih-topic h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.ih-article .ih-topic p {
  line-height: 1.6;
  max-width: 74ch;
}

.ih-article .ih-fields {
  display: grid;
  margin: 10px 0 16px;
}

.ih-article .ih-fields div {
  display: grid;
  grid-template-columns: minmax(115px, .8fr) minmax(0, 2.3fr);
  gap: 16px;
  padding: 9px 0;
}

.ih-article .ih-fields div + div {
  border-top: 1px solid var(--ih-border, #40546f);
}

.ih-article .ih-fields dt {
  font-weight: 650;
}

.ih-article .ih-fields dd {
  margin: 0;
}

.ih-article .ih-actions {
  margin: 10px 0 16px;
  padding-inline-start: 1.6em;
}

.ih-article .ih-actions li {
  padding-inline-start: .3em;
  margin-block: 6px;
}

.ih-article .ih-actions li::marker {
  font-weight: 700;
  color: var(--ih-blue, #87bbff);
}

.ih-article .ih-observation {
  border-left: 3px solid var(--ih-blue, #87bbff);
  padding-inline-start: 12px;
}

.ih-figure {
  min-width: 0;
  margin: 18px auto;
  text-align: center;
}

.ih-figure figcaption {
  margin-top: 5px;
  color: var(--muted, #adc0d4);
  font-size: .9rem;
  line-height: 1.4;
}

.ih-figure a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(12px, 2vw, 22px);
  box-sizing: border-box;
  border: 1px solid var(--ih-border, #40546f);
  background: var(--bg, #142236);
  border-radius: 12px;
  cursor: zoom-in;
}

.ih-figure a img {
  display: block;
  margin-inline: auto;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: min(60vh, 520px);
  object-fit: contain;
}

.ih-manual .ih-figure img { max-height: min(42vh, 350px); }
.ih-image-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  box-sizing: border-box;
  width: 94vw;
  max-width: 1600px;
  height: 90vh;
  height: 90dvh;
  max-height: none;
  margin: auto;
  padding: clamp(12px, 2vw, 26px);
  background: #17263a;
  color: #e8f1fc;
  border: 1px solid #526981;
  border-radius: 12px;
}
.ih-image-viewer::backdrop { background: #06111cce; }
.ih-viewer-tools { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ih-viewer-tools button { font: inherit; background: #233954; color: #edf4ff; border: 1px solid #63809b; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.ih-viewer-canvas { display: flex; min-width: 0; overflow: auto; }
.ih-viewer-canvas img { display: block; margin: auto; width: 100%; height: 100%; object-fit: contain; }
.ih-original .ih-viewer-canvas img { flex: none; width: auto; height: auto; max-width: none; max-height: none; }
.ih-image-viewer p { text-align: center; margin: 0; font-size: .9rem; line-height: 1.4; }
.ih-standalone {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 20px auto;
  padding: 12px clamp(12px, 2vw, 24px);
}
.ih-standalone > summary { cursor: pointer; }

@media (max-width: 550px) {
  .ih-article .ih-fields div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
