/* ==========================================================================
   Normalize.scss settings
   ========================================================================== */
/**
 * Includes legacy browser support IE6/7
 *
 * Set to false if you want to drop support for IE6 and IE7
 */
/* Base
   ========================================================================== */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 * 3. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
 *  `em` units.
 */
html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */
body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */
audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevents modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */
[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */
a:active, a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */
/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */
b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */
dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Addresses styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */
/**
 * 1. Remove border when inside `a` element in IE 8/9/10.
 * 2. Improves image quality when scaled in IE 7.
 */
img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari.
 */
figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */
hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */
pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */
/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */
/**
 * 1. Correct color not being inherited.
 *  Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 * 4. Improves appearance and consistency in all browsers.
 */
button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */
button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *  and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *  `input` and others.
 * 4. Removes inner spacing in IE 7 without affecting normal text inputs.
 *  Known issue: inner spacing remains in IE 6.
 */
button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
input {
  line-height: normal;
}

/**
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 *  Known issue: excess padding remains in IE 6.
 */
input[type=checkbox],
input[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
 */
input[type=search] {
  -webkit-appearance: textfield; /* 1 */
  box-sizing: content-box; /* 2 */
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 * 3. Corrects text not wrapping in Firefox 3.
 * 4. Corrects alignment displayed oddly in IE 6/7.
 */
legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */
textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */
optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

:root {
  --color-highlight: #002159;
  --color-text: #002159;
  --color-muted: #6b7280;
  --color-disabled: #d1d5db;
  --color-border: #c5cdd8;
  --font-family: Helvetica, Arial, sans-serif;
  --page-width: 900px;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-family);
  background: #fff;
  color: var(--color-text);
}

a {
  color: var(--color-highlight);
}

header,
main,
section {
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

body > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

body > header p {
  margin: 0;
}

body > header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

h1,
h2 {
  color: var(--color-highlight);
}

label {
  display: block;
}

input:not([type=submit]):not([type=button]):not([type=checkbox]),
select,
textarea {
  font: inherit;
  max-width: 100%;
}

.notice,
.alert {
  max-width: var(--page-width);
  margin: 1rem auto;
  padding: 0.75rem 1rem;
}

.alert {
  color: #b91c1c;
}

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

.button,
button,
input[type=submit],
input[type=button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-highlight);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.button:visited {
  color: #fff;
}

.button:disabled,
button:disabled,
input[type=submit]:disabled,
input[type=button]:disabled {
  background: var(--color-disabled);
  color: #fff;
  cursor: not-allowed;
}

.button--waiver {
  margin-top: 0.25rem;
}

.waiver-modal__close {
  width: auto;
  padding: 0.25rem 0.6rem;
  background: transparent;
  color: var(--color-highlight);
  font-size: 1.75rem;
  line-height: 1;
}

.home-page main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.home {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 45px 1.25rem 4rem;
}

.home__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 65px;
  text-align: center;
}

.home__sponsor {
  display: block;
  width: 7.21875rem;
  max-width: 100%;
  height: auto;
}

.home__logo {
  display: block;
  width: 19.1875rem;
  max-width: 100%;
  height: auto;
}

.home__event {
  display: grid;
  gap: 1.5rem;
}

.home__event-copy {
  max-width: 450px;
}

.home__rule {
  margin: 40px 0 20px;
  border: 0;
  border-top: 1px solid #b5b5b5;
}

@media (min-width: 40em) {
  .home__event {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .home__event-details {
    justify-self: end;
  }
}
@media (min-width: 48em) {
  .home {
    padding-top: 90px;
  }
  .home__header {
    gap: 85px;
    margin-bottom: 130px;
  }
  .home__rule {
    margin: 80px 0 40px;
  }
  .home__info {
    padding-bottom: 40px;
  }
  .home__event h1,
  .home__register h2,
  .home__info h2,
  .home__location h2 {
    font-size: 32px;
  }
  .home__event p,
  .home__info p,
  .home__location p {
    font-size: 20px;
    text-wrap: balance;
  }
}
.home__event h1,
.home__register h2,
.home__info h2,
.home__location h2 {
  margin: 0 0 0.75rem;
  font-size: 24px;
}

.home__event p,
.home__info p,
.home__location p {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
}

.home__register {
  margin-bottom: 2.75rem;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.registration-form__website {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.registration-form__error {
  margin: 0;
  color: #b91c1c;
}

.registration-form__field {
  position: relative;
  margin: 0;
}

.registration-form__field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.registration-form__field input[type=text],
.registration-form__field input[type=email],
.registration-form__field input[type=date],
.registration-form__field input[type=password] {
  display: block;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
}

.registration-form__field input::placeholder {
  color: #9aa3b2;
}

.registration-form__field:has(.field_with_errors) input {
  border-color: #b91c1c;
}

.registration-form .message {
  display: block;
  margin: 0.35rem 0 0 1.1rem;
  color: #b91c1c;
  font-size: 0.8rem;
}

.registration-form__note {
  margin: 0;
  font-size: 0.8rem;
}

.registration-form__agreement label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.registration-form__agreement input[type=checkbox] {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-highlight);
}

.home__info,
.home__location {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: 1.75rem;
  padding-right: 0;
  padding-left: 0;
  border-top: 1px solid #e5e7eb;
}

.home__info {
  padding-bottom: 20px;
}

.home__map {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.75rem 0 1rem;
}

.waiver-modal {
  width: min(44rem, 100vw - 1.5rem);
  max-width: calc(100vw - 1.5rem);
  min-width: 0;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  overflow-x: hidden;
  color: var(--color-text);
}

.waiver-modal::backdrop {
  background: rgba(0, 33, 89, 0.45);
}

.waiver-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem 1.25rem 1.75rem;
}

.waiver-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
}

.waiver-modal__copy h2,
.waiver-modal__subtitle {
  margin: 0 0 0.5rem;
}

.waiver-modal__copy h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
}

.waiver-modal__copy p,
.waiver-modal__copy ol {
  margin: 0 0 0.85rem;
}

.waiver-modal__acknowledgment {
  font-weight: 700;
}

.waiver-modal__error {
  margin: 0;
  color: #b91c1c;
}

.waiver-modal__error[hidden],
.waiver__error[hidden] {
  display: none;
}

.waiver-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.waiver-modal__fields .registration-form__field {
  min-width: 0;
  max-width: 100%;
}

.waiver-modal__fields .registration-form__field label {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.35rem;
  overflow: visible;
  clip: auto;
  font-size: 0.9rem;
}

.waiver-modal__fields input[type=date] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.waiver-modal__fields input[type=date]::-webkit-date-and-time-value,
.waiver-modal__fields input[type=date]::-webkit-datetime-edit {
  min-width: 0;
  width: 100%;
  text-align: left;
}

.waiver__signature-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.5rem;
}

