/* runtomtl.com: the old Elementor/Neve page's look, without WordPress.
   The old page used Google-hosted Roboto; this uses the visitor's system sans (no third-party fonts). */
:root {
  --bg: #121212;
  --pink: #ff80cb;
  --ink: #000;
  --link: #3fa9f5;
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --head: var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--pink);
  font: 400 16px/1.6 var(--sans);
  text-align: center;
}
a { color: var(--pink); }
a.mail { color: var(--link); text-decoration: none; }
a.mail:hover { text-decoration: underline; }

nav.top {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem;
  padding: .75rem 1rem; font-size: 13px; font-weight: 500;
}
nav.top a { color: var(--pink); text-decoration: none; }
nav.top a:hover { text-decoration: underline; }

main > section { max-width: 1140px; margin: 0 auto; padding: 2.5rem 1rem; }
main > section p { max-width: 70ch; margin: .75rem auto; font-size: 14px; }

.hero { padding-top: 0; }
.hero-art { display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto 1.5rem; }
.hero h1, .hero-line {
  margin: .2rem 0; font-size: clamp(20px, 3vw, 29px); font-weight: 600; line-height: 1.3; max-width: none;
}
.hero .hero-line { font-size: clamp(20px, 3vw, 29px); }

h2 {
  margin: 0 0 .75rem; font-size: clamp(38px, 6vw, 60px); font-weight: 600; line-height: 1.2;
}
h3 { margin: .5rem 0; font-size: 22px; font-weight: 600; }

/* "UP TO 20 TEAMS" / "6 - 12 RUNNERS" / "650 KM" cycling in one line, as the animated headline did. */
.rotator {
  list-style: none; margin: 0 auto 1.5rem; padding: 0; position: relative;
  height: 1.4em; font-size: clamp(26px, 4vw, 36px); font-weight: 500; letter-spacing: .03em;
}
.rotator li { position: absolute; inset: 0; opacity: 0; animation: rotate 9s infinite; }
.rotator li:nth-child(2) { animation-delay: 3s; }
.rotator li:nth-child(3) { animation-delay: 6s; }
@keyframes rotate {
  0% { opacity: 0; transform: translateY(.4em); }
  4%, 30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateY(-.4em); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator { height: auto; }
  .rotator li { position: static; opacity: 1; animation: none; }
}

.btn {
  display: inline-block; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--pink); color: var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none;
  padding: 12px 24px; margin: 1rem 0 0;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn-big { font-size: 17px; padding: 18px 40px; }
.motto { font-style: italic; font-weight: 600; font-size: 16px !important; }
.stack { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 2rem 0 0; }
.stack .btn { width: min(240px, 100%); margin: 0; padding: 14px 12px; }
.stack.donate { margin: 2rem 0 .5rem; }

.affiliations { background: #fff; color: #000; max-width: none !important; padding: 3rem 1rem 4rem !important; }
.affiliations h2 { font: 600 clamp(32px, 5vw, 45px)/1.2 var(--head); color: #000; margin-bottom: 2.5rem; }
.logos {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; align-items: center;
}
.logos a { display: block; }
.logos img { display: block; width: 100%; max-width: 220px; max-height: 200px; object-fit: contain; margin: 0 auto; }

.register { display: block; margin: 0; border-radius: 0; padding: 1.75rem 1rem; font-size: 17px; }

footer { padding: 1rem; font-size: 13px; color: #fff; text-align: left; }
footer p { margin: 0; max-width: 1140px; margin: 0 auto; }

/* Popovers: what the Elementor popups were, with no script. */
.pop {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto;
  padding: 2rem 1.75rem 1.75rem; border: 0; border-radius: 4px;
  background: #1c1c1c; color: var(--pink); text-align: center;
}
.pop::backdrop { background: rgb(0 0 0 / .75); }
.pop p { font-size: 14px; margin: .4rem 0 1.25rem; }
.pop-wide { width: min(900px, calc(100% - 2rem)); text-align: left; }
.pop-close {
  position: absolute; top: .4rem; right: .6rem; border: 0; background: none;
  color: var(--pink); font-size: 28px; line-height: 1; cursor: pointer;
}
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pop-bio { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.pop-bio img { width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 640px) {
  .logos { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .pop-bio { grid-template-columns: 1fr; }
  .pop-bio img { max-width: 200px; margin: 0 auto; }
  footer { text-align: center; }
}
