/* Additions to site.css, which is the mock-up's stylesheet regenerated by
   scripts/extract-mockup.mjs and must not be edited by hand. */

/* Programme tabs are links (one URL per programme); same look as the mock-up's buttons. */
.prog-tabs a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  transition: 0.16s;
  font-weight: 700;
}
.prog-tabs a:hover {
  border-color: var(--royal);
}
.prog-tabs a.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Optional photos uploaded in the back office, in place of the glyph or initials. */
.art-visual img,
.item-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar {
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.back {
  display: inline-block;
}

/* Public forms (sign-up, event registration): server-side errors. */
.field.has-error input,
.field.has-error select {
  border-color: #c0453b;
}
.field-error {
  font-size: 0.8rem;
  color: #a5352c;
  margin-top: 0.3rem;
}
.form-alert {
  background: rgba(192, 69, 59, 0.07);
  border: 1px solid rgba(192, 69, 59, 0.35);
  border-radius: 9px;
  color: #8f2e26;
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}
.form-alert-quiet {
  background: var(--paper);
  border-color: var(--line);
  color: #4b5c78;
}
.field label.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: #2c3a52;
}
.field label.check input {
  width: auto;
}
/* Honeypot: off-screen, never seen or focused by people. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Quiz result: the ring's inner disc (::after) was painted over the score. */
.score-ring b {
  z-index: 1;
}

/* Ranking: the week and category selectors and the sortable headers are links
   (each view has its URL); same look as the mock-up's buttons. */
.seg a {
  font-family: var(--title);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 7px;
  color: #5a6b87;
  text-decoration: none;
}
.seg a.on {
  background: var(--navy);
  color: #fff;
}
table.rank th a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.rank-search {
  display: flex;
}
@media (max-width: 760px) {
  .rank-search {
    width: 100%;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Contrast (WCAG AA, 4.5:1 for text). The mock-up's greys, green and gold are
   too pale for small text on light backgrounds; these are the same hues,
   darker. Dark sections keep the light versions. */
.hour span,
.stat span,
.ev-body span,
.event-sub,
.week-note,
.logo-card span,
.btn-register.soon,
.btn-register.soon:hover,
.flat,
.price s,
.ship,
.hint {
  color: #566580;
}
.sec-dark .stat span {
  color: #94a3bb;
}
.up {
  color: #17734f;
}
.card-num,
.read,
.mini.f {
  color: #8a5a14;
}
.sec-dark .card-num,
.on-dark .card-num {
  color: var(--gold);
}
