@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700;800&display=swap");

/* =====================================================================
   RIDE FOR YOUTH - Funraisin event styles (Youth Focus)
   Hosted on GitHub, served by jsDelivr. Linked from the event's
   Custom CSS fields (Desktop and Mobile).
   To update: edit, commit, tag a new version, then change @version
   in the Funraisin link.
   ===================================================================== */

/* ===== PART 1 - HEADER (desktop and phone) ===== */
:root {
  --rfy-navy: #003767;
  --rfy-red: #CF1F31;
  --rfy-red-dark: #A8182A;
  --rfy-focus: #F2B705;
  --rfy-font: "Jost", "DM Sans", sans-serif;
}
html .input-group-btn .btn {
   height: 40px;
}

/* Dashboard (replaces Sign up once logged in) - grow to fit, same side space as Sign up */
.funraisin-desktop-nav .funraisin-secondary-nav a.btn-primary.rfy-dashboard-btn {
  width: auto;
  min-width: 126px;
  padding: 0 24px !important;
}

.template-register .header-hero {
   display: none !important;
}

#popup > div > div > div.col-sm-4.bg-primary.popup-col.pt40.pb40.pl40.pr20 > h2 {
   color: #fff;
}

/* ===== HEADINGS - one set of sizes and weights for the home page.
   Sections below only set colour and spacing ===== */
html h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
}
html h2, .content h2 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: none;
   color: #003767;
}
html body[role="home"] h2 {
  font-size: 42px;
}
html h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}
html h4 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}
html h5 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
}

/* ===== BANNER STRIP (row class "bannerstrip-section") - navy pattern banner, large heading bottom left ===== */
.lump-row.bannerstrip-section {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  background-color: var(--rfy-navy) !important;
  background-image: url("https://d1jubuv78gvhbr.cloudfront.net/9cb27b2df70076634e8eb333d0ab77e9.jpg") !important;
  background-position: center top !important;
  background-size: max(100%, 1200px) auto !important;
  background-repeat: no-repeat !important;
}

