/* Alumni Network: theme for the competition sites built on the "sections" framework
   (section > .content-wrapper.interface-box, as on IAAC, ICSC, IPhyC, IChC, IMedC, IBioC, GQMC,
   IESC, GLRC, IMLC). Loaded via alumni_content/theme.json "stylesheets"; the wrapper carries the class
   al_sections. Fonts and text colour come from the site; the components below copy the site's own
   status page vocabulary: interface-title header, white-underlined headings (ambassador-title-h4),
   dotted boxes (ambassador-box), square buttons and inputs, blue information notes
   (.submission-form p) and the status-*-bg messages. Buttons and tabs additionally get the site's own
   button class (theme.json "button_class"), so its button design applies. */

section.al_section { padding-top: 140px; }
.al_sections {
  --al-line: hsla(0, 0%, 100%, 0.35);
  --al-tint: transparent;
  --al-tint2: hsla(0, 0%, 100%, 0.12);
  --al-soft: hsla(0, 0%, 100%, 0.65);
  --al-link: hsl(220, 80%, 70%);
  --al-info: hsl(220, 80%, 70%);
  position: relative;
  text-align: left !important;
  font-size: 17px;
  line-height: 1.55;
  padding: 45px 50px !important;
}
section .al_sections p { margin: 0 0 12px; }
.al_sections a { color: var(--al-link); }

/* header: like the status page's interface-title with the logout on the right */
.al_sections > h3 {
  text-align: left;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
}
.al_sections .al_userbar { position: absolute; top: 45px; right: 50px; margin: 0; font-size: 15px; gap: 16px; }
.al_sections .al_userbar a, .al_sections .al_userbar button { font-weight: 400; }

/* tabs: the site's own buttons (button_class), square, the current one inverted */
.al_sections .al_nav { border: 0; padding: 8px 0 0; margin-bottom: 30px; gap: 8px; }
.al_sections .al_nav a, .al_sections .al_subnav a {
  border-radius: 0;
  padding: 6px 13px;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid currentColor;
  background: hsla(0, 0%, 0%, 0.5);
}
.al_sections .al_nav a.al_active, .al_sections .al_subnav a.al_active,
.al_sections .al_nav a:hover, .al_sections .al_subnav a:hover {
  background: hsla(0, 0%, 100%, 0.9) !important;
  color: black !important;
  text-shadow: none;
  font-weight: 400;
}
.al_sections .al_subnav { gap: 6px; margin: 8px 0 22px; }

/* section headings: bold, underlined in white (ambassador-title-h4), no background bar */
.al_sections h4 {
  font-size: 20px;
  font-weight: bold;
  margin: 26px 0 14px;
  padding: 0 0 4px;
  background: none;
  border: 0;
  border-bottom: 2px solid currentColor;
  text-align: left;
}
.al_sections .al_cols h4:first-child, .al_sections > h4:first-of-type { margin-top: 0; }

/* boxes: dotted outline (ambassador-box) */
.al_sections .al_card { border: 1px dotted currentColor; border-radius: 5px; background: transparent; padding: 14px 18px; }
.al_sections .al_card h5 { font-size: 18px; font-weight: bold; padding-bottom: 5px; border-bottom: 0.5px dotted grey; }
.al_sections .al_res_link:hover { background: hsla(0, 0%, 100%, 0.07); }

/* small labels and tags: square */
.al_sections .al_pill { border-radius: 0; font-weight: 400; padding: 1px 8px; }
.al_sections .al_tag { border-radius: 0; }
.al_sections .al_btn { border-radius: 0; font-weight: 400; padding: 7px 15px; background: hsla(0, 0%, 0%, 0.7); }
.al_sections .al_btn:hover { background: hsla(0, 0%, 100%, 0.9); color: black !important; text-shadow: none; }
.al_sections .al_av { border-radius: 50%; }

