/* PSC Videos: Video of the week (Claude, 1 Dec 2026, marker claude-weekly-20261201). Goes with psc-week-v1.js.
   The hero is dark in both themes, so these colours are the hero's own (styles.css: --mint on the dark photo). */

/* Room between "Browse the library" and the new button; on a narrow phone the new button wraps under it, left edges in line. */
html.psc-library-v2 .hero .button-hero { margin-inline-end: 10px; }
.hero .psc-week-button {
  gap: 8px;
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 19px;
  border-color: var(--mint, #c5e9d1);
  color: var(--mint, #c5e9d1);
  background: transparent;
  text-decoration: none;
}
.hero .psc-week-button:hover { background: rgba(197, 233, 209, 0.16); color: #fcfff4; }
.hero .psc-week-button:focus-visible { outline-color: white; }
.psc-week-play {
  inline-size: 0;
  block-size: 0;
  border-block: 6px solid transparent;
  border-inline-start: 9px solid currentColor;
}
.psc-week-line {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(235, 245, 236, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

/* The tag on the week's card sits where Featured sits; a card that is both shows this one. */
.card-art:has(> .psc-week-tag) > .card-featured:not(.psc-week-tag) { display: none; }

/* Administrators: the two buttons beside Featured show which week this video has. */
.psc-week-choose[aria-pressed="true"] { border-color: rgb(22, 89, 79); color: white; background: rgb(22, 89, 79); }
.psc-week-choose[disabled] { opacity: 0.55; cursor: progress; }


/* Claude, 1 Dec 2026 (Ahmed 22:03: "decrease flicker"): on phones and tablets the room for the button and its line is kept under
   "Browse the library" from the first paint, so the hero does not grow when they arrive. If they cannot come, it closes after 6s. */
@media (max-width: 880px) {
  html .hero .hero-copy:not(:has(#psc-week-line)) > .button-hero { margin-bottom: 36px; animation: psc-week-room-off .2s ease-out 6s forwards; }
}
@media (max-width: 30rem) {
  html .hero .hero-copy:not(:has(#psc-week-line)) > .button-hero { margin-bottom: 79px; }
}
@keyframes psc-week-room-off { to { margin-bottom: 0; } }
@media (min-width: 881px) {
  html .hero .hero-copy:not(:has(#psc-week-line)) > .button-hero { margin-bottom: 34px; animation: psc-week-room-off .2s ease-out 6s forwards; }
}