/* Heading sits at the bottom of the banner, lined up with the page content */
.lump-row.bannerstrip-section > .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding-top: 0 !important;
  padding-bottom: 48px !important;
}
.lump-row.bannerstrip-section .lump-column,
.lump-row.bannerstrip-section .lump {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.lump-row.bannerstrip-section .lump-1col,
html .lump-row.bannerstrip-section h1 {
  text-align: left !important;
}

/* Same font and weight as the home page headings */
html .lump-row.bannerstrip-section h1 {
  margin: 0 !important;
  color: #FFFFFF !important;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Laptops */
@media (max-width: 1199px) {
  .lump-row.bannerstrip-section > .container {
    min-height: 260px;
    padding-bottom: 40px !important;
  }
  html .lump-row.bannerstrip-section h1 { font-size: 48px; }
}

/* Tablets */
@media (max-width: 991px) {
  .lump-row.bannerstrip-section > .container {
    min-height: 220px;
    padding-bottom: 36px !important;
  }
  html .lump-row.bannerstrip-section h1 { font-size: 42px; }
}

/* Phones */
@media (max-width: 767px) {
  .lump-row.bannerstrip-section > .container {
    min-height: 160px;
    padding-bottom: 28px !important;
  }
  html .lump-row.bannerstrip-section h1 { font-size: 32px; }
}

/* ===== SHARED - heading colour, body text and buttons across the home page sections ===== */
.howitworks h1,
.joinridesection h2,
.joinridesection h3,
.lump-row.banner h1 {
  margin: 0 0 16px !important;
  color: var(--rfy-navy) !important;
}
.howitworks h3 {
  margin: 6px 0 10px !important;
  color: var(--rfy-navy) !important;
}

/* Join the Ride and Dakota's Story titles are a lighter weight in the mockup.
   (They're h3 in Funraisin - once changed to Heading 2, remove "h3" and the font-size here) */
.joinridesection h2,
.joinridesection h3 {
  font-size: 36px;
  font-weight: 500;
}
.howitworks .lump-1col p,
.joinridesection .lump-1col p {
  margin: 0;
  color: #333333;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
.lump-row.banner p.large,
.lump-row.banner p.large span {
  font-size: 23px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
.lump-row.banner .lump-btn,
.howitworks .lump-btn,
.joinridesection .lump-btn {
  padding: 15px 28px !important;
}
.joinridesection .lump_buttons {
  margin-top: 16px;
}

/* Join the Ride / Story on phones - less space at the top, text closer to the photo */
@media (max-width: 767px) {
  .lump-row.joinridesection {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .lump-row.joinridesection > .container {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
  }
  /* Text column - whichever column doesn't hold the photo */
  .lump-row.joinridesection .lump-column:not(:has(.lump-1image)) {
    margin-top: -20px !important;
    padding: 0 15px !important;
  }
}

/* ===== BANNER (row class "banner") ===== */
.lump-row.banner {
  position: relative;
  overflow: hidden;
  background: var(--rfy-navy) !important;
}
.lump-row.banner::before,
.lump-row.banner::after {
  display: block !important;
}
.lump-row.banner .lump {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.lump-row.banner .lump-1image img {
  display: block;
  width: 235px;
  max-width: 100%;
  height: auto;
  margin: 0 0 44px;
}
.lump-row.banner h1 {
  margin-bottom: 8px !important;
  color: #FFFFFF !important;
}
.lump-row.banner p.large,
.lump-row.banner p.large span {
  max-width: 520px;
  margin: 0 !important;
  color: #FFFFFF !important;
}
.lump-row.banner .lump_buttons {
  justify-content: flex-start;
  margin-top: 30px;
}

@media (min-width: 992px) {
  .lump-row.banner::before {
    content: "";
    position: absolute;
    inset: 0 0 0 calc(50% - 72px);
    background: url(https://d1jubuv78gvhbr.cloudfront.net/fd8dd63f6b7b3b22d4ec8513db13e8eb.png) left 15% / cover no-repeat;
  }
  .lump-row.banner > .container {
    position: relative;
    z-index: 1;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .lump-row.banner .responsive-padding {
    min-height: clamp(480px, 41.6vw, 760px) !important;
  }
}

@media (max-width: 991px) {
  .lump-row.banner::after {
    content: "";
    aspect-ratio: 1218 / 900;
    background: url(https://d1jubuv78gvhbr.cloudfront.net/fd8dd63f6b7b3b22d4ec8513db13e8eb.png) center / cover no-repeat;
  }
  .lump-row.banner > .container {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
  .lump-row.banner .responsive-padding {
    padding: 0 !important;
  }
  .lump-row.banner .lump-column {
    float: none !important;
    width: 100% !important;
  }
  .lump-row.banner .lump-column:not(:has(.lump)) {
    display: none !important;
  }
  .lump-row.banner .lump-1image img {
    width: 180px;
    margin-bottom: 32px;
  }
}

/* ===== STATS (give the row the class "stats") ===== */
.stats > .container {
  padding: 32px 0 !important;
}
.stats .responsive-padding {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
}
.stats .lump-column {
  float: none !important;
  flex: 0 0 auto;
  width: auto !important;
  padding: 0 40px !important;
}
.stats h1,
.stats h4 {
  margin: 0 !important;
  color: var(--rfy-navy) !important;
  text-align: center;
}

/* ===== HOW IT WORKS (row class "howitworks") ===== */
.howitworks > .container {
  padding: 40px 0 !important;
}
.howitworks .responsive-padding {
  align-items: stretch !important;
}
.howitworks .lump-column.col-md-4 > .lump-container {
  height: 100%;
  padding: 44px 28px 40px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 55, 103, 0.12);
}
.howitworks .lump-1image img {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.howitworks .lump-1col p {
  color: #5A6672;
  font-size: 17px !important;
}

@media (min-width: 768px) and (max-width: 991px) {
  .howitworks .lump-column.col-md-4 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .howitworks .lump-column.col-md-4 > .lump-container {
    padding: 28px 16px;
  }
  .howitworks h3 {
    font-size: 20px !important;
  }
  .howitworks .lump-1col p {
    font-size: 15px !important;
  }
}

@media (max-width: 767px) {
  .howitworks .lump-column.col-md-4 {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .howitworks .lump-column.col-md-4 > .lump-container {
    padding: 32px 24px;
  }
}

/* ===== JOIN THE RIDE / STORY (row class "joinridesection", photo in either column) ===== */
.joinridesection .lump-1image img {
  width: 100%;
  height: auto;
}
.joinridesection .lump_buttons {
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .joinridesection .lump-column:has(.lump-1image) {
    width: 56%;
  }
  .joinridesection .lump-column:not(:has(.lump-1image)) {
    width: 44%;
  }
  .joinridesection .lump-column:has(.lump-1image) + .lump-column {
    padding-left: 0px !important;
  }
  .joinridesection .lump-column:has(+ .lump-column .lump-1image) {
    padding-right: 0px !important;
  }
}

@media (max-width: 991px) {
  .joinridesection .lump-column {
    float: none !important;
    width: 100% !important;
  }
  .joinridesection .lump-column:has(.lump-1image) {
    order: -1;
  }
  .joinridesection .lump-1image img {
    display: block;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ===== PHONES ===== */
@media (max-width: 767px) {
  html h1,
  html h2 {
    font-size: 30px;
  }
  html h4 {
    font-size: 18px;
  }
  .joinridesection h2,
  .joinridesection h3 {
    font-size: 28px;
  }
  .lump-row.banner p.large,
  .lump-row.banner p.large span {
    font-size: 18px !important;
  }
  .howitworks > .container {
    padding: 10px 0 !important;
  }
  .joinridesection > .container {
    padding: 40px 0 !important;
  }
  .howitworks .lump-1col p,
  .joinridesection .lump-1col p {
    font-size: 16px !important;
  }
}
/* ===== PART 11 - LEADERBOARD (lump row with the "leaderboards-section" class) ===== */
.leaderboards-section > .container { padding: 80px 0 !important; }
.leaderboards-section .lump-column, .leaderboards-section .lump-1col, .leaderboards-section .lump-column > .lump-container > .lump:not(.lump-tabs) { padding: 0 !important; }
.leaderboards-section h2 { margin: 0 !important; color: var(--rfy-navy) !important; font: 700 clamp(30px, 3vw, 42px)/1.15 var(--rfy-font) !important; text-align: center; text-transform: none !important; }
.leaderboards-section .lump-tabs { float: none !important; max-width: 700px; margin: 48px auto 0 !important; padding: 44px 50px 50px !important; background: #FFFFFF; }

/* Tabs - underlined, Organisations hidden */
.leaderboards-section .nav-tabs { display: flex; justify-content: center; gap: 32px; margin: 0 0 36px !important; padding: 0 !important; border: 0 !important; }
.leaderboards-section .nav-tabs li { float: none; margin: 0 !important; }
.leaderboards-section .nav-tabs li:nth-child(3) { display: none; }
.leaderboards-section .nav-tabs a { min-width: 160px; margin: 0 !important; padding: 8px 12px !important; border: 0 !important; border-bottom: 2px solid #8C99A6 !important; border-radius: 0 !important; background: none !important; color: #5A6672 !important; font: 400 18px var(--rfy-font) !important; text-align: center; }
.leaderboards-section .nav-tabs .active a { border-bottom-color: var(--rfy-navy) !important; color: var(--rfy-navy) !important; }
.leaderboards-section .tab-pane { float: none !important; padding: 0 !important; }

/* Rows */
.leaderboards-section .leaderboardrow { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #EEF6FB; }
.leaderboards-section .leaderboardrow:nth-child(even) { background: #DCEBF7; }
.leaderboards-section .leaderboardrow > a { display: flex !important; align-items: center; gap: 18px; min-height: 98px; padding: 14px 20px 14px 44px !important; color: var(--rfy-navy) !important; text-decoration: none !important; }
.leaderboards-section .rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 52px !important;
  height: 52px !important;
  padding: 5px 0 0 10px !important;
  background: var(--rfy-navy) !important;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  color: #FFFFFF;
  font: 400 16px/1 var(--rfy-font);
  text-align: left;
}
.leaderboards-section .profileimage { flex: 0 0 62px; width: 62px !important; margin: 0 !important; padding: 0 !important; }
.leaderboards-section .profileimage img { width: 62px !important; max-width: none !important; height: 62px; border: 1.5px solid var(--rfy-navy); border-radius: 50%; background: #FFFFFF; object-fit: cover; }
.leaderboards-section .profilename { flex: 1; min-width: 0; width: auto !important; margin: 0 !important; }
.leaderboards-section .profilename h4 { margin: 0 !important; color: var(--rfy-navy) !important; font: 500 18px/1.25 var(--rfy-font) !important; text-transform: none !important; }
.leaderboards-section .raised { flex: 0 0 90px; width: auto !important; margin: 0 !important; text-align: center; }
.leaderboards-section .raised p, .leaderboards-section .raised h3 { margin: 0 !important; color: var(--rfy-navy) !important; font: 600 16px/1.4 var(--rfy-font) !important; }

/* Donate - the whole row links to the fundraiser's page */
.leaderboards-section .leaderboardrow > a::after { content: "Donate"; flex: 0 0 130px; padding: 9px 0; border: 2px solid var(--rfy-navy); color: var(--rfy-navy); font: 700 16px var(--rfy-font); letter-spacing: 1.2px; text-align: center; text-transform: uppercase; }
.leaderboards-section .leaderboardrow > a:hover::after { background: var(--rfy-navy); color: #FFFFFF; }

/* View all (added by the event JS) */
.leaderboards-section .height-40, .leaderboards-section .lump_leaderboard_buttons { display: none; }
.leaderboards-section .lb-viewall { margin-top: 36px; text-align: center; }
.leaderboards-section .lb-viewall .btn { padding: 13px 30px !important; }

@media (max-width: 767px) {
  .leaderboards-section > .container { padding: 28px 15px 48px !important; }
  .leaderboards-section .lump-tabs { margin-top: 28px !important; padding: 28px 12px 32px !important; }
  .leaderboards-section .nav-tabs { gap: 12px; margin-bottom: 24px !important; }
  .leaderboards-section .nav-tabs a { min-width: 120px; font-size: 16px !important; }
  .leaderboards-section .leaderboardrow > a { gap: 8px; min-height: 80px; padding: 12px 10px 12px 34px !important; }
  .leaderboards-section .rank { width: 40px !important; height: 40px !important; padding: 4px 0 0 7px !important; font-size: 13px; }
  .leaderboards-section .profileimage { flex-basis: 44px; width: 44px !important; }
  .leaderboards-section .profileimage img { width: 44px !important; height: 44px; }
  .leaderboards-section .profilename h4 { font-size: 15px !important; }
  .leaderboards-section .raised { flex-basis: 60px; }
  .leaderboards-section .raised p, .leaderboards-section .raised h3 { font-size: 13px !important; }
  .leaderboards-section .leaderboardrow > a::after { flex-basis: 70px; padding: 7px 0; font-size: 12px; letter-spacing: 0.5px; }
}

/* ===== STATS (row class "stats-section") ===== */
.stats-section > .container {
  padding: 60px 0 !important;
}
.stats-section .responsive-padding {
  justify-content: center !important;
  gap: 160px;
}
.stats-section .lump-column {
  float: none !important;
  flex: 0 0 auto;
  width: auto !important;
  padding: 0 !important;
}
.stats-section .lump {
  padding: 0 !important;
}
.stats-section h1 {
  margin: 0px 0 0 !important;
  color: var(--rfy-navy) !important;
  font-size: 52px !important;
  line-height: 1.1 !important;
  text-align: center;
}
.stats-section h4 {
  margin: 10px 0 0 !important;
  color: var(--rfy-navy) !important;
  font-size: 24px !important;
  text-align: center;
}

@media (max-width: 767px) {
  .stats-section > .container {
    padding: 28px 0 !important;
  }
  .stats-section .responsive-padding {
    gap: 40px;
  }
  .stats-section h1 {
    font-size: 38px !important;
  }
  .stats-section h4 {
    font-size: 18px !important;
  }
}

html #popup .BtClose { border-radius: 50px !important; padding: 0; }

/* Donate and Sign up */
.funraisin-secondary-nav a.btn-primary, .funraisin-secondary-nav a.btn-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 0 !important;
  font-family: var(--rfy-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  line-height: 1 !important;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 767px) {
    .funraisin-secondary-nav a.btn-primary, .funraisin-secondary-nav a.btn-secondary {
        padding: 0 20px !important;
    }
}

/* Sign up - solid red */
.funraisin-secondary-nav a.btn-primary { background-color: var(--rfy-red) !important; border-color: var(--rfy-red) !important; color: #FFFFFF !important; }
.funraisin-secondary-nav a.btn-primary:hover, .funraisin-secondary-nav a.btn-primary:focus { background-color: var(--rfy-red-dark) !important; border-color: var(--rfy-red-dark) !important; color: #FFFFFF !important; }

/* Donate - navy outline */
.funraisin-secondary-nav a.btn-secondary { background-color: #FFFFFF !important; border-color: var(--rfy-navy) !important; color: var(--rfy-navy) !important; }
.funraisin-secondary-nav a.btn-secondary:hover, .funraisin-secondary-nav a.btn-secondary:focus { background-color: var(--rfy-navy) !important; border-color: var(--rfy-navy) !important; color: #FFFFFF !important; }

/* Find a friend - icon on the left, no box */
.funraisin-secondary-nav .navbar-form {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.funraisin-secondary-nav .navbar-form .input-group { display: flex !important; align-items: center; gap: 8px; }
.funraisin-secondary-nav .navbar-form .input-group-btn {
  order: -1;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
}
.funraisin-secondary-nav .navbar-form .input-group-btn button.btn {
  display: flex !important;
  align-items: center;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--rfy-navy) !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
.funraisin-secondary-nav .navbar-form .input-group-btn .fa-search { display: block; line-height: 1 !important; }
.funraisin-secondary-nav .navbar-form .input-group-btn button.btn:hover { color: var(--rfy-red) !important; }
.funraisin-secondary-nav .navbar-form #header_kw {
  height: auto !important;
  padding: 2px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--rfy-navy) !important;
  font-family: var(--rfy-font) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}
.funraisin-secondary-nav .navbar-form #header_kw::placeholder { color: var(--rfy-navy) !important; opacity: 1; }

/* Login */
.funraisin-secondary-nav a.btn-login {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font-family: var(--rfy-font) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.funraisin-secondary-nav a.btn-login .fa-user { display: none !important; }
.funraisin-secondary-nav a.btn-login::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("https://d1jubuv78gvhbr.cloudfront.net/eda5c4908f817f7696b933627e23d6c5.png") no-repeat center / contain;
}
.funraisin-secondary-nav a.btn-login:hover { color: var(--rfy-red) !important; }

/* Keyboard focus */
.funraisin-header-nav a:focus-visible, .funraisin-header-nav button:focus-visible { outline: 3px solid var(--rfy-focus) !important; outline-offset: 3px; }

/* ===== PART 2 - DESKTOP HEADER ===== */
.funraisin-desktop-nav .primary-nav-container { padding: 18px 0 !important; }
.funraisin-desktop-nav .col-sm-9 > .row { margin: 0 !important; }

/* Top row in one line */
.funraisin-desktop-nav .funraisin-secondary-nav .navbar-nav {
  display: flex !important;
  align-items: center;
  gap: 26px;
  margin: 0 !important;
  float: none !important;
}
.funraisin-desktop-nav .funraisin-secondary-nav .navbar-nav > li { float: none !important; padding: 0 !important; margin: 0 !important; }
.funraisin-desktop-nav .funraisin-secondary-nav a.btn-primary, .funraisin-desktop-nav .funraisin-secondary-nav a.btn-secondary { width: 126px; }
.funraisin-desktop-nav .navbar-form #header_kw { width: 100px !important; border-bottom: 2px solid transparent !important; }
.funraisin-desktop-nav .navbar-form #header_kw:focus { width: 160px !important; outline: none; border-bottom-color: var(--rfy-navy) !important; }

/* Main menu - Home, About, Your Impact etc */
.funraisin-desktop-nav .funraisin-primary-nav { padding: 0 !important; margin-top: 14px; }
.funraisin-desktop-nav .funraisin-primary-nav .navbar-nav {
  display: flex !important;
  align-items: center;
  gap: 26px;
  margin: 0 !important;
  float: none !important;
}
.funraisin-desktop-nav .funraisin-primary-nav .navbar-nav > li { float: none !important; padding: 0 !important; margin: 0 !important; }
.funraisin-desktop-nav .funraisin-primary-nav .navbar-nav > li > a {
  padding: 4px 0 !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font-family: var(--rfy-font) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.funraisin-desktop-nav .funraisin-primary-nav .navbar-nav > li > a:hover, .funraisin-desktop-nav .funraisin-primary-nav .navbar-nav > li > a:focus { background: none !important; color: var(--rfy-navy) !important; border-bottom-color: var(--rfy-red); }
.funraisin-desktop-nav .funraisin-primary-nav .navbar-nav > li > a .fa-home { font-size: 19px; color: var(--rfy-navy) !important; }

/* Desktop page on tablets (Funraisin swaps in its own small header at 1024px and below) */
.funraisin-mobile-nav .site-logo img { width: 100% !important; max-width: 180px; height: auto; }
.funraisin-mobile-nav .col-xs-3 a { color: var(--rfy-navy) !important; font-family: var(--rfy-font); font-size: 16px; }
.funraisin-mobile-nav .c-hamburger span, .funraisin-mobile-nav .c-hamburger span::before, .funraisin-mobile-nav .c-hamburger span::after { background-color: var(--rfy-navy) !important; }

/* ===== PART 3 - SLIDE-OUT MENU ===== */
.funraisin-page-left .navbar-nav > li > a {
  background: none !important;
  color: var(--rfy-navy) !important;
  font-family: var(--rfy-font) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
}

/* ===== FOOTER ===== */
.funraisin-footer { display: none; }
.rfy-footer {
  --rfy-footer-bg: #24303A;
  --rfy-footer-text: #FFFFFF;
  --rfy-footer-social: #5BA4DE;
  --rfy-footer-focus: #F2B705;
  --rfy-footer-font: "Jost", "DM Sans", sans-serif;
  background: var(--rfy-footer-bg);
  color: var(--rfy-footer-text);
  font-family: var(--rfy-footer-font);
  font-size: 14px;
  line-height: 1.45;
  padding: clamp(48px, 7vw, 72px) clamp(20px, 4vw, 24px) clamp(40px, 6vw, 64px);
}
.rfy-footer *, .rfy-footer *::before, .rfy-footer *::after { box-sizing: border-box; }
.rfy-footer ul { list-style: none; margin: 0; padding: 0; }
.rfy-footer img { max-width: 100%; }
.rfy-footer a { color: var(--rfy-footer-text); text-decoration: none; }
.rfy-footer a:hover { text-decoration: underline; }
.rfy-footer a:focus-visible { outline: 3px solid var(--rfy-footer-focus); outline-offset: 3px; }
.rfy-footer__inner { max-width: 1060px; margin: 0 auto; }

/* Top row: logo + social */
.rfy-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.rfy-footer__logo { flex-shrink: 0; }
.rfy-footer__logo img { display: block; width: clamp(160px, 18vw, 198px); height: auto; }

/* Turns the navy logo white - remove once a white logo is uploaded */
.rfy-footer__logo--tint { filter: brightness(0) invert(1); }
.rfy-footer__social p { margin: 0 0 8px; font-size: 13px; text-align: right; }
.rfy-footer__social ul { display: flex; justify-content: flex-end; gap: 18px; }
.rfy-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rfy-footer-social);
  color: var(--rfy-footer-bg);
  font-size: 17px;
  transition: background-color 0.2s ease;
}
.rfy-footer__social a:hover { background: #FFFFFF; text-decoration: none; }

/* Flags */
.rfy-footer__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 46px) !important;
}
.rfy-footer__flags img {
  display: block;
  width: 34px;
  height: 23px;
  object-fit: cover;
}

/* Statement */
.rfy-footer__statement { max-width: 1060px; margin: 30px auto 0; text-align: center; }
.rfy-footer__statement p { margin: 0 0 8px; }

/* Badges */
.rfy-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 44px);
}
.rfy-footer__badge--round { width: 74px; height: auto; }
.rfy-footer__badge--qip { width: 112px; height: auto; }

/* Bottom row: legals + powered by */
.rfy-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 32px;
}
.rfy-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  font-size: 12px;
}
.rfy-footer__legal li + li::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 14px;
  margin: 0 12px;
  background: var(--rfy-footer-text);
  vertical-align: middle;
}
.rfy-footer__powered { display: block; flex-shrink: 0; }
.rfy-footer__powered img {
  display: block;
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}
.rfy-footer__powered:hover { text-decoration: none; }

/* Tablet - 768px to 991px */
@media (max-width: 991px) {
  .rfy-footer { font-size: 13.5px; }
  .rfy-footer__statement br { display: none; }
  .rfy-footer__bottom { align-items: center; }
}

/* Mobile - up to 767px */
@media (max-width: 767px) {
  .rfy-footer { font-size: 14px; line-height: 1.55; }

  /* Stack and centre everything */
  .rfy-footer__top, .rfy-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }
  .rfy-footer__social p { text-align: center; }
  .rfy-footer__social ul, .rfy-footer__flags, .rfy-footer__badges { justify-content: center; }

  /* Bigger tap targets for social icons */
  .rfy-footer__social a { width: 44px; height: 44px; font-size: 20px; }
  .rfy-footer__statement { margin-top: 28px; }
  .rfy-footer__statement p { margin-bottom: 14px; }

  /* Legal links stack, with roomy tap targets */
  .rfy-footer__legal { flex-direction: column; gap: 0; font-size: 13px; }
  .rfy-footer__legal li { padding: 7px 0; }
  .rfy-footer__legal li + li::before { display: none; }
}

/* Small phones - up to 400px */
@media (max-width: 400px) {
  .rfy-footer { font-size: 13.5px; }
  .rfy-footer__badges { gap: 18px; }
}

/* ===== PART 4 - FUNDRAISER AND TEAM PAGES ===== */

/* Hero */
.profile-header {
  background: #003767 url("https://d1jubuv78gvhbr.cloudfront.net/9cb27b2df70076634e8eb333d0ab77e9.jpg") center top / cover !important;
  background-position: center min(0px, calc(122px - 8.24vw)) !important;
  height: 420px !important;
  min-height: 0 !important;
}
.profile-header .profile-image-frame {
  width: 175px;
  height: 175px;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 50%;
  background: #EEF6FB !important;
}

/* Crop the photo, not the frame, so the camera badge can overlap */
.profile-header .profile-image-preview { height: 100%; border-radius: 50%; overflow: hidden; }
.profile-header .profile-image { width: 100% !important; border: 0 !important; }

/* Camera badge - only the page owner sees it */
.profile-header .profile-image-upload { left: -8px !important; bottom: -6px !important; z-index: 2; }
.profile-header .profile-image-upload a,
.profile-header .profile-image-upload label,
.profile-header .profile-image-upload .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 3px solid #FFFFFF !important;
  border-radius: 50% !important;
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
  font-size: 20px !important;
}
.profile-header h1 {
  margin: 0 0 22px !important;
  color: #FFFFFF !important;
  font: 700 34px/1.15 var(--rfy-font) !important;
  text-transform: none !important;
}
.funraisin-profile-header > p { display: none; }

/* Share icons (desktop) */
.profile-header .share-page-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-header .share-page-icons::before {
  content: "Share my page";
  flex-basis: 100%;
  color: #FFFFFF;
  font: 500 13px var(--rfy-font);
}
.profile-header .share-page-icons a.btn-social {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font-size: 14px !important;
}

/* Join Us (team pages) - on its own line under the icons, smaller */
.profile-header .share-page-icons::after { content: ""; order: 1; flex-basis: 100%; }
.profile-header .share-page-icons .btn-primary {
  order: 2;
  margin: 6px 0 0 !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

/* Centre all share icons (Funraisin adds uneven padding and margins) */
.share-page-icons a.btn-social { padding: 0 !important; }
.share-page-icons a.btn-social i { margin: 0 !important; }

/* Goal card */
.profileSidebar {
  margin-top: -310px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  font-family: var(--rfy-font);
}
.profileSidebar .sidebar-top {
  position: relative !important;
  padding: 30px 36px 65px !important;
  border-radius: 0 !important;
  background: var(--rfy-red) !important;
}
.profileSidebar .sidebar-top h2 { margin: 0 0 22px !important; font: 700 24px/1.25 var(--rfy-font) !important; text-transform: lowercase !important; }
.profileSidebar .sidebar-top h2::first-letter { text-transform: uppercase; }
.profileSidebar .sidebar-top h2, .profileSidebar .stat-label h4, .profileSidebar .stat-label h3 { color: #FFFFFF !important; }
.profileSidebar .stat-label h4 { font: 500 14px var(--rfy-font) !important; text-transform: none !important; }
.profileSidebar .iveRaised h4::after, .profileSidebar .raised h4::after { content: " So Far"; }
.profileSidebar .stat-label h3 { font: 700 22px var(--rfy-font) !important; }

/* Progress bar + message under it */
.profileSidebar .progress-wrap { position: static !important; padding: 18px 0 0 !important; }
.profileSidebar .progress {
  position: static !important;
  height: 18px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}

/* Bar fills the full height with a flat edge */
.profileSidebar .progress-bar {
  height: 100% !important;
  border-radius: 0 !important;
  background: #6CB4E4 !important;
  box-shadow: none !important;
}
.profileSidebar .progress-bar::after {
  content: "I\2019ve reached " attr(aria-valuenow) "% of my goal!";
  position: absolute;
  inset: auto 0 0;
  color: #FFFFFF;
  font: 500 15px var(--rfy-font);
  text-align: center;
  bottom: 20px;
}
.profileSidebar .progress-bar.is-zero::after { content: "Be the first to support my ride!"; }

/* Donation form - all three steps */
.profileSidebar .profileSponsorForm { padding: 28px 24px 30px !important; }

/* Step tabs */
#sidebar-form-toggler {
  display: flex;
  padding: 0 !important;
  max-width: 164px;
  margin: 0 auto 24px !important;
  border: 2px solid var(--rfy-navy);
}
#sidebar-form-toggler li { flex: 1; padding: 0 !important; }
#sidebar-form-toggler li + li { border-left: 2px solid var(--rfy-navy); }
#sidebar-form-toggler a {
  display: block;
  padding: 7px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font-weight: 700;
}
#sidebar-form-toggler a.active { background: var(--rfy-navy) !important; color: #FFFFFF !important; }

/* Step 1 - amounts as circles with their descriptions */
#chooseamount > h4, #chooseamount .copy-text, .donationHandlers .arrow-top { display: none !important; }
.donationHandlers .radio {
  float: none !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 18px !important;
  border: 0 !important;
  background: none !important;
}
.donationHandlers .radio-wrap {
  display: flex !important;
  align-items: center;
  gap: 18px;
  text-align: left;
}

/* Fundraiser pages - space between amount rows */
.profileSidebar .donationHandlers .radio { margin-bottom: 36px !important; }

/* Amount circles (fundraiser pages and the sign-up donation step) */
.donationHandlers .radio-amount, #amountdetails .donationHandlers .radio .radio-amount {
  order: -1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  border: 2px solid var(--rfy-navy);
  border-radius: 50%;
  color: var(--rfy-navy) !important;
  font: 500 18px var(--rfy-font) !important;
}
html #amountdetails .donationHandlers .radio.selected .radio-amount, html #amountdetails .donationHandlers .radio:hover .radio-amount { color: white !important; }
.donationHandlers .radio-copy {
  display: block !important;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.4;
}
.donationHandlers .radio.selected .radio-amount, .donationHandlers .radio:hover .radio-amount { background: var(--rfy-navy); color: #FFFFFF !important; }

/* All fields - square, navy outline */
.profileSidebar .input-group { display: flex !important; }
.profileSidebar .input-group-addon {
  display: flex !important;
  align-items: center;
  width: auto !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
}
.profileSidebar label { text-transform: none !important; color: var(--rfy-navy); font: 500 14px var(--rfy-font); }

/* Step 2 - Personal / Company toggle */
.profileSidebar .toggle-btn { border: 2px solid var(--rfy-navy) !important; border-radius: 0 !important; background: #FFFFFF !important; }
.profileSidebar .toggle-btn.bg-primary { background: var(--rfy-navy) !important; color: #FFFFFF !important; }

/* Fundraiser and team pages - Funraisin mobile template */

/* Photo and name stacked and centred */
.funraisin-page-center .profile-header {
  padding-bottom: 0 !important;
}
.funraisin-page-center .profile-header .header-profile-left {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.funraisin-page-center .profile-header .header-profile-left > .row {
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
}
.funraisin-page-center .profile-header .header-profile-left > .row > [class*="col-xs-"] {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: center !important;
}
.funraisin-page-center .profile-header .profile-image-frame {
  margin: 0 auto 16px !important;
}
.funraisin-page-center .profile-header h1 {
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

/* Donate - white outline on the red card */
.funraisin-page-center .profileSidebar .sidebar-top .btn-sponsor {
  border: 2px solid #FFFFFF !important;
  background: transparent !important;
  color: #FFFFFF !important;
}
.funraisin-page-center .profileSidebar .sidebar-top .btn-sponsor:hover,
.funraisin-page-center .profileSidebar .sidebar-top .btn-sponsor:focus {
  background: #FFFFFF !important;
  color: var(--rfy-red) !important;
}

/* "Share my page" in navy, not Funraisin's orange */
.funraisin-page-center .btn-share-popup {
  color: var(--rfy-navy) !important;
  font-weight: 600;
}

/* Team members - Funraisin mobile template, matches the desktop cards */
.funraisin-page-center #Members .donation {
  float: none !important;
  width: 100% !important;
  max-width: 300px;
  margin: 0 auto 16px;
  padding: 0 !important;
}
.funraisin-page-center #Members .panel {
  margin: 0;
  padding: 0 0 22px !important;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF;
  box-shadow: none !important;
}

/* Photo - navy-ringed circle */
.funraisin-page-center #Members .profileimage { padding: 0 !important; }
.funraisin-page-center #Members .profile-image-frame {
  width: 102px !important;
  height: 102px !important;
  margin: 24px auto 18px;
  padding: 0 !important;
  border: 1.5px solid var(--rfy-navy);
  border-radius: 50%;
  background: #EEF6FB;
  overflow: hidden;
}
.funraisin-page-center #Members .profile-image-wrapper,
.funraisin-page-center #Members .profile-image-wrapper a,
.funraisin-page-center #Members .profile-image-wrapper img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

/* Name */
.funraisin-page-center #Members .profilename { padding: 0 24px; }
.funraisin-page-center #Members .profilename h3 {
  margin: 0 0 20px !important;
  color: var(--rfy-navy) !important;
  font: 500 21px/1.25 var(--rfy-font) !important;
  text-transform: none !important;
}
.funraisin-page-center #Members .profilename .col-sm-12,
.funraisin-page-center #Members .profilename .col-xs-12 {
  float: none;
  width: auto;
  margin: 0 0 18px !important;
  padding: 0 !important;
}
.funraisin-page-center #Members .profilename .col-xs-12 { margin: 0 !important; }

/* Progress bar */
.funraisin-page-center #Members .progress {
  width: 100% !important;
  height: 16px;
  margin: 0;
  border: 1px solid var(--rfy-navy);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: none;
}
.funraisin-page-center #Members .progress-bar {
  height: 100%;
  border-radius: 0;
  background: #6CB4E4 !important;
  box-shadow: none;
}

/* Raised so far + arrow */
.funraisin-page-center #Members .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 !important;
}
.funraisin-page-center #Members .row::before,
.funraisin-page-center #Members .row::after { display: none; }
.funraisin-page-center #Members .row > span { float: none; width: auto; padding: 0; }
.funraisin-page-center #Members .row br { display: none; }
.funraisin-page-center #Members .grey-text { display: block; color: var(--rfy-navy) !important; font: 400 14px var(--rfy-font); }
.funraisin-page-center #Members .grey-text em { font-style: normal; }
.funraisin-page-center #Members h3.amount {
  margin: 4px 0 0 !important;
  color: var(--rfy-navy) !important;
  font: 500 22px/1.2 var(--rfy-font) !important;
}
.funraisin-page-center #Members .btn-tertiary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 50% !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font-size: 0 !important;
}
.funraisin-page-center #Members .btn-tertiary i { display: none; }
.funraisin-page-center #Members .btn-tertiary::before { content: "\f054"; font: 900 12px "Font Awesome 6 Free"; }

/* "View my Team Page" - a little more space above */
.funraisin-page-center #Members p.text-center { margin-top: 24px; }

/* Form buttons - full width, same height (colours come from Part 5) */
.profileSidebar .btn-tertiary, .profileSidebar .btn-primary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 46px;
}

/* Step 3 - "Cover platform costs" matches Stripe's card fields */
.funraisin-fee-box { padding: 0 !important; }
.funraisin-fee-box .bootstrap-select.form-control { height: auto; padding: 0 !important; border: 0 !important; }
.funraisin-fee-box .dropdown-toggle.form-control {
  height: 44px;
  border: 1px solid #E6E6E6 !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02) !important;
  color: #30313D !important;
}

/* Step 3 - card button */
.profileSidebar .btn-pay-creditcard {
  background: #FFFFFF !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  color: var(--rfy-navy) !important;
  font-family: var(--rfy-font);
}

/* Story */
.profileBlog { font: 16px/1.5 var(--rfy-font); }
.profileBlog h3.title {
  margin-bottom: 22px !important;
  color: var(--rfy-navy) !important;
  font: 700 25px/1.2 var(--rfy-font) !important;
  text-transform: none !important;
}

/* Supporters ("Thank you to my supporters") */
#Donations {
  margin: 0 !important;
  padding: 90px 0 100px !important;
  border: 0 !important;
  background: #FFFFFF !important;
}
#Donations h2, #Members h2 {
  margin: 0 0 44px !important;
  padding: 0 !important;
  color: var(--rfy-navy) !important;
  font: 700 40px/1.15 var(--rfy-font) !important;
  text-transform: none !important;
}

/* Swap Funraisin's absolute positioning for a centred grid */
#Donors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 245px));
  justify-content: center;
  gap: 27px;
  height: auto !important;
}
#Donors .donation { position: static !important; width: auto !important; padding: 0 !important; }
#Donors .panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 28px 20px 26px;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

/* Name, then amount, then message */
#Donors .profilename { display: contents; }
#Donors .amount { order: 1; }
#Donors .comments { order: 2; }
#Donors .profile-image-frame {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border: 1.5px solid var(--rfy-navy);
  border-radius: 50%;
  background: #EEF6FB;
  overflow: hidden;
}
#Donors .profile-image-wrapper {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#Donors .profile-image-frame img { width: 100%; height: 100%; object-fit: cover; }
#Donors .amount {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 8px 0 10px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}
#Donors h3, #Donors .amount p {
  margin: 0 !important;
  color: var(--rfy-navy) !important;
  font: 500 19px/1.25 var(--rfy-font) !important;
  text-transform: none !important;
}
#Donors .amount b { font-weight: inherit; }
#Donors h3::after { display: none; }
#Donors .comments p { margin: 0; color: #6B6B6B; font: 400 15px/1.5 var(--rfy-font); }
@media (max-width: 767px) {
  #Donations { padding: 48px 0 56px !important; }
  #Donations h2 { margin-bottom: 28px !important; font-size: 30px !important; }
  #Donors { gap: 16px; }
}