.waiver__clear {
  width: auto;
  padding: 0;
  background: none;
  color: var(--color-highlight);
  font-size: 0.875rem;
  text-decoration: underline;
}

.waiver__signature-canvas {
  display: block;
  width: 100%;
  height: 10rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.waiver__error {
  margin: 0.3rem 0 0;
  color: #b91c1c;
  font-size: 0.8rem;
}

.registration-thank-you-page main {
  max-width: none;
  margin: 0;
  padding: 2rem 1.25rem;
}

.thank-you {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 0 4rem;
  text-align: center;
}

.thank-you__sponsor {
  display: block;
  width: 7.21875rem;
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.thank-you__logo {
  display: block;
  width: 19.1875rem;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.thank-you h1 {
  margin: 0 0 0.75rem;
}

.thank-you__subhead {
  margin: 0 0 1.5rem;
}

.thank-you__download {
  margin-top: 2rem;
}

.thank-you .button {
  width: auto;
  min-width: 14rem;
}

.legal-page main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.legal-layout {
  max-width: var(--page-width);
  width: 100%;
  margin: 0 auto;
  padding: 45px 1.25rem 3rem;
}

.legal__banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: center;
}

.legal__sponsor {
  display: block;
  width: 7.21875rem;
  max-width: 100%;
  height: auto;
}

.legal__logo {
  display: block;
  width: 19.1875rem;
  max-width: 100%;
  height: auto;
}

@media (min-width: 48em) {
  .legal-layout {
    padding-top: 90px;
  }
  .legal__banner {
    gap: 85px;
    margin-bottom: 130px;
  }
}
.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sign-in-page main {
  max-width: none;
  margin: 0;
  padding: 0;
}

body > header.auth-header {
  display: flex;
  justify-content: center;
  max-width: none;
  padding: 45px 1.25rem 0;
}

.auth-header__brand {
  display: block;
}

.auth-header__logo {
  display: block;
  width: 19.1875rem;
  max-width: 100%;
  height: auto;
}

.sign-in {
  max-width: 24rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.sign-in h2 {
  margin: 0 0 1.5rem;
  font-size: 24px;
  text-align: center;
}

.sign-in > p {
  margin: 0 0 1.5rem;
}

.sign-in__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sign-in .registration-form__field label {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.35rem;
  overflow: visible;
  clip: auto;
}

.sign-in__form p {
  margin: 0;
}

.sign-in__links {
  text-align: center;
}

.sign-in__links a {
  color: var(--color-highlight);
  text-underline-offset: 0.15em;
}

@media (min-width: 48em) {
  body > header.auth-header {
    padding-top: 90px;
  }
}
