/* Project Dynasty History wave (P46/P51) — archival front door on the neutral base.
   Everything is scoped to .pd-hw. League/team color stays an accent; the frame,
   surfaces, and type stay on the P68 neutral-gray tokens in light and dark. */

.pd-hw {
  --hw-surface: var(--pd-surface-base);
  --hw-raised: var(--pd-surface-interactive);
  --hw-ink: var(--pd-text-primary);
  --hw-muted: var(--pd-text-secondary);
  --hw-line: var(--pd-border);
  --hw-gold: #a97b1f;
  --hw-gold-ink: #7c5a13;
  --hw-gold-soft: rgba(169, 123, 31, 0.12);
  --hw-ring: rgba(169, 123, 31, 0.42);
  display: grid;
  gap: clamp(var(--pd-space-5), 2.6vw, var(--pd-space-7));
  align-content: start;
}

html[data-theme="dark"] .pd-hw {
  --hw-gold: #d9b25e;
  --hw-gold-ink: #e8ca86;
  --hw-gold-soft: rgba(217, 178, 94, 0.14);
  --hw-ring: rgba(217, 178, 94, 0.5);
}

.pd-hw a {
  color: inherit;
  text-decoration: none;
}

.pd-hw :is(a, button):focus-visible {
  outline: 2px solid var(--pd-focus);
  outline-offset: 3px;
}

.pd-hw-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pd-space-4);
  padding-bottom: var(--pd-space-5);
  border-bottom: 1px solid var(--hw-line);
}

.pd-hw-kicker {
  margin: 0;
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
  font-weight: 850;
  letter-spacing: var(--pd-tracking-label);
  text-transform: uppercase;
}

.pd-hw-masthead h1 {
  margin: var(--pd-space-2) 0 0;
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.pd-hw-masthead__line {
  max-width: 52ch;
  margin: var(--pd-space-3) 0 0;
  color: var(--hw-muted);
  font-size: var(--pd-text-sm);
}

.pd-hw-masthead__side {
  display: grid;
  gap: var(--pd-space-2);
  justify-items: end;
}

.pd-hw-stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--pd-space-3);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-surface);
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pd-hw-stamp::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--hw-gold);
  box-shadow: 0 0 0 4px var(--hw-gold-soft);
}

/* ---- Compact cycle-first timeline ---------------------------------------- */

.pd-hw-timeline {
  display: grid;
  gap: var(--pd-space-4);
  padding: var(--pd-space-5);
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  background: var(--hw-surface);
  box-shadow: var(--pd-shadow-sm);
}

.pd-hw-timeline header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pd-space-3);
}

.pd-hw-timeline h2 {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-lg);
  font-weight: 850;
}

.pd-hw-timeline__rail {
  display: grid;
  gap: var(--pd-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-hw-cycle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: var(--pd-space-4);
  padding: var(--pd-space-3) 0 var(--pd-space-3) var(--pd-space-5);
  border-left: 2px solid var(--hw-line);
}

.pd-hw-cycle__node {
  position: absolute;
  top: calc(var(--pd-space-3) + 0.35rem);
  left: -0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--hw-surface);
  border-radius: 999px;
  background: var(--pd-border-strong);
}

.pd-hw-cycle.is-current .pd-hw-cycle__node {
  background: var(--hw-gold);
  box-shadow: 0 0 0 5px var(--hw-gold-soft);
}

.pd-hw-cycle__head {
  display: grid;
  gap: 0.15rem;
  align-content: start;
}

.pd-hw-cycle__head strong {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-md);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pd-hw-cycle__head small {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
}

.pd-hw-cycle__seasons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pd-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-hw-season-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-raised);
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 800;
}

.pd-hw-season-chip em {
  color: var(--hw-muted);
  font-style: normal;
  font-weight: 700;
}

.pd-hw-season-chip.is-current {
  border-color: var(--hw-ring);
  background: var(--hw-gold-soft);
}

.pd-hw-season-chip.is-archived::before {
  content: "\2713";
  color: var(--hw-gold-ink);
  font-weight: 900;
}

/* ---- Destination cards --------------------------------------------------- */