/* My Team (team members) */
#Members {
  margin: 0 !important;
  padding: 70px 0 80px !important;
  border: 0 !important;
  background: #EEF6FB !important;
}

/* Swap Funraisin's absolute positioning for a centred grid */
#MembersBlock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 278px));
  justify-content: center;
  gap: 26px;
  height: auto !important;
}
#MembersBlock > .clear { display: none; }
#MembersBlock .member {
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  text-decoration: none !important;
}
#MembersBlock .panel {
  height: 100%;
  margin: 0;
  padding: 0 0 22px !important;
  border: 1px solid var(--rfy-navy);
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
}

/* Navy team name bar (added in profile_team.php) */
#MembersBlock .member-team {
  padding: 16px 12px;
  background: var(--rfy-navy);
  color: #FFFFFF;
  font: 500 20px/1.25 var(--rfy-font);
  text-align: center;
}
#MembersBlock .profile-image-frame {
  width: 102px;
  height: 102px;
  margin: 24px auto 18px;
  padding: 0 !important;
  border: 1.5px solid var(--rfy-navy);
  border-radius: 50%;
  background: #EEF6FB;
  overflow: hidden;
}
#MembersBlock .profile-image-wrapper, #MembersBlock .profile-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}
#MembersBlock .profilename { padding: 0 24px; }
#MembersBlock .profilename h3 {
  margin: 0 0 20px !important;
  color: var(--rfy-navy) !important;
  font: 500 21px/1.25 var(--rfy-font) !important;
  text-transform: none !important;
}
#MembersBlock .profilename h3::after { display: none; }
#MembersBlock .profilename .col-sm-12 {
  float: none;
  width: auto;
  margin: 0 0 18px !important;
  padding: 0;
}

