/* USRowing regatta site — colours and type follow usrowing.org */
:root {
  --usr-navy: #00224D;
  --usr-navy-deep: #001736;
  --usr-blue: #094CA5;
  --usr-blue-soft: #3D6FC0;
  --usr-red: #B81E42;
  --usr-mist: #F5F7FA;
  --usr-line: #DCE2EC;
  --usr-ink: #14213D;
  --usr-ink-soft: #55607A;
  --usr-font: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --usr-header-h: 76px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--usr-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--usr-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--usr-font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--usr-navy); }
p  { margin: 0 0 1em; }
a  { color: var(--usr-blue); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--usr-blue-soft); outline-offset: 3px; }

.usr-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header ------------------------------------------------------------------- */
.website-header { position: sticky; top: 0; z-index: 1030; }
.usr-header {
  background: #fff;
  border-bottom: 1px solid var(--usr-line);
}
/* menu | logo | usrowing.org link, logo dead centre like usrowing.org */
.usr-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  min-height: var(--usr-header-h);
}
.usr-nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.usr-nav-left { justify-self: start; }
.usr-nav-right { justify-self: end; }
.usr-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--usr-navy);
  text-decoration: none;
}
.usr-brand:hover { text-decoration: none; }
.usr-brand img { width: 44px; height: 44px; object-fit: contain; }
.usr-brand-name { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--usr-red); }
.usr-brand-us { color: var(--usr-navy); }

/* The menu items render the site generator's top_horizontal_menu partial */
.usr-header .navbar { padding: 0; min-width: 0; }
.usr-header .offcanvas-header { display: none; }
.usr-header .navbar-nav {
  flex-direction: row;
  gap: 6px;
  --bs-navbar-color: var(--usr-navy);
  --bs-navbar-hover-color: var(--usr-blue);
  --bs-navbar-active-color: var(--usr-blue);
}
.usr-header .nav-link {
  color: var(--usr-navy);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.usr-header .nav-link:hover { color: var(--usr-blue); background: var(--usr-mist); text-decoration: none; }
.usr-header .nav-link.active-link { color: var(--usr-blue); box-shadow: inset 0 -2px 0 var(--usr-blue); border-radius: 0; }


@media (max-width: 991.98px) {
  /* logo on its own line, both menus centred underneath */
  .usr-header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 4px;
    padding-top: 12px;
    padding-bottom: 8px;
    min-height: 0;
  }
  .usr-brand { order: -1; flex-basis: 100%; justify-content: center; margin-bottom: 4px; }
  .usr-nav { gap: 6px; }
  .usr-nav-right { margin-left: 8px; }
}
@media (max-width: 575.98px) {
  .usr-nav-right { display: none; }
}

/* Pills ---------------------------------------------------------------------- */
.usr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.usr-pill:hover, .usr-pill:focus-visible { text-decoration: none; }
.usr-pill-red   { background: var(--usr-red); color: #fff; }
.usr-pill-red:hover { background: #9C1737; color: #fff; }
.usr-pill-blue  { background: var(--usr-blue); color: #fff; }
.usr-pill-blue:hover { background: var(--usr-navy); color: #fff; }
.usr-pill-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.usr-pill-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.usr-pill-outline { border-color: var(--usr-line); color: var(--usr-navy); background: var(--usr-mist); padding: 8px 16px; }
.usr-pill-outline:hover { border-color: var(--usr-navy); color: var(--usr-navy); }

/* Navy band --------------------------------------------------------------- */
.usr-band {
  position: relative;
  background: var(--usr-navy);
  color: #fff;
  padding: 56px 0 60px;
  overflow: hidden;
}
.usr-band::before {
  /* rowing lanes: six faint lane lines drifting across the band */
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: repeating-linear-gradient(
    -12deg,
    transparent 0 88px,
    rgba(255,255,255,.07) 88px 89px
  );
  pointer-events: none;
}
.usr-band .usr-container { position: relative; }
.usr-band h1 { color: #fff; max-width: 18ch; }
.usr-band p { color: rgba(255,255,255,.82); max-width: 60ch; font-size: 1.1rem; margin-bottom: 0; }
.usr-hero { padding: 88px 0 96px; }
.usr-hero p { font-size: 1.25rem; }
.usr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Page body ----------------------------------------------------------------- */
.usr-page { padding: 48px 0 96px; }
.usr-page h2 { margin-bottom: 20px; }

/* Widgets: theme the FOYS tournament widgets to the site --------------------- */
tournament-overview,
tournament-overview-small,
tournament-detail,
tournament-ranking,
tournament-ranking-detail,
tournament-courses-calendar {
  display: block;
  --fwt-font-family: var(--usr-font);
  --fwt-font-heading: var(--usr-font);
  --fwt-font-weight-heading: 600;
  --fwt-color-primary: var(--usr-blue);
  --fwt-color-primary-light: var(--usr-blue-soft);
  --fwt-color-secondary: var(--usr-red);
  --fwt-color-text: var(--usr-ink);
  --fwt-color-text-muted: var(--usr-ink-soft);
  --fwt-color-surface: var(--usr-mist);
  --fwt-color-border: var(--usr-line);
  --fwt-color-tag-bg: #E3EAF6;
  --fwt-color-tag-text: var(--usr-navy);
  --fwt-border-radius: 10px;
}
.fwt-widget { scroll-margin-top: calc(var(--usr-header-h) + 16px); }