.pd-hw-destinations {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--pd-space-3);
}

.pd-hw-destination {
  position: relative;
  display: grid;
  gap: var(--pd-space-3);
  align-content: space-between;
  min-height: 10.5rem;
  padding: var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-radius: 16px;
  background: var(--hw-surface);
  box-shadow: var(--pd-shadow-sm);
  transition: transform var(--pd-motion-fast) var(--pd-ease), border-color var(--pd-motion-fast) var(--pd-ease), box-shadow var(--pd-motion-fast) var(--pd-ease);
}

.pd-hw-destination:hover {
  transform: translateY(-2px);
  border-color: var(--pd-border-strong);
  box-shadow: var(--pd-shadow-md);
}

.pd-hw-destination.is-active {
  border-color: var(--hw-ring);
  box-shadow: inset 0 0 0 1px var(--hw-ring), var(--pd-shadow-md);
}

.pd-hw-destination__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
}

.pd-hw-destination__mark {
  color: var(--hw-muted);
  font-family: var(--pd-font-mono);
  font-size: var(--pd-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pd-hw-destination__meta {
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-raised);
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-hw-destination.is-active .pd-hw-destination__meta {
  border-color: var(--hw-ring);
  color: var(--hw-gold-ink);
}

.pd-hw-destination__copy {
  display: grid;
  gap: 0.2rem;
}

.pd-hw-destination__copy small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-hw-destination__copy strong {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.pd-hw-destination__copy em {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
  font-style: normal;
  line-height: 1.45;
}

/* ---- Views, panels, empty states ---------------------------------------- */

.pd-hw-view {
  display: grid;
  gap: clamp(var(--pd-space-5), 2.4vw, var(--pd-space-7));
}

.pd-hw-panel {
  display: grid;
  gap: var(--pd-space-4);
  padding: clamp(var(--pd-space-4), 2vw, var(--pd-space-6));
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  background: var(--hw-surface);
  box-shadow: var(--pd-shadow-sm);
}

.pd-hw-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pd-space-3);
}

.pd-hw-section-head h2 {
  margin: var(--pd-space-1) 0 0;
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-xl);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pd-hw-section-head p {
  max-width: 62ch;
  color: var(--hw-muted);
  font-size: var(--pd-text-sm);
}

.pd-hw-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--pd-border-strong);
  border-radius: 999px;
  background: var(--hw-surface);
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 850;
}

.pd-hw-link:hover {
  border-color: var(--hw-gold);
  color: var(--hw-gold-ink);
}

.pd-hw-empty {
  display: grid;
  gap: var(--pd-space-2);
  justify-items: center;
  padding: clamp(var(--pd-space-6), 5vw, var(--pd-space-8)) var(--pd-space-5);
  border: 1px dashed var(--pd-border-strong);
  border-radius: 16px;
  background: var(--hw-raised);
  text-align: center;
}

.pd-hw-empty__mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-surface);
  color: var(--hw-gold-ink);
  font-family: var(--pd-font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.pd-hw-empty strong {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-lg);
  font-weight: 850;
}

.pd-hw-empty p {
  max-width: 52ch;
  color: var(--hw-muted);
  font-size: var(--pd-text-sm);
}

.pd-hw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pd-space-3);
  justify-content: center;
}

/* ---- Seasons: in-progress, recaps, all-time leaders ---------------------- */

.pd-hw-current {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 1fr);
  gap: var(--pd-space-5);
  align-items: stretch;
}

.pd-hw-current__copy {
  display: grid;
  gap: var(--pd-space-3);
  align-content: start;
}

.pd-hw-current__copy h2 {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.02;
}

.pd-hw-current__copy p {
  color: var(--hw-muted);
  font-size: var(--pd-text-sm);
}

.pd-hw-current__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pd-space-3);
  align-content: start;
}

.pd-hw-fact {
  display: grid;
  gap: 0.15rem;
  padding: var(--pd-space-3) var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-radius: 14px;
  background: var(--hw-raised);
}

.pd-hw-fact strong {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.pd-hw-fact small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pd-hw-season-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--pd-space-3);
}

