/* Static replacements for the lightweight Vue wrappers used by the source site. */
navigation,
transition,
focus-point-image,
height-expander,
accessibility-helper,
tooltip-toggle-content,
visitor-journey-carousel,
extra-activities-block,
video-teaser,
topic-list,
page-in-page-teaser {
  display: contents;
}

/* Missing pages stay visible as labels, but cannot navigate away from the export. */
a[aria-disabled="true"] {
  cursor: default !important;
  pointer-events: none !important;
  text-decoration: none !important;
}

/* The interactive Micrio viewer needs the source application. Show the matching
   downloaded artwork instead, without leaving an empty grey viewport. */
.micrio-image-header:has(.standalone-object-hero) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.micrio-image-header > span:first-child:has(.standalone-object-hero) {
  display: flex !important;
  justify-content: center;
  width: 100%;
  height: auto !important;
}

.standalone-object-hero {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: center;
}

.micrio-image-header:has(.standalone-object-hero) .controls-container {
  display: none !important;
}

.standalone-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  text-decoration: underline;
}

/* Source-side video/story controls require application scripts that are not
   part of the safe standalone export. Keep the artwork, remove dead overlays. */
.video-teaser-control,
.carousel-controls-play,
.page-in-page-teaser-link > svg {
  display: none !important;
}

/* Newsletter signup is intentionally excluded from this standalone site. */
a[href*="/newsletter/"],
a[href$="newsletter/index.html"] {
  display: none !important;
}

donate-widget,
.standalone-donate-widget {
  display: block;
  width: 100%;
}

.standalone-donation-panel[hidden],
.standalone-donation-trigger[hidden] {
  display: none !important;
}

.standalone-donation-panel .amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 10px;
}

.standalone-donation-panel .amounts .button {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-size: 17.4px;
  line-height: 1.375;
  transition: color 0.5s, background-color 0.5s, opacity 0.5s;
}

.standalone-donation-panel .amounts .button:hover,
.standalone-donation-panel .amounts .button:focus-visible {
  background: #000 !important;
  color: #fff !important;
}

.standalone-donation-panel .amounts .button[aria-pressed="true"] {
  background: #fff !important;
  color: #050505 !important;
}

.standalone-donation-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 5px;
}

.standalone-donation-input {
  position: relative;
}

.standalone-donation-input .input-prefix {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #fff;
}

.standalone-donation-input .input-field {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 40px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font: inherit;
  font-size: 17.4px;
  line-height: 1.375;
  transition: color 0.5s, background-color 0.5s, opacity 0.5s;
}

.standalone-donation-input .input-field::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.standalone-donation-email {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.standalone-donation-email .input-field {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font: inherit;
  font-size: 17.4px;
}

.standalone-donation-email .input-field:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.standalone-donation-next {
  width: 60px;
  height: 50px;
  border: 0;
  border-radius: 2px;
  background: #fff !important;
  color: #050505 !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 0.5s, background-color 0.5s, opacity 0.5s;
}

.standalone-donation-next:hover,
.standalone-donation-next:focus-visible {
  background: #000 !important;
  color: #fff !important;
}

.standalone-donation-arrow-icon {
  display: block;
  width: 13px;
  height: 8px;
  margin: 0;
  fill: currentColor;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.standalone-donation-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 420px) {
  .standalone-donation-panel .amounts .button { font-size: 15px; }
}

/* A removed companion card must not leave the remaining card at half width. */
.related-content.block-row > .block-half-width-overflow:only-child {
  flex-basis: 100%;
  min-height: 100vh;
}

/* Keep the low-resolution placeholder only until the local full image is ready. */
.background-image picture[hidden],
.ratio-correction picture[hidden] {
  display: none !important;
}

/* The source swaps these icons through Vue; mirror that state in static markup. */
button[ref="menuButton"][aria-expanded="false"] svg[v-else],
button[ref="menuButton"][aria-expanded="true"] svg:not([v-else]) {
  display: none;
}

[hidden] {
  display: none !important;
}

/* This package exports English pages only, so do not offer dead locale links. */
button[aria-controls="language-menu-mobile"],
button[aria-controls="header-language-menu"],
#language-menu-mobile,
#header-language-menu {
  display: none !important;
}

/* Authentication and registration are intentionally absent from this export. */
.user-profile,
.login-modal,
[data-role="user-view"],
a[data-original-path*="/login"],
a[data-original-path*="/register"],
a[data-original-path*="/registration"],
a[data-original-path*="/my-account"],
a[data-original-path*="/account"] {
  display: none !important;
}
