/* Action links share the biography-download response. Touch never uses :hover. */
html.touch-input :is(.press-link,.download-button,.channel-link,.news-original-link,.single-platform-link,.platform-icon,.icon-link,.footer-icon,.concert-external,.past-more,.repertoire-tab:not([aria-selected="true"])).touch-pressed,
html.can-hover :is(.press-link,.download-button,.channel-link,.news-original-link,.single-platform-link,.platform-icon,.icon-link,.footer-icon,.concert-external,.past-more,.repertoire-tab:not([aria-selected="true"])):hover {
  background: #131313 !important;
  color: #F3EDE2 !important;
  opacity: 1 !important;
  border-color: #131313 !important;
}
html.touch-input :is(.press-link,.download-button,.channel-link,.news-original-link,.single-platform-link,.platform-icon,.icon-link,.footer-icon,.concert-external,.past-more,.repertoire-tab:not([aria-selected="true"])).touch-pressed::before,
html.can-hover :is(.press-link,.download-button,.channel-link,.news-original-link,.single-platform-link,.platform-icon,.icon-link,.footer-icon,.concert-external,.past-more,.repertoire-tab:not([aria-selected="true"])):hover::before { border-color: #131313 !important; }
html.touch-input :is(.press-link,.download-button,.channel-link,.news-original-link,.single-platform-link,.platform-icon,.icon-link,.footer-icon,.concert-external,.past-more,.repertoire-tab:not([aria-selected="true"])).touch-pressed::after,
html.can-hover :is(.press-link,.download-button,.channel-link,.news-original-link,.single-platform-link,.platform-icon,.icon-link,.footer-icon,.concert-external,.past-more,.repertoire-tab:not([aria-selected="true"])):hover::after { border-color: #B75A2D !important; }



/* On the dark photography pages the same inversion needs a light surface. */
html.touch-input .lens-dark :is(.icon-link,.footer-icon).touch-pressed,
html.can-hover .lens-dark :is(.icon-link,.footer-icon):hover { background: #F3EDE2 !important; color: #131313 !important; }

/* Selected repertoire tabs are connected sheets, never action buttons. */
.repertoire-tab[aria-selected="true"] { pointer-events: none; cursor: default; }
/* Two-tone flags must keep a contrasting field, including on dark pages. */
.lens-dark .header .language-switch svg { color: #131313; }
html.touch-input .lens-dark .header .language-switch.touch-pressed { color: #762F43; }
html.can-hover .lens-dark .header .language-switch:hover svg,
html.touch-input .lens-dark .header .language-switch.touch-pressed svg { color: #762F43; }
/* Neutral symbols at rest; a clear inversion on hover, press and keyboard focus. */
html .booklet-dialog .lb-button { background: transparent; color: #F3EDE2; }
html .booklet-dialog .lb-button svg { color: inherit; }
html.can-hover .booklet-dialog .lb-button:hover,
html.keyboard-input .booklet-dialog .lb-button:focus-visible,
html.touch-input .booklet-dialog .lb-button.touch-pressed { background: #F3EDE2; color: #131313; opacity: 1; }
html.can-hover .booklet-dialog .lb-button:hover::after,
html.touch-input .booklet-dialog .lb-button.touch-pressed::after { border-color: #B75A2D; }
/* All photo/booklet controls use the same external corner as other site actions. */
html #lightbox .lb-button,
html .photo-lightbox .photo-lightbox-control,
html .booklet-dialog .lb-button { overflow: visible; }
html #lightbox .lb-button::after,
html .photo-lightbox .photo-lightbox-control::after,
html .booklet-dialog .lb-button::after { right: -3px; bottom: -3px; width: 14px; height: 14px; }

/* Light actions on dark pages absorb their outline into the light surface. */
html.touch-input .lens-dark :is(.icon-link,.footer-icon).touch-pressed,
html.can-hover .lens-dark :is(.icon-link,.footer-icon):hover,
html.touch-input .lens-dark :is(.icon-link,.footer-icon).touch-pressed::before,
html.can-hover .lens-dark :is(.icon-link,.footer-icon):hover::before { border-color: #F3EDE2 !important; }
/* The video ornament is separate from the square's inversion. */
html.touch-input .play.touch-pressed,
html.can-hover .play:hover { background: #131313; color: #F3EDE2; opacity: 1; }
html .play::before { border-color: #F3EDE2 !important; }
/* Inactive booklet tabs sit on a dark surface; selected tabs sit on paper. */
html.can-hover .booklet-tab[aria-selected="false"]:hover,
html.touch-input .booklet-tab[aria-selected="false"].touch-pressed {
  background: #F3EDE2; color: #131313; border-color: #F3EDE2; opacity: 1;
}
html.can-hover .booklet-tab[aria-selected="false"]:hover::before,
html.touch-input .booklet-tab[aria-selected="false"].touch-pressed::before { border-color: #F3EDE2; }
/* Original-article / buy links share the external-corner geometry. */
html .news-original-link { overflow: visible; }
html .news-original-link::after { right: -3px; bottom: -3px; }

/* Selected booklet sheets remain visible but cannot be activated again. */
.booklet-tab[aria-selected="true"] { pointer-events: none; cursor: default; }
/* Match the calendar corner's proportions to each action's own height. */
html .concert-external, html .news-original-link, html .single-platform-link { overflow: visible; }
html .concert-external::after, html .news-original-link::after, html .single-platform-link::after {
  right: -3px; bottom: -3px;
  height: 33%; width: auto; aspect-ratio: 6 / 5;
}

/* Artist-level platform icons keep their square corner, also outside the button. */
html .platform-icon { overflow: visible; }
html .platform-icon::after { right: -3px; bottom: -3px; }
html .single-platform-link::after { border-right-width: 2px; border-bottom-width: 2px; }
