div.rginfo-topic {
  border-radius: 10px;
  margin: -10px;
  padding: 10px;
}

div.rginfo-topic:hover {
  background: rgba(0, 0, 0, 0.075);
}

figcaption {
  font-size: 80%;
}

table.display-tournament td {
  padding: 2px 15px !important;
  white-space: nowrap;
}

ul.schedule,
ul.schedule ul {
  list-style-type: none;
  padding-left: 1.5em;
}

ul.schedule ul {
  font-style: italic;
}

#content {
  margin: 50px 0 50px 0;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  #content {
    max-width: 900px;
  }
}

@media (min-width: 768px) {
  #content {
    max-width: 600px;
  }
}

#content a {
  color: #c33e3e;
  font-weight: 600;
}

#content #form-content {
  margin-top: 15px;
}

#content h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 30px;
}

#content h3.bold-red,
#content h4.bold-red {
  color: #c33e3e;
  font-weight: 600;
}

#content table {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

#content table td {
  padding: 4px;
}

#content #button, #content #reg-submit {
  border: none;
  background-color: #c33e3e;
  padding: 10px 50px 10px 50px;
  max-width: 25vw;
  text-align: center;
  color: #ffffff;
  border-radius: 2px;
  font-family: 'Raleway',sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 5px;
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

#content #button:hover, #content #reg-submit:hover {
  background-color: rgba(195, 62, 62, 0.8);
  text-decoration: none;
}

#content #reg-link {
  text-decoration: none;
}

#content #reg-org {
  color: #ffffff;
}

#content #reg-team {
  color: #ffffff;
}

#content #reg-ind {
  color: #ffffff;
}

#content .form_error_message {
  margin: -5px 70px -30px 0;
  color: #c33e3e;
  font-weight: 600;
  text-align: right;
}

#content .errorlist {
  margin: 2px 2px 2px 2px;
  color: #c33e3e;
  font-weight: 600;
  text-align: right;
  display: inline-block;
  list-style-type: disc;
  -webkit-margin-before: 0px;
  -webkit-margin-after: 0px;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  -webkit-padding-start: 0px;
}

#content .form_error_message {
  text-align: center;
}

#content #id_usertype {
  max-width: 185px;
}

#content #id_comment {
  max-height: 125px;
  max-width: 250px;
}

#content ul#orgs {
  margin-left: -40px;
}

#content ul#orgs li {
  list-style-type: none;
}

#content ul#orgs li a {
  color: inherit;
  font-weight: 600;
  font-size: 1.3em;
  color: #c33e3e;
}

#content .divider {
  border-top: 1px solid #d2d2d2;
  margin: 20px 0 20px 0;
}

#content #mathleteheader {
  margin-bottom: -20px;
  font-weight: 600;
}

#content a#mathletelink {
  color: inherit;
}

#content .altbutton {
  border: none;
  background-color: #b0b0b0;
  padding: 10px 50px 10px 50px;
  max-width: 25vw;
  text-align: center;
  color: #ffffff;
  border-radius: 2px;
  font-family: 'Raleway',sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

#content .altbutton:hover {
  background-color: rgba(210, 210, 210, 0.8);
}

#content table#mathlete {
  width: 45vw;
  margin-left: auto;
  margin-right: auto;
}

#content table#mathlete #label-tag {
  min-width: 15vw;
}

#content table#team-form {
  width: 45vw;
}

#content span#spacer {
  margin-left: 30px;
}

#content #pw-reset-form {
  margin: 30px 0 30px 0;
}

#content #team-info ul {
  margin-left: -40px;
}

#content #team-info li {
  list-style-type: none;
}

#content table.team-table,
#content table.team-table tr,
#content table.team-table tr > th,
#content table.team-table tr > td {
  border: 2px solid #b0b0b0;
}

#content table.team-table tr > th {
  padding-left: 4px;
}

#content table.team-table a {
  color: #c33e3e;
  font-weight: 600;
}

#content #rg-graphic div.table-left {
  font-size: 0.9em;
  background: rgba(195, 62, 62, 0.075);
  border: 1px solid #b0b0b0;
  padding: 2px;
}

#content #rg-graphic div.table-right {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.075);
  border: 1px solid #b0b0b0;
  padding: 2px;
}

#content #rg-graphic h6 {
  font-size: 0.8em;
}

#content span.icon {
  font-size: .6em;
  font-family: "Open Sans", sans-serif;
}

#content #reg-faq h3 {
  font-weight: 600;
  color: #c33e3e;
}

#content #reg-faq h4 {
  font-weight: 600;
}

#content ul.faq-subheader {
  margin-bottom: 0px;
}

#content #rules h3 {
  font-weight: 600;
  color: #c33e3e;
}

#content #rules h4 {
  font-weight: 600;
}

#content #travel h3 {
  font-weight: 600;
  color: #c33e3e;
}

#content #travel h4 {
  font-weight: 600;
}

#content #travel a {
  color: #c33e3e;
}

#content .logo {
  padding: 10px;
  width: 100%;
}

#content table#novorfeb td {
  border: 1px solid #000000;
}

#content #monthly {
  text-align: left;
}

#content #monthly h3 {
  font-weight: 600;
  color: #c33e3e;
}

#content #monthly h4 {
  font-weight: 600;
}

#content #monthly a {
  color: #c33e3e;
}

/* ============================================================
   Registration info page (rg/info.html)
   Sidebar table of contents, section rhythm, and status banner.
   ============================================================ */
#reg-page {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 36px;
  margin-left: 4vw;
}

#reg-page > #content {
  flex: 1 1 600px;
  max-width: 600px;
  margin-left: 0;
  margin-right: 0;
}

#reg-toc {
  position: sticky;
  top: 72px;
  flex: 0 0 188px;
  width: 188px;
  margin-top: 62px;
  border-left: 2px solid var(--medium-grey);
}

#reg-toc .toc-label {
  color: var(--hmmt-red);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 0 8px 12px;
}

#reg-toc a {
  display: block;
  color: var(--dark-grey);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  padding: 5px 8px 5px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
}

#reg-toc a.sub {
  font-weight: 400;
  padding-left: 22px;
}

#reg-toc a:hover,
#reg-toc a.active {
  color: var(--hmmt-red);
}

#reg-toc a.active {
  border-left-color: var(--hmmt-red);
}

#reg-info > h3[id] {
  border-top: 1px solid #e6e6e6;
  padding-top: 20px;
  margin-top: 36px;
  scroll-margin-top: 72px;
}

#reg-info h5[id] {
  scroll-margin-top: 72px;
}

#reg-info li {
  margin-bottom: 5px;
}

#reg-info ul ul li {
  margin-bottom: 2px;
}

.reg-status {
  margin-top: 16px;
  padding: 10px 14px;
  background: #faf1f1;
  border-left: 3px solid var(--hmmt-red);
  font-weight: 600;
  color: #3a3a3a;
}

@media (max-width: 1100px) {
  #reg-page {
    display: block;
    margin-left: 0;
  }
  #reg-page > #content {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  #reg-toc {
    position: static;
    width: auto;
    max-width: 600px;
    margin: 28px auto 0;
    border-left: none;
    border-top: 2px solid var(--medium-grey);
    padding-top: 10px;
  }
}