.pd-hw-season-card {
  display: grid;
  gap: var(--pd-space-2);
  padding: var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-left: 3px solid var(--hw-gold);
  border-radius: 14px;
  background: var(--hw-surface);
}

.pd-hw-season-card small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-hw-season-card strong {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-lg);
  font-weight: 900;
}

.pd-hw-season-card p {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
}

.pd-hw-leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--pd-space-4);
}

.pd-hw-leader-board {
  display: grid;
  gap: var(--pd-space-3);
  padding: var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-radius: 16px;
  background: var(--hw-raised);
}

.pd-hw-leader-board header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pd-space-2);
}

.pd-hw-leader-board h3 {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-md);
  font-weight: 900;
}

.pd-hw-leader-board header a {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-hw-leader-board header a:hover {
  color: var(--hw-gold-ink);
}

.pd-hw-leader-row {
  display: grid;
  grid-template-columns: 1.1rem 1fr auto;
  align-items: center;
  gap: var(--pd-space-3);
  padding: 0.4rem 0;
  border-top: 1px solid var(--hw-line);
}

.pd-hw-leader-row:first-of-type {
  border-top: 0;
}

.pd-hw-leader-row__rank {
  color: var(--hw-muted);
  font-family: var(--pd-font-mono);
  font-size: var(--pd-text-xs);
  font-weight: 800;
}

.pd-hw-leader-row__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pd-hw-leader-row__who img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  background: var(--pd-surface-interactive);
}

.pd-hw-leader-row__who span {
  display: grid;
  min-width: 0;
}

.pd-hw-leader-row__who strong {
  overflow: hidden;
  color: var(--hw-ink);
  font-size: var(--pd-text-sm);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-hw-leader-row__who small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.pd-hw-leader-row__value {
  color: var(--hw-gold-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-md);
  font-weight: 900;
}

/* ---- Champions: Hall of Champions --------------------------------------- */

.pd-hw-champion-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--pd-space-5);
  align-items: center;
  padding: clamp(var(--pd-space-5), 3vw, var(--pd-space-7));
  overflow: hidden;
  border: 1px solid var(--hw-ring);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 0% 0%, var(--hw-gold-soft), transparent 58%),
    var(--hw-surface);
}

.pd-hw-champion-feature__copy {
  display: grid;
  gap: var(--pd-space-2);
}

.pd-hw-champion-feature__copy h2 {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 0.98;
}

.pd-hw-champion-feature__copy p {
  color: var(--hw-muted);
  font-size: var(--pd-text-sm);
}

.pd-hw-champion-feature__crest {
  display: grid;
  place-items: center;
  width: clamp(5rem, 12vw, 8rem);
  aspect-ratio: 1;
  padding: var(--pd-space-3);
  border: 1px solid var(--hw-line);
  border-radius: 20px;
  background: var(--hw-raised);
}

.pd-hw-champion-feature__crest img,
.pd-hw-champion-feature__crest svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-hw-champion-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--pd-space-3);
}

.pd-hw-champion-card {
  display: grid;
  gap: var(--pd-space-2);
  padding: var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-radius: 14px;
  background: var(--hw-raised);
}

.pd-hw-champion-card small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-hw-champion-card strong {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-lg);
  font-weight: 900;
}

.pd-hw-champion-card p {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
}

.pd-hw-banner {
  display: grid;
  place-items: center;
  gap: var(--pd-space-2);
  padding: var(--pd-space-3);
  border: 1px dashed var(--hw-ring);
  border-radius: 12px;
  color: var(--hw-gold-ink);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Honors: living honors + preserved M26 archive ---------------------- */

.pd-hw-archive-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pd-space-3);
  padding: var(--pd-space-3) var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-left: 3px solid var(--hw-gold);
  border-radius: 12px;
  background: var(--hw-raised);
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
}

.pd-hw-archive-note strong {
  color: var(--hw-ink);
  font-weight: 850;
}

.pd-hw-honor-list {
  display: grid;
  gap: var(--pd-space-3);
}

.pd-hw-honor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-3);
  padding: var(--pd-space-3) var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-radius: 14px;
  background: var(--hw-surface);
}

