:root {
  --ink: #152033;
  --muted: #657087;
  --muted-soft: #8b94a6;
  --line: #dfe4ec;
  --line-soft: #edf0f5;
  --surface: #ffffff;
  --wash: #f6f8fb;
  --navy: #132d57;
  --blue: #214e8a;
  --red: #ae1c28;
  --orange: #f48b24;
  --green: #1e9c65;
  --shadow: 0 16px 40px rgba(21, 45, 80, .08);
  --sans: "Inter", Arial, sans-serif;
  --display: "Barlow Condensed", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body.home-page main#top,
body.home-page section[id] {
  scroll-margin-top: 76px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #f4f6fa;
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  color: inherit;
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.flagline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 4px;
}

.flagline span:nth-child(1) {
  background: var(--red);
}

.flagline span:nth-child(2) {
  background: #fff;
}

.flagline span:nth-child(3) {
  background: var(--navy);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 32px;
  padding: 8px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(223, 228, 236, .88);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.brand,
.brand-copy,
.header-actions,
.primary-nav,
.login-button,
.section-kicker,
.results-status,
.updated,
.board-tabs,
.board-tab,
.search-field,
.clear-button,
.table-meta,
.load-area,
.footer-brand,
.feralcode {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.brand-copy {
  align-items: flex-start;
  flex-direction: column;
}

.brand-copy strong,
.footer-brand strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: .92;
}

.brand-copy small,
.footer-brand small {
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.primary-nav {
  height: 68px;
  gap: 24px;
}

.primary-nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .22s ease;
}

.primary-nav a::after {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  content: "";
  transform: translateX(-50%);
  transition: width .22s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--navy);
}

.primary-nav a.active::after,
.primary-nav a:hover::after {
  width: 100%;
}

.header-actions {
  gap: 10px;
  margin-left: auto;
}

.mobile-menu-toggle {
  display: none;
}

.language-picker select {
  min-height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.language-picker select:hover,
.language-picker select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 78, 138, .09);
}

.login-button {
  min-height: 38px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.registration-link {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.registration-link:hover {
  color: var(--red);
}

.login-button:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.login-button svg,
.board-tab svg,
.clear-button svg,
.search-field svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-button em {
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  font-size: 8px;
  font-style: normal;
}

main {
  width: min(100%, 1540px);
  margin: 0 auto;
}

.event-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 150px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 64px) 25px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .22) 0 5%, transparent 5.2%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, .12) 0 8%, transparent 8.2%),
    linear-gradient(105deg, #132d57 0 61%, #214e8a 61% 100%);
  color: #fff;
}

.event-strip::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 77% 42%, rgba(255, 255, 255, .34), transparent 27%),
    linear-gradient(90deg, rgba(19, 45, 87, .95) 0 48%, rgba(19, 45, 87, .18) 76%, rgba(19, 45, 87, .68) 100%);
  content: "";
  opacity: .42;
  pointer-events: none;
}

.event-strip::after {
  position: absolute;
  top: -55px;
  right: 16%;
  z-index: 1;
  width: 170px;
  height: 280px;
  background: rgba(255, 255, 255, .95);
  content: "";
  opacity: .98;
  transform: rotate(18deg);
}

.hero-ribbons {
  position: absolute;
  z-index: 1;
  top: -65px;
  right: -32px;
  display: flex;
  gap: 13px;
  height: 300px;
  transform: rotate(18deg);
}

.hero-ribbons i {
  width: 52px;
  height: 100%;
  background: var(--red);
}

.hero-ribbons i:nth-child(2) {
  background: #fff;
}

.hero-ribbons i:nth-child(3) {
  background: #1d4f91;
}

.hero-dog {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: clamp(20px, 5.4vw, 92px);
  bottom: -28px;
  width: min(500px, 35vw);
  pointer-events: none;
  animation: heroDogFloat 7s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 84%, transparent 100%);
}

.hero-dog::before {
  position: absolute;
  inset: 10% -8% 0 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.82), rgba(255,255,255,.2) 46%, transparent 70%);
  content: "";
  filter: blur(10px);
  opacity: .58;
}

.hero-dog img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 108%;
  object-fit: contain;
  object-position: right center;
  opacity: .74;
  filter:
    drop-shadow(0 24px 38px rgba(3, 19, 42, .42))
    saturate(.95)
    contrast(1.08);
  mix-blend-mode: multiply;
}

.event-intro {
  position: relative;
  z-index: 3;
}

.hero-event {
  position: relative;
  z-index: 3;
  justify-self: end;
  width: min(330px, 100%);
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 45, 87, .96), rgba(29, 79, 145, .94));
  box-shadow: 0 18px 42px rgba(5, 22, 49, .22);
}

.hero-event span,
.hero-event strong,
.hero-event small {
  display: block;
}

.hero-event span {
  color: rgba(255,255,255,.78);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-event strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-event small {
  margin-top: 5px;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 11px;
  padding: 0 12px;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.hero-cta:hover {
  background: #f6dfe1;
  color: var(--red);
  transform: translateY(-1px);
}

.eyebrow,
.section-kicker {
  color: #b8cae5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.event-intro h1,
.results-heading h2,
.discipline-strip h2,
.team-ranking-head h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 800;
  letter-spacing: .03em;
  line-height: .95;
  text-transform: uppercase;
}

.event-intro h1 b {
  color: #f3a356;
  font-size: .54em;
  letter-spacing: .08em;
  vertical-align: top;
}

.event-intro p {
  max-width: 650px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  line-height: 1.55;
}

.results-shell {
  padding: 25px clamp(18px, 4vw, 64px) 30px;
}

.public-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 64px) 0;
}

.public-intro article {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(19, 45, 87, .055);
}

.public-intro h2,
.rules-section h2,
.contact-section h2 {
  margin: 6px 0 5px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 31px;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
}

.public-intro p,
.rules-section p,
.contact-section p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.next-event {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .98), rgba(247, 250, 254, .94)),
    #fff;
}

.next-event::after {
  position: absolute;
  top: -45px;
  right: 16px;
  width: 120px;
  height: 240px;
  background: linear-gradient(90deg, var(--red) 0 31%, #fff 31% 65%, var(--blue) 65% 100%);
  content: "";
  opacity: .12;
  transform: rotate(16deg);
}

.event-date {
  position: absolute;
  right: 23px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 6px;
  color: var(--navy);
}

.event-date strong {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: .03em;
  line-height: .8;
}

.event-date span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.archive-years button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.archive-years button:hover,
.archive-years button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.results-heading h2,
.discipline-strip h2,
.team-ranking-head h3 {
  color: var(--navy);
  font-size: 35px;
}

.section-kicker {
  gap: 7px;
  color: var(--muted-soft);
}

.section-kicker i {
  width: 24px;
  height: 2px;
  background: var(--red);
}

.results-status {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.updated {
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.updated i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 156, 101, .11);
  animation: pulse 2.2s ease infinite;
}

.updated time {
  color: var(--navy);
  font-weight: 700;
}

.score-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--surface);
}

.score-overview article {
  position: relative;
  overflow: hidden;
  min-height: 81px;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
}

.score-overview article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  content: "";
}

.score-overview article:nth-child(2)::before {
  background: #fff;
  box-shadow: 0 1px 0 #d9dfe8;
}

.score-overview article:nth-child(3)::before {
  background: var(--blue);
}

.score-overview article:first-child {
  border-left: 0;
}

.score-overview span,
.score-overview small {
  display: block;
}