/* Progress bar */
#MembersBlock .progress {
  height: 16px;
  margin: 0;
  border: 1px solid var(--rfy-navy);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: none;
}
#MembersBlock .progress-bar {
  height: 100%;
  border-radius: 0;
  background: #6CB4E4;
  box-shadow: none;
}

/* Raised so far + arrow */
#MembersBlock .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 24px !important;
}
#MembersBlock .row::before, #MembersBlock .row::after { display: none; }
#MembersBlock .row > div { width: auto; padding: 0; }
#MembersBlock .grey-text { color: var(--rfy-navy) !important; font: 400 14px var(--rfy-font); }
#MembersBlock .grey-text em { font-style: normal; }
#MembersBlock h3.amount { margin: 4px 0 0 !important; color: var(--rfy-navy) !important; font: 500 22px/1.2 var(--rfy-font) !important; }
#MembersBlock .btn-tertiary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 50% !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font-size: 0 !important;
}
#MembersBlock .btn-tertiary i { display: none; }
#MembersBlock .btn-tertiary::before { content: "\f054"; font: 900 12px "Font Awesome 6 Free"; }
#MembersBlock .member:hover .btn-tertiary { background: var(--rfy-navy) !important; color: #FFFFFF !important; }
@media (max-width: 767px) {
  #Members { padding: 48px 0 56px !important; }
  #MembersBlock { gap: 16px; }
}

/* Desktop layout on narrower screens */
@media (max-width: 991px) {
  .profile-header { height: auto !important; padding: 64px 0 40px; }
  .profileSidebar { margin-top: 30px !important; }
}

/* Fundraiser and team pages - phones */
@media (max-width: 767px) {

  /* Hero - everything centred */
  .profile-header { padding: 48px 0 40px !important; }
  .profile-header .vertical-align {
    flex-direction: column;
    align-items: center;
    height: auto !important;
    text-align: center;
  }
  .profile-header .col-sm-3, .profile-header .funraisin-profile-header { float: none !important; width: 100% !important; }
  .profile-header .profile-image-frame { width: 120px; height: 120px; margin-bottom: 20px; }
  .profile-header .profile-image-upload a, .profile-header .profile-image-upload label, .profile-header .profile-image-upload .btn { width: 38px !important; height: 38px !important; font-size: 16px !important; }
  .profile-header h1 { margin-bottom: 18px !important; font-size: 30px !important; }

  /* Share icons centred, Join Us on its own line */
  .profile-header .share-page-icons { justify-content: center; gap: 12px; }
  .profile-header .share-page-icons::before { font-size: 15px; }
  .profile-header .share-page-icons a.btn-social { width: 38px; height: 38px; font-size: 17px !important; }
  .profile-header .share-page-icons .btn-primary { margin: 6px auto 0 !important; }

  /* Story - room above, full width */
  .profile-content { clear: both; padding: 48px 15px 0 !important; }
  .profileBlog h3.title { font-size: 26px !important; }

  /* Supporters - two across */
  #Donors { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  #Donors .panel { padding: 22px 12px 20px; }
  #Donors h3, #Donors .amount p { font-size: 17px !important; }
  #Donors .comments p { font-size: 14px; }

  /* My Team - one card, a little wider */
  #Members h2 { margin-bottom: 28px !important; font-size: 30px !important; }
  #MembersBlock { grid-template-columns: minmax(0, 320px); }
}

/* ===== PART 5 - BUTTONS, FIELDS AND THEME COLOUR ===== */

/* Red button */
.btn-primary, .btn-tertiary {
  border: 2px solid var(--rfy-red) !important;
  border-radius: 0 !important;
  background: var(--rfy-red) !important;
  color: #FFFFFF !important;
  font: 700 16px var(--rfy-font) !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: none !important;
}
.btn-primary:hover, .btn-tertiary:hover { border-color: var(--rfy-red-dark) !important; background: var(--rfy-red-dark) !important; }

/* Navy outline button (also used for Back) */
.btn-secondary, .btn-default, .profileSidebar .btn-back {
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font: 700 16px var(--rfy-font) !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: none !important;
}
.btn-secondary:hover, .btn-default:hover, .profileSidebar .btn-back:hover { background: var(--rfy-navy) !important; color: #FFFFFF !important; }

/* Fields - square with a navy outline */
.form-control {
  height: 40px;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--rfy-navy) !important;
  font-family: var(--rfy-font) !important;
  font-size: 16px !important;
}
textarea.form-control { height: auto; }

