/* Followed races: the approved layout with the existing catalog and account APIs. */
.pg--panel .ph__title { max-width: 640px; }
/* 2026-11-14 canvas: the waving woman stands the full height of the welcome band on the
   right; the greeting and the next-registration card sit over it */
.pn-band { position: relative; }
.pn-band .ph__in, .pn-band .prof-hero__in { position: relative; }
.pn-hello { position: absolute; top: 0; right: max(0px, calc((100% - 1240px) / 2)); display: block; height: 100%; width: auto; aspect-ratio: 1 / 1; object-fit: cover; pointer-events: none; }
.pg--panel .pn-band .ph__h1 { font-size: 48px; line-height: 1.15; font-weight: 600; }
/* without a next-registration card the band would shrink the drawing to a stamp */
.pg--panel .pn-band { min-height: 400px; }
.pg--panel .ph__h1 { overflow-wrap: anywhere; }
.pg--panel .ph__welcome { align-items: flex-end; }
.pg--panel .ph__welcome .ph__h1 { flex: 0 1 auto; margin-bottom: 18px; }
.pg--panel .nx { background: #fec940; }
.pg--panel .nx__days, .pg--panel .nx__go { color: #15171e; }
.pg--panel .sec-h { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; letter-spacing: 0; }
.pg--panel .sec-h__count { flex: none; }
.pg--panel .seg button[aria-pressed="true"] { background: #285fa3; color: #ffffff; }
.panel-race .tk-place { display: none; }
.panel-race .tk-chip2 { text-decoration: none; }
.panel-race .tk-chip2[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel-race.reg-open .tk-chip2 { background: #fec940; border-color: #fec940; }
.panel-race.reg-soon .tk-day, .panel-race.reg-soon .tk-chip2 { background: #285fa3; border-color: #285fa3; color: #ffffff; }
.panel-race.reg-later .tk-day, .panel-race.reg-later .tk-chip2 { background: #ebdfca; border-color: #ebdfca; color: #333c45; }
.panel-race .tk-bell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 96px; height: 72px; padding: 0; border: 1px solid #12263f; border-radius: 0; background: #ffffff; color: #15171e; font-family: var(--font-text, 'Archivo', sans-serif); cursor: pointer; justify-self: end; }
.tk-bell svg { display: block; width: 34px; height: 34px; flex: none; }
.tk-bell__label { font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .02em; }
.panel-race .tk-bell[aria-pressed="true"] { background: #285fa3; color: #fec940; }
.tk-bell[aria-pressed="true"] .tk-bell__label { color: #ffffff; }
.tk-bell .bell-body { fill: none; }
.tk-bell[aria-pressed="true"] .bell-body { fill: currentColor; }
.tk-bell .bell-waves { opacity: 0; }
.tk-bell[aria-pressed="true"] .bell-waves { opacity: 1; }
.tk-bell:hover:enabled { box-shadow: inset 0 0 0 2px currentColor; }
.tk-bell:disabled { opacity: .6; cursor: progress; }
.changes-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 3px solid #15171e; }
.changes-heading .ch-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 28px; }
.changes-heading #read-all { min-height: 44px; padding: 14px 0; margin: -8px 0; white-space: nowrap; }
.pg--panel .ch-what mark { background: #fec940; }
.pg--panel .empty { background: #ebdfca; padding: 24px 32px; }
.pg--panel .empty img { display: block; flex: none; width: auto; height: 160px; }
.pg--panel .empty p { font-size: 28px; }
.panel-race .tk-name a { display: inline-block; padding: 9px 0; margin: -9px 0; }
.panel-race .tk-name { font-size: 22px; }
.pg--panel .tk-bell__label { font-size: 13px; }
.account-shortcut { font-size: 16px; line-height: 1.5; }
.account-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #ebdfca; color: #15171e; text-decoration: none; }
.account-shortcut > span:last-child { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tk-bell.is-ringing svg { animation: panel-bell-ring .5s ease-in-out; transform-origin: 50% 15%; }
  @keyframes panel-bell-ring { 20% { transform: rotate(-18deg); } 40% { transform: rotate(15deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(6deg); } }
}
@media (max-width: 760px) {
  .pn-hello { top: 4px; right: -96px; height: 340px; }
  .pn-band, .pg--panel .pn-band { min-height: 344px; }
  .pg--panel .pn-band .ph__in { padding-top: 40px; padding-bottom: 24px; }
  .pn-band .lp-title { max-width: 62%; }
  /* Keep the greeting beside the illustration even when no next-date card is shown. */
  .pg--panel .pn-band--tall { min-height: 0; }
  .pg--panel .pn-band--tall .ph__in { padding-top: 0; gap: 0; }
  .pn-band--tall .pn-hello { top: 8px; right: -62px; height: 224px; }
  .pn-band--tall .lp-title { min-height: 236px; justify-content: center; }
  .pg--panel .pn-band--tall .ph__h1 { margin-bottom: 0; }
  .pg--panel .pn-band .ph__h1 { font-size: 40px; }
  .pn-band + .sr-only + .pd, .pn-band ~ .pd { padding-top: 16px; }
  .pn-changes.is-unread { order: -1; }
  .pg--panel .nx { width: 100%; max-width: 760px; padding: 24px 28px; }
  .pg--panel .nx__num { font-size: 72px; }
  .pg--panel .nx__text { font-size: 20px; }
  .panel-race { grid-template-columns: 96px minmax(0, 1fr) !important; grid-template-rows: 72px auto; align-items: start; gap: 8px 14px; padding: 16px 12px 16px 16px; }
  .panel-race .tk-day { grid-column: 1; grid-row: 1; width: 96px !important; height: 72px !important; }
  .panel-race .tk-day b { font-size: 32px !important; }
  .panel-race .tk-main { grid-column: 2; grid-row: 1 / span 2; gap: 6px; }
  .panel-race .tk-bell { grid-column: 1; grid-row: 2; }
  .panel-race .tk-name { font-size: 22px; line-height: 1.15; }
  .panel-race .tk-meta { display: none; }
  .panel-race .tk-place { display: block; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; color: #333c45; }
  .panel-race .tk-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .panel-race .tk-mile { order: -1; font-size: 13px; line-height: 1.45; }
  .panel-race .tk-chip2 { align-self: flex-start; gap: 6px; padding: 5px 9px; font-size: 13px; line-height: 1.3; }
  .panel-race .tk-chip2 i { width: 7px; height: 7px; }
  .account-shortcut { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .pg--panel .nx { padding: 22px 24px; }
  .pg--panel .nx__text { font-size: 18px; }
  .pg--panel .sec-h { font-size: 30px; }
}