/* messages: the status page's status-*-bg boxes */
.al_sections .al_msg { border: 0; border-radius: 0; font-weight: 400; padding: 8px 10px; font-size: 17px; }
.al_sections .al_msg_ok { color: hsl(120, 60%, 50%); background: hsla(120, 100%, 25%, 0.15); }
.al_sections .al_msg_err { color: hsl(0, 85%, 62%); background: hsla(0, 100%, 50%, 0.10); }
.al_sections .al_msg_info { color: var(--al-info); background: hsla(0, 0%, 0%, 0.3); border-left: 1px solid var(--al-info); }
.al_sections .fail_msg { color: hsl(0, 85%, 62%); background: hsla(0, 100%, 50%, 0.10); padding: 8px 10px; }

/* hints and form notes: the blue information note of the site's forms */
.al_sections .al_hint {
  border-left: 1px solid var(--al-info);
  padding: 5px 8px;
  font-size: 15px;
  background: hsla(0, 0%, 0%, 0.3);
  color: var(--al-info);
  line-height: 20px;
}
.al_sections .al_empty { color: var(--al-soft); }

/* forms: field labels like the site's form headings, square inputs (the site's input style) */
.al_sections label, .al_sections form h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 18px 0 8px;
  border: 0;
  padding: 0;
}
.al_sections .al_check, .al_sections .al_file { font-size: 16px; font-weight: 400 !important; }
.al_sections input[type=text], .al_sections input[type=email], .al_sections input[type=password], .al_sections input[type=number],
.al_sections input[type=search], .al_sections select {
  width: 100%;
  box-sizing: border-box;
  font-size: 17px;
  margin-bottom: 8px;
  border-radius: 0;
}
.al_sections textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  margin-bottom: 8px;
  color: inherit;
  background: hsla(0, 0%, 0%, 0.7);
  border: 1px solid currentColor;
  border-radius: 0;
  outline: none;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 16px;
}
.al_sections input[type=submit] { width: auto; min-width: 220px; font-size: 17px; margin-top: 14px; border-radius: 0; }
.al_sections .al_login input[type=submit] { width: 100%; }
.al_sections .al_link_btn { color: var(--al-soft); }

/* tables */
.al_sections .al_table th { color: inherit; font-weight: bold; border-bottom: 2px solid currentColor; }
.al_sections .al_table td { border-bottom: 0.5px dotted grey; }

/* login, forgot, set-password and confirm pages: the site's compact login box */
.al_view_login .al_sections, .al_view_forgot .al_sections, .al_view_reset .al_sections, .al_view_confirm-email .al_sections { width: 560px !important; }
.al_sections .al_login { max-width: none; margin: 0; }
.al_sections .al_login ul { padding-left: 22px; }
.al_sections .forgot_password { font-size: 15px; margin: 4px 0 6px; }

/* the participant-account messages used inside views */
.al_sections .status_msg_green { color: hsl(120, 60%, 50%); background: hsla(120, 100%, 25%, 0.15); padding: 6px 10px; font-weight: 400; }
.al_sections form + .al_hint, .al_sections .al_card .al_hint { margin-top: 14px; }
.al_sections .al_event_date { border: 1px solid currentColor; border-radius: 0; }
.al_sections .al_photo_row { flex-wrap: wrap; }
.al_sections input[type=file] { max-width: 100%; box-sizing: border-box; font-size: 15px; }

@media only screen and (max-width: 1200px) {
  .al_view_login .al_sections, .al_view_forgot .al_sections, .al_view_reset .al_sections, .al_view_confirm-email .al_sections { width: calc(100% - 20px) !important; }
  section.al_section { padding-top: 20vw; }
  .al_sections { font-size: 15px !important; line-height: 1.5 !important; padding: 20px 14px !important; margin-top: 0 !important; }
  .al_sections > h3 { font-size: 20px; }
  .al_sections .al_userbar { position: static; justify-content: flex-start; margin: 4px 0 10px; }
  .al_sections h4 { font-size: 18px !important; }
  .al_sections label, .al_sections form h4 { font-size: 16px !important; }
  .al_sections input, .al_sections select, .al_sections textarea { font-size: 16px !important; }
  .al_sections input[type=submit] { width: 100%; }
}