.score-overview span {
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.score-overview strong {
  display: block;
  margin: 4px 0 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
}

.score-overview small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.board-tabs {
  gap: 3px;
  padding: 8px 9px 0;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.board-tab {
  position: relative;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .22s ease, background .22s ease;
}

.board-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .2s ease, transform .2s ease;
}

.board-tab:hover,
.board-tab.active {
  color: var(--navy);
}

.board-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) auto;
  gap: 9px;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.search-field {
  gap: 8px;
  min-height: 45px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 78, 138, .08);
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 7px;
}

.filter-grid.without-discipline {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

.filter-grid label {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.filter-grid span {
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.filter-grid select {
  max-width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}

.clear-button {
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.clear-button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.table-meta {
  justify-content: space-between;
  min-height: 35px;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.table-meta p {
  margin: 0;
}

.table-meta strong {
  color: var(--navy);
}

.sort-hint {
  color: var(--muted-soft);
}

.table-wrap {
  overflow-x: auto;
}

.dog-user-admin,
.dog-user-requests-panel,
.dog-user-links-panel {
  margin-bottom: 14px;
}

.dog-user-search,
.dog-user-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.dog-user-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.dog-user-picker section,
.dog-user-selected {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dog-user-picker h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dog-user-results {
  display: grid;
  gap: 6px;
}

.dog-user-result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dog-user-result.active,
.dog-user-result:hover {
  border-color: var(--blue);
  background: #eef5ff;
  transform: translateY(-1px);
}

.dog-user-result strong,
.dog-user-selected strong {
  color: var(--navy);
  font-weight: 850;
}

.dog-user-result small,
.dog-user-empty,
.dog-user-selected span {
  color: var(--muted);
  font-size: 12px;
}

.dog-user-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dog-user-link-form {
  grid-template-columns: minmax(0, 1.8fr) 220px auto;
  border-bottom: 1px solid var(--line);
}

.dog-user-request-table .row-actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button-ghost:hover {
  color: var(--red);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.results-table th {
  background: #fbfcfe;
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .115em;
  text-transform: uppercase;
}

.results-table th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sortable i {
  width: 0;
  height: 0;
  border-right: 3px solid transparent;
  border-bottom: 4px solid currentColor;
  border-left: 3px solid transparent;
  opacity: .35;
  transition: transform .18s ease, opacity .18s ease;
}

.sortable.active-sort {
  color: var(--navy);
}

.sortable.active-sort i {
  opacity: 1;
}

.sortable[aria-sort="descending"] i {
  transform: rotate(180deg);
}

.results-table td {
  color: var(--muted);
  font-size: 11px;
}

.results-table tr {
  animation: rowIn .35s both;
  transition: background .16s ease;
}

.results-table tbody tr:hover {
  background: #f5f8fd;
}

.dog-cell strong,
.result-value,
.points-value {
  color: var(--navy);
  font-weight: 700;
}

.dog-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-row-meta {
  display: none;
}

.dog-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease;
}

.dog-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.team-value {
  color: var(--ink);
  font-weight: 600;
}

.country-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag-img {
  width: 21px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(21, 32, 51, .1);
  border-radius: 1px;
  object-fit: cover;
  vertical-align: middle;
}

.mini-flag {
  width: 17px;
  height: 11px;
}

.discipline-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.discipline-value i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.points-value {
  display: inline-block;
  min-width: 50px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #eef3fa;
  text-align: right;
}

.team-view {
  min-height: 470px;
  padding: 17px;
  background:
    linear-gradient(135deg, rgba(33, 78, 138, .035) 25%, transparent 25%) 0 0 / 18px 18px,
    #edf2f8;
  animation: viewIn .28s both;
}

.team-ranking-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 13px;
}

.team-ranking-head h3 {
  font-size: 28px;
}

.team-ranking-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.team-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-rank,
.winner-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.team-rank {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #cfdae7;
  border-radius: 6px;
  background: rgba(255, 255, 255, .95);
  animation: rowIn .35s both;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.team-rank::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--blue);
  content: "";
  opacity: .35;
}

.team-rank:nth-child(3n + 1)::before {
  background: var(--red);
}

.team-rank:nth-child(3n + 2)::before {
  background: #f48b24;
}

.team-rank:hover {
  border-color: #9fb4cf;
  box-shadow: 0 7px 18px rgba(21, 45, 80, .1);
  transform: translateX(3px);
}

.rank-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 5px;
  background: #f0f4fa;
  color: var(--navy);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.rank-name strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .01em;
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: var(--navy);
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: .03em;
}

.rank-score small {
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.team-winner {
  position: relative;
  overflow: hidden;
  border: 1px solid #9eafc6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 15px 28px rgba(19, 45, 87, .14);
  animation: rowIn .32s both;
}

.winner-label {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background:
    linear-gradient(90deg, rgba(174, 28, 40, .98), rgba(139, 21, 33, .98)),
    var(--red);
  color: rgba(255, 255, 255, .86);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.winner-label b {
  color: rgba(255, 255, 255, .42);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .12em;
}

.winner-heading {
  min-height: 70px;
  padding: 11px 15px 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background:
    radial-gradient(circle at 82% -15%, rgba(255, 255, 255, .13), transparent 28%),
    linear-gradient(105deg, #102b54, #173f75);
}

.team-winner .rank-number {
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

.team-winner .rank-name strong,
.team-winner .rank-score strong {
  color: #fff;
}

.team-winner .rank-name small,
.team-winner .rank-score small {
  color: rgba(255, 255, 255, .62);
}

.winner-dogs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  background: #e8eef5;
}

.winner-dog {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid #cbd7e4;
  border-radius: 5px;
  background: #fff;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.winner-dog > img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  filter: saturate(.82) contrast(.95);
  transition: filter .2s ease, transform .2s ease;
}

.winner-dog-info {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 6px 7px;
  border-top: 2px solid var(--red);
  background: #fff;
  color: var(--navy);
  font-size: 10px;
}

.winner-dog-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-dog:hover {
  border-color: #9eb4ce;
  box-shadow: 0 7px 16px rgba(19, 45, 87, .14);
  transform: translateY(-3px);
}

.winner-dog:hover > img {
  filter: saturate(1.08) contrast(1);
  transform: scale(1.025);
}

.winner-dog-missing {
  display: grid;
  height: 128px;
  place-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 80% 22%, rgba(255,255,255,.72), transparent 28%),
    linear-gradient(135deg, #102b54 0 57%, #fff 57% 69%, #ae1c28 69% 75%, #1d4f91 75% 100%);
  color: #fff;
  text-align: center;
}

.winner-dog-missing b,
.winner-dog-missing small {
  display: block;
}

.winner-dog-missing b {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .05em;
  line-height: .9;
  text-transform: uppercase;
}

.winner-dog-missing small {
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dog-dialog {
  max-width: min(780px, calc(100vw - 24px));
  width: 100%;
  max-height: min(740px, calc(100vh - 24px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(9, 28, 57, .32);
}

.dog-dialog::backdrop {
  background: rgba(8, 26, 52, .62);
  backdrop-filter: blur(5px);
}

.dog-dialog-card {
  position: relative;
}

.dialog-close {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(19, 45, 87, .72);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  transition: background .18s ease, transform .18s ease;
}

.dialog-close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

.dialog-close-form {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 11px;
  margin: 0;
}

.dog-profile-head {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) auto;
  align-items: end;
  gap: 17px;
  min-height: 144px;
  padding: 18px 48px 18px 18px;
  background: linear-gradient(108deg, #102b54, #245895);
  color: #fff;
}

.dog-profile-head > img {
  width: 144px;
  height: 108px;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 5px;
  object-fit: cover;
}

.dog-profile-head h2 {
  margin: 5px 0 2px;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.dog-profile-head p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
}

.dog-profile-score {
  color: #fff;
  font-family: var(--display);
  font-size: 29px;
  letter-spacing: .04em;
  text-align: right;
}

.dog-profile-score small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .58);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dog-profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
}

.dog-profile-details span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.dog-profile-details .dog-profile-id {
  border-color: transparent;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.dog-profile-results {
  padding: 15px 16px 18px;
}

.dog-profile-results h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dog-profile-results table {
  width: 100%;
  border-collapse: collapse;
}

.dog-profile-results th,
.dog-profile-results td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.dog-profile-results th {
  color: var(--muted-soft);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dog-profile-results td:last-child {
  color: var(--navy);
  font-weight: 700;
}

.load-area {
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.load-area p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.load-button {
  padding: 7px 14px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.load-button:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.discipline-strip {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 25px clamp(18px, 4vw, 64px) 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.rules-section {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #f7f9fc;
}

.rules-link {
  display: inline-block;
  margin-top: 11px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rules-link:hover {
  color: var(--red);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rules-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.rules-grid strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 22px;
}

.rules-grid h3 {
  margin: 5px 0 4px;
  color: var(--navy);
  font-size: 12px;
}

.rules-grid p {
  font-size: 10px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.contact-section a {
  padding: 10px 12px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

/* Contact page */
.contact-page {
  width: min(1180px, 100%);
  padding: 24px clamp(18px, 4vw, 64px) 34px;
}

.contact-hero {
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(112deg, var(--navy), var(--blue));
  color: #fff;
}

.contact-hero h1 {
  margin: 5px 0 4px;
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: .04em;
  line-height: .92;
  text-transform: uppercase;
}

.contact-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.6;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.8fr);
  gap: 18px;
  margin-top: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.contact-card h2 { margin: 7px 0 0; color: var(--navy); font-family: var(--display); font-size: 31px; letter-spacing: .04em; text-transform: uppercase; }
.contact-card-links { display: grid; gap: 7px; }
.contact-card-links a { padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfe; transition: .18s ease; }
.contact-card-links a:hover { border-color: #9fb4cf; transform: translateX(3px); }
.contact-card-links span, .contact-card-links strong { display: block; }
.contact-card-links span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-card-links strong { margin-top: 4px; color: var(--blue); font-size: 12px; }

/* Rules page */
.rules-page {
  width: min(1180px, 100%);
  padding: 24px clamp(18px, 4vw, 64px) 34px;
}

.rules-hero {
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(112deg, var(--navy), var(--blue));
  color: #fff;
}

.rules-hero h1 {
  margin: 5px 0 4px;
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: .04em;
  line-height: .92;
  text-transform: uppercase;
}

.rules-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.6;
}

.rules-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0;
}

.rules-index a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.rule-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.rule-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.rule-card > span {
  color: var(--red);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
}

.rule-card h2 {
  margin: 1px 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rule-card ul {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.discipline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 7px;
}

.discipline-list span {
  position: relative;
  overflow: hidden;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(174, 28, 40, .06), transparent 58%),
    #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.discipline-list span:hover {
  border-color: rgba(174, 28, 40, .38);
  box-shadow: 0 10px 22px rgba(16, 45, 86, .08);
  transform: translateY(-2px);
}

footer {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: #0e2345;
  color: rgba(255, 255, 255, .58);
}

.footer-brand {
  gap: 9px;
}

.footer-brand img {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand span {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-brand strong {
  color: #fff;
  font-size: 20px;
}

.footer-brand small {
  color: rgba(255, 255, 255, .45);
}

footer p {
  margin: 0;
  font-size: 10px;
}

.feralcode {
  gap: 7px;
  margin-left: auto;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 4px;
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease;
}

.footer-links a:hover {
  border-color: rgba(255, 255, 255, .36);
  color: #fff;
}

/* v30: My EU Cup remains visible but is not an active public link. */
.footer-links .footer-disabled {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 4px;
  color: rgba(255, 255, 255, .36);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}
@media (max-width: 420px) {
  .footer-links .footer-disabled {
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
  }
}

.feralcode strong {
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .14em;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 13px;
  border-radius: 5px;
  background: #102b54;
  box-shadow: 0 16px 30px rgba(10, 31, 62, .24);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(30, 156, 101, 0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDogFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, -8px, 0) scale(1.018);
  }
}

@media (max-width: 1120px) {
  body.home-page .site-header {
    gap: 20px;
  }

  .event-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-event {
    justify-self: start;
    margin-top: 13px;
  }

  .public-intro,
  .rules-section {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 2.5fr);
  }

  .clear-button {
    grid-column: 1 / -1;
    min-height: 32px;
  }
}

@media (max-width: 820px) {
  body.home-page .site-header {
    flex-wrap: wrap;
    gap: 6px 15px;
    padding: 7px 15px 0;
  }

  .brand {
    margin-right: auto;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .login-button em {
    display: none;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    height: 38px;
    justify-content: space-between;
    gap: 10px;
  }

  .primary-nav a {
    height: 38px;
    font-size: 9px;
  }

  .event-strip {
    padding: 21px 16px 18px;
  }

  .results-shell {
    padding: 18px 12px 22px;
  }

  .score-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-overview article:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .filter-grid.without-discipline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clear-button {
    grid-column: auto;
  }

  .winner-dog > img {
    height: 110px;
  }

  .dog-profile-head {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .dog-profile-head > img {
    width: 112px;
    height: 92px;
  }

  .dog-profile-score {
    grid-column: 1 / -1;
    text-align: left;
  }

  .discipline-strip {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 19px 16px 21px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .rule-cards {
    grid-template-columns: 1fr;
  }

  footer {
    flex-wrap: wrap;
    gap: 8px 17px;
    padding: 14px 16px;
  }

  footer p {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  body.home-page .language-picker select {
    max-width: 94px;
  }

  .login-button {
    padding: 0 9px;
  }

  .login-button svg {
    display: none;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .results-status {
    justify-content: flex-start;
  }

  .registration-link {
    display: none;
  }

  .score-overview strong {
    font-size: 22px;
  }

  .board-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .board-tab {
    justify-content: center;
    padding: 0 5px;
    font-size: 8px;
  }

  .sort-hint {
    display: none;
  }

  .team-ranking-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .team-ranking-head p {
    text-align: left;
  }

  .winner-dogs {
    grid-template-columns: repeat(5, 124px);
    overflow-x: auto;
  }

  .winner-dog > img {
    height: 102px;
  }

  .team-rank,
  .winner-heading {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .rank-number {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .rank-score strong {
    font-size: 17px;
  }

  .rank-score small {
    display: none;
  }

  .filter-grid.without-discipline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dog-profile-head {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 16px 45px 15px 15px;
  }

  .dog-profile-head > img {
    width: 118px;
    height: 84px;
  }

  .feralcode {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background:
      linear-gradient(180deg, #f8fafc 0, #f3f6fa 260px, #f6f8fb 100%);
  }

  main#top,
  section[id] {
    scroll-margin-top: 66px;
  }

  body.home-page .site-header {
    position: sticky;
    flex-wrap: nowrap;
    min-height: 58px;
    gap: 8px;
    padding: 7px 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 7px;
    margin-left: auto;
  }

  body.home-page .language-picker select {
    min-height: 36px;
    max-width: 116px;
    padding-right: 24px;
    border-radius: 999px;
    background: #fbfcfe;
    font-size: 10px;
  }

  body.home-page .mobile-menu-toggle {
    display: flex;
    width: 38px;
    height: 36px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 10px;
    left: 10px;
    order: initial;
    display: grid;
    width: auto;
    height: auto;
    gap: 0;
    padding: 5px;
    border: 1px solid rgba(196, 207, 222, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 40px rgba(19, 45, 87, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .mobile-menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 10px;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a.active {
    background: #eef4fb;
    color: var(--navy);
  }

  .event-strip {
    display: block;
    min-height: 0;
    padding: 19px 14px 20px;
    border-radius: 0 0 24px 24px;
    background:
      radial-gradient(circle at 90% 18%, rgba(255,255,255,.18), transparent 24%),
      linear-gradient(145deg, #102b54 0 64%, #214e8a 64% 100%);
  }

  .event-strip::after {
    display: none;
  }

  .event-strip::before {
    background:
      radial-gradient(circle at 92% 26%, rgba(255,255,255,.2), transparent 25%),
      linear-gradient(90deg, rgba(16, 43, 84, .9) 0 52%, rgba(16, 43, 84, .42) 100%);
    opacity: .46;
  }

  .hero-dog {
    top: 28px;
    right: -92px;
    bottom: -8px;
    width: 260px;
    opacity: .48;
  }

  .hero-dog::before {
    inset: 15% 0 5% 22%;
    opacity: .46;
  }

  .hero-dog img {
    height: 94%;
    opacity: .68;
  }

  .hero-ribbons {
    top: -72px;
    right: -74px;
    opacity: .25;
  }

  .hero-ribbons i {
    width: 42px;
  }

  .event-intro h1 {
    max-width: 320px;
    font-size: 34px;
  }

  .event-intro p {
    max-width: 330px;
    margin-top: 8px;
    font-size: 11px;
  }

  .hero-event {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    box-shadow: none;
  }

  .results-shell {
    padding: 16px 10px 22px;
  }

  .results-heading {
    align-items: flex-start;
    gap: 6px;
  }

  .results-heading h2,
  .team-ranking-head h3,
  .discipline-strip h2,
  .rules-section h2 {
    font-size: 28px;
  }

  .section-kicker {
    gap: 6px;
    font-size: 8px;
    letter-spacing: .14em;
  }

  .section-kicker i {
    width: 18px;
  }

  .score-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .score-overview article,
  .score-overview article:nth-child(3) {
    min-height: 0;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    text-align: center;
  }

  .score-overview article::before {
    display: none;
  }

  .score-overview span {
    font-size: 7px;
    letter-spacing: .1em;
  }

  .score-overview strong {
    margin-top: 3px;
    font-size: 22px;
  }

  .score-overview small {
    display: none;
  }

  .board {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(19, 45, 87, .09);
  }

  .board-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 5px 5px 0;
    border-bottom-color: #e9edf4;
  }

  .board-tab {
    min-width: 0;
    min-height: 43px;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
    font-size: 8px;
    letter-spacing: .07em;
    line-height: 1.12;
    text-align: center;
  }

  .board-tab svg {
    width: 13px;
    height: 13px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px;
    background: #fff;
  }

  .search-field {
    min-height: 40px;
    border-radius: 999px;
    background: #f7f9fc;
  }

  .filter-grid,
  .filter-grid.without-discipline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 9px;
  }

  .filter-grid label {
    padding: 5px 1px 7px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .filter-grid select {
    font-size: 11px;
  }

  .clear-button {
    justify-content: flex-start;
    min-height: 28px;
    padding: 0 2px;
    border: 0;
    background: transparent;
  }

  .table-meta {
    min-height: 31px;
    padding: 0 10px;
  }

  .sort-hint {
    display: none;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .results-table {
    table-layout: fixed;
  }

  .results-table th,
  .results-table td {
    padding: 9px 8px;
    white-space: normal;
  }

  .results-table th {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .results-table td {
    font-size: 10px;
  }

  #totalsView th:nth-child(1),
  #totalsView td:nth-child(1) {
    width: 48%;
  }

  #totalsView th:nth-child(4),
  #totalsView td:nth-child(4) {
    width: 30%;
  }

  #totalsView th:nth-child(6),
  #totalsView td:nth-child(6) {
    width: 22%;
    text-align: right;
  }

  #totalsView th:nth-child(2),
  #totalsView td:nth-child(2),
  #totalsView th:nth-child(3),
  #totalsView td:nth-child(3),
  #totalsView th:nth-child(5),
  #totalsView td:nth-child(5) {
    display: none;
  }

  #disciplinesView th:nth-child(1),
  #disciplinesView td:nth-child(1) {
    width: 45%;
  }

  #disciplinesView th:nth-child(6),
  #disciplinesView td:nth-child(6) {
    width: 33%;
  }

  #disciplinesView th:nth-child(8),
  #disciplinesView td:nth-child(8) {
    width: 22%;
    text-align: right;
  }

  #disciplinesView th:nth-child(2),
  #disciplinesView td:nth-child(2),
  #disciplinesView th:nth-child(3),
  #disciplinesView td:nth-child(3),
  #disciplinesView th:nth-child(4),
  #disciplinesView td:nth-child(4),
  #disciplinesView th:nth-child(5),
  #disciplinesView td:nth-child(5),
  #disciplinesView th:nth-child(7),
  #disciplinesView td:nth-child(7) {
    display: none;
  }

  .dog-primary-cell {
    min-width: 0;
  }

  .dog-cell {
    display: block;
  }

  .dog-link {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-row-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.2;
  }

  .mobile-row-meta b,
  .mobile-row-meta em {
    min-width: 0;
    overflow: hidden;
    font-style: normal;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-row-meta em {
    color: var(--muted-soft);
    font-weight: 500;
  }

  .points-value {
    min-width: 0;
    padding: 0;
    background: transparent;
    font-size: 13px;
  }

  .team-view {
    min-height: 0;
    padding: 12px 10px;
    background:
      linear-gradient(180deg, #edf3f9, #f6f8fb);
  }

  .team-ranking-head {
    margin-bottom: 8px;
  }

  .team-ranking-head p {
    display: none;
  }

  .team-ranking-list {
    gap: 3px;
  }

  .team-winner {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(19, 45, 87, .12);
  }

  .winner-label {
    display: none;
  }

  .team-rank,
  .winner-heading {
    grid-template-columns: 33px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .winner-heading {
    min-height: 60px;
    padding: 10px;
    border-radius: 16px 16px 0 0;
  }

  .team-rank {
    min-height: 48px;
    padding: 7px 5px;
    border: 0;
    border-bottom: 1px solid #dfe7f1;
    border-radius: 0;
    background: transparent;
  }

  .team-rank::before {
    display: none;
  }

  .team-rank:hover {
    box-shadow: none;
    transform: none;
  }

  .rank-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #edf3fa;
    font-size: 16px;
  }

  .rank-name strong {
    font-size: 12px;
  }

  .rank-name small {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rank-score strong {
    font-size: 18px;
  }

  .rank-score small {
    display: none;
  }

  .winner-dogs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 6px;
  }

  .winner-dog {
    border: 0;
    border-radius: 10px;
    box-shadow: none;
  }

  .winner-dog > img {
    height: 55px;
  }

  .winner-dog-missing {
    height: 55px;
    padding: 5px;
  }

  .winner-dog-missing b {
    font-size: 11px;
  }

  .winner-dog-missing small {
    display: none;
  }

  .winner-dog-info {
    display: block;
    min-height: 26px;
    padding: 4px 3px;
    border-top-width: 1px;
    font-size: 8px;
    text-align: center;
  }

  .winner-dog-info .mini-flag {
    display: none;
  }

  .winner-dog:hover {
    box-shadow: none;
    transform: none;
  }

  .dog-dialog {
    max-width: 100vw;
    width: 100vw;
    max-height: calc(100vh - 16px);
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }

  .dog-profile-head {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 0;
    gap: 11px;
    padding: 15px 45px 13px 14px;
  }

  .dog-profile-head > img {
    width: 86px;
    height: 70px;
    border-width: 2px;
    border-radius: 8px;
  }

  .dog-profile-head h2 {
    font-size: 29px;
  }

  .dog-profile-score {
    grid-column: 1 / -1;
    font-size: 27px;
    text-align: left;
  }

  .dog-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 9px 14px;
    background: #fff;
  }

  .dog-profile-details span,
  .dog-profile-details .dog-profile-id {
    justify-content: flex-start;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
  }

  .dog-profile-results {
    padding: 12px 14px 16px;
  }

  .dog-profile-results h3 {
    font-size: 19px;
  }

  .discipline-strip,
  .rules-section {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 18px 14px;
  }

  .discipline-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }

  .discipline-list span {
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 9px;
  }

  .rules-grid {
    gap: 0;
  }

  .rules-grid article {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  footer {
    min-height: 0;
    padding: 15px 14px 18px;
  }

  .footer-links {
    width: 100%;
    gap: 6px;
    order: 4;
  }

  .footer-links a {
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
  }
}

@media (max-width: 420px) {
  .dog-user-search,
  .dog-user-link-form,
  .dog-user-picker {
    grid-template-columns: 1fr;
  }

  body.home-page .language-picker select {
    max-width: 104px;
  }

  .event-intro h1 {
    font-size: 31px;
  }

  .board-tab {
    font-size: 7px;
  }

  #totalsView th:nth-child(1),
  #totalsView td:nth-child(1) {
    width: 68%;
  }

  #totalsView th:nth-child(4),
  #totalsView td:nth-child(4) {
    display: none;
  }

  #totalsView th:nth-child(6),
  #totalsView td:nth-child(6) {
    width: 32%;
  }

  .mobile-row-meta em {
    display: none;
  }

  .winner-dog > img {
    height: 48px;
  }

  .winner-dog-info {
    font-size: 7px;
  }
}

/* Clear status while archived results load on slow connections. */
.results-loading {display:flex;align-items:center;justify-content:center;gap:14px;padding:24px 16px;margin:12px 0;color:var(--muted,#667085);font-weight:600;}
.results-spinner {display:inline-block;width:22px;height:22px;border-radius:50%;border:3px solid currentColor;border-right-color:transparent;animation:eucup-spin .8s linear infinite;}
@keyframes eucup-spin {to{transform:rotate(360deg)}}
.results-load-error {padding:14px 18px;margin:12px 0;text-align:center;color:#a52c27;}
.results-load-error button {margin-left:12px;border:1px solid currentColor;border-radius:8px;padding:8px 12px;background:transparent;color:inherit;cursor:pointer;}
[hidden] {display:none !important;}
@media (prefers-reduced-motion:reduce) {.results-spinner{animation:none}}


/* v32: compact competition format – progressive disclosure on mobile */
.format-section {
  border-top: 1px solid var(--line);
  padding: 38px clamp(18px, 4vw, 64px) 32px;
  background: #f7f9fc;
}
.format-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.format-heading h2 {
  margin: 12px 0 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(31px, 3.6vw, 48px);
  line-height: .99;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.format-heading > p {
  max-width: 350px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.format-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.format-step {
  position: relative;
  min-width: 0;
  padding: 20px 20px 22px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(20,48,83,.025);
}
.format-step-number {
  position: absolute;
  top: 19px;
  right: 20px;
  color: #b1bdcc;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.format-step-art {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 51px;
  margin-bottom: 13px;
  white-space: nowrap;
  color: var(--navy);
}
.format-big-number {
  font-family: var(--display);
  font-size: 43px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.format-art-label {
  color: #8290a4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}
.format-art-divider { margin: 0 7px; font-size: 25px; color: #cbd3dd; font-weight: 300; }
.format-partner-art { align-items: center; gap: 11px; }
.format-partner-label {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 6px;
  border: 1px solid #d5e1f0;
  background: #f1f6fc;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}
.format-partner-arrow { color: var(--red); font-size: 25px; }
.format-days-art { align-items: center; gap: 12px; }
.format-days-art span:not(.format-days-arrow) {
  font-family: var(--display);
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.format-days-arrow { color: var(--red); font-size: 22px; }
.format-step h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}
.format-step p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.format-disciplines {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #dae3ef;
  border-radius: 8px;
  background: #fff;
}
.format-disciplines summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 77px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.format-disciplines summary::-webkit-details-marker { display: none; }
.format-disciplines summary:hover { background: #f8fbff; }
.format-disciplines summary:focus-visible { outline: 3px solid #82b2e8; outline-offset: -3px; }
.format-disclosure-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.format-disclosure-eyebrow {
  color: #8694a8;
  font-size: 9px;
  letter-spacing: .15em;
  font-weight: 800;
}
.format-disclosure-copy strong { color: var(--navy); font-size: 15px; font-weight: 800; }
.format-disclosure-right { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; }
.format-event-count { color: #8a96aa; font-size: 11px; font-weight: 600; white-space: nowrap; }
.format-event-count b { font-weight: 800; }
.format-chevron { width: 10px; height: 10px; border-right: 2px solid #5c7391; border-bottom: 2px solid #5c7391; transform: rotate(45deg); transition: transform .18s ease; }
.format-disciplines[open] .format-chevron { transform: rotate(225deg); }
.format-disciplines .discipline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line-soft);
}
.format-disciplines .discipline-list span {
  padding: 10px 12px;
  border: 1px solid #e2e9f2;
  border-radius: 5px;
  background: #f8fafc;
  color: #253b5d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  box-shadow: none;
}
.format-disciplines .discipline-list span:hover { border-color: #c7d7e9; transform: none; box-shadow: none; }
.format-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.format-rules-link:hover { color: var(--red); }
.format-rules-link span[aria-hidden] { font-size: 16px; }
@media (max-width: 820px) {
  .format-section { padding: 26px 16px 25px; }
  .format-heading { display:block; margin-bottom:16px; }
  .format-heading h2 { margin-top:10px; font-size:34px; }
  .format-heading > p { margin-top:9px; font-size:12px; max-width:520px; }
  .format-steps { gap: 9px; }
  .format-step { padding: 16px 13px; }
  .format-step-number { top: 15px; right: 13px; font-size: 17px; }
  .format-big-number { font-size: 32px; }
  .format-art-label { font-size: 8px; }
  .format-art-divider { margin:0 2px; }
  .format-step-art { min-height: 41px; gap:5px; }
  .format-days-art { gap:6px; }
  .format-days-art span:not(.format-days-arrow) { font-size:25px; }
  .format-days-arrow { font-size:16px; }
  .format-step h3 { font-size: 13px; }
  .format-step p { font-size: 11px; }
}
@media (max-width: 650px) {
  .format-steps { grid-template-columns: 1fr; }
  .format-step { display:grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px 15px; }
  .format-step-content { display:grid; grid-template-columns: minmax(0,1fr) auto; align-items:center; gap:3px 12px; }
  .format-step h3 { grid-column: 1; grid-row:1; margin:0 22px 0 0; font-size: 14px; }
  .format-step p { grid-column:1; grid-row:2; font-size:11px; line-height:1.5; }
  .format-step-art { grid-column:2; grid-row:1 / span 2; gap:3px; min-height:0; margin:0; justify-content:flex-end; padding-right:20px; }
  .format-step-number { top:10px; right:12px; font-size:14px; }
  .format-big-number { font-size:26px; }
  .format-art-label { font-size:7px; }
  .format-art-divider { font-size:17px; margin: 0 2px; }
  .format-partner-label { width:24px; height:24px; font-size:15px; border-radius:4px; }
  .format-partner-arrow { font-size:15px; }
  .format-days-art { gap:3px; }
  .format-days-art span:not(.format-days-arrow) { font-size:19px; }
  .format-days-arrow { font-size:13px; }
  .format-disciplines summary { padding:14px 15px; min-height:67px; }
  .format-disclosure-copy strong { font-size:13px; }
  .format-disclosure-right { gap:10px; }
  .format-event-count { font-size:10px; }
  .format-disciplines .discipline-list { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; gap:7px; }
  .format-disciplines .discipline-list span { padding:10px; font-size:10px; line-height:1.25; }
  .format-rules-link { margin-top:16px; }
}
@media (max-width: 400px) {
  .format-step-content { grid-template-columns:minmax(0,1fr) auto; }
  .format-step-art { padding-right: 14px; }
  .format-art-label { display:none; }
  .format-heading h2 { font-size:30px; }
}
@media (prefers-reduced-motion:reduce) {
  .format-chevron { transition:none; }
}


/* v33 homepage hero refresh */
html {
  scroll-behavior: smooth;
}

body.home-page {
  padding-top: 4px;
}

body.home-page .flagline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

body.home-page .site-header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 55;
  min-height: 86px;
  gap: 34px;
  padding: 18px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  backdrop-filter: none;
  transition: background .24s ease, border-color .24s ease, box-shadow .24s ease, padding .24s ease;
}

body.home-page .site-header.is-scrolled,
.home-page.mobile-menu-open .site-header {
  background: rgba(255,255,255,.94);
  border-bottom-color: rgba(223,228,236,.88);
  box-shadow: 0 14px 38px rgba(19, 45, 87, .08);
  backdrop-filter: blur(18px);
}

body.home-page .site-header.is-scrolled .language-picker select,
.home-page.mobile-menu-open .site-header .language-picker select {
  background: rgba(255,255,255,.96);
}

body.home-page main {
  width: 100%;
  margin: 0;
}

body.home-page main#top,
body.home-page section[id] {
  scroll-margin-top: 102px;
}

body.home-page .home-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 126px clamp(18px, 3vw, 36px) 30px;
  isolation: isolate;
}

body.home-page .home-hero-media,
body.home-page .home-hero-overlay {
  position: absolute;
  inset: 0;
}

body.home-page .home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.home-page .home-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,26,56,.86) 0 25%, rgba(11,35,71,.70) 25% 40%, rgba(11,35,71,.26) 55%, rgba(11,35,71,.08) 68%, rgba(11,35,71,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0 14%, rgba(255,255,255,0) 24% 100%);
}

body.home-page .home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 430px;
  color: #fff;
  padding-left: clamp(22px, 3.8vw, 62px);
}

body.home-page .home-hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.92);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

body.home-page .home-hero-eyebrow::before {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #db1f2a;
  content: "";
}

body.home-page .home-hero-title {
  margin: 18px 0 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(56px, 6.6vw, 92px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: .84;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(9,18,34,.18);
}

body.home-page .home-hero-title span,
body.home-page .home-hero-title small {
  display: block;
}

body.home-page .home-hero-title small {
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 700;
  letter-spacing: .26em;
  line-height: 1.02;
}

body.home-page .home-hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.96);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.24;
  text-wrap: balance;
}

body.home-page .home-hero-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  padding: 0 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff2330, #df1724);
  box-shadow: 0 18px 35px rgba(164, 20, 31, .26);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.home-page .home-hero-button::after {
  content: "→";
  font-size: 19px;
  line-height: 1;
}

body.home-page .home-hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(164, 20, 31, .33);
}

body.home-page .results-shell,
body.home-page .format-section {
  width: min(100%, 1540px);
  margin: 0 auto;
}

@media (max-width: 1120px) {
  body.home-page .home-hero {
    min-height: 390px;
    padding-top: 118px;
  }

  body.home-page .home-hero-content {
    max-width: 400px;
    padding-left: 16px;
  }

  body.home-page .home-hero-title {
    font-size: clamp(52px, 7vw, 80px);
  }
}

@media (max-width: 720px) {
  body.home-page {
    padding-top: 4px;
  }

  body.home-page .site-header {
    min-height: 68px;
    gap: 8px;
    padding: 10px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  }

  body.home-page .mobile-menu-toggle {
    background: rgba(255,255,255,.85);
  }

  body.home-page .language-picker select {
    background: rgba(255,255,255,.82);
  }

  body.home-page .home-hero {
    min-height: 420px;
    padding: 88px 0 20px;
  }

  body.home-page .home-hero-overlay {
    background:
      linear-gradient(180deg, rgba(8,26,56,.18) 0 18%, rgba(8,26,56,.82) 48%, rgba(8,26,56,.92) 100%),
      linear-gradient(90deg, rgba(8,26,56,.04), rgba(8,26,56,.0));
  }

  body.home-page .home-hero-content {
    max-width: none;
    padding: 0 18px;
  }

  body.home-page .home-hero-eyebrow {
    gap: 10px;
    font-size: 11px;
    letter-spacing: .16em;
  }

  body.home-page .home-hero-eyebrow::before {
    width: 36px;
    height: 3px;
  }

  body.home-page .home-hero-title {
    margin-top: 12px;
    font-size: clamp(38px, 12vw, 56px);
    line-height: .88;
  }

  body.home-page .home-hero-title small {
    font-size: clamp(18px, 4.4vw, 24px);
    letter-spacing: .18em;
  }

  body.home-page .home-hero-lead {
    max-width: 360px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.4;
  }

  body.home-page .home-hero-button {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 21px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  body.home-page .brand-copy strong {
    font-size: 18px;
  }

  body.home-page .home-hero {
    min-height: 390px;
  }

  body.home-page .home-hero-content {
    padding: 0 14px;
  }

  body.home-page .home-hero-title {
    font-size: clamp(34px, 11vw, 48px);
  }

  body.home-page .home-hero-lead {
    font-size: 11px;
    max-width: 310px;
  }
}

/* v37 — homepage hero/header integration
   Keep the artwork aligned with the transparent header and let the typography
   feel like part of the composition rather than a separate block. */
@media (min-width: 721px) {
  body.home-page .site-header {
    min-height: 86px;
    padding: 10px clamp(34px, 3.75vw, 78px);
    background: transparent;
    border-bottom-color: transparent;
  }

  body.home-page .brand {
    gap: 13px;
  }

  body.home-page .brand-mark {
    width: 58px;
    height: 58px;
    border-color: rgba(19, 45, 87, .12);
    box-shadow: 0 4px 14px rgba(19, 45, 87, .06);
  }

  body.home-page .brand-mark img {
    width: 74px;
    height: 74px;
  }

  body.home-page .brand-copy strong {
    font-size: 30px;
    letter-spacing: .07em;
  }

  body.home-page .brand-copy small {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .17em;
  }

  body.home-page .primary-nav {
    height: 66px;
    gap: clamp(26px, 3vw, 52px);
    margin-left: clamp(34px, 4vw, 72px);
  }

  body.home-page .primary-nav a {
    font-size: 13px;
    letter-spacing: .14em;
  }

  body.home-page .primary-nav a::after {
    bottom: 4px;
    height: 3px;
  }

  body.home-page .language-picker select {
    min-width: 150px;
    min-height: 48px;
    padding: 0 38px 0 16px;
    border-color: rgba(19, 45, 87, .18);
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
  }

  body.home-page .home-hero {
    min-height: 520px;
    height: clamp(520px, 29.3vw, 600px);
    padding: 0;
  }

  /* Critical: anchor the artwork to the top. The source image contains the
     white header band, so centering a cropped image pulled that band upward
     and made the header collide with the blue hero area. */
  body.home-page .home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  body.home-page .home-hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(7, 29, 62, .34) 0%,
        rgba(7, 29, 62, .22) 25%,
        rgba(7, 29, 62, .08) 42%,
        rgba(7, 29, 62, 0) 58%),
      linear-gradient(180deg,
        rgba(255,255,255,.02) 0 14%,
        rgba(255,255,255,0) 24% 100%);
  }

  body.home-page .home-hero-content {
    position: absolute;
    top: clamp(132px, 8.2vw, 166px);
    left: clamp(58px, 3.9vw, 80px);
    width: min(560px, 42vw);
    max-width: none;
    padding: 0;
  }

  body.home-page .home-hero-eyebrow {
    gap: 16px;
    font-size: clamp(13px, .92vw, 18px);
    letter-spacing: .23em;
    text-shadow: 0 2px 14px rgba(5, 20, 45, .22);
  }

  body.home-page .home-hero-eyebrow::before {
    width: clamp(42px, 2.8vw, 58px);
    height: 4px;
  }

  body.home-page .home-hero-title {
    margin-top: 14px;
    font-size: inherit;
    line-height: 1;
    text-shadow: 0 8px 22px rgba(5, 20, 45, .24);
  }

  body.home-page .home-hero-title > span:first-child {
    font-size: clamp(86px, 6.35vw, 130px);
    line-height: .74;
    letter-spacing: -.015em;
  }

  body.home-page .home-hero-title > span:nth-child(2) {
    margin-top: 13px;
    font-size: clamp(35px, 3.05vw, 62px);
    line-height: .83;
    letter-spacing: -.005em;
  }

  body.home-page .home-hero-title > small {
    margin-top: 11px;
    font-size: clamp(23px, 1.72vw, 35px);
    line-height: 1;
    letter-spacing: .31em;
    font-weight: 600;
  }

  body.home-page .home-hero-lead {
    width: min(535px, 100%);
    max-width: none;
    margin-top: 16px;
    color: rgba(255,255,255,.94);
    font-size: clamp(13px, .93vw, 18px);
    line-height: 1.42;
    text-shadow: 0 2px 13px rgba(5, 20, 45, .35);
    text-wrap: pretty;
  }

  body.home-page .home-hero-button {
    min-height: 50px;
    margin-top: 20px;
    padding: 0 30px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 13px 30px rgba(128, 10, 21, .25);
  }
}

@media (min-width: 721px) and (max-width: 1450px) {
  body.home-page .site-header {
    min-height: 76px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.home-page .brand-mark {
    width: 50px;
    height: 50px;
  }

  body.home-page .brand-mark img {
    width: 64px;
    height: 64px;
  }

  body.home-page .brand-copy strong {
    font-size: 25px;
  }

  body.home-page .primary-nav {
    margin-left: 20px;
    gap: 24px;
  }

  body.home-page .primary-nav a {
    font-size: 11px;
  }

  body.home-page .language-picker select {
    min-width: 128px;
    min-height: 42px;
    font-size: 11px;
  }

  body.home-page .home-hero-content {
    top: 126px;
    left: clamp(38px, 4vw, 58px);
    width: min(500px, 46vw);
  }

  body.home-page .home-hero-title > span:first-child {
    font-size: clamp(76px, 7.2vw, 104px);
  }

  body.home-page .home-hero-title > span:nth-child(2) {
    font-size: clamp(32px, 3.4vw, 48px);
  }

  body.home-page .home-hero-title > small {
    font-size: clamp(20px, 2vw, 28px);
  }

  body.home-page .home-hero-lead {
    font-size: 13px;
  }
}

/* v38: consistent public navigation on every public content page. */
@media (min-width:721px) {
 body.public-page .site-header { min-height:86px; padding:10px clamp(34px,3.75vw,78px); gap:34px; background:rgba(255,255,255,.96); }
 body.public-page .brand { gap:13px; }
 body.public-page .brand-mark { width:58px; height:58px; border-color:rgba(19,45,87,.12); box-shadow:0 4px 14px rgba(19,45,87,.06); }
 body.public-page .brand-mark img { width:74px; height:74px; }
 body.public-page .brand-copy strong { font-size:30px; letter-spacing:.07em; }
 body.public-page .brand-copy small { margin-top:5px; font-size:9px; letter-spacing:.17em; }
 body.public-page .primary-nav { height:66px; gap:clamp(26px,3vw,52px); margin-left:clamp(34px,4vw,72px); }
 body.public-page .primary-nav a { font-size:13px; letter-spacing:.14em; }
 body.public-page .primary-nav a::after { bottom:4px; height:3px; }
 body.public-page .language-picker select { min-width:150px; min-height:48px; padding:0 38px 0 16px; border-color:rgba(19,45,87,.18); background:rgba(255,255,255,.72); font-size:13px; }
}
@media (min-width:721px) and (max-width:1450px) {
 body.public-page .site-header { min-height:76px; padding-top:8px; padding-bottom:8px; }
 body.public-page .brand-mark { width:50px; height:50px; }
 body.public-page .brand-mark img { width:64px; height:64px; }
 body.public-page .brand-copy strong { font-size:25px; }
 body.public-page .primary-nav { margin-left:20px; gap:24px; }
 body.public-page .primary-nav a { font-size:11px; }
 body.public-page .language-picker select { min-width:128px; min-height:42px; font-size:11px; }
}
body.results-page .results-shell { padding-top:clamp(35px,4vw,70px); }

/* v39: homepage disciplines, registration announcement, results year dropdown */
.home-disciplines{max-width:1260px;margin:0 auto;padding:85px clamp(22px,4vw,60px) 92px}
.home-section-heading{text-align:center;margin-bottom:40px}.home-kicker{display:block;color:#d91525;font-size:12px;font-weight:800;letter-spacing:.2em;margin-bottom:12px}
.home-section-heading h2,.home-registration h2{font-family:'Barlow Condensed',sans-serif;font-size:clamp(37px,4.4vw,64px);font-weight:800;line-height:1.02;letter-spacing:.025em;color:#102c53;margin:0}
.home-section-heading p{font-size:15px;color:#68778c;margin:15px auto 0;max-width:580px;line-height:1.7}
.home-discipline-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px}
.home-discipline-card{display:block;text-decoration:none;color:#102c53;min-width:0;background:white;border:1px solid #e6eaf0;border-radius:6px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.home-discipline-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #142c4e15}
.discipline-image-slot{aspect-ratio:4/3;background:linear-gradient(145deg,#e3eaf2,#f5f7fa);display:grid;place-items:center;position:relative;overflow:hidden}
.discipline-image-slot:before{content:'';width:52px;height:37px;border:2px solid #b4c1d0;border-radius:5px;position:absolute;opacity:.45}
.discipline-image-slot span{font-size:9px;letter-spacing:.13em;font-weight:750;color:#7c91a8;position:relative;background:#edf2f7;padding:5px 8px;border-radius:2px}
.discipline-card-bottom{padding:15px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px}.discipline-card-bottom strong{font-size:13px}.discipline-card-bottom span{color:#d81527}
.home-text-link{display:table;margin:32px auto 0;color:#14335f;text-decoration:none;font-weight:750;font-size:13px;border-bottom:2px solid #d81527;padding-bottom:5px}
.home-registration{background:#102b53;color:white;padding:65px clamp(22px,4vw,60px)}.home-registration-inner{max-width:1140px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:46px}
.home-registration h2{color:white;margin-bottom:15px}.home-registration p{color:#c9d6e8;max-width:590px;font-size:15px;line-height:1.7;margin:0}.home-registration-action{flex:0 0 260px;text-align:center}
.home-registration-date{margin-bottom:18px}.home-registration-date span{display:block;font-size:10px;font-weight:800;letter-spacing:.18em;color:#a4b9d4;margin-bottom:9px}.home-registration-date strong{font-family:'Barlow Condensed',sans-serif;font-size:40px;line-height:1}
.home-registration-action button{background:#758397;color:#fff;border:0;padding:15px 20px;width:100%;font-size:12px;font-weight:750;border-radius:4px;cursor:not-allowed}
.archive-year-picker{display:flex;align-items:center;gap:12px;margin-top:18px;color:#64758c;font-size:12px;font-weight:700}
.archive-year-picker select{min-width:145px;cursor:pointer;padding:11px 35px 11px 15px;border:1px solid #d3dce8;border-radius:5px;background:white;color:#102b53;font-size:14px;font-weight:800}
@media(max-width:1000px){.home-discipline-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.home-disciplines{padding:52px 18px 62px}.home-discipline-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-registration-inner{display:block}.home-registration-action{margin-top:32px;max-width:310px;text-align:left}.home-registration{padding:48px 22px}}
@media(max-width:380px){.home-discipline-grid{grid-template-columns:1fr 1fr}.discipline-card-bottom{padding:12px 9px}.discipline-card-bottom strong{font-size:12px}}


/* v40: real discipline images on homepage */
.discipline-image-slot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}
.home-discipline-card:hover .discipline-image-slot img{transform:scale(1.03)}
.discipline-image-slot:has(img):before,.discipline-image-slot:has(img) span{display:none}

/* v52: discreet image credit in the footer across public pages */
footer#about{flex-wrap:wrap}
footer#about .site-photo-credit{flex-basis:100%;width:100%;text-align:center;font-size:11px;line-height:1.5;letter-spacing:.01em;font-weight:400;color:#98a6b8;margin:0;}

/* EU Cup ranking: stable competition positions, no impact from sorting or filters. */
.results-table th.placement-heading,
.results-table td.placement-cell { width: 50px; min-width: 50px; padding-left: 12px; padding-right: 4px; text-align: left; }
.placement-number { display:inline-flex; min-width:30px; justify-content:center; align-items:center; font-size:13px; font-weight:800; color:#253b5c; }
.placement-top { padding:4px 5px; border-radius:4px; background:#f1f4f9; }
.placement-1 { color:#9c710e; background:#fbf3d9; }
.placement-2 { color:#5e7081; background:#e8eef3; }
.placement-3 { color:#97613c; background:#faebde; }
.team-rank-expandable { display:block; padding:0; }
.team-rank-summary { display:grid; grid-template-columns:44px minmax(0,1fr) auto 28px; align-items:center; gap:11px; min-height:58px; padding:9px 12px 9px 10px; cursor:pointer; }
.team-winner .winner-heading { grid-template-columns:44px minmax(0,1fr) auto 28px; cursor:pointer; }
.team-expand-button { display:grid; place-items:center; width:27px; height:27px; border:1px solid #d8e0ea; border-radius:5px; background:#fff; color:#19375d; cursor:pointer; }
.team-expand-button span { display:block; font-size:20px; transition:transform .3s ease; }
.team-expanded .team-expand-button span { transform:rotate(180deg); }
.expanded-team-dogs { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .36s ease, opacity .3s ease; }
.team-expanded .expanded-team-dogs { grid-template-rows:1fr; opacity:1; }
.expanded-team-dogs-inner { min-height:0; overflow:hidden; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; padding:0 10px; transition:padding .3s ease; }
.team-expanded .expanded-team-dogs-inner { padding:8px 10px 12px; }
.expanded-team-dogs .winner-dog { min-width:0; }
.expanded-team-dogs .winner-dog > img { display:block; width:100%; height:125px; object-fit:cover; object-position:center; }
.expanded-team-dogs .winner-dog-info img.mini-flag { display:inline-block; width:17px; height:11px; max-width:17px; max-height:11px; flex:0 0 17px; object-fit:cover; }
@media(max-width:650px){.expanded-team-dogs-inner{grid-template-columns:repeat(3,minmax(0,1fr))}.expanded-team-dogs .winner-dog > img{height:90px}}
@media(prefers-reduced-motion:reduce){.expanded-team-dogs,.expanded-team-dogs-inner,.team-expand-button span{transition:none}}
/* Keep mobile ranking layout correct after inserting the position column. */
@media (max-width: 700px) {
  #totalsView th:nth-child(1), #totalsView td:nth-child(1),
  #disciplinesView th:nth-child(1), #disciplinesView td:nth-child(1) {display:table-cell;width:40px;min-width:40px;}
  #totalsView th:nth-child(2), #totalsView td:nth-child(2) {display:table-cell;width:55%;}
  #totalsView th:nth-child(5), #totalsView td:nth-child(5) {display:table-cell;width:25%;}
  #totalsView th:nth-child(7), #totalsView td:nth-child(7) {display:table-cell;width:20%;text-align:right;}
  #totalsView th:nth-child(3), #totalsView td:nth-child(3),
  #totalsView th:nth-child(4), #totalsView td:nth-child(4),
  #totalsView th:nth-child(6), #totalsView td:nth-child(6) {display:none;}
  #disciplinesView th:nth-child(2), #disciplinesView td:nth-child(2) {display:table-cell;width:43%;}
  #disciplinesView th:nth-child(7), #disciplinesView td:nth-child(7) {display:table-cell;width:35%;}
  #disciplinesView th:nth-child(9), #disciplinesView td:nth-child(9) {display:table-cell;width:22%;text-align:right;}
  #disciplinesView th:nth-child(3), #disciplinesView td:nth-child(3),
  #disciplinesView th:nth-child(4), #disciplinesView td:nth-child(4),
  #disciplinesView th:nth-child(5), #disciplinesView td:nth-child(5),
  #disciplinesView th:nth-child(6), #disciplinesView td:nth-child(6),
  #disciplinesView th:nth-child(8), #disciplinesView td:nth-child(8) {display:none;}
  .team-rank-summary,.team-winner .winner-heading {grid-template-columns:33px minmax(0,1fr) auto 26px;gap:7px;}
}