/* Funraisin's theme colour is orange - swap it for navy */
.color-primary { color: var(--rfy-navy) !important; }
.bg-primary { background-color: var(--rfy-navy) !important; color: #FFFFFF !important; }
.border-primary { border-color: var(--rfy-navy) !important; }

/* ===== PART 6 - ACCOUNT TABS (My Page / My Account, all logged-in pages) ===== */
/* Remove Funraisin's grey line, spacer and padding */
.funraisin-page-loggedin-toggle { margin: 0 !important; padding: 50px 0 0 !important; border: 0 !important; }
.template-login-dashboard #content-main > .height-20 { display: none; }
.funraisin-page-nav { padding: 0 !important; }
.funraisin-page-loggedin-toggle .navbar {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-height: 0;
  margin: 0 !important;
  border: 0 !important;
}
.funraisin-page-loggedin-toggle .navbar li { float: none !important; }
.funraisin-page-loggedin-toggle .navbar a {
  display: block;
  min-width: 125px;
  padding: 8px 12px !important;
  border-bottom: 2px solid #8C99A6;
  background: none !important;
  color: #5A6672 !important;
  font: 400 16px var(--rfy-font) !important;
  text-align: center;
  text-transform: none !important;
}
.funraisin-page-loggedin-toggle .navbar a.active { border-bottom-color: var(--rfy-navy); color: var(--rfy-navy) !important; font-weight: 500 !important; }
.funraisin-page-loggedin-toggle .navbar a span { display: none; }

/* Link bar under the tabs */
.funraisin-page-nav .navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  min-height: 0;
  margin: 22px 0 40px !important;
  border: 0 !important;
}
.funraisin-page-nav .navbar li { float: none !important; }
.funraisin-page-nav .navbar a {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font: 500 15px var(--rfy-font) !important;
}
.funraisin-page-nav .navbar a:hover, .funraisin-page-nav .navbar a.active { text-decoration: underline; }
@media (max-width: 767px) {
  /* Tabs - centred, equal width */
  .funraisin-page-loggedin-toggle { padding-top: 28px !important; }
  .funraisin-page-loggedin-toggle .navbar { gap: 12px; padding: 0 16px; }
  .funraisin-page-loggedin-toggle .navbar li { flex: 1 1 0 !important; max-width: 150px; width: auto !important; }
  .funraisin-page-loggedin-toggle .navbar a { width: 100%; min-width: 0; white-space: nowrap; }

  /* Link bar */
  .funraisin-page-nav .navbar { gap: 6px 18px; margin: 16px 16px 24px !important; }
}

/* Account tabs and links on phones */
@media (max-width: 767px) {
  .funraisin-page-loggedin-toggle .container { padding: 0 12px !important; }
  .funraisin-page-loggedin-toggle ul.nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px;
    margin: 0 !important;
  }
  .funraisin-page-loggedin-toggle ul.nav > li {
    flex: 1 1 0;
    min-width: 0;
    max-width: 130px;
    padding: 20px 0 !important;
    text-align: center;
  }
  .funraisin-page-loggedin-toggle ul.nav > li > a {
    display: block;
    padding: 8px 4px !important;
    font-size: 15px !important;
    white-space: nowrap;
  }
  .funraisin-page-nav { padding-bottom: 16px; }
  .funraisin-page-nav ul.nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 20px;
    margin: 0 !important;
  }
  .funraisin-page-nav ul.nav > li { margin: 0 !important; padding: 0 !important; }
  .funraisin-page-nav ul.nav > li > a { padding: 0 !important; font-size: 15px !important; }
}

/* Account links on phones - space before the dashboard boxes */
@media (max-width: 767px) {
  .funraisin-page-nav {
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
  }
  .dash-features {
    padding-top: 16px !important;
  }
}

/* ===== PART 7 - REGISTRATION (/register) ===== */

/* Hero - navy with the pattern along the top, no grey box (registration and search pages) */
.template-event-register .funraisin-header.header-hero,
.template-sponsor .funraisin-header.header-hero {
  height: auto !important;
  min-height: 0 !important;
  padding: 120px 0 48px !important;
  background: #003767 url("https://d1jubuv78gvhbr.cloudfront.net/9cb27b2df70076634e8eb333d0ab77e9.jpg") center top / max(100%, 1200px) auto no-repeat !important;
}
.template-event-register .header-hero .header-text, .template-event-register .header-hero h1,
.template-sponsor .header-hero .header-text, .template-sponsor .header-hero h1 { width: 100% !important; }
.template-event-register .header-hero h1,
.template-sponsor .header-hero h1 {
  margin: 0 !important;
  color: #FFFFFF !important;
  font: 700 0/1.15 var(--rfy-font) !important;
  text-align: center !important;
  text-transform: none !important;
}

/* Swap the saved heading ("Ride for Youth 2026") for "Ride for Youth" */
.template-event-register .header-hero h1::after,
.template-sponsor .header-hero h1::after { content: "Ride for Youth"; font-size: 40px; }

/* "Register Now" links to the page you're already on */
.template-event-register .header-hero .btn { display: none !important; }

/* "Already Registered" message */
#content-main .content:has(.logout-redirect) h1 { color: var(--rfy-navy) !important; font: 700 30px/1.2 var(--rfy-font) !important; text-transform: none !important; }
.logout-redirect { color: #333333; font: 16px/1.6 var(--rfy-font); }
.logout-redirect a { color: var(--rfy-navy) !important; font-weight: 700; text-decoration: underline; }

/* Steps - numbered circles in a row */
.registration-steps { margin: 0 !important; padding: 40px 0 !important; }
.registration-steps ul {
  --gap: 24px;
  display: flex;
  justify-content: center;
  gap: var(--gap) !important;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.registration-steps li {
  flex: 0 1 130px;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  position: relative;
  list-style: none;
  counter-increment: step;
}
.registration-steps li a {
  display: flex !important; /* Funraisin sets inline-block, which knocked the circles left */
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  background: none !important;
  color: #5A6672 !important;
  font: 500 13px/1.25 var(--rfy-font) !important;
  text-align: center;
  text-transform: none !important;
  text-decoration: none !important;
}
.registration-steps li a::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--rfy-navy);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--rfy-navy);
  font: 700 13px var(--rfy-font);
}
.registration-steps li.current a { color: var(--rfy-navy) !important; font-weight: 700 !important; }
.registration-steps li.current a::before { background: var(--rfy-navy); color: #FFFFFF; }

/* Line joining the circles */
.registration-steps li + li::before {
  content: "";
  position: absolute;
  top: 13px;
  right: calc(50% + 22px);
  width: calc(100% + var(--gap) - 44px);
  height: 2px;
  background: #C9D6E2;
}

/* Create Account / Already have an Account tabs */
.reg-tabs {
  display: flex !important;
  max-width: 560px;
  margin: 0 auto !important;
  border: 0 !important;
}
.reg-tabs li {
  flex: 1 1 0;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  opacity: 1 !important;
}
.reg-tabs li + li { margin-left: -2px !important; }
.reg-tabs h3 { height: 100%; margin: 0 !important; }
.reg-tabs .rego-tab {
  width: 100%;
  height: 100% !important;
  padding: 14px 10px !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font: 700 16px/1.2 var(--rfy-font) !important;
  text-transform: none !important;
}
.reg-tabs .rego-tab.active { background: var(--rfy-navy) !important; color: #FFFFFF !important; }
.template-event-register .tab-content .tab-pane { border-radius: 0 !important; }

/* Form panels */
#RegistrationForm .section > .container { border-color: #C9D6E2 !important; border-radius: 0 !important; }

/* Gap between the team panel and the terms panel */
#RegistrationForm .section.pb0 { padding-bottom: 20px !important; }
.template-event-register .content h3 { color: var(--rfy-navy) !important; font: 700 22px/1.25 var(--rfy-font) !important; text-transform: none !important; }
.template-event-register .content p, .template-event-register .content label, .template-event-register .terms-panel { font-family: var(--rfy-font) !important; }
#RegistrationForm .form-group > label {
  float: none;
  width: 100%;
  padding-bottom: 6px !important;
  color: var(--rfy-navy);
  font: 500 15px var(--rfy-font) !important;
  text-transform: none !important;
}

/* Date of birth - day, month, year in one row */
#RegistrationForm .form-group:has(#m_dob_d) { display: flex; flex-wrap: wrap; }
#RegistrationForm .form-group:has(#m_dob_d) > div { flex: 1 1 0; width: auto !important; padding: 0 0 0 15px !important; }
#RegistrationForm .form-group:has(#m_dob_d) > div:last-child { flex-grow: 1.4; padding-right: 15px !important; }

/* Address "enter manually" - navy, not orange */
.template-event-register .expand-address { color: var(--rfy-navy) !important; text-decoration: underline; }
.template-event-register .expand-address small { font: 500 14px var(--rfy-font); }

/* No Thanks / Join / Create */
.template-event-register .toggle-btn {
  padding: 10px 0 !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF;
  color: var(--rfy-navy);
  font: 500 15px var(--rfy-font) !important;
}
.template-event-register .toggle-btn + .toggle-btn { border-left: 0 !important; }

/* Terms - shrink to fit when there's little text, scroll when long */
#terms-panel { height: auto !important; max-height: 300px; }
.template-event-register input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rfy-navy);
  vertical-align: -3px;
}
.template-event-register .terms-panel h4 { color: var(--rfy-navy) !important; font: 700 17px var(--rfy-font) !important; }
@media (max-width: 767px) {
  .template-event-register .funraisin-header.header-hero,
  .template-sponsor .funraisin-header.header-hero { padding: 96px 0 32px !important; }
  .template-event-register .header-hero h1::after,
  .template-sponsor .header-hero h1::after { font-size: 28px; }
  .registration-steps { padding: 32px 0 !important; }
  .registration-steps ul { --gap: 8px; }
  .registration-steps li a { font-size: 12px !important; }
  #content-main .content:has(.logout-redirect) h1 { font-size: 24px !important; }
  .reg-tabs .rego-tab { font-size: 15px !important; }
  .template-event-register .content h3 { font-size: 20px !important; }
  #RegistrationForm .btn-xl { width: 100%; max-width: 320px; }
}

/* ===== SEARCH FOR A FUNDRAISER (/sponsor/ride-for-youth) ===== */

/* Hero shares the registration page rules in Part 7 - just add space for the button */
.template-sponsor .header-hero h1 {
  margin-bottom: 20px !important;
}
.template-sponsor .header-hero .btn {
  padding: 15px 28px !important;
}

/* Search bar */
.template-sponsor .searchPageWrapper {
  padding: 30px 0 !important;
}
.template-sponsor .searchPageWrapper h2 {
  margin: 0 0 24px !important;
  color: var(--rfy-navy) !important;
  font-size: 42px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}
.template-sponsor .searchPageWrapper .form-group {
  display: block;
  width: 100%;
  margin: 0;
}
.template-sponsor .searchPageWrapper .input-group {
  display: flex !important;
  width: 100% !important;
  max-width: 440px;
  margin: 0 auto;
}
.template-sponsor .searchPageWrapper .form-control {
  flex: 1;
  height: 52px !important;
  padding: 0 18px !important;
  border: 1px solid var(--rfy-navy) !important;
  border-right: 0 !important;
  font-size: 18px !important;
}
.template-sponsor .searchPageWrapper .input-group-btn {
  display: flex !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}
.template-sponsor .searchPageWrapper .input-group-btn button {
  width: 52px;
  height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 20px !important;
  letter-spacing: 0;
}

/* Results - white cards, like the home page */
.template-sponsor .content.light-grey {
  padding: 60px 0 80px !important;
  background: #EEF6FB !important;
}
.template-sponsor .content.light-grey > .container > h3 {
  margin: 0 !important;
  color: var(--rfy-navy) !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  text-align: center;
  text-transform: none !important;
}
.template-sponsor #Members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 270px));
  justify-content: center;
  gap: 26px;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
.template-sponsor #Members::before,
.template-sponsor #Members::after {
  display: none;
}
/* Funraisin's matchHeight script sets fixed heights - let the grid size the cards instead */
.template-sponsor #Members .member {
  float: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  text-decoration: none !important;
}
.template-sponsor #Members .panel {
  height: 100% !important;
  margin: 0 !important;
  padding: 32px 24px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 55, 103, 0.12) !important;
}
.template-sponsor #Members .member:hover .panel {
  box-shadow: 0 6px 20px rgba(0, 55, 103, 0.2) !important;
}
.template-sponsor #Members .profile-image {
  width: 110px !important;
  height: 110px;
  margin: 0 auto 16px;
  border: 1.5px solid var(--rfy-navy);
  border-radius: 50%;
  background: #EEF6FB;
  object-fit: cover;
}
.template-sponsor #Members .lump-member-title {
  margin: 0 0 4px !important;
  color: var(--rfy-navy) !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
.template-sponsor #Members .profilename p {
  margin: 0;
  color: #5A6672;
  font-size: 15px;
}
.template-sponsor #Members hr {
  margin: 18px 0 14px;
  border-top: 1px solid #C9D6E2;
}