.pd-hw-drill {
  border: 1px solid var(--hw-line);
  border-radius: 14px;
  background: var(--hw-raised);
}

.pd-hw-drill > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
  padding: var(--pd-space-3) var(--pd-space-4);
  color: var(--hw-ink);
  font-size: var(--pd-text-sm);
  font-weight: 850;
  cursor: pointer;
}

.pd-hw-drill > summary span {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
  font-weight: 750;
}

.pd-hw-drill > div,
.pd-hw-drill > section {
  padding: var(--pd-space-4);
  border-top: 1px solid var(--hw-line);
}

/* Legacy Ring of Honor / 99 Club markup, restyled on the neutral base. */

.pd-hw .cycle-ring-hall,
.pd-hw .cycle-club99 {
  display: grid;
  gap: var(--pd-space-4);
  padding: clamp(var(--pd-space-4), 2vw, var(--pd-space-6));
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  background: var(--hw-surface);
  box-shadow: var(--pd-shadow-sm);
  color: var(--hw-ink);
}

.pd-hw .cycle-ring-head,
.pd-hw .cycle-club99-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pd-space-3);
}

.pd-hw .cycle-ring-head h2,
.pd-hw .cycle-club99-head h2 {
  margin: var(--pd-space-1) 0 0;
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-xl);
  font-weight: 900;
}

.pd-hw .cycle-club99-head h2 em {
  color: var(--hw-gold-ink);
  font-style: normal;
}

.pd-hw .cycle-ring-head p,
.pd-hw .cycle-club99-head p {
  max-width: 58ch;
  color: var(--hw-muted);
  font-size: var(--pd-text-sm);
}

.pd-hw .cycle-ring-owner-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--pd-space-3);
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--hw-line);
  border-radius: 14px;
  background: var(--hw-raised);
}

.pd-hw .cycle-ring-owner-mark span {
  display: grid;
}

.pd-hw .cycle-ring-owner-mark small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pd-hw .cycle-ring-owner-mark strong {
  color: var(--hw-ink);
  font-size: var(--pd-text-sm);
  font-weight: 850;
}

.pd-hw .cycle-ring-owner-mark b {
  color: var(--hw-gold-ink);
  font-family: var(--pd-font-display);
  font-size: 1.3rem;
  font-weight: 900;
}

.pd-hw .cycle-ring-owner-mark b small {
  margin-left: 0.25rem;
}

.pd-hw .cycle-ring-owners {
  display: flex;
  gap: var(--pd-space-2);
  overflow-x: auto;
  padding-bottom: var(--pd-space-2);
  scrollbar-width: thin;
}

.pd-hw .cycle-ring-owners button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--pd-space-2);
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-raised);
  color: var(--hw-ink);
  cursor: pointer;
  text-align: left;
}

.pd-hw .cycle-ring-owners button.is-active {
  border-color: var(--hw-ring);
  background: var(--hw-gold-soft);
}

.pd-hw .cycle-ring-owners button span {
  display: grid;
}

.pd-hw .cycle-ring-owners button small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.pd-hw .cycle-ring-owners button strong {
  font-size: var(--pd-text-xs);
  font-weight: 850;
}

.pd-hw .cycle-ring-toolbar,
.pd-hw .cycle-club99-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pd-space-3);
  padding: var(--pd-space-3);
  border: 1px solid var(--hw-line);
  border-radius: 14px;
  background: var(--hw-raised);
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
  font-weight: 800;
}

.pd-hw .cycle-ring-toolbar select,
.pd-hw .cycle-club99-tools select,
.pd-hw .cycle-club99-tools input {
  min-height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid var(--pd-border-strong);
  border-radius: 10px;
  background: var(--hw-surface);
  color: var(--hw-ink);
  font-weight: 700;
}

.pd-hw .cycle-club99-tools label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-hw .cycle-ring-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: var(--pd-space-2);
}

.pd-hw .cycle-ring-toolbar button,
.pd-hw .club99-line-toggle {
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--pd-border-strong);
  border-radius: 10px;
  background: var(--hw-surface);
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 800;
  cursor: pointer;
}

.pd-hw .cycle-ring-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--pd-space-4);
}

