/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Global */

:root {
  --lavender: #ceb7ff;
  --darkLavender: #7f70a0;
  --lightLavender: #e8dbfc;
  --dustyGrape: #b289b9;
  --radiusLrg: 18px;
}

/* General */

body {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 2.5em;
  line-height: 1.15;
/*  letter-spacing: -0.01em;*/
  background-color: var(--lavender);
  padding: 1em;
}

b {
  font-weight: 700;
}

a,
a:hover,
a:visited,
a:active {
  color: #000000;
  text-decoration: none;
}

section a {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.15em;
}

h1,
h2 {
  text-align: center;
  font-size: 2em;
  line-height: 1;
}

h3 {
  font-family: "plantin", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
}

i,
em {
  font-style: italic;
}

img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

p {
  margin-bottom: 1em;
}

ul {
  list-style-type: disc;
  margin-bottom: 1em;
}

ol {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 1em;
}

ol > li {
  counter-increment: customlistcounter;
}

ol> li:before {
  content: counter(customlistcounter) " ";
  float: left;
  width: 1.5em;
}

ol:first-child {
  counter-reset: customlistcounter;
}

button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

main {
  margin-top: 2em;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: auto;
  padding: 0.5em;
  margin: -1em;
  margin-top: 6em;
  width: 100vw;
}

footer .secondary-logo {
  width: 4em;
}

.body-text p,
.body-text ul,
.body-text ol {
  margin: auto;
  margin-bottom: 1em;
  max-width: 22em;
}

.caption a {
  text-decoration: none;
}

.caption p {
  margin: 0;
}

.join-us .body-text .caption p {
  float: none;
}

.bold-caps {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-size: 0.375em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mono {
  font-family: 'DM mono', monospace;
  text-transform: uppercase;
  font-size: 0.35em;
  line-height: 1.25;
}

h2.module {
  padding: 0.25em;
  margin-bottom: 0.65em;
}

.module {
  border-radius: var(--radiusLrg);
  padding: 1em;
  padding-top: 0.75em;
}

.module.outline {
  border: 1px solid #000000;
  background-color: var(--lavender);
}

.module.small {
  font-size: 0.575em;
  line-height: 1.2;
}

.module.bg-black {
  background-color: #000000;
  color: #FFFFFF;
}

.module.image-container {
  padding: 0;
  overflow: hidden;
}

.module-header {
  margin-bottom: 1em;
}

.module.hero-image {
  padding: 0;
  overflow: hidden;
}

.visually-hidden {
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
  position: absolute!important;
}

/* Menu */

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.575em;
  width: 100%;
  padding: 0.5em;
  margin: -1em;
  margin-bottom: 0;
}

.home header {
  position: fixed;
  z-index: 9;
}

.home #menu {
  position: static;
}

#intro {
  max-width: 28em;
}

#intro p:last-of-type {
  margin-bottom: 0;
}

#mobile-nav {
  position: fixed;
  z-index: 9;
  top: 0.5em;
  right: 0.5em;
  line-height: 1;
  padding: 0;
  display: flex;
  display: none;
}

#current-page {
  color: var(--lavender);
  border-radius: var(--radiusLrg);
  background-color: #000000;
  padding: 0.75em 2em;
  margin-right: 0.5em;
  align-self: center;
}

#menu-toggle {
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: var(--radiusLrg);
  padding: 0.75em 2em;
  width: 7.75em;
  align-self: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

#menu {
  display: flex;
  gap: 0.25em;
  position: fixed;
  top: 0.5em;
  right: 0.5em;
  z-index: 2;
}

#menu ul {
  display: flex;
  padding: 0.5em 2em;
  background-color: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: var(--radiusLrg);
  white-space: nowrap;
  height: 2.15rem;
  align-items: center;
  list-style-type: none;
}

#menu ul li {
  margin-right: 2em;
}

#menu ul li:last-of-type {
  margin-right: 0;
}

#menu ul.page-list {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-size: 0.375em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

#menu a {
  color: var(--darkLavender);
  transition: color 0.2s;
}

#menu a[aria-current]:not([aria-current="false"]) {
  color: #000000;
}

#menu a:hover {
  color: #000000;
}

#menu ul.social {
  padding: 0.25em 1em;
  font-size: 0.45em;
}

#menu ul.social li {
  margin-right: 0.5em;
}

#menu ul.social li:last-of-type {
  margin-right: 0;
}

header .logo {
  width: 7em;
  position: relative;
  top: -0.2em;
}


/* Home */