/* Raised so far + arrow */
.template-sponsor #Members .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 !important;
}
.template-sponsor #Members .row::before,
.template-sponsor #Members .row::after {
  display: none;
}
.template-sponsor #Members .row > span {
  float: none;
  width: auto;
  padding: 0 !important;
}
.template-sponsor #Members .grey-text {
  color: var(--rfy-navy) !important;
  font-size: 14px;
}
.template-sponsor #Members .grey-text em {
  font-style: normal;
}
.template-sponsor #Members h3.amount {
  margin: 2px 0 0 !important;
  color: var(--rfy-navy) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
}
.template-sponsor #Members .btn-tertiary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 50% !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font-size: 0 !important;
}
.template-sponsor #Members .btn-tertiary i {
  display: none;
}
.template-sponsor #Members .btn-tertiary::before {
  content: "\f054";
  font: 900 12px "Font Awesome 6 Free";
}
.template-sponsor #Members .member:hover .btn-tertiary {
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
}

/* Phones */
@media (max-width: 767px) {
  .template-sponsor .searchPageWrapper h2 {
    font-size: 30px !important;
  }
  .template-sponsor .content.light-grey {
    padding: 40px 0 56px !important;
  }
  .template-sponsor .content.light-grey > .container > h3 {
    font-size: 22px !important;
  }
  .template-sponsor #Members {
    grid-template-columns: minmax(0, 320px);
    gap: 16px;
  }
}

/* Already registered - hide the header and give the message room */
body:has(.logout-redirect) .funraisin-header.header-hero {
  display: none !important;
}
#content-main .content:has(.logout-redirect),
main .content:has(.logout-redirect) {
  padding: 64px 0 72px !important;
}
.content:has(.logout-redirect) .container {
  width: auto !important;
  max-width: 600px;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
.content:has(.logout-redirect) h1,
.content:has(.logout-redirect) h2 {
  margin: 0 0 20px !important;
  color: var(--rfy-navy) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}
.logout-redirect {
  margin: 0 0 12px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  #content-main .content:has(.logout-redirect),
  main .content:has(.logout-redirect) {
    padding: 48px 0 56px !important;
  }
  .content:has(.logout-redirect) h1,
  .content:has(.logout-redirect) h2 {
    font-size: 26px !important;
  }
}

/* ===== PART 8 - PHONE HEADER (Funraisin mobile template) ===== */
/* Account links already sit behind the profile photo, so hide the duplicate dropdown */
.funraisin-header-wrapper > .funraisin-header-nav .LoginDropdown { display: none !important; }

/* Find a friend, Donate and Sign up on one row */
.funraisin-header-wrapper > .funraisin-header-nav .funraisin-secondary-nav { padding: 0 !important; }
.funraisin-header-wrapper > .funraisin-header-nav .funraisin-secondary-nav ul.nav {
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px 10px;
  margin: 0 !important;
  padding: 4px 0 16px !important;
}
.funraisin-header-wrapper > .funraisin-header-nav .funraisin-secondary-nav ul.nav > li {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.funraisin-header-wrapper > .funraisin-header-nav .navbar-form { margin: 0 !important; padding: 0 !important; }
.funraisin-header-wrapper > .funraisin-header-nav .navbar-form .input-group { width: auto !important; }
.funraisin-header-wrapper > .funraisin-header-nav .navbar-form .form-control {
  width: 96px !important;
  min-width: 0;
  padding: 0 0 0 6px !important;
  font-size: 15px !important;
}
.funraisin-header-wrapper > .funraisin-header-nav .funraisin-secondary-nav a.btn-primary,
.funraisin-header-wrapper > .funraisin-header-nav .funraisin-secondary-nav a.btn-secondary {
  height: 40px;
  padding: 0 14px !important;
  font-size: 15px !important;
}

/* Very small phones - Find a friend on its own row */
@media (max-width: 359px) {
  .funraisin-header-wrapper > .funraisin-header-nav .funraisin-secondary-nav ul.nav > li:first-child { display: flex; flex-basis: 100%; justify-content: center; }
}

/* Phone header - navy user icon instead of the profile photo */
.primary-nav-container a.slide-right:has(img.profile-image) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
}
.primary-nav-container a.slide-right img.profile-image {
  display: none;
}
.primary-nav-container a.slide-right:has(img.profile-image)::before {
  content: "\f2bd";
  color: var(--rfy-navy);
  font: 900 34px "Font Awesome 6 Free";
}

/* Phone account menu (slides out from the right) - navy user icon instead of the profile photo */
.funraisin-page-right .loggedinimage a.lightbox {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.funraisin-page-right .loggedinimage img.profile-image {
  display: none !important;
}
.funraisin-page-right .loggedinimage a.lightbox::before {
  content: "\f2bd";
  color: var(--rfy-navy);
  font: 900 56px/1 "Font Awesome 6 Free";
}

/* ===== PART 9 - DASHBOARD (/login/event) ===== */

/* Hero */
.loggedin-header {
  background: #003767 url("https://d1jubuv78gvhbr.cloudfront.net/9cb27b2df70076634e8eb333d0ab77e9.jpg") center top / cover !important;
  background-position: center min(0px, calc(122px - 8.24vw)) !important;
  height: 405px !important;
  min-height: 0 !important;
  padding: 105px 0 0 !important;
}
.loggedin-header .cover-image-upload { display: none !important; }
.loggedin-header .container { width: min(1060px, calc(100% - 32px)) !important; padding: 0 !important; }
.loggedin-header .container > .vertical-align { align-items: flex-start !important; height: auto !important; }

/* Photo */
.loggedin-header .col-sm-3 {
  flex: 0 0 175px;
  width: 175px !important;
  margin: 29px 80px 0 0;
  padding: 0 !important;
}
.loggedin-header .profile-image-frame {
  position: relative;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: #EEF6FB;
}
.loggedin-header .profile-image-preview { height: 100%; border-radius: 50%; overflow: hidden; }
.loggedin-header .profile-image { width: 100% !important; border: 0 !important; }

/* Camera badge */
.loggedin-header .profile-image-upload { position: absolute; left: -6px !important; bottom: 0 !important; }
.loggedin-header .profile-image-upload .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  border: 3px solid #FFFFFF !important;
  border-radius: 50% !important;
  background: var(--rfy-navy) !important;
  font-size: 20px !important;
}

/* Text and raised box - one grid, box sits 30px above the name */
.loggedin-header .col-sm-9 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 220px;
  column-gap: 40px;
  align-items: start;
  width: auto !important;
  padding: 0 !important;
}
.loggedin-header .col-sm-9 > .row { display: contents; }
.loggedin-header .col-sm-9 > .row > div { width: auto !important; float: none !important; padding: 0; }
.loggedin-header .profile-header-title { grid-area: 1 / 1 / 3 / 2; margin-top: 30px; }
.loggedin-header .profile-header-raised { grid-area: 1 / 2; }
.loggedin-header .profile-header-goal { grid-area: 2 / 2; }
.loggedin-header .profile-header-yourpage { grid-area: 2 / 1 / 5 / 2; margin-top: 40px; }
.loggedin-header .profile-header-share { grid-area: 3 / 2; margin-top: 40px; }
.loggedin-header .profile-header-event { display: none !important; }

/* Remove Funraisin's 40px right padding so the field centres */
.loggedin-header .col-sm-9 > .row > .profile-header-yourpage { padding: 0 !important; }
.loggedin-header h1 {
  margin: 0 !important;
  color: #FFFFFF !important;
  font: 700 34px/1.15 var(--rfy-font) !important;
  text-transform: none !important;
}

