@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--rh-color-canvas);
  color: var(--rh-color-text);
  font:
    400 16px/1.5 "DM Sans",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
select,
input,
summary {
  touch-action: manipulation;
}
a,
button,
select,
input,
summary {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rh-color-focus);
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 80px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 36px;
  line-height: 40px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
h3 {
  font-size: 24px;
  line-height: 28px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
p {
  margin-bottom: 24px;
}
img {
  max-width: 100%;
  object-fit: contain;
}
abbr[title] {
  text-decoration: none;
  cursor: help;
}
select {
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--rh-color-surface);
  color: var(--rh-color-text);
  padding: 0 38px 0 16px;
  min-height: 44px;
  max-width: 100%;
  font-size: 14px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: var(--rh-color-accent);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 48px;
}
.site-header {
  height: 80px;
}
.nav-inner {
  height: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  width: 180px;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
}
.brand img {
  display: block;
  width: 180px;
  height: 60px;
}
.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  align-items: center;
}
.desktop-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  position: relative;
}
.desktop-nav a[aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rh-color-accent);
}
.mobile-nav {
  display: none;
}
.hero {
  padding-block: 48px;
}
.explore-hero h1 {
  max-width: 660px;
}
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rh-color-accent);
  margin-bottom: 32px;
}
.intro {
  color: var(--rh-color-muted);
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 24px;
}
.search-form {
  display: flex;
  min-height: 56px;
  border-radius: 4px;
  background: var(--rh-color-paper);
  color: var(--rh-color-paperText);
  border: 1px solid var(--rh-color-paperBorder);
  overflow: hidden;
}
.search-form:focus-within {
  outline: 2px solid var(--rh-color-focus);
  outline-offset: 4px;
}
.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 16px;
  background: transparent;
  color: inherit;
  outline: none;
  font-size: 16px;
}
.search-form input::placeholder {
  color: var(--rh-color-paperMuted);
  opacity: 1;
}
.search-form button {
  padding: 0 20px;
  background: var(--rh-color-paper);
  color: var(--rh-color-paperText);
  font-size: 14px;
  font-weight: 600;
}
.search-form button span {
  padding-left: 12px;
}
.search-form button:hover {
  background: var(--rh-color-accent);
}
.section {
  padding-block: 48px;
}
.section-title {
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2,
.section-heading h1 {
  margin-bottom: 0;
}
.season-form {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.season-form select {
  min-width: 160px;
}
.federation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.card {
  display: block;
  background: var(--rh-color-paper);
  color: var(--rh-color-paperText);
  padding: 24px;
  border-radius: 4px;
  position: relative;
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}
.card:hover {
  color: var(--rh-color-paperText);
  background: #fff9ed;
  transform: translateY(-3px);
}
.card h3 {
  margin-bottom: 12px;
}
.card p {
  color: var(--rh-color-paperMuted);
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0;
}
.federation-card strong {
  font:
    700 40px/44px "Barlow Condensed",
    sans-serif;
  display: block;
  margin-bottom: 12px;
}
.federation-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 128px;
  height: 80px;
  padding: 8px;
  vertical-align: middle;
}
.federation-logo .crest {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.federation-logo .image-fallback {
  font: 700 24px/1 "Barlow Condensed", sans-serif;
  background: transparent;
}
.federation-card > .federation-logo {
  width: 100%;
  max-width: 160px;
  margin-bottom: 20px;
}
.federation-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.federation-heading h1 {
  min-width: 0;
  margin-bottom: 0;
}
.competition-federation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.federation-logo-inline {
  width: 48px;
  height: 32px;
  padding: 2px;
}
.federation-logo-inline .image-fallback {
  font-size: 12px;
}

.card-arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.16s;
}
.card:hover .card-arrow,
.card:focus-visible .card-arrow {
  opacity: 1;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.competition-card {
  min-height: 108px;
}
.list-view {
  grid-template-columns: 1fr;
}
.list-view .competition-card {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 52px;
}
.list-view .competition-card h3 {
  margin: 0;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-panel {
  margin-bottom: 24px;
}
.filter-panel summary {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 100px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--rh-color-surface);
  color: var(--rh-color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}
.button:hover {
  background: #262132;
  color: var(--rh-color-text);
}
.primary {
  background: var(--rh-color-accent);
  color: var(--rh-color-onAccent);
}
.primary:hover {
  background: var(--rh-color-accentHover);
  color: var(--rh-color-onAccent);
}
.text-button {
  min-width: 44px;
  background: transparent;
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 32px 48px;
  font-size: 12px;
  color: var(--rh-color-muted);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  color: var(--rh-color-muted);
  margin-bottom: 24px;
  min-height: 44px;
}
.breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.breadcrumbs span {
  margin: 0 4px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  margin: 0 -4px 24px;
  scrollbar-width: thin;
}
.tabs .button {
  min-width: 160px;
  flex-shrink: 0;
}
.view-controls {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.view-controls .tabs {
  margin-bottom: 0;
}
.compact-section {
  padding-top: 0;
}
.muted {
  color: var(--rh-color-muted);
  font-size: 14px;
}
.sort-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block: 24px;
  font-size: 14px;
}
.sort-controls label {
  color: var(--rh-color-muted);
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 4px;
  scrollbar-color: var(--rh-color-muted) var(--rh-color-surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--rh-color-paper);
  color: var(--rh-color-paperText);
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
td,
th {
  border-bottom: 1px solid var(--rh-color-paperBorder);
  padding: 6px 16px;
  height: 56px;
  text-align: left;
  font-weight: 400;
}
thead th {
  font-size: 12px;
  text-transform: uppercase;
  height: 56px;
}
tbody th {
  font-weight: 500;
}
td a,
th a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
td a:hover,
th a:hover {
  color: #6b4508;
  text-decoration: underline;
}
tbody tr:hover {
  background: #fff9ed;
}
.stat-emphasis {
  font-weight: 700;
}
.stats-table th:nth-child(2) {
  width: 38%;
}
.team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.crest-wrap {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.crest {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.image-fallback {
  display: none;
  font-size: 10px;
  color: var(--rh-color-paperText);
  background: var(--rh-color-accent);
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.image-missing .crest {
  display: none;
}
.image-missing .image-fallback {
  display: flex;
}
.media-enhanced .image-loading > .crest,
.media-enhanced .image-loading > .player-photo {
  opacity: 0;
}
.media-enhanced .image-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background: linear-gradient(100deg, transparent 25%, #ffffff30 45%, transparent 65%) var(--rh-color-border);
  background-size: 200% 100%;
  animation: image-shimmer 1.4s ease-in-out infinite;
}
.media-enhanced .crest-wrap.image-loading::after {
  clip-path: polygon(12% 5%, 88% 5%, 88% 58%, 50% 95%, 12% 58%);
}
.media-enhanced .player-portrait.image-loading::after {
  mask: radial-gradient(circle at 50% 25%, #000 21%, transparent 22%),
    radial-gradient(ellipse 44% 40% at 50% 92%, #000 99%, transparent 100%);
}
@keyframes image-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .media-enhanced .image-loading::after { animation: none; }
}
.team-medium {
  gap: 16px;
  font:
    700 36px/40px "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
.team-medium .crest-wrap,
.team-medium .crest {
  width: 64px;
  height: 64px;
}
.team-hero {
  width: 144px;
  flex-shrink: 0;
  justify-content: center;
}
.team-hero > span:last-child {
  display: none;
}
.team-hero .crest-wrap,
.team-hero .crest {
  width: 128px;
  height: 128px;
}
.team-scoreboard {
  flex-direction: column;
  gap: 16px;
  font:
    700 24px/28px "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
.team-scoreboard .crest-wrap,
.team-scoreboard .crest {
  width: 80px;
  height: 80px;
}
.identity-hero {
  padding-block: 32px 48px;
}
.tint-yellow {
  background: var(--rh-color-teamYellow);
}
.tint-red {
  background: var(--rh-color-teamRed);
}
.tint-blue {
  background: var(--rh-color-teamBlue);
}
.identity {
  display: flex;
  align-items: center;
  gap: 32px;
}
.identity > div:last-child {
  min-width: 0;
}
.identity .eyebrow {
  margin-bottom: 24px;
}
.identity h1 {
  font-size: 72px;
  margin-bottom: 16px;
}
.identity .intro {
  margin: 0;
}
.inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.stat-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.player-stat-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 16px;
  background: var(--rh-color-surface);
  border-radius: 4px;
  min-width: 0;
}
.stat strong {
  display: block;
  font:
    700 40px/44px "Barlow Condensed",
    sans-serif;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.stat-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.stat-value strong {
  margin-bottom: 0;
}
.stat-percentage {
  color: var(--rh-color-muted);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.stat span {
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--rh-color-muted);
  display: block;
}
.match-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.match-pair .team {
  font-size: 13px;
}
.score-link {
  font-weight: 700;
  white-space: nowrap;
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
  padding-block: 16px 0;
}
.scoreboard > a {
  min-height: 44px;
}
.score {
  font:
    700 80px/1 "Barlow Condensed",
    sans-serif;
  white-space: nowrap;
}
.match-hero .eyebrow {
  margin: 0 0 8px;
}
.match-hero > p {
  margin-bottom: 8px;
}
.result-section {
  margin-bottom: 48px;
}
.count {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--rh-color-muted);
  margin-left: 8px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  background: var(--rh-color-paper);
  color: var(--rh-color-paperText);
  min-height: 72px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}
.result-row:hover {
  background: #fff9ed;
  color: var(--rh-color-paperText);
}
.result-row > .team,
.result-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.result-context {
  color: var(--rh-color-paperMuted);
  flex: 1.2;
}
.result-row > span:last-child:not(.result-context) {
  flex-shrink: 0;
}
.result-count {
  margin-block: 0 24px;
}
.club-card .team {
  font-size: 24px;
  line-height: 28px;
}
.club-card p {
  margin: 16px 0 0;
}
.empty {
  border: 1px solid var(--rh-color-border);
  border-radius: 4px;
  padding: 48px;
  margin-block: 24px;
}
.empty .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.empty h2 {
  text-transform: none;
}
.empty p {
  color: var(--rh-color-muted);
  max-width: 560px;
}
.empty .button {
  margin-top: 8px;
}
.about {
  max-width: 850px;
}
.about > p:not(.intro):not(.eyebrow) {
  max-width: 620px;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.mobile-only {
  display: none;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 12px 20px;
  background: var(--rh-color-accent);
  color: var(--rh-color-onAccent);
}
.skip-link:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.js .no-js {
  display: none;
}
@media (min-width: 768px) and (max-width: 1000px) {
  .desktop-nav {
    gap: 16px;
  }
  .container {
    padding-inline: 32px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid.list-view {
    grid-template-columns: 1fr;
  }
  .federation-grid {
    gap: 16px;
  }
  .federation-card {
    padding: 20px;
  }
  .identity h1 {
    font-size: 60px;
  }
  .stat-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  h1 {
    font-size: 48px;
    line-height: 48px;
    margin-bottom: 24px;
  }
  h2 {
    font-size: 32px;
    line-height: 36px;
  }
  h3 {
    font-size: 24px;
    line-height: 28px;
  }
  .container {
    padding-inline: 24px;
  }
  .site-header {
    height: 80px;
  }
  .nav-inner {
    padding-inline: 24px;
    gap: 12px;
  }
  .brand,
  .brand img {
    width: 140px;
    height: auto;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
  }
  .mobile-nav > a,
  .menu > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .menu > summary {
    list-style: none;
  }
  .menu > summary::-webkit-details-marker {
    display: none;
  }
  .menu nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 16px 24px 24px;
    background: var(--rh-color-surface);
    border-bottom: 1px solid var(--rh-color-border);
    box-shadow: 0 16px 40px #0008;
  }
  .menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border-bottom: 1px solid #ffffff16;
  }
  .menu[open] > summary {
    color: var(--rh-color-accent);
  }
  .hero {
    padding-block: 24px;
  }
  .eyebrow {
    margin-bottom: 24px;
  }
  .intro {
    max-width: 320px;
  }
  .search-form input {
    font-size: 14px;
    padding: 16px 12px;
  }
  .search-form button {
    padding: 0 12px;
    font-size: 12px;
  }
  .search-form button span {
    display: none;
  }
  .section {
    padding-block: 24px;
  }
  .section-heading {
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .section-heading h1 {
    width: 100%;
  }
  .section-heading h2 {
    flex: 1;
    min-width: 0;
  }
  .season-form select {
    min-width: 128px;
    width: 100%;
  }
  .federations {
    padding-top: 8px;
  }
  .federation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .federation-card {
    min-height: 164px;
    padding: 24px;
  }
  .federation-card strong {
    font-size: 40px;
    line-height: 44px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card {
    padding: 24px;
  }
  .card h3 {
    font-size: 24px;
  }
  .competition-card {
    min-height: 108px;
  }
  .list-view .competition-card {
    display: block;
    min-height: 100px;
    padding-right: 24px;
  }
  .list-view .competition-card h3 {
    margin-bottom: 8px;
  }
  .filter-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--rh-color-surface);
    padding: 12px 16px;
    border-radius: 4px;
    min-height: 44px;
    cursor: pointer;
    font-size: 14px;
  }
  .filter-panel[open] summary {
    margin-bottom: 12px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filters label {
    min-width: 0;
  }
  .filters select {
    width: 100%;
    padding-left: 12px;
    font-size: 12px;
  }
  .filters .button {
    padding-inline: 12px;
  }
  .filter-panel:not([open]) > .filters {
    display: none;
  }
  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .view-controls {
    display: block;
    margin-top: 24px;
  }
  .view-controls > .season-form {
    margin-bottom: 16px;
    width: 160px;
  }
  .tabs {
    width: calc(100% + 8px);
    margin-bottom: 24px;
  }
  .tabs .button {
    min-width: 124px;
    padding-inline: 16px;
  }
  .compact-section {
    padding-top: 0;
  }
  .sort-controls {
    gap: 8px;
    flex-wrap: wrap;
  }
  .sort-controls label {
    font-size: 12px;
  }
  .sort-controls select {
    min-width: 140px;
    flex: 1;
  }
  .sort-controls .button {
    min-width: 60px;
    padding-inline: 12px;
  }
  .mobile-only {
    display: block;
  }
  .scroll-cue {
    font-size: 12px;
    color: var(--rh-color-muted);
    margin-bottom: 12px;
  }
  .scroll-cue a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    color: var(--rh-color-text);
  }
  .secondary-col {
    display: none;
  }
  .full-stats .secondary-col {
    display: table-cell;
  }
  .full-stats table {
    min-width: 720px;
  }
  .full-stats tbody th {
    position: sticky;
    left: 0;
    background: var(--rh-color-paper);
    z-index: 1;
  }
  .full-stats + .muted {
    margin-top: 12px;
  }
  td,
  th {
    padding: 8px 10px;
    font-size: 12px;
    height: 64px;
  }
  .stats-table th:nth-child(2) {
    width: auto;
  }
  .stats-table .team {
    gap: 4px;
  }
  .stats-table .team > span:last-child {
    font-size: 10px;
  }
  .crest-wrap,
  .crest {
    width: 24px;
    height: 24px;
  }
  .identity-hero {
    padding-block: 16px 24px;
  }
  .identity {
    gap: 24px;
    align-items: flex-start;
    flex-direction: column;
  }
  .identity h1 {
    font-size: 48px;
    line-height: 48px;
    overflow-wrap: normal;
    word-break: normal;
  }
  .identity .eyebrow {
    margin-bottom: 16px;
  }
  .team-hero {
    width: 96px;
  }
  .team-hero .crest-wrap,
  .team-hero .crest {
    width: 96px;
    height: 96px;
  }
  .team-medium {
    font-size: 28px;
    line-height: 32px;
    gap: 12px;
  }
  .team-medium .crest-wrap,
  .team-medium .crest {
    width: 56px;
    height: 56px;
  }
  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat span {
    font-size: 11px;
  }
  .stat strong {
    font-size: 40px;
    line-height: 44px;
  }
  .stat-value-with-percentage {
    column-gap: 6px;
  }
  .stat-value-with-percentage strong {
    font-size: clamp(28px, 8.5vw, 40px);
    line-height: 1.1;
  }
  .stat-percentage {
    font-size: 12px;
  }
  .match-pair {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .match-pair .team {
    font-size: 12px;
  }
  .match-pair .versus {
    display: none;
  }
  .match-date {
    font-size: 11px;
    color: var(--rh-color-paperMuted);
    margin-bottom: 4px;
  }
  .full-stats .match-pair {
    flex-direction: row;
    align-items: center;
  }
  .full-stats .match-date {
    display: none;
  }
  .scoreboard {
    gap: 12px;
    padding-top: 16px;
  }
  .score {
    font-size: 48px;
    line-height: 48px;
  }
  .team-scoreboard {
    font-size: 20px;
    line-height: 24px;
    gap: 12px;
  }
  .team-scoreboard .crest-wrap,
  .team-scoreboard .crest {
    width: 64px;
    height: 64px;
  }
  .result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    min-height: 88px;
  }
  .result-row > .result-context {
    grid-row: 2;
    grid-column: 1;
    font-size: 12px;
  }
  .result-row > span:last-child:not(.result-context) {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .result-section {
    margin-bottom: 32px;
  }
  .empty {
    padding: 24px;
  }
  .empty h2 {
    font-size: 28px;
    line-height: 32px;
  }
  .site-footer {
    padding-block: 24px;
  }
  .about .intro {
    max-width: none;
  }
  .card-arrow {
    display: none;
  }
}
@media (max-width: 359px) {
  .container,
  .nav-inner {
    padding-inline: 16px;
  }
  .brand,
  .brand img {
    width: 120px;
  }
  .mobile-nav {
    gap: 12px;
  }
  .federation-grid {
    gap: 16px;
  }
  .federation-card {
    padding: 16px;
  }
  .identity h1 {
    font-size: 44px;
    line-height: 44px;
  }
  .scoreboard {
    gap: 8px;
  }
  .team-scoreboard {
    font-size: 18px;
  }
  .team-scoreboard .crest-wrap,
  .team-scoreboard .crest {
    width: 56px;
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.search-shell {
  position: relative;
}
.suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: var(--rh-color-paper);
  color: var(--rh-color-paperText);
  border: 1px solid var(--rh-color-paperBorder);
  border-radius: 4px;
  box-shadow: 0 12px 32px #0005;
}
.suggestions[hidden],
.suggestions [hidden] {
  display: none;
}
.suggestions-loading {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rh-color-paperMuted);
  font-size: 14px;
}
.suggestions-spinner {
  width: 20px;
  height: 20px;
  flex: none;
  border: 2px solid var(--rh-color-paperBorder);
  border-top-color: var(--rh-color-paperText);
  border-radius: 50%;
  animation: suggestions-spin 0.7s linear infinite;
}
@keyframes suggestions-spin {
  to { transform: rotate(360deg); }
}
.suggestions [role="option"] {
  padding: 12px 16px;
  min-height: 64px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--rh-color-paperBorder);
}
.suggestions [role="option"]:hover,
.suggestions [aria-selected="true"] {
  background: #fff2d8;
}
.suggestions strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.suggestions span span {
  display: block;
  font-size: 12px;
  color: var(--rh-color-paperMuted);
}
.suggestions img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Identity headers use saved club colors with a neutral, no-JS fallback. */
.player-row-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.player-row-identity > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.result-row > .player-row-identity {
  flex: 1;
}
.player-portrait {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.player-portrait-mini {
  width: 32px;
  height: 32px;
}
.player-portrait .player-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-photo {
  z-index: 1;
}
.player-portrait .portrait-fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-portrait.image-missing .portrait-fallback {
  display: block;
}
.player-portrait.image-missing .player-photo {
  display: none;
}
.player-portrait-hero {
  width: 200px;
  height: 240px;
  background: transparent;
}
.player-page,
.club-page {
  --identity-team-color: #655e72;
}
.player-page main {
  background: var(--rh-color-canvas);
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--identity-team-color) 10%, var(--rh-color-canvas)),
    var(--rh-color-canvas) 720px);
}
.club-hero,
.player-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 48px;
  border-bottom: 2px solid var(--identity-team-color);
  background: var(--rh-color-surface);
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--identity-team-color) 35%, #101015),
    color-mix(in srgb, var(--identity-team-color) 8%, #050608));
}
.club-hero::after,
.player-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 8 8 / 70%),
    rgb(8 8 8 / 35%) 45%, transparent);
  pointer-events: none;
}
.club-hero > .container,
.player-hero > .container {
  position: relative;
  z-index: 2;
}
.identity-watermark {
  position: absolute;
  z-index: 0;
  top: -180px;
  left: calc(50% - 130px);
  width: 760px;
  height: 760px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
/* Filter definitions stay available to Safari without taking up layout space. */
.identity-filter-defs {
  position: absolute;
  pointer-events: none;
}
.identity-contour-color {
  flood-color: color-mix(in srgb, var(--identity-team-color) 65%, white);
}
.identity-watermark {
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.identity-watermark-artwork {
  opacity: 0.12;
}
.identity-watermark-outline {
  opacity: 0.5;
  /* Keep a crisp contour, including holes, without the filled silhouette. */
  filter: url(#identity-crest-contour);
}
.club-hero .crest,
.player-hero .crest {
  /* Follow the PNG artwork, including transparent holes, without a backdrop tile. */
  filter: drop-shadow(0.75px 0 0 #e7edf5)
    drop-shadow(-0.75px 0 0 #e7edf5)
    drop-shadow(0 0.75px 0 #e7edf5)
    drop-shadow(0 -0.75px 0 #e7edf5);
}
.club-hero .team-hero,
.club-hero .crest-wrap,
.club-hero .crest {
  width: 192px;
  height: 192px;
}
.club-hero .image-fallback {
  font-size: 40px;
}
.club-hero .identity h1 {
  font-size: clamp(48px, 6.7vw, 80px);
  overflow-wrap: anywhere;
}
.club-hero .breadcrumbs,
.player-hero .breadcrumbs {
  margin-bottom: 24px;
}
.player-identity {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}
.player-heading {
  min-width: 0;
}
.player-heading .eyebrow {
  margin-bottom: 16px;
}
.player-heading h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 5.4vw, 64px);
  line-height: 1.0625;
  overflow-wrap: anywhere;
}
.player-affiliation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 44px;
  margin-top: 12px;
  gap: 8px;
}
.player-affiliation strong {
  font: 700 36px/40px "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}
.player-biography {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--rh-color-muted);
}
.player-biography > span + span::before {
  content: "·";
  margin-right: 12px;
}
.profile-clubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  max-width: 176px;
}
.profile-clubs .team-hero,
.profile-clubs .crest-wrap,
.profile-clubs .crest {
  width: 136px;
  height: 136px;
}
.profile-clubs .image-fallback {
  font-size: 32px;
}
@media (max-width: 900px) {
  .player-identity {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
  }
  .player-portrait-hero {
    width: 160px;
    height: 160px;
  }
  .player-heading {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .profile-clubs {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .profile-clubs .team-hero,
  .profile-clubs .crest-wrap,
  .profile-clubs .crest {
    width: 104px;
    height: 104px;
  }
}
@media (max-width: 767px) {
  .club-hero,
  .player-hero {
    padding-block: 24px;
  }
  .club-hero .breadcrumbs,
  .player-hero .breadcrumbs {
    margin-bottom: 16px;
  }
  .player-identity {
    gap: 16px;
  }
  .player-heading h1 {
    max-width: 100%;
    font-size: 48px;
    line-height: 48px;
    overflow-wrap: anywhere;
  }
  .identity-watermark {
    width: 470px;
    height: 470px;
    top: 30px;
    left: calc(50% - 85px);
  }
  .club-hero .identity-watermark {
    top: -40px;
  }
  .identity-watermark-artwork {
    opacity: 0.1;
  }
  .club-hero .team-hero,
  .club-hero .crest-wrap,
  .club-hero .crest {
    width: 120px;
    height: 120px;
  }
  .club-hero .identity h1 {
    font-size: 48px;
    line-height: 48px;
  }
  .player-affiliation strong {
    font-size: 24px;
    line-height: 28px;
  }

}

@media (max-width: 360px) {
  .player-identity {
    grid-template-columns: 136px minmax(0, 1fr);
  }
  .player-portrait-hero {
    width: 136px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pagination p { margin: 0; }
.pagination .inline-actions { margin: 0; }

/* Player profile · Figma 11:32 / 90:539 / 17:273 / 92:456. */
.player-profile > .tabs { margin-bottom: 0; }
.player-profile > .career-overview { padding-bottom: 24px; }
.player-profile > .season-overview,
.player-profile > .career-detail { padding-top: 24px; }
.statistics-note { font-size: 14px; line-height: 22px; }
.season-overview .statistics-note { margin-bottom: 32px; }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--rh-color-accent);
  border-radius: 4px;
  background: var(--rh-color-surface);
  color: var(--rh-color-accent);
}
.rating-badge img, .rating-chart-heading img { flex-shrink: 0; }
.rating-badge strong { font: 700 24px/28px "Barlow Condensed", sans-serif; }
.rating-chart {
  padding: 24px;
  margin-bottom: 40px;
  background: var(--rh-color-surface);
  border-radius: 4px;
}
.rating-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rating-chart-heading strong { font: 700 36px/40px "Barlow Condensed", sans-serif; color: var(--rh-color-accent); }
.rating-chart > .muted { font-size: 14px; margin: 16px 0 24px; }
.rating-plot-scroll { overflow-x: auto; }
.rating-plot { position: relative; min-width: 540px; padding-left: 56px; padding-right: 12px; margin-top: 24px; }
.rating-graph { position: relative; }
.rating-graph > svg { display: block; overflow: visible; }
.rating-grid { stroke: var(--rh-color-border); stroke-opacity: .4; }
.rating-area { fill: var(--rh-color-accent); fill-opacity: .1; }
.rating-line { stroke: var(--rh-color-accent); stroke-width: 3; stroke-linejoin: round; fill: none; }
.rating-point { fill: var(--rh-color-accent); }
.rating-point.is-active { r: 6px; stroke: var(--rh-color-text); stroke-width: 2px; }
.rating-season-grid { stroke: var(--rh-color-border); stroke-dasharray: 3 5; }
.rating-season-axis { display: block; overflow: visible; fill: var(--rh-color-muted); font-size: 12px; }
.rating-tooltip { position: absolute; z-index: 2; pointer-events: none; width: max-content; max-width: 240px; padding: 10px 14px; border: 1px solid var(--rh-color-accent); border-radius: 4px; background: var(--rh-color-surface); color: var(--rh-color-text); box-shadow: 0 4px 16px #0005; font-size: 12px; }
.rating-tooltip strong { display: block; }
.rating-tooltip strong { color: var(--rh-color-accent); font-size: 20px; }
.career-table th, .career-table td { padding: 12px; }
.career-table tbody th { min-width: 210px; }
.career-table tbody th a { display: block; min-height: 0; padding-block: 3px; }
.career-club { font-weight: 700; }
.career-table .career-competition, .career-season { font-size: 12px; color: var(--rh-color-paperMuted); }
.career-stat-value { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.career-stat-value .stat-percentage { font-size: 12px; color: var(--rh-color-paperMuted); }
.career-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .rating-chart { padding: 24px; }
  .rating-chart-heading strong { font-size: 24px; line-height: 28px; }
  .rating-chart-heading { gap: 8px; }
  .rating-chart-heading img { width: 108px; height: 32px; }
  .career-table tbody th { min-width: 0; width: 65%; }
  .career-table:not(.full-stats) table { table-layout: fixed; }
  .career-table:not(.full-stats) thead th:nth-child(2) { width: 65%; }
  .career-table th, .career-table td { padding: 8px; overflow-wrap: anywhere; }
  .career-table .career-competition, .career-season { font-size: 11px; }
}


/* Club history and competition standings use the shared paper table surfaces. */
.rating-col { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.standings-table td { text-align: right; }
.standings-table th:not(:nth-child(2)) { text-align: right; white-space: nowrap; }
.standings-table th:nth-child(2) { width: 100%; min-width: 220px; }
.standings-table .team { min-width: 0; }
.standings-note, .rating-scope { font-size: 14px; }
.team-standing { margin: 32px 0 48px; }
.team-standing > .button { margin-top: 16px; }
.club-hero .rating-badge { display: flex; width: fit-content; }
.club-season-group { margin: 24px 0; }
.club-season-group h3 { margin-bottom: 12px; }
.club-history-row > a:first-child { flex: 1; min-width: 0; }
.club-history-row .result-context { flex: 1; }
.club-history-row a:hover, .club-player-row a:hover { text-decoration: underline; }
.entry-standing { margin: 4px 0 0; color: var(--rh-color-paperMuted); font-size: 14px; }
.club-player-search { display: flex; gap: 12px; margin: 24px 0; }
.club-player-search input { flex: 1; min-width: 0; }
.club-player-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 16px; background: var(--rh-color-paper); color: var(--rh-color-paperText); border-bottom: 1px solid var(--rh-color-paperBorder); }
.club-player-row > a { display: flex; align-items: flex-start; }
.club-player-row summary { cursor: pointer; min-height: 44px; align-content: center; }
.player-affiliation-season { padding-top: 16px; }
.player-affiliation-season h3 { font-size: 20px; }
.player-affiliation-season ul { padding-left: 20px; margin: 8px 0; }
.player-affiliation-season li { margin-top: 8px; }
@media (max-width: 700px) {
  .club-stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-player-row { grid-template-columns: 1fr; gap: 8px; }
  .club-history-row { flex-wrap: wrap; }
  .club-history-row .result-context { flex-basis: 100%; }
  .standings-table th:nth-child(2) { min-width: 140px; }
  .standings-table td, .standings-table th { padding-inline: 8px; }
}

@media (max-width: 700px) {
  .club-page .tabs, .competition-page .tabs { width: 100%; }
  .club-page .tabs .button, .competition-page .tabs .button { min-width: 0; flex: 1; padding-inline: 8px; }
  .stats-table .rating-col { white-space: normal; min-width: 62px; }
}

/* Global search sits between the brand and navigation; directory search is scoped. */
.nav-inner { gap: 24px; }
.desktop-nav { gap: 20px; flex-shrink: 0; margin-left: auto; }
.nav-search { flex: 1; max-width: 360px; min-width: 180px; margin-inline: auto; }
.nav-search .search-form { min-height: 44px; }
.nav-search input { padding: 10px 12px; }
.nav-search button { padding-inline: 12px; }
.nav-search button span { display: none; }
.nav-search .suggestions { width: max(100%, 360px); max-width: calc(100vw - 48px); }
.suggestions [role="option"]:hover { color: inherit; }
.player-teams { display: grid; gap: 8px; }
.team-history { align-items: center; }
.crest-stack { display: inline-flex; flex-shrink: 0; align-items: center; isolation: isolate; }
.crest-stack .crest-wrap { margin-left: -16px; opacity: .4; z-index: 1; background: var(--rh-color-paper); border-radius: 50%; }
.crest-stack .crest-wrap:first-child { margin-left: 0; opacity: 1; z-index: 2; }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; margin-left: auto; }
  .menu > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; top: 80px; right: 24px; z-index: 20; width: min(320px, calc(100vw - 48px)); padding: 16px 24px; background: var(--rh-color-surface); box-shadow: 0 16px 40px #0008; }
  .menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
}
@media (max-width: 767px) {
  .site-header { height: 80px; }
  .nav-inner { gap: 12px; padding-inline: 16px; }
  .brand, .brand img { width: 96px; }
  .nav-search { min-width: 0; }
  .nav-search input { font-size: 16px; padding-inline: 8px; width: 100%; }
  .nav-search button { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .nav-search button:focus-visible { position: static; width: auto; height: auto; clip-path: none; }
  .nav-search .suggestions { position: fixed; top: 72px; left: 16px; right: 16px; width: auto; max-width: none; max-height: min(400px, 60vh); }
  .menu nav { left: auto; right: 16px; }
}

/* Match detail — Figma 11:37 (desktop), 17:277 (mobile). */
.match-page .match-hero { padding-block: 32px 24px; }
.match-page .match-hero .eyebrow { margin-top: 0; min-height: 0; }
.match-rosters h2, .match-timeline h2 { margin-bottom: 16px; }
.roster-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--rh-color-muted); font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.roster-legend > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.roster-legend img, .starter-star { width: 14px; height: 14px; flex: 0 0 14px; }
.match-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.match-roster { min-width: 0; }
.match-roster h3 { margin: 0; min-height: 48px; display: flex; align-items: center; }
.match-roster h3 .team { font: 700 24px/28px "Barlow Condensed", sans-serif; }
.roster-position + .roster-position { margin-top: 8px; }
.match-roster-table { table-layout: fixed; font-size: 14px; line-height: 16px; }
.match-roster-table .roster-number { width: 32px; }
.match-roster-table .roster-goals { width: 30px; }
.match-roster-table .roster-attempts { width: 56px; }
.match-roster-table .roster-card { width: 24px; }
.match-roster-table th, .match-roster-table td { padding: 4px 2px; height: 44px; text-align: center; }
.match-roster-table th:nth-child(2) { text-align: left; }
.match-roster-table thead th { height: 32px; text-transform: none; font-size: 12px; font-weight: 700; color: var(--rh-color-paperMuted); }
.match-roster-table td:first-child { font-size: 12px; font-weight: 700; color: var(--rh-color-paperMuted); }
.match-roster-player { width: 100%; gap: 8px; }
.match-roster-table .match-roster-player { min-height: 35px; }
.match-player-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.match-roster-player .player-portrait { flex: 0 0 28px; width: 28px; height: 28px; }
.match-roster-player .player-photo { width: 28px; height: 28px; }
.match-card { display: inline-block; width: 11px; height: 16px; border-radius: 2px; vertical-align: middle; }
.match-card-yellow { background: #f4c542; }
.match-card-blue { background: #287bde; }
.match-card-red { background: #d9364f; }
.match-timeline { margin-top: 16px; padding-bottom: 48px; }
.timeline-teams { display: flex; justify-content: space-between; gap: 24px; color: var(--rh-color-muted); text-transform: uppercase; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.timeline-teams > span { max-width: 45%; }
.timeline-teams > span:last-child { text-align: right; }
.timeline-period + .timeline-period { margin-top: 24px; }
.timeline-period-title { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; color: var(--rh-color-accent); font: 700 12px/16px "DM Sans", sans-serif; }
.timeline-period-title::after { content: ""; height: 1px; background: var(--rh-color-border); flex: 1; }
.timeline-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.timeline-event { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.event-clock { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--rh-color-muted); font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-clock::before, .event-clock::after { content: ""; width: 1px; height: 8px; background: var(--rh-color-border); }
.event-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 8px; padding: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 4px; background: var(--rh-color-surface); width: calc(100% - 24px); grid-row: 1; }
.timeline-event-home .event-card { grid-column: 1; justify-self: end; text-align: right; }
.timeline-event-away .event-card { grid-column: 3; grid-template-columns: 20px minmax(0, 1fr) 28px; }
.event-actor-image { grid-column: 1; grid-row: 1; justify-self: start; }
.event-content { grid-column: 2; grid-row: 1; min-width: 0; font-size: 14px; line-height: 18px; overflow-wrap: anywhere; }
.event-symbol { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.event-symbol img { max-width: 20px; max-height: 20px; }
.event-action, .event-recipient { display: block; }
.event-recipient { color: var(--rh-color-muted); }
.event-recipient:hover { text-decoration: underline; }
.event-actor-image .player-portrait, .event-actor-image .player-photo, .event-actor-image .crest-wrap, .event-actor-image .crest { width: 28px; height: 28px; }
.event-tone-goal { border-color: var(--rh-color-accent); }
.event-tone-goal .event-action { color: var(--rh-color-accent); }
.event-tone-missed .event-action { color: var(--rh-color-error); }
.timeline-event-away .event-symbol { grid-column: 1; }
.timeline-event-away .event-actor-image { grid-column: 3; }
.timeline-event-neutral .event-clock { grid-row: 1; }
.timeline-event-neutral .event-card { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(496px, 100%); }
.match-empty { padding: 16px; background: var(--rh-color-surface); border-radius: 4px; }
@media (max-width: 1000px) {
  .match-roster-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .container.match-page { padding-inline: 16px; }
  .match-page .match-hero { padding-block: 24px; }
  .roster-legend { font-size: 12px; line-height: 16px; gap: 8px 12px; }
  .match-roster-table { font-size: 12px; line-height: 14px; }
  .match-roster-table .roster-number { width: 22px; }
  .match-roster-table .roster-goals { width: 24px; }
  .match-roster-table .roster-attempts { width: 44px; }
  .match-roster-table .roster-card { width: 18px; }
  .match-roster-table td, .match-roster-table tbody th { height: 48px; padding: 3px 1px; }
  .match-roster-table thead th { font-size: 10px; }
  .match-roster-table td:first-child { font-size: 10px; }
  .match-roster-player { gap: 4px; }
  .match-roster-player .player-portrait { flex-basis: 24px; width: 24px; height: 24px; }
  .match-roster-player .player-photo { width: 24px; height: 24px; }
  .timeline-event { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
  .event-clock { font-size: 10px; }
  .event-card { width: 100%; padding: 4px; gap: 4px; grid-template-columns: 1fr 1fr; }
  .timeline-event-away .event-card { grid-template-columns: 1fr 1fr; }
  .event-content { grid-column: 1 / -1; grid-row: 2; font-size: 12px; line-height: 14px; }
  .event-symbol { grid-column: 2; justify-self: end; width: 16px; height: 20px; }
  .event-symbol img { max-width: 16px; max-height: 16px; }
  .timeline-event-away .event-symbol { grid-column: 1; justify-self: start; }
  .timeline-event-away .event-actor-image { grid-column: 2; justify-self: end; }
  .event-actor-image .player-portrait, .event-actor-image .player-photo, .event-actor-image .crest-wrap, .event-actor-image .crest { width: 20px; height: 20px; }
}

/* Give the action and changing score separate, readable spaces. */
.event-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.timeline-event-home .event-heading { justify-content: flex-end; }
.event-score { display: inline-block; padding: 2px 7px; border: 1px solid var(--rh-color-accent); border-radius: 4px; color: var(--rh-color-accent); font: 700 24px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-foul-count { display: inline-block; margin-inline-start: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-foul-milestone { border-color: var(--rh-color-accent); }
.event-foul-milestone .event-action { color: var(--rh-color-accent); }
.event-milestone-label { display: block; color: var(--rh-color-muted); font-size: 12px; }
@media (max-width: 600px) {
  .event-card { gap: 6px; padding: 6px; }
  .event-actor-image .player-portrait, .event-actor-image .player-photo { width: 40px; height: 40px; }
  .event-actor-image .crest-wrap, .event-actor-image .crest { width: 28px; height: 28px; }
  .event-symbol { width: 20px; height: 24px; }
  .event-symbol img { max-width: 20px; max-height: 20px; }
  .event-content { line-height: 16px; }
  .event-score { font-size: 22px; }
}

/* Stored fixture calendars and Head 2 Head */
.log-filters { display:flex; gap:12px; margin:20px 0; }
.log-filters label { flex:1; min-width:0; }
.log-filters select { width:100%; background:var(--rh-color-surface); color:var(--rh-color-text); border:1px solid var(--rh-color-border); border-radius:4px; padding:12px; }
.fixture-groups { display:grid; gap:12px; }
.fixture-group summary { display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--rh-color-surface); padding:16px; cursor:pointer; }
.fixture-group summary strong { display:block; font:700 24px/1.1 "Barlow Condensed",sans-serif; text-transform:uppercase; }
.fixture-group summary small { display:block; color:var(--rh-color-muted); font-size:12px; margin-top:6px; }
.fixture-rest { display:flex; justify-content:space-between; gap:16px; padding:20px 16px; border:1px dashed var(--rh-color-border); }
.match-cards { display:grid; gap:12px; }
.fixture-group .match-cards { padding-top:12px; }
.encounter-card { display:flex; flex-direction:column; gap:8px; background:#fff; color:var(--rh-color-canvas); border-radius:4px; padding:16px; text-decoration:none; }
.encounter-card:hover { background:#f5efdf; }
.encounter-card small { color:var(--rh-color-paperMuted); font-size:12px; }
.encounter-body { display:flex; align-items:center; gap:16px; justify-content:space-between; }
.encounter-body > strong { font:700 28px/1 "Barlow Condensed",sans-serif; flex-shrink:0; }
.encounter-teams { display:grid; gap:6px; min-width:0; }
.encounter-team { display:flex; align-items:center; gap:6px; min-width:0; }
.encounter-team .team { gap:6px; font-size:12px; }
.encounter-team .crest-wrap { width:36px; height:36px; flex:0 0 36px; }
.encounter-team .crest { width:36px; height:36px; }
.h2h-page { max-width:none; padding:24px 0 48px; }
.h2h-page > :not(.h2h-identities):not(.h2h-picker-backdrop) { width:calc(100% - 48px); max-width:1152px; margin-inline:auto; }
.h2h-page h1 { font-size:56px; line-height:60px; text-transform:uppercase; margin:0 0 24px; }
.h2h-identities { display:grid; grid-template-columns:1fr 1fr; position:relative; overflow:hidden; margin-bottom:24px; }
.h2h-slot { position:relative; padding:52px 0 0; min-width:0; --identity-team-color:var(--rh-color-teamBlue); }
.h2h-entity { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:0; padding:0; height:100%; text-align:center; color:var(--rh-color-text); text-decoration:none; min-width:0; }
.h2h-left { background:linear-gradient(90deg,var(--identity-team-color),transparent); }
.h2h-right { background:linear-gradient(270deg,var(--identity-team-color),transparent); }
.h2h-name { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; width:100%; min-height:48px; padding:4px 8px; background:var(--rh-color-paper); color:var(--rh-color-paperText); font-size:14px; line-height:20px; font-weight:500; text-transform:uppercase; min-width:0; }
.h2h-name > span { width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.h2h-right .h2h-name { border-left:1px solid var(--rh-color-paperBorder); }
.h2h-has-crest.h2h-left .h2h-name { padding-left:96px; }
.h2h-has-crest.h2h-right .h2h-name { padding-right:96px; }
.h2h-logo-background { position:absolute; top:0; left:0; right:0; height:212px; overflow:hidden; pointer-events:none; }
.h2h-logo-background .identity-watermark { top:-80px; left:calc(50% - 210px); width:420px; max-width:none; height:420px; opacity:.28; mask-image:none; }
.h2h-vs { position:absolute; z-index:2; top:128px; left:50%; transform:translateX(-50%); border-radius:28px; width:56px; text-align:center; background:var(--rh-color-canvas); color:var(--rh-color-accent); font:700 40px/44px "Barlow Condensed",sans-serif; }
.h2h-image { display:inline-flex; width:32px; height:32px; flex:0 0 32px; }
.h2h-image .team > span:last-child { display:none; }
.h2h-image .team, .h2h-image .crest-wrap, .h2h-image .crest { width:100%; height:100%; }
.h2h-image-large { width:160px; height:160px; flex-basis:160px; }
.h2h-image-large .player-portrait, .h2h-image-large .player-photo { width:100%; height:100%; object-fit:contain; object-position:center bottom; }
.h2h-image-large .crest-wrap { flex-basis:160px; }
.h2h-image svg { width:100%; height:100%; fill:none; stroke:var(--rh-color-border); stroke-width:2px; }
.h2h-summary { display:flex; gap:8px; margin-bottom:24px; }
.h2h-summary > div { flex:1; background:var(--rh-color-surface); padding:16px; border-radius:4px; }
.h2h-summary strong { display:block; font:700 40px/1.1 "Barlow Condensed",sans-serif; }
.h2h-summary small { display:block; color:var(--rh-color-muted); font-size:10px; font-weight:700; text-transform:uppercase; margin-top:8px; }
.h2h-comparisons { display:grid; grid-template-columns:1fr; gap:28px; align-items:start; }
.h2h-metrics { padding:24px; background:var(--rh-color-surface); border-radius:4px; display:grid; gap:16px; }
.h2h-metrics h2 { font-size:28px; line-height:1.1; margin:0; text-transform:uppercase; }
.h2h-metrics:nth-child(2) { grid-column:auto; grid-row:auto; }
.h2h-legend { display:grid; grid-template-columns:1fr 1fr; gap:16px; font-size:12px; }
.h2h-legend span:first-child { color:var(--rh-color-accent); }
.h2h-legend span:last-child { color:var(--rh-color-comparisonB); text-align:right; }
.h2h-metric { display:grid; gap:8px; }
.h2h-metric-values { display:grid; grid-template-columns:52px 1fr 52px; gap:12px; align-items:center; }
.h2h-metric-values strong { font:700 24px/28px "Barlow Condensed",sans-serif; }
.h2h-metric-values strong:last-child { text-align:right; }
.h2h-metric-values > span { display:flex; align-items:center; justify-content:center; gap:8px; text-align:center; font-size:14px; }
.h2h-bars { width:100%; height:12px; }
.h2h-bar-a { fill:var(--rh-color-accent); }
.h2h-bar-b { fill:var(--rh-color-comparisonB); }
.h2h-bars path { stroke:var(--rh-color-muted); opacity:.45; }
.h2h-missing { width:20px; height:20px; fill:none; stroke:var(--rh-color-border); vertical-align:middle; }
.h2h-card { width:12px; height:18px; display:inline-block; border-radius:2px; flex-shrink:0; }
.h2h-card-blue { background:#359af0; }
.h2h-card-yellow { background:#ffdc4c; }
.h2h-card-red { background:#f15167; }
.h2h-encounters { margin-top:32px; }
.h2h-encounters h2 { text-transform:uppercase; }
.h2h-encounters .match-cards { grid-template-columns:1fr; }
.h2h-empty { display:grid; place-items:center; min-height:160px; padding:24px; }
.h2h-empty svg { width:200px; fill:none; stroke:var(--rh-color-border); stroke-width:1.5px; }
.h2h-picker-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:#000b; }
.h2h-dismiss { position:absolute; inset:0; }
.h2h-picker { position:relative; display:flex; flex-direction:column; gap:20px; width:min(560px,calc(100vw - 32px)); height:564px; max-height:calc(100vh - 32px); padding:24px; background:var(--rh-color-surface); border:1px solid var(--rh-color-border); border-radius:16px; }
.h2h-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.h2h-picker-heading h2 { font-size:28px; line-height:1.1; margin:0; }
.h2h-close { color:var(--rh-color-text); text-decoration:none; font-size:32px; line-height:1; }
.h2h-search-input { display:flex; background:white; border-radius:4px; overflow:hidden; }
.h2h-search-input input { flex:1; min-width:0; color:var(--rh-color-canvas); background:white; border:0; padding:14px; font:16px "DM Sans",sans-serif; }
.h2h-search-input button { border:0; padding:0 16px; background:white; color:var(--rh-color-paperMuted); font-size:24px; cursor:pointer; }
.h2h-search-scope { display:flex; gap:8px; padding:0; border:0; margin:16px 0 0; }
.h2h-search-scope input { position:absolute; opacity:0; }
.h2h-search-scope span { display:block; border:1px solid var(--rh-color-border); border-radius:4px; padding:8px 20px; font-size:12px; cursor:pointer; }
.h2h-search-scope input:checked + span { background:var(--rh-color-accent); color:var(--rh-color-canvas); border-color:var(--rh-color-accent); }
.h2h-search-scope input:focus-visible + span { outline:2px solid white; outline-offset:3px; }
.h2h-search-results { overflow-y:auto; flex:1; min-height:0; overscroll-behavior:contain; }
.h2h-search-result { display:flex; align-items:center; gap:16px; padding:12px 0; color:var(--rh-color-text); text-decoration:none; }
.h2h-search-result .h2h-image { width:52px; height:52px; flex-basis:52px; }
.h2h-search-result .player-portrait, .h2h-search-result .player-photo { width:52px; height:52px; object-fit:contain; }
.h2h-search-result strong { font-size:14px; font-weight:500; }
.h2h-search-result small { display:block; color:var(--rh-color-muted); margin-top:4px; font-size:12px; }
.h2h-search-result:focus, .h2h-search-result:hover { background:#252035; outline-offset:-2px; }

.h2h-shuffle { position:absolute; z-index:2; top:8px; left:24px; width:44px; height:44px; padding:10px; border:0; border-radius:50%; background:var(--rh-color-canvas); align-items:center; justify-content:center; }
.h2h-right .h2h-shuffle { left:auto; right:24px; }
.h2h-shuffle:disabled { cursor:wait; opacity:1; }
.js-only { display:none; }
.js .js-only { display:inline-flex; }
.h2h-current-crest { position:absolute; z-index:2; top:180px; left:24px; width:64px; height:64px; pointer-events:none; }
.h2h-right .h2h-current-crest { left:auto; right:24px; }
.h2h-current-crest .team > span:last-child { display:none; }
.h2h-current-crest .team, .h2h-current-crest .crest-wrap, .h2h-current-crest .crest { width:100%; height:100%; }
.h2h-current-crest .crest-wrap { flex-basis:64px; }
.h2h-shuffle-notice { color:var(--rh-color-muted); text-align:center; }
.h2h-shuffle-notice:empty { display:none; }
.h2h-slot.is-shuffling .h2h-entity { animation:h2h-roll 700ms ease-in-out infinite; }
.h2h-slot.is-shuffling .h2h-shuffle img { animation:h2h-spin 700ms ease-in-out infinite; }
.h2h-slot.is-revealing .h2h-entity { animation:h2h-reveal 180ms ease-in-out both; }
@keyframes h2h-roll { 0% { opacity:1; translate:0 0; } 20% { opacity:.25; translate:0 -8px; } 50% { opacity:.55; translate:0 8px; } 80% { opacity:.25; translate:0 -8px; } 100% { opacity:.25; translate:0 8px; } }
@keyframes h2h-spin { to { rotate:360deg; } }
@keyframes h2h-reveal { from { opacity:.25; translate:0 8px; } to { opacity:1; translate:0 0; } }
@media (prefers-reduced-motion:reduce) { .h2h-slot.is-shuffling .h2h-entity, .h2h-slot.is-shuffling .h2h-shuffle img, .h2h-slot.is-revealing .h2h-entity { animation:none; } }
.h2h-empty p { color:var(--rh-color-muted); text-align:center; margin:8px 0 0; font-size:14px; }
.h2h-clear-selection { display:block; min-height:44px; padding:12px; background:var(--rh-color-surface); border-radius:4px; text-align:center; font-size:14px; line-height:20px; font-weight:500; }

@media(max-width:767px) {
  .h2h-page { padding-top:24px; }
  .h2h-page h1 { font-size:48px; line-height:1; }
  .h2h-image-large { width:132px; height:132px; flex-basis:132px; max-width:100%; }
  .h2h-image-large .crest-wrap { flex-basis:132px; }
  .h2h-current-crest { top:164px; left:16px; width:40px; height:40px; }
  .h2h-right .h2h-current-crest { right:16px; }
  .h2h-current-crest .crest-wrap { flex-basis:40px; }
  .h2h-name { padding:8px; font-size:12px; line-height:16px; }
  .h2h-has-crest.h2h-left .h2h-name { padding-left:64px; }
  .h2h-has-crest.h2h-right .h2h-name { padding-right:64px; }
  .h2h-logo-background { height:184px; }
  .h2h-logo-background .identity-watermark { top:-24px; left:calc(50% - 120px); width:240px; height:240px; }
  .h2h-vs { top:108px; width:28px; border-radius:14px; font-size:24px; line-height:28px; }
  .h2h-comparisons, .h2h-encounters .match-cards { grid-template-columns:1fr; }
  .h2h-metrics { padding:16px; }
  .h2h-metrics:nth-child(2) { grid-column:auto; grid-row:auto; }
  .h2h-metrics h2 { font-size:24px; }
  .h2h-picker { position:absolute; top:var(--picker-top,12px); left:0; width:100%; height:var(--picker-height,438px); max-height:none; padding:24px; }
  .h2h-picker::before { content:""; position:absolute; top:8px; left:calc(50% - 20px); width:40px; height:4px; background:var(--rh-color-muted); border-radius:4px; }
  .log-filters { gap:12px; }
  .log-filters label:first-child { flex:.7; }
  .log-filters select { font-size:12px; }
}
.fixture-rows { display:grid; gap:12px; padding-top:12px; }
.fixture-rows .match-cards { padding-top:0; }
.fixture-rest small { display:block; color:var(--rh-color-muted); margin-bottom:4px; }
@media(min-width:768px) {
  .h2h-page .log-filters { max-width:764px; }
  .h2h-page .log-filters label:first-child { flex:.5; }
}

/* Calendar subscriptions share the existing header typography and controls. */
.identity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.identity-hero .identity-toolbar .breadcrumbs { margin: 0; min-width: 0; }
.calendar-follow { flex: 0 0 auto; }
.calendar-follow[data-calendar-ready] .js-only { display: inline-flex; }
.calendar-follow-trigger {
  anchor-name: --calendar-follow;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--rh-color-accent) 45%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--rh-color-accent) 6%, var(--rh-color-surface));
  color: var(--rh-color-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.calendar-follow-trigger > svg:first-child { color: var(--rh-color-accent); }
.calendar-trigger-chevron { width: 14px; color: var(--rh-color-muted); }
.calendar-follow-trigger:hover,
.calendar-follow:has(:popover-open) .calendar-follow-trigger {
  border-color: var(--rh-color-accent);
  background: color-mix(in srgb, var(--rh-color-accent) 12%, var(--rh-color-surface));
}
.calendar-follow:has(:popover-open) .calendar-trigger-chevron { transform: rotate(180deg); }
.calendar-follow-panel {
  position: fixed;
  inset: 80px 16px auto auto;
  visibility: hidden;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 96px);
  margin: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid color-mix(in srgb, var(--rh-color-accent) 28%, var(--rh-color-border));
  border-radius: 10px;
  background: var(--rh-color-canvas);
  color: var(--rh-color-text);
  box-shadow: 0 20px 64px rgb(0 0 0 / 55%);
}
.calendar-follow-panel[data-calendar-positioned] { visibility: visible; }
@supports (position-area: bottom span-left) and (position-anchor: --calendar-follow) {
  .calendar-follow-panel {
    position-anchor: --calendar-follow;
    position-area: bottom span-left;
    inset: 10px 0 16px 16px;
    justify-self: end;
    max-width: calc(100% - 16px);
    max-height: calc(100% - 26px);
    visibility: visible;
  }
}
.calendar-panel-heading { display: flex; justify-content: space-between; gap: 16px; }
.calendar-panel-heading > div { min-width: 0; }
.calendar-panel-heading h2 { margin: 0 0 4px; font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.calendar-entity-name { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.calendar-panel-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--rh-color-surface);
  color: var(--rh-color-muted);
}
.calendar-panel-close:hover { color: var(--rh-color-text); }
.calendar-follow-intro { margin: 10px 0 20px; font-size: 13px; color: var(--rh-color-muted); }
.calendar-range { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.calendar-range legend { margin-bottom: 8px; color: var(--rh-color-muted); font-size: 12px; }
.calendar-range-options { display: flex; gap: 4px; padding: 4px; border-radius: 6px; background: var(--rh-color-surface); }
.calendar-range-options label { flex: 1; min-width: 0; cursor: pointer; }
.calendar-range-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calendar-range-options span { display: block; padding: 9px 6px; border-radius: 3px; text-align: center; font-size: 13px; font-weight: 600; }
.calendar-range-options input:checked + span { background: var(--rh-color-accent); color: var(--rh-color-onAccent); }
.calendar-range-options input:focus-visible + span { outline: 2px solid var(--rh-color-focus); outline-offset: 3px; }
.calendar-follow-panel:has(.calendar-range input[value="current"]:checked) [data-calendar-scope="all"],
.calendar-follow-panel:has(.calendar-range input[value="all"]:checked) [data-calendar-scope="current"] { display: none; }
.calendar-competition { margin: 0 0 14px; color: var(--rh-color-accent); font: 600 12px/1.5 "DM Sans", sans-serif; }
.calendar-follow-providers { display: grid; gap: 8px; }
.calendar-provider {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--rh-color-border);
  border-radius: 6px;
  background: var(--rh-color-surface);
}
.calendar-provider:hover { border-color: var(--rh-color-accent); }
.calendar-provider strong { display: block; font-size: 14px; font-weight: 600; }
.calendar-provider small { display: block; margin-top: 2px; color: var(--rh-color-muted); font-size: 12px; }
.calendar-provider > svg { color: var(--rh-color-muted); }
.calendar-provider-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--rh-color-canvas); color: var(--rh-color-accent); font-size: 20px; font-weight: 700; }
.calendar-feed-label { display: block; margin: 18px 0 8px; color: var(--rh-color-muted); font-size: 12px; }
.calendar-follow-copy { display: flex; gap: 6px; }
.calendar-follow-copy input { min-width: 0; width: 100%; height: 42px; padding: 10px; border: 1px solid var(--rh-color-border); border-radius: 4px; background: var(--rh-color-surface); color: var(--rh-color-muted); font: inherit; font-size: 12px; }
.calendar-copy-button { align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 8px 10px; border-radius: 4px; background: var(--rh-color-accent); color: var(--rh-color-onAccent); white-space: nowrap; font-size: 12px; font-weight: 600; }
.calendar-copy-button svg { width: 14px; height: 14px; }
.calendar-google-help { margin-top: 12px; font-size: 12px; }
.calendar-google-help summary { display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 32px; color: var(--rh-color-muted); cursor: pointer; list-style: none; }
.calendar-google-help summary::-webkit-details-marker { display: none; }
.calendar-google-help summary svg { width: 12px; }
.calendar-google-help[open] summary svg { transform: rotate(180deg); }
.calendar-google-help p { margin: 6px 0 0; line-height: 1.6; }
.calendar-google-help a { color: var(--rh-color-accent); text-decoration: underline; text-underline-offset: 3px; }
.calendar-follow-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rh-color-border); color: var(--rh-color-muted); font-size: 11px; line-height: 1.6; }
.calendar-follow-note svg { display: inline; width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; color: var(--rh-color-accent); }
.calendar-follow-note + .calendar-follow-note { margin-top: 8px; padding: 0; border: 0; }
@media (max-width: 600px) {
  .identity-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
  .identity-toolbar .breadcrumbs { flex-basis: 100%; }
  .identity-toolbar .calendar-follow { margin-left: auto; }
  .calendar-follow-panel { padding: 18px; }
  .calendar-panel-close { width: 44px; height: 44px; flex-basis: 44px; }
}