.pd-hw .cycle-ring-card {
  display: grid;
  gap: var(--pd-space-3);
  align-content: start;
  padding: var(--pd-space-4);
  border: 1px solid var(--hw-line);
  border-top: 3px solid var(--hw-gold);
  border-radius: 16px;
  background: var(--hw-surface);
  box-shadow: var(--pd-shadow-sm);
}

.pd-hw .cycle-ring-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
}

.pd-hw .cycle-ring-card > header > span {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-hw .cycle-ring-card > header b {
  color: var(--hw-ink);
  font-family: var(--pd-font-display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.pd-hw .cycle-ring-card > header b small {
  margin-left: 0.25rem;
  color: var(--hw-muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.pd-hw .cycle-ring-card-player {
  display: flex;
  gap: var(--pd-space-3);
  align-items: center;
}

.pd-hw .cycle-ring-card-player span {
  display: grid;
  min-width: 0;
}

.pd-hw .cycle-ring-card-player small {
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-hw .cycle-ring-card-player strong {
  overflow: hidden;
  color: var(--hw-ink);
  font-size: var(--pd-text-md);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-hw .cycle-ring-card-player em {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
  font-style: normal;
}

.pd-hw .cycle-ring-card-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pd-space-2);
}

.pd-hw .cycle-ring-card-ratings span {
  display: grid;
  min-width: 3rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  background: var(--hw-raised);
  text-align: center;
}

.pd-hw .cycle-ring-card-ratings small {
  color: var(--hw-muted);
  font-size: 0.58rem;
  font-weight: 850;
}

.pd-hw .cycle-ring-card-ratings b {
  color: var(--hw-ink);
  font-size: var(--pd-text-sm);
  font-weight: 900;
}

.pd-hw .cycle-ring-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
  padding-top: var(--pd-space-3);
  border-top: 1px solid var(--hw-line);
  color: var(--hw-muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.pd-hw .cycle-ring-card > footer b {
  color: var(--hw-gold-ink);
  letter-spacing: 0.08em;
}

.pd-hw .cycle-ring-card-attributes summary,
.pd-hw .cycle-ring-card details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  background: var(--hw-raised);
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 800;
  cursor: pointer;
}

.pd-hw .cycle-ring-card-attributes summary span {
  color: var(--hw-muted);
  font-weight: 750;
}

.pd-hw .history-attribute-browser {
  display: grid;
  gap: var(--pd-space-2);
}

.pd-hw .history-attribute-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
  font-weight: 800;
}

.pd-hw .history-attribute-nav button,
.pd-hw [data-history-attribute-step] {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-surface);
  color: var(--hw-ink);
  cursor: pointer;
}

.pd-hw .history-attribute-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
}

.pd-hw .history-attribute-line {
  display: flex;
  gap: var(--pd-space-4);
}

.pd-hw .history-attribute-line > section {
  flex: 0 0 auto;
  min-width: 11rem;
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  background: var(--hw-raised);
  padding: 0.5rem;
}

.pd-hw .history-attribute-line > section > strong {
  display: block;
  margin-bottom: var(--pd-space-2);
  color: var(--hw-muted);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-hw .history-attribute-line > section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pd-hw .history-attribute-line span {
  display: grid;
  min-width: 2.1rem;
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--hw-raised);
  text-align: center;
}

.pd-hw .history-attribute-line small {
  color: var(--hw-muted);
  font-size: 0.55rem;
  font-weight: 850;
}

.pd-hw .history-attribute-line b {
  color: var(--hw-ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.pd-hw .cycle-club99-table-wrap {
  overflow-x: auto;
}

.pd-hw .cycle-club99-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.pd-hw .cycle-club99-table-wrap th,
.pd-hw .cycle-club99-table-wrap td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--hw-line);
  background: var(--hw-surface);
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  text-align: left;
  vertical-align: middle;
}

.pd-hw .cycle-club99-table-wrap tbody tr:nth-child(even) td {
  background: var(--hw-raised);
}

.pd-hw .cycle-club99-table-wrap tbody tr:hover td {
  background: var(--hw-raised);
}

.pd-hw .cycle-club99 td:first-child > strong {
  color: var(--hw-ink);
}

.pd-hw .cycle-club99 td:first-child > small {
  color: var(--hw-muted);
}

.pd-hw .cycle-club99-head .eyebrow,
.pd-hw .cycle-club99-head > strong {
  color: var(--hw-gold-ink);
}

.pd-hw .cycle-club99-table-wrap th {
  color: var(--hw-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-hw .cycle-club99-table-wrap th button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 850;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.pd-hw .cycle-club99-table-wrap th button.is-active {
  color: var(--hw-gold-ink);
}

.pd-hw .cycle-club99-table-wrap td.is-number,
.pd-hw .cycle-club99-table-wrap th.is-number {
  text-align: right;
}

.pd-hw .cycle-club99-table-wrap td small {
  display: block;
  color: var(--hw-muted);
  font-size: 0.6rem;
  font-weight: 750;
}

.pd-hw .cycle-club99-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pd-hw .club99-attribute-row > td {
  border-left-color: var(--hw-line) !important;
  background: var(--hw-raised) !important;
}

.pd-hw .cycle-club99-count {
  margin-left: auto;
  color: var(--hw-muted);
}

.pd-hw .cycle-club99-empty {
  display: flex;
  gap: var(--pd-space-3);
  align-items: center;
  padding: var(--pd-space-5);
  border: 1px dashed var(--pd-border-strong);
  border-radius: 14px;
  background: var(--hw-raised);
}

/* Archive record blocks (career stats + highlights) */

.pd-hw-career {
  display: grid;
  gap: var(--pd-space-2);
  padding: var(--pd-space-3);
  border: 1px solid var(--hw-line);
  border-radius: 12px;
  background: var(--hw-raised);
}

.pd-hw-career > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pd-space-2);
}

.pd-hw-career > header strong {
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-hw-career > header small {
  color: var(--hw-muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.pd-hw-career p {
  color: var(--hw-muted);
  font-size: var(--pd-text-xs);
}

.pd-hw-career p b {
  color: var(--hw-ink);
  font-weight: 850;
}

.pd-hw-highlights {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-hw-highlights li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pd-space-2);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  background: var(--hw-surface);
}

.pd-hw-highlights strong {
  color: var(--hw-ink);
  font-size: var(--pd-text-xs);
  font-weight: 800;
}

.pd-hw-highlights small {
  color: var(--hw-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.pd-hw-highlights a {
  color: var(--hw-gold-ink);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-hw-club-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--pd-space-3);
}

/* ---- Draft: neutral wrapper around the legacy archive panel ------------- */

.pd-hw .draft-history-panel {
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  background: var(--hw-surface);
  box-shadow: var(--pd-shadow-sm);
  color: var(--hw-ink);
}

.pd-hw .draft-history-panel h2,
.pd-hw .draft-history-panel h3 {
  color: var(--hw-ink);
}

.pd-hw .draft-history-panel p,
.pd-hw .draft-history-panel small,
.pd-hw .draft-history-panel time {
  color: var(--hw-muted);
}

.pd-hw .draft-history-search input {
  border: 1px solid var(--pd-border-strong);
  border-radius: 10px;
  background: var(--hw-surface);
  color: var(--hw-ink);
}

.pd-hw .draft-history-event {
  border-color: var(--hw-line);
  background: var(--hw-raised);
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 64rem) {
  .pd-hw-destinations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 43.75rem) {
  .pd-hw-destinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-hw-destination {
    min-height: 9.5rem;
  }

  .pd-hw-cycle {
    grid-template-columns: 1fr;
    gap: var(--pd-space-2);
  }

  .pd-hw-current {
    grid-template-columns: 1fr;
  }

  .pd-hw-champion-feature {
    grid-template-columns: 1fr;
  }

  .pd-hw-champion-feature__crest {
    width: 5.5rem;
  }

  .pd-hw-masthead {
    align-items: flex-start;
  }

  .pd-hw-masthead__side {
    justify-items: start;
  }

  .pd-hw .cycle-ring-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 30rem) {
  .pd-hw-destinations {
    grid-template-columns: 1fr;
  }

  .pd-hw-destination {
    min-height: 0;
  }
}