#home-logo {
  width: 100%;
  padding: 0.5em;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 2;
}

#home-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Rides */

.rides .module {
  margin-bottom: 0.5em;
}

#rides-notice {
  color: #FFFFFF;
  background-color: #000000;
  display: inline-block;
  padding: 1.25em 1.5em;
  margin-bottom: 1em;
  width: 100%;
  max-width: 40em;
}

#rides-notice p:last-of-type {
  margin-bottom: 0;
}

.ride.module {
  padding-bottom: 0;
}

#sunday-ride {
  background-color: #cd5fd3;
}

#saturday-ride {
  background-color: #b289b9;
}

#weekday-rides {
  background-color: #7c4271;
}

.ride-row-button {
  display: flex;
  justify-content: center;
  padding-bottom: 0.75em;
}

.ride-row-button .visible-indicator {
  display: none;
  width: 1.25em;
  align-self: center;
  transition: all 250ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.ride-row-button .visible-indicator.open {
  transform: rotate(45deg);
}

.toggle-wrapper {
  padding-bottom: 1em;
}

.ride-details,
.weekday-ride {
  display: flex;
  gap: 0.75em;
  width: 100%;
}

.ride-details.weekday {
  display: block;
}

.ride-details-col {
  flex-grow: 1;
  width: 33%;
  display: flex;
  flex-direction: column;
}

.ride-details-col div:last-of-type {
  margin-bottom: 0;
}

.ride-name {
  padding: 1em 0 0.5em 0;
}

.detail-component {
  border-top: 1px solid #000000;
  margin-bottom: 1em;
}

.detail-component small {
  display: block;
  margin: 0;
  padding: 0.25em 0 0.5em 0;
}

.ride-details p:last-of-type {
  margin-bottom: 0;
}

#other-rides {
  padding: 3em 0;
}

#other-rides p {
  text-align: center;
  max-width: 15em;
  margin: 0 auto;
}

/* Calendar */

.calendar h1 {
  margin-bottom: 1em;
}

#calendar-filters {
  display: flex;
  justify-content: flex-end;
  position: relative;
  top: 0.25em;
  width: 50%;
  float: right;
}

#filter-toggle {
  line-height: 1;
  padding: 0.75em 1em;
  background-color: var(--lightLavender);
  display: none;
}

#toggle-text {
  font-size: 1.5em;
  font-weight: 400;
  line-height: 0;
  position: relative;
  top: 0.11em;
  padding-left: 0.25em;
}

#view-options {
  display: flex;
  align-items: center;
}

#view-options button {
  text-transform: uppercase;
  padding-bottom: 0.25em;
  margin-left: 1em;
  border-bottom: 1px solid var(--lavender);
}

#view-options button.active {
  border-bottom: 1px solid #000000;
}

#discipline-list {
  display: flex;
  list-style-type: none;
  margin-top: 1em;
  margin-bottom: 1em;
  gap: 0.5em;
}

#discipline-list.display-flex {
  display: flex;
}

#calendar-entries.upcoming .row-entry.event-past {
  display: none;
}

#calendar-entries.view-all .row-entry.entry-visible.event-past {
  display: block;
}

.row-entry {
  display: none;
}

.row-entry.entry-visible {
  display: block;
}

#discipline-list li {
  line-height: 1;
  padding: 0.75em 1em;
  cursor: pointer;
  transition: 0.1s background-color;
}

#discipline-list li.hovered {
  background-color: var(--lightLavender);
}

#discipline-list li.active {
  background-color: var(--lightLavender);
}

.row-entry {
  padding: 0.4em 0.75em 0.5em 0.75em;
  background-color: var(--lightLavender);
  margin-bottom: 0.35em;
  transition: 0.1s background-color;
}

.row-entry:hover {
  background-color: var(--dustyGrape);
}

.row-entry.event-past {
  opacity: 0.4;
}

.row-entry p {
  margin-bottom: 0;
}

.entry-flex {
  display: flex;
  align-items: flex-start;
}

.entry-date {
  flex: 0 0 20%;
  padding-right: 0.5em;
}

.entry-name {
  flex: 0 0 40%;
  padding-right: 0.5em;
}

.entry-name a::after {
  content: url('../images/arrow-up-right.svg');
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  position: relative;
  margin-left: 0.35em;
  margin-right: 0.1em;
}

.entry-location {
  flex: 0 0 30%;
  padding-right: 0.5em;
}

.entry-discipline {
  flex: 0 0 10%;
  display: flex;
  padding-top: 0.4em;
  text-align: center;
}