/* Raised box */
.loggedin-header .profile-header-raised, .loggedin-header .profile-header-goal { background: #EEF6FB; color: var(--rfy-navy); text-align: center; }
.loggedin-header .profile-header-raised { padding: 26px 16px 0 !important; }
.loggedin-header .profile-header-raised h1 { color: var(--rfy-navy) !important; }
.loggedin-header .profile-header-goal { padding: 4px 16px 28px !important; }
.loggedin-header .profile-header-goal span { font: 500 14px var(--rfy-font) !important; }

/* Your page */
.loggedin-header .profile-header-yourpage p { margin: 0 0 10px; color: #FFFFFF; font: 500 14px var(--rfy-font) !important; }
.loggedin-header .profile-header-yourpage .input-group {
  display: flex;
  max-width: 410px;
  border-radius: 4px;
  overflow: hidden;
}
.loggedin-header #personalpageurl {
  height: 40px;
  border: 0 !important;
  background: #FFFFFF !important;
  color: #5A6672 !important;
}

/* Red button with a link icon instead of "View" */
.loggedin-header .profile-header-yourpage .input-group-addon {
  display: flex;
  width: 40px;
  padding: 0;
  border: 0;
  background: var(--rfy-red) !important;
}
.loggedin-header .profile-header-yourpage .input-group-addon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0;
}
.loggedin-header .profile-header-yourpage .input-group-addon a::before { content: "\f0c1"; color: #FFFFFF; font: 900 16px "Font Awesome 6 Free"; }

/* Copy link - tick and 'Link copied' message */
.loggedin-header .profile-header-yourpage .input-group { position: relative; overflow: visible; }
.loggedin-header .profile-header-yourpage .input-group-addon { border-radius: 0 4px 4px 0; cursor: pointer; }
.loggedin-header #personalpageurl { border-radius: 4px 0 0 4px !important; cursor: pointer; }
.loggedin-header .is-copied .input-group-addon a::before { content: "\f00c"; }
.loggedin-header .profile-header-yourpage .input-group::after {
  content: "Link copied";
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 4px 10px;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--rfy-navy);
  font: 600 13px var(--rfy-font);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.loggedin-header .profile-header-yourpage .input-group.is-copied::after { opacity: 1; }

/* Share */
.loggedin-header .profile-header-share { display: block !important; }
.loggedin-header .share-page-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.loggedin-header .share-page-icons::before {
  content: "Share my page";
  flex-basis: 100%;
  margin-bottom: -2px;
  color: #FFFFFF;
  font: 500 13px var(--rfy-font);
}
.loggedin-header .share-page-icons a.btn-social {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font-size: 13px !important;
}
.loggedin-header .profile-header-share .spacer20 { display: none; }

/* Achievements */
.sec-badges { padding: 80px 0 !important; background: #6CB4E4; }
.sec-badges .container {
  width: min(920px, calc(100% - 32px)) !important;
  margin: 0 auto;
  padding: 40px 50px 44px !important;
  background: #FFFFFF;
}
.sec-badges .sec-title {
  margin: 0 0 30px !important;
  color: var(--rfy-navy) !important;
  font: 700 20px var(--rfy-font) !important;
  text-align: center;
  text-transform: none !important;
}
.sec-badges .row {
  display: flex !important;
  justify-content: center;
  gap: 22px;
  margin: 0 !important;
}
.sec-badges .col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  padding: 0 !important;
  text-align: center;
}
.sec-badges .col img {
  display: block;
  width: 100%;
  max-width: 110px;
  margin: 0 auto 12px;
}
.sec-badges .col h4 {
  margin: 0 !important;
  color: #5A6672 !important;
  font: 400 14px/1.4 var(--rfy-font) !important;
  text-transform: none !important;
}

/* Feature boxes */
.dash-features { padding-bottom: 60px; }
.dash-features .container::before, .dash-features .container::after { display: none; }
.dash-features .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  width: min(970px, calc(100% - 32px)) !important;
  margin: 0 auto;
}
.dash-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rfy-navy);
  background: #EEF6FB;
  color: var(--rfy-navy);
  font-family: var(--rfy-font);
  text-align: center;
}
.dash-box--dark { background: var(--rfy-navy); color: #FFFFFF; }

/* Image area - shows a placeholder until an image is added */
.dash-box__img { aspect-ratio: 468 / 278; background: #D9E6F0; }
.dash-box__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-box img[src=""] { display: none; }
.dash-box__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 24px 32px;
}
.dash-box h2 {
  margin: 0 !important;
  color: inherit !important;
  font: 700 20px/1.2 var(--rfy-font) !important;
  text-transform: none !important;
}
.dash-box p, .loggedin-header p { margin: 0; font-family: inherit !important; font-size: 14px; }
.dash-box .btn { padding: 10px 22px !important; font-size: 15px !important; }
.dash-box--dark .btn-secondary { border-color: #FFFFFF !important; }

/* Resources - framed thumbnail */
.dash-box--resources .dash-box__img {
  display: flex;
  justify-content: center;
  aspect-ratio: auto;
  padding: 28px 24px;
  background: #FFFFFF;
}
.dash-box--resources .dash-box__img img, .dash-box--resources .dash-box__img::before {
  width: 53%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid var(--rfy-navy);
}
.dash-box--resources .dash-box__img::before { content: ""; display: block; background: #EEF6FB; }
.dash-box--resources .dash-box__img:has(img:not([src=""]))::before { display: none; }

/* Rewards */
.dash-box--rewards { padding-bottom: 30px; }
.dash-box--rewards .dash-box__body .dash-reward__img { box-shadow: none; }
.dash-box--rewards .dash-box__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: left;
}
.dash-box--rewards h2 { grid-column: 1 / -1; text-align: center; }
.dash-box--rewards h3 {
  margin: 0 0 14px !important;
  text-transform: none !important;
  color: #FFFFFF !important;
  font: 700 20px/1.2 var(--rfy-font) !important;
}
.dash-reward__img { aspect-ratio: 1; background: transparent; transform: skewX(-10deg); }
.dash-reward__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: skewX(10deg);
}
.dash-reward__next {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: #EEF6FB;
  color: var(--rfy-navy);
  text-align: left;
}
.dash-reward__next .dash-reward__img { height: 70px; aspect-ratio: auto; }

/* Dashboard hero on tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .loggedin-header .col-sm-3 { flex-basis: 140px; width: 140px !important; margin-right: 40px; }
  .loggedin-header .profile-image-frame { width: 140px; height: 140px; }
  .loggedin-header .col-sm-9 { grid-template-columns: 1fr 200px; column-gap: 24px; }
  .loggedin-header h1 { font-size: 28px !important; }
}

/* Achievements slider */
.badges-slider { position: relative; container-type: inline-size; }
.badges-nav { display: none; }

/* Dashboard on phones */
@media (max-width: 767px) {
  /* Hero - everything centred, larger link and share */
  .loggedin-header { height: auto !important; }
  .loggedin-header .container > .vertical-align { flex-direction: column; align-items: center !important; }
  .loggedin-header .col-sm-9 { grid-template-columns: 1fr; width: 100% !important; }
  .loggedin-header .col-sm-9 > .row > * { grid-area: auto !important; margin-top: 0 !important; }
  .loggedin-header .profile-header-title { text-align: center; }
  .loggedin-header .profile-header-yourpage { margin: 24px 0 !important; }
  .dash-features .container { grid-template-columns: 1fr; }
  .loggedin-header { padding: 32px 0 36px !important; }
  .loggedin-header .col-sm-3 { flex: 0 0 auto; width: 130px !important; margin: 0 0 16px; }
  .loggedin-header .profile-image-frame { width: 130px; height: 130px; }
  .loggedin-header .col-sm-9 { justify-items: center; text-align: center; }
  .loggedin-header h1 { font-size: 28px !important; text-align: center; }

  /* Matches Funraisin's column reset, so these win */
  .loggedin-header .col-sm-9 > .row > .profile-header-title { margin-bottom: 18px !important; }
  .loggedin-header .col-sm-9 > .row > .profile-header-raised, .loggedin-header .col-sm-9 > .row > .profile-header-goal { width: min(300px, 100%) !important; }
  .loggedin-header .profile-header-raised { padding-top: 20px !important; }
  .loggedin-header .profile-header-goal { padding-bottom: 20px !important; }
  .loggedin-header .col-sm-9 > .row > .profile-header-yourpage { width: 100% !important; margin-top: 24px !important; }

  /* "Your Page" and "Share my page" as headings */
  .loggedin-header .profile-header-yourpage p, .loggedin-header .share-page-icons::before { margin-bottom: 12px; font: 700 20px var(--rfy-font) !important; text-align: center; }
  .loggedin-header .profile-header-yourpage .input-group { width: 100%; max-width: none; margin: 0 auto; }
  .loggedin-header #personalpageurl { height: 48px; font-size: 16px !important; }
  .loggedin-header .profile-header-yourpage .input-group-addon { width: 48px; }
  .loggedin-header .profile-header-yourpage .input-group-addon a::before { font-size: 19px; }
  .loggedin-header .col-sm-9 > .row > .profile-header-share { margin-top: 24px !important; }
  .loggedin-header .share-page-icons { justify-content: center; gap: 14px; }
  .loggedin-header .share-page-icons a.btn-social { width: 40px; height: 40px; font-size: 18px !important; }

  /* Achievements - tighter band, bigger heading */
  .sec-badges { padding: 24px 0 !important; }
  .sec-badges .container { padding: 28px 12px 24px !important; }
  .sec-badges .sec-title { margin-bottom: 20px !important; font-size: 24px !important; }

  /* Slider - two badges at a time */
  .sec-badges .row::before, .sec-badges .row::after { display: none; }
  .sec-badges .row {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 0 40px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .sec-badges .row::-webkit-scrollbar { display: none; }
  .sec-badges .col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 8px !important;
    scroll-snap-align: start;
  }
  .sec-badges .col img { max-width: 100px; }
  .sec-badges .col h4 { font-size: 15px !important; }
  .badges-nav {
    position: absolute;
    top: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--rfy-navy);
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
  }
  .badges-nav:disabled { opacity: 0.25; cursor: default; }
  .badges-prev { left: 0; }

  /* Three badges at a time on wider phones */
  @container (min-width: 400px) {
    .sec-badges .col { flex-basis: 33.333% !important; max-width: 33.333% !important; }
  }
  .badges-next { right: 0; }

  /* Boxes */
  .dash-features { padding-bottom: 40px; }
  .dash-features .container { gap: 20px; }
  .dash-box__body { gap: 12px; padding: 22px 18px 24px; }
  .dash-box h2 { font-size: 20px !important; }
}

