/* TOP: the pyramid shown in the video and the photos is from past years (the client's Figma of 2026-12-02): a small
   note flush right under the video and the past years' photos (a line of its own), under the 2026 venue banner and on
   the 今年の見どころ pyramid card. #contents in every selector, as lp-entry.css does: the theme writes its rules here
   by id (#contents section…). The two modifiers below must stay after these first rules: same specificity, so the
   later rule wins, media queries included. */

/* margin-bottom: on phones the next block is only ~6px below (top.css), and the note would sit as close to it as to
   its own media. It merges with that block's margin, so it changes nothing where the gap is already larger. */
#contents .tcm-past-note {
  margin: 6px 0 12px;
  padding: 0;
  color: rgba(248, 243, 231, 0.85);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
@media (max-width: 980px) {
  #contents .tcm-past-note {
    margin-top: 4px;
  }
}

/* Under the venue banner the note takes no height: it is drawn in the gap the client set between the banner and
   their text (28px, 20px from 767px, venue-note.css), which keeps that distance. */
#contents .tcm-past-note--gap {
  position: relative;
  top: 4px;
  height: 0;
  margin: 0;
  line-height: 15px;
}
@media (max-width: 767px) {
  #contents .tcm-past-note--gap {
    top: 3px;
    font-size: 11px;
    line-height: 14px;
  }
}

/* On the card the note sits over the photo's bottom right, inside the card's thin inner frame (top.css): a line under
   the photo would push this card's title and button below its neighbours'. It is placed from the text block under the
   photo, so the photo stays a direct child of the card like the other five: Safari draws those photos taller by the
   card's border width, and a wrapped one would come out shorter than its neighbours. */
#contents .tophighlights__body {
  position: relative;
}
#contents .tcm-past-note--photo {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 10px);
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  margin: 0;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 678px) {
  #contents .tcm-past-note--photo {
    right: 8px;
    bottom: calc(100% + 8px);
    max-width: calc(100% - 16px);
    padding: 1px 4px;
    font-size: 10px;
  }
}