.entry-discipline span {
  display: block;
  margin: 0 auto;
}

.entry-notes {
  display: block;
  padding-top: 1em;
  padding-left: 20%;
}

#no-entries {
  display: none;
}

.location-alt {
  display: none;
}

/* Routes */

section.route-group {
  margin-bottom: 3em;
}

.route-details {
  display: flex;
  gap: 1em;
}

.module.route {
  background-color: var(--lightLavender);
  padding: 0.5em;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: 0.1s background-color;
}

#saturday .module.route:hover {
  background-color: var(--dustyGrape);
}

#saturday .module.route:not(.active):hover .name-plus {
/*  transform: scale(1.25, 1.25);*/
/*  transform: translate(3px, 3px);*/
}

#saturday .module.route.active:hover .name-plus {
/*  transform: rotate(45deg) translate(3px);*/
}

.name-plus {
  width: 0.75em;
  transition: all 250ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.name-plus.open {
  transform: rotate(45deg);
}

.embed-group {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
  width: 100%;
  align-items: flex-start;
}

#saturday .module {
  cursor: pointer;
}

.name-wrapper {
  margin-top: 0.2em;
  display: flex;
  justify-content: space-between;
}

.route-name {
  padding-right: 0.5em;
}

.route-meta {
  display: flex;
  justify-content: space-between;
}

.direction-arrow {
  width: 1em;
  position: relative;
  top: -0.1em;
  margin-right: 0.25em;
}

.strava-wrapper {
  margin-top: 1em;
}

#saturday-text,
#weekday-text {
  margin-bottom: 1.5em;
}

#saturday-text p,
#weekday-text p {
  margin: 0 auto;
  max-width: 20em;
}

/* About */

.body-text {
  margin-bottom: 2em;
  line-height: 1.2;
}

#gallery {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.module.gallery-image {
  padding: 0;
  overflow: hidden;
}

#gallery .caption {
  display: block;
  font-size: 0.3em;
}

#gallery .caption a {
  color: #000000;
  text-decoration: none;
}

.caption {
  margin-top: 0.5em;
}

#membership-info {
  background-color: var(--dustyGrape);
  margin-bottom: 1em;
  display: flex;
}

#membership-info .header {
  flex: 0 0 40%;
  padding-right: 2em;
}

#membership-info .body {
  flex: 0 0 60%;
}

.sponsor-header {
  padding-top: 1em;
}

#presenting-sponsor {
  margin-bottom: 1em;
}

#supporting-sponsors {
  border-top: 1px solid #FFFFFF;
}

#main-supporting-sponsor {
  margin-top: 2em;
}

#main-supporting-sponsor a {
  display: block;
  width: 70%;
  margin: 0 auto;
}

#sponsor-single {
  padding-top: 1em;
  padding-bottom: 1em;
}

#sponsor-single a {
  display: block;
  width: 45%;
  margin: 0 auto;
}

#sponsor-group {
  padding-top: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#sponsor-group a {
  width: 33%;
}

/* Join Us */

#hero-container {
  margin-bottom: 2em;
}

.join-us .body-text p {
  float: right;
  padding-right: 2em;
}

.image-module-group {
  width: 66%;
  margin: 3em 0;
  float: left;
}

.image-module {
  border-radius: var(--radiusLrg);
  padding: 0;
  overflow: hidden;
}

/* Media Queries */

/* Single Column Layout */

@media (max-width: 1050px) {

/* General */

.body-text ul,
.body ul {
  padding-left: 1.5em;
}

/* Menu */

header .logo {
  width: 6em;
  position: relative;
  top: -0.3em;
}

.home #menu {
  position: fixed;
  z-index: 9;
}

#menu {
  width: calc(100vw - 1em);
  top: 1.7em;
  left: 0.5em;
  flex-direction: column-reverse;
  padding: 0.5em;
  border-radius: var(--radiusLrg);
  background-color: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: none;
}

#menu.open {
  display: flex;
}

#menu ul {
  display: flex;
  height: auto;
  padding: 0.5em 2em;
}

#menu ul {
  background-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

#menu ul.page-list {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  flex-direction: column;
  font-size: 1em;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
}

#menu ul.page-list li {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0.25em 0 ;
  border-top: 1px solid #000000;
}

#menu ul.page-list li:last-of-type {
  border-bottom: 1px solid #000000;
}

#menu ul a {
  color: #000000;
}

#menu ul.social {
  padding: 0;
  margin-bottom: 0.45em;
}