/* ===== PART 10 - HOME PAGE BANNER ON PHONES - centred, tighter, smaller logo, heading on one line ===== */
@media (max-width: 767px) {

  /* Remove Funraisin's extra section padding and set our own */
  .lump-row.banner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .lump-row.banner > .container {
    padding: 32px 20px 36px !important;
  }

  /* Remove the stacked side padding so the heading has room */
  .lump-row.banner .lump-column,
  .lump-row.banner .lump-container,
  .lump-row.banner .lump {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Centre everything - beats Funraisin's inline left alignment */
  .lump-row.banner .lump,
  .lump-row.banner .lump * {
    text-align: center !important;
  }

  /* Logo - smaller and centred (Funraisin floats it left) */
  .lump-row.banner .lump-1image img {
    float: none !important;
    width: 120px;
    margin: 0 auto 20px;
  }

  /* Heading */
  html .lump-row.banner h1 {
    margin-bottom: 8px !important;
    font-size: 26px;
    line-height: 1.15;
  }

  /* Intro text */
  .lump-row.banner p.large,
  .lump-row.banner p.large span {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .lump-row.banner p.large {
    margin: 0 auto !important;
  }

  /* Button */
  .lump-row.banner .lump_buttons {
    justify-content: center !important;
    margin-top: 20px;
  }
  .lump-row.banner .lump-btn {
    padding: 13px 24px !important;
  }
}

/* Very small phones - keep the heading on one line */
@media (max-width: 344px) {
  html .lump-row.banner h1 {
    font-size: 22px;
  }
}

/* ===== BANNER ON PHONES - centred, tighter, smaller logo, heading on one line ===== */
@media (max-width: 767px) {

  /* Remove Funraisin's extra section padding and set our own */
  .lump-row.banner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .lump-row.banner > .container {
    padding: 32px 20px 36px !important;
  }

  /* Remove the stacked side padding so the heading has room */
  .lump-row.banner .lump-column,
  .lump-row.banner .lump-container,
  .lump-row.banner .lump {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Centre everything - beats Funraisin's inline left alignment */
  .lump-row.banner .lump,
  .lump-row.banner .lump * {
    text-align: center !important;
  }

  /* Logo - smaller and centred (Funraisin floats it left) */
  .lump-row.banner .lump-1image img {
    float: none !important;
    width: 120px;
    margin: 0 auto 20px;
  }

  /* Heading */
  html .lump-row.banner h1 {
    margin-bottom: 8px !important;
    font-size: 26px;
    line-height: 1.15;
  }

  /* Intro text */
  .lump-row.banner p.large,
  .lump-row.banner p.large span {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .lump-row.banner p.large {
    margin: 0 auto !important;
  }

  /* Button */
  .lump-row.banner .lump_buttons {
    justify-content: center !important;
    margin-top: 20px;
  }
  .lump-row.banner .lump-btn {
    padding: 13px 24px !important;
  }
}

/* Very small phones - keep the heading on one line */
@media (max-width: 344px) {
  html .lump-row.banner h1 {
    font-size: 22px;
  }
}

/* ===== DONATE FORM SECTION (row class "donateform") - light brand blue box, amount circles ===== */
/* ===== DONATE FORM SECTION (row class "donateform") - light brand blue box, amount circles ===== */
.lump-row.donateform > .container {
  padding-top: 64px !important;
  padding-bottom: 80px !important;
}
.lump-row.donateform form.lump-donationform {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 64px 64px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #CBE4F4 !important;
  box-shadow: none !important;
}
.lump-row.donateform .donation-steps { padding: 0 !important; }

/* Step numbers - centred circles with a line between */
.lump-row.donateform .donation-form-top,
.lump-row.donateform .steps-nav {
  justify-content: center;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.lump-row.donateform .steps-nav ul {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none;
}
.lump-row.donateform .steps-nav li {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font: 700 15px/1 var(--rfy-font) !important;
  opacity: 1 !important;
  box-sizing: border-box;
}
.lump-row.donateform .steps-nav li + li { margin-left: 44px !important; }
.lump-row.donateform .steps-nav li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  width: 32px;
  height: 2px;
  background: var(--rfy-navy);
  opacity: 0.3;
  transform: translateY(-50%);
}
.lump-row.donateform .steps-nav li.active {
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
}

/* Headings */
.lump-row.donateform h3,
.lump-row.donateform h4 {
  color: var(--rfy-navy) !important;
  text-transform: none !important;
}
.lump-row.donateform .handles-container h3 {
  margin: 0 0 28px !important;
  padding: 0 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

/* Amounts - one centred row of circles */
.lump-row.donateform .donationHandlers,
.lump-row.donateform .donationHandlers > .row {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}
.lump-row.donateform .donationHandlers { margin-bottom: 32px !important; }
.lump-row.donateform .donationHandlers > .row {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 16px;
}
.lump-row.donateform .radio-panel {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}
.lump-row.donateform .radio,
.lump-row.donateform .radio-border,
.lump-row.donateform .radio-content {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.lump-row.donateform .radio-content { justify-content: center; }

/* Funraisin fades the other amounts once one is picked - keep them all solid */
.lump-row.donateform .radio { opacity: 1 !important; }
.lump-row.donateform #amountdetails .radio .radio-amount {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
  font: 500 18px var(--rfy-font) !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lump-row.donateform #amountdetails .radio.selected .radio-amount,
.lump-row.donateform #amountdetails .radio:hover .radio-amount {
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
}

/* Other amount and button - same width, centred */
.lump-row.donateform .handles-container > .container,
.lump-row.donateform .container:has(> .btn-next) {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.lump-row.donateform .other-amount {
  margin: 0 !important;
  padding-bottom: 20px !important;
}
.lump-row.donateform .other-amount > div { padding: 0 !important; }

/* Fields - white, square, navy outline (all three steps) */
.lump-row.donateform .input-group {
  display: flex !important;
  width: 100%;
}
.lump-row.donateform .input-group .input-group-addon,
.lump-row.donateform .input-group .input-group-addon.white {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 46px;
  padding: 0 14px !important;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
  font-size: 18px !important;
}
.lump-row.donateform .form-control {
  height: 46px;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  font-size: 16px !important;
}
.lump-row.donateform .other-amount .form-control { border-left: 0 !important; }
.lump-row.donateform .form-control:focus {
  border-color: var(--rfy-navy) !important;
  outline: 2px solid var(--rfy-focus);
  outline-offset: 1px;
}
.lump-row.donateform label {
  color: var(--rfy-navy);
  font: 500 14px var(--rfy-font);
  text-transform: none !important;
}

/* Buttons - text centred, back arrow as a navy outline square */
.lump-row.donateform .btn-next,
.lump-row.donateform .btn-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px;
  padding: 0 !important;
}
.lump-row.donateform .btn-next span,
.lump-row.donateform .btn-primary span {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.lump-row.donateform .btn-back {
  height: 50px;
  border: 2px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  color: var(--rfy-navy) !important;
}
.lump-row.donateform .btn-back:hover {
  background: var(--rfy-navy) !important;
  color: #FFFFFF !important;
}

/* Phones - all four circles on one row */
@media (max-width: 767px) {
  .lump-row.donateform > .container { padding: 32px 16px 48px !important; }
  .lump-row.donateform form.lump-donationform { padding: 36px 16px 40px !important; }
  .lump-row.donateform .handles-container h3 {
    margin-bottom: 20px !important;
    font-size: 20px !important;
  }
  .lump-row.donateform .donationHandlers { margin-bottom: 24px !important; }
  .lump-row.donateform .donationHandlers > .row { gap: 10px; }
  .lump-row.donateform #amountdetails .radio .radio-amount {
    flex: 0 0 64px;
    width: 64px !important;
    height: 64px !important;
    font-size: 17px !important;
  }
}

/* Search page - hide the banner and give the search bar room at the top */
.template-sponsor .funraisin-header.header-hero {
  display: none !important;
}
.template-sponsor .searchPageWrapper {
  padding-top: 56px !important;
}
@media (max-width: 767px) {
  .template-sponsor .searchPageWrapper {
    padding-top: 36px !important;
  }
}

/* Account dropdown (logged in) - trigger */
.funraisin-secondary-nav .funraisin-dropdown-nav > a.dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--rfy-navy) !important;
  font: 500 16px var(--rfy-font) !important;
  text-decoration: none !important;
}
.funraisin-secondary-nav .funraisin-dropdown-nav > a.dropdown-toggle .caret {
  border-top-color: var(--rfy-navy) !important;
  color: var(--rfy-navy) !important;
}

/* Account dropdown - remove the little arrow at the top */
.funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu::before,
.funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu::after {
  display: none !important;
}

/* Account dropdown - drop the menu below the Sign Up button, with a gap */
.funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu {
  top: 50px !important;
}

/* Invisible bridge over the gap so the menu stays open while the mouse moves down */
.funraisin-secondary-nav .funraisin-dropdown-nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 26px;
}

/* Fundraiser menu (My fundraising, My team, My account, Messages, Logout) - hover to match */
html .funraisin-secondary-nav .LoggedInNavOptions li > a {
  border-left: 3px solid transparent !important;
  background: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
html .funraisin-secondary-nav .LoggedInNavOptions li:hover,
html .funraisin-secondary-nav .LoggedInNavOptions li.active {
  background: none !important;
}
html .funraisin-secondary-nav .LoggedInNavOptions li > a:hover,
html .funraisin-secondary-nav .LoggedInNavOptions li > a:focus {
  border-left-color: var(--rfy-red) !important;
  background: #EEF6FB !important;
  color: var(--rfy-navy) !important;
}
html .funraisin-secondary-nav .LoggedInNavOptions li > a:hover i,
html .funraisin-secondary-nav .LoggedInNavOptions li > a:focus i {
  color: var(--rfy-navy) !important;
}

/* Menu panel - closed: nothing shows */
.funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu {
  min-width: 210px;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}

/* Open - red line, padding and shadow only while the menu is showing */
.funraisin-secondary-nav .funraisin-dropdown-nav:hover .funraisin-dropdown-menu,
.funraisin-secondary-nav .funraisin-dropdown-nav:focus-within .funraisin-dropdown-menu {
  padding: 8px 0 !important;
  border-top: 3px solid var(--rfy-red) !important;
  box-shadow: 0 8px 24px rgba(0, 55, 103, 0.16) !important;
}
.funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* Links */
html .funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu > li > a {
  display: block !important;
  padding: 11px 22px !important;
  border-left: 3px solid transparent !important;
  background: none !important;
  color: var(--rfy-navy) !important;
  font: 500 16px/1.3 var(--rfy-font) !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Hover and keyboard focus - light brand blue, red bar, navy text */
html .funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu > li:hover {
  background: none !important;
}
html .funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu > li > a:hover,
html .funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu > li > a:focus {
  border-left-color: var(--rfy-red) !important;
  background: #EEF6FB !important;
  color: var(--rfy-navy) !important;
}

/* Logout - thin divider above */
.funraisin-secondary-nav .funraisin-dropdown-nav .funraisin-dropdown-menu > li:last-child {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid #DCE6EE;
}

/* ===== MY FITNESS ACTIVITY (/login/activity) - Add Activity form ===== */

/* Steps isn't used - hide it (desktop and phone) */
.form-group:has(input[name="steps"]) { display: none !important; }

/* Desktop - two even columns: Date | Distance, Activity type | Duration */
.container:has(> .col-md-6 #activity_from) {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}
.container:has(> .col-md-6 #activity_from) > *:not(.col-md-6) { grid-column: 1 / -1; }
.container:has(> .col-md-6 #activity_from) > .col-md-6 { display: contents; }
.container:has(> .col-md-6 #activity_from) > .clear { display: none; }
.container:has(> .col-md-6 #activity_from) > h3 { color: var(--rfy-navy) !important; }
.container:has(> .col-md-6 #activity_from) > p {
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Each field - label above, full width (desktop and phone) */
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .form-group {
  margin: 0 0 22px !important;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .form-group > label {
  display: block;
  float: none !important;
  width: auto !important;
  padding: 0 0 8px !important;
  color: var(--rfy-navy);
  font: 500 15px var(--rfy-font);
  text-align: left;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .form-group > div {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Inputs - white, square, navy outline */
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .form-control {
  width: 100% !important;
  height: 46px !important;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  color: var(--rfy-navy) !important;
  font-size: 16px !important;
}

/* Activity type dropdown - one border, not two */
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select.form-control {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select > .dropdown-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid var(--rfy-navy) !important;
  outline: none !important;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select > .dropdown-toggle .caret {
  border-top-color: var(--rfy-navy) !important;
}

/* Dropdown list - matches the site menus */
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select .dropdown-menu {
  margin-top: -1px !important;
  padding: 0 !important;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 55, 103, 0.16) !important;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select .dropdown-menu li a {
  padding: 11px 14px !important;
  outline: none !important;
  color: var(--rfy-navy) !important;
  font: 400 16px var(--rfy-font) !important;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select .dropdown-menu li.selected a,
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select .dropdown-menu li a:hover,
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select .dropdown-menu li a:focus {
  background: #EEF6FB !important;
  color: var(--rfy-navy) !important;
}

/* Activity type - use the browser's own dropdown so it always opens on the field */
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select > .dropdown-toggle,
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select > .dropdown-menu {
  display: none !important;
}
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select > select.form-control {
  position: static !important;
  display: block !important;
  inset: auto !important;
  width: 100% !important;
  height: 46px !important;
  padding: 0 44px 0 14px !important;
  border: 1px solid var(--rfy-navy) !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003767' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px !important;
  color: var(--rfy-navy) !important;
  font-size: 16px !important;
}

/* Keyboard focus */
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .form-control:focus,
:is(.container:has(> .col-md-6 #activity_from), .addactivity-block) .bootstrap-select > .dropdown-toggle:focus {
  outline: 2px solid var(--rfy-focus) !important;
  outline-offset: 1px;
}

/* Phones - one column */
@media (max-width: 767px) {
  .container:has(> .col-md-6 #activity_from) { grid-template-columns: 1fr; }
}

/* Registration - hide the waiver text box, keep the checkbox */
#terms-panel {
  display: none !important;
}

/* Checkbox row - box and text lined up */
.terms-panel .bottom .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
}
.terms-panel .bottom .row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--rfy-navy);
}
.terms-panel .rfy-terms-label {
  margin: 0;
  color: #333333;
  font: 400 16px/1.4 var(--rfy-font);
  text-transform: none;
  cursor: pointer;
}

/* Terms and Conditions link */
.rfy-terms-label a {
  color: var(--rfy-navy) !important;
  font-weight: 600;
  text-decoration: underline !important;
}
.rfy-terms-label a:hover,
.rfy-terms-label a:focus {
  color: var(--rfy-red) !important;
}
/* ===== RESOURCES PAGE ON PHONES - section headings and download tiles ===== */
@media (max-width: 767px) {

  /* Section heading - icon and title on one line */
  .lump-column:has(.fa-file-image) {
    padding: 0 15px !important;
  }
  .lump-column:has(.fa-file-image) > .lump-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 12px;
  }
  .lump-column:has(.fa-file-image) .lump {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0 !important;
  }
  .lump-column:has(.fa-file-image) .lump:has(h2) {
    flex: 1 1 auto;
    min-width: 0;
  }
  .lump-column:has(.fa-file-image) .fa-file-image { font-size: 28px; }
  html .lump-column:has(.fa-file-image) h2 {
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  /* Download tiles - two across with even gaps */
  .lump-column:has(.lump-assets) {
    padding: 20px 15px 44px !important;
  }
  .lump-column:has(.lump-assets) .lump { padding: 0 !important; }
  .lump-assets > [id^="assets"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .lump-assets > [id^="assets"]::before,
  .lump-assets > [id^="assets"]::after { display: none !important; }
  .lump-assets .lump-asset {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .lump-assets .asset-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }
  .lump-assets .asset-block img {
    width: 100% !important;
    margin: 0 0 12px !important;
  }
  .lump-assets .asset-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 !important;
  }

  /* Title takes the spare height so the buttons in a row line up */
  .lump-assets .asset-text .title {
    flex: 1;
    margin: 0 0 12px !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  .lump-assets .asset-text .btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 44px;
    margin: 0 !important;
    padding: 0 8px !important;
    font-size: 14px !important;
  }
}
/* ===== ANIMATION - gentle lift on cards when hovered (scroll reveals and count-up are in the event JS) ===== */
/* Uses "translate" rather than "transform" so it doesn't clash with the scroll-in animation */
.dash-box,
#Donors .panel,
#MembersBlock .panel,
.template-sponsor #Members .panel,
.lump-assets .asset-block img {
  transition: translate 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  .dash-box:hover,
  #Donors .donation:hover .panel,
  #MembersBlock .member:hover .panel,
  .template-sponsor #Members .member:hover .panel,
  .lump-assets .asset-block:hover img {
    translate: 0 -4px;
    box-shadow: 0 10px 24px rgba(0, 55, 103, 0.15) !important;
  }
}

/* People who've asked for less motion - no lift */
@media (prefers-reduced-motion: reduce) {
  .dash-box,
  #Donors .panel,
  #MembersBlock .panel,
  .template-sponsor #Members .panel,
  .lump-assets .asset-block img {
    transition: none;
    translate: none !important;
  }
}
