/* The author's artwork carries the button shape. No second frame or arrow badge. */
body.hp-page .hp-diagram-spot,
body.hp-page .hp-expert-hotspot,
body.hp-page .hp-diagram-spot:hover,
body.hp-page .hp-expert-hotspot:hover,
body.hp-page .hp-diagram-spot:focus-visible,
body.hp-page .hp-expert-hotspot:focus-visible {
  border:0; box-shadow:none; outline:none; background:transparent;
}
body.hp-page .hp-diagram-spot::after { content:none; display:none; }
body.hp-page .hp-diagram-spot:hover,
body.hp-page .hp-expert-hotspot:hover { background:radial-gradient(ellipse at center,#e5effb0a,transparent 72%); }
body.hp-page .hp-diagram-spot:focus-visible,
body.hp-page .hp-expert-hotspot:focus-visible { background:radial-gradient(ellipse at center,#e5effb2e,transparent 76%); }
body.hp-page .hp-node-control,body.hp-page .hp-map-action { display:none; }
body.hp-page.hp-hybrid .hp-plain-button,
body.hp-page.hp-hybrid .hp-plain-button:hover,
body.hp-page.hp-hybrid .hp-plain-button:focus-visible {
  min-height:38px; padding:8px 0; border:0; background:transparent; box-shadow:none;
  color:var(--hp-rose); transform:none; outline:none; text-decoration:none;
}
body.hp-page.hp-hybrid .hp-plain-button { opacity:.88; }
body.hp-page.hp-hybrid .hp-plain-button:hover,
body.hp-page.hp-hybrid .hp-plain-button:focus-visible { opacity:1; }
body.hp-page.hp-hybrid .hp-plain-button:focus-visible { text-decoration:underline; text-underline-offset:4px; }
body.hp-page .hp-speaker::after { content:none; display:none; }
body.hp-page .hp-image-button::after { content:'View image'; }
body.hp-page .hp-gallery-controls button { width:auto; min-width:64px; padding:8px; font-size:12px; font-weight:600; line-height:1.5; }

/* The hit area never moves. Lift a crop of the original artwork locally,
   preserving its text, geometry and clickable target at every image scale. */
body.hp-page .hp-hotspot-lift {
  position:absolute; inset:0; display:block; pointer-events:none; border-radius:inherit;
  background-repeat:no-repeat; opacity:0; transform:none;
  transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease;
}
body.hp-page :is(.hp-diagram-spot,.hp-expert-hotspot):is(:hover,:focus-visible) { z-index:4; }
body.hp-page :is(.hp-diagram-spot,.hp-expert-hotspot):is(:hover,:focus-visible) > .hp-hotspot-lift {
  opacity:1; transform:translateY(-3px); box-shadow:0 6px 14px #0007;
}
body.hp-page :is(.hp-diagram-spot,.hp-expert-hotspot):focus-visible { outline:2px solid #efbad0; outline-offset:-2px; }
body.hp-page :is(.hp-image-button,.hp-speaker) > img { transition:transform .18s ease,filter .18s ease; }
@media (hover:hover) and (pointer:fine) {
  body.hp-page :is(.hp-image-button,.hp-speaker):hover > img { transform:translateY(-4px); filter:drop-shadow(0 5px 8px #263a4930); }
}
body.hp-page :is(.hp-image-button,.hp-speaker):focus-visible > img { transform:translateY(-4px); }
.hp-page .hp-interaction-hint { display:block; margin-top:9px; color:#687780; font:400 12px/1.6 'Segoe UI',Arial,sans-serif; text-align:left; }
.hp-page .hp-dark-stage .hp-interaction-hint,
.hp-page .hp-dialog:is(.is-map,.is-image,.is-diagram) .hp-interaction-hint { color:#bdcad4; }
.hp-page .hp-expert-hint { grid-column:1 / -1; clear:both; margin-top:0; }
.hp-page .hp-hero-photo > .hp-interaction-hint { display:block; margin:0; padding:0 2px 9px; color:#5a6974; font-size:10px; letter-spacing:0; }
body.hp-page.hp-hybrid .hp-diagram-toolbar { flex-wrap:wrap; }
body.hp-page.hp-hybrid .hp-diagram-toolbar > .hp-interaction-hint { flex:1 1 220px; max-width:none; margin:0; color:inherit; }
.hp-page .hp-expanded-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; }
.hp-page .hp-expanded-toolbar .hp-interaction-hint { margin:0; color:#bdcad4; }
.hp-page .hp-dialog:is(.is-map,.is-image,.is-diagram) > .hp-dialog-panel { min-width:0; }
.hp-page .hp-dialog:not(.is-reading-panel) .hp-dialog-header { top:0; z-index:20; }
body.hp-page .hp-dialog:not(.is-reading-panel) .hp-dialog-close {
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  width:auto; min-width:128px; min-height:44px; padding:8px 12px;
  font:600 14px/1.4 'Segoe UI',Arial,sans-serif !important;
}
.hp-page .hp-dialog-close > span:last-child { font-size:26px; line-height:1; }
/* Opening, closing and switching details are immediate. Hover feedback is
   independent and does not delay an action or move the image hit area. */
body.hp-page .hp-dialog[open] :is(.hp-dialog-content,.hp-dialog-panel,.hp-event-cover) { animation:none !important; transition:none !important; }
body.hp-page .hp-dialog::backdrop { animation:none; transition:none; }
@media (max-width:700px) {
  .hp-page .hp-expanded-toolbar { gap:10px; }
  body.hp-page .hp-dialog:not(.is-reading-panel) .hp-dialog-header { padding:10px 12px; gap:10px; }
  .hp-page .hp-dialog:not(.is-reading-panel) .hp-dialog-kicker { max-width:135px; font-size:9px; }
  .hp-page .hp-interaction-hint { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) {
  body.hp-page .hp-hotspot-lift,
  body.hp-page :is(.hp-image-button,.hp-speaker) > img { transition:none; transform:none !important; }
}
@media (hover:none) {
  body.hp-page .hp-hotspot-lift { transform:none !important; box-shadow:none !important; }
}
@media print {
  .hp-page .hp-interaction-hint,.hp-page .hp-hotspot-lift { display:none; }
}
@media (prefers-contrast:more) {
  body.hp-page .hp-diagram-spot:focus-visible,body.hp-page .hp-expert-hotspot:focus-visible { outline:2px dotted #fff; outline-offset:-3px; }
}

/* Scientific figure labels stay below their image, outside its crop/hotspots. */
body.hp-page .hp-figure-caption {
  display:block; margin:10px 0 0; padding:0; max-width:100%;
  color:#405260; font:400 14px/1.65 'Segoe UI',Arial,sans-serif;
  text-align:left; white-space:normal; overflow-wrap:anywhere; letter-spacing:normal;
}
body.hp-page .hp-figure-number { color:#a34363; font-weight:700; white-space:nowrap; }
body.hp-page .hp-diagram-toolbar > .hp-figure-caption { flex:0 0 100%; margin:0 0 4px; }
body.hp-page .hp-speaker > .hp-figure-caption { font-size:12px; }
body.hp-page .hp-dark-stage .hp-figure-caption,
body.hp-page .hp-dialog:is(.is-map,.is-image,.is-diagram) .hp-figure-caption { color:#d4dce3; }
body.hp-page .hp-dark-stage .hp-figure-number,
body.hp-page .hp-dialog:is(.is-map,.is-image,.is-diagram) .hp-figure-number { color:#efb4c9; }
body.hp-page .hp-dialog.is-image .hp-figure-caption { width:min(100%,1100px); margin:14px auto; }
body.hp-page .hp-event-photograph > figcaption { display:block; padding:0; margin:0; }
@media(max-width:700px) { body.hp-page .hp-figure-caption { font-size:13px; } }