#menu ul.social li {
  background-color: #000000;
  border-radius: var(--radiusLrg);
  padding: 0.35em;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.35em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu ul.social li a {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.8);
}

#mobile-nav {
  display: flex;
}

/* Rides */

.rides h2 {
  text-align: left;
}

.ride-row-button {
  justify-content: space-between;
  cursor: pointer;
}

.ride-row-button .visible-indicator {
  display: block;
}

.toggle-wrapper {
  display: none;
}

.ride-details,
.weekday-ride {
  display: block;
}

.ride-details-col {
  width: 100%;
  padding-bottom: 1em;
}

/* Routes */

.route-details {
  flex-direction: column-reverse;
}

#sunday-route {
  width: 50%;
}

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

/* Calendar */

.row-entry {
  padding: 0.4em 0.5em 0.5em 0.5em;
}

.entry-date {
  flex: 0 0 25%;
  padding-right: 0.5em;
}

.entry-name {
  flex: 0 0 65%;
  padding-right: 0.5em;
}

.entry-location {
  display: none;
}

.entry-notes {
  padding-left: 25%;
  padding-top: 0.5em;
}

.location-alt {
  display: block;
}

/* About */

#membership-info {
  flex-direction: column;
}

#membership-info .header {
  padding: 0;
}

#sponsor-single a {
  width: 75%;
}

/* Join Us */

.image-module-group {
  width: 100%;
  float: none;
}

.join-us .body-text p {
  float: none;
  max-width: 100%;
  padding-right: 0;
}

}

@media (max-width: 850px) {

#intro {
  max-width: 50em;
  width: calc(100vw - 7.5em);
}

#sunday-route {
  width: 100%;
}

.embed-group {
  display: block;
}

.embed-group .module.route {
  margin-bottom: 0.5em;
}

#hero-container {
  margin-bottom: 1em;
}

.row-entry {
  margin-bottom: 0.55em;
}

#gallery {
  display: block;
}

.gallery-container {
  margin-bottom: 0.55em;
}

#gallery .caption {
  font-size: 0.5em;
  position: static;
  color: #000000;
}

#gallery .caption a {
  color: #000000;
}

#membership-info {
  margin-bottom: 0.55em;
}

}

@media (max-width: 800px) {

.ride-row-button h2 {
  font-size: 1.75em;
}

}

/* Smallest Screens */

@media (max-width: 700px) {

html {
  font-size: 0.55em;
}

body {
  padding: 0.55em;
}

header {
  padding: 1em;
}

h2 {
  font-size: 1.75em;
}

header .logo {
  width: 10em;
  position: relative;
  top: -0.3em;
}

#current-page {
  padding: 0.75em 1em;
}

#menu-toggle {
  padding: 0.75em 1em;
  width: 5.5em;
}

.module.small {
  font-size: 0.75em;
}

#home-logo {
  top: calc(50vh - 15vw);
}

#intro {
  width: calc(100vw - 6.5em);
}

.bold-caps {
  font-size: 0.6em;
}

#menu ul.page-list {
  font-size: 1.85em;
}

#menu {
  top: 2.65em;
  width: calc(100vw - 1.1em);
  left: 0.55em;
}

#menu ul.social {
  font-size: 0.8em;
}

.mono {
  font-size: 0.5em;
}

.entry-discipline .bold-caps {
  font-family: 'DM mono', monospace;
  font-weight: 500;
  font-size: 0.5em;
}

.entry-date {
  flex: 0 0 25%;
}

.entry-name {
  flex: 0 0 60%;
}

.entry-discipline {
  flex: 0 0 15%;
}

.entry-name a::after {
  content: none;
}

#sponsor-group {
  flex-wrap: wrap;
}

#sponsor-group a {
  flex: 0 0 50%;
}

#main-supporting-sponsor a {
  width: 90%;
}

footer {
  margin: -0.55em;
  margin-top: 5em;
  padding-bottom: 0.5em;
}

.calendar h1 {
  margin-bottom: 0;
}

#calendar-filters {
  display: flex;
  justify-content: space-between;
  margin: 2em 0 0.75em 0;
  position: static;
  float: none;
  width: 100%;
}

#filter-toggle {
  display: block;
}

#discipline-list {
  display: none;
}

}

@media (max-width: 440px) {

header .logo {
  width: calc(100vw - 10em);
  padding-top: calc(1em - 5vw)
}

#sponsor-single a {
  margin-top: 1em;
  width: 100%;
}

#sponsor-group a {
  flex: 0 0 100%;
}

}

