@import "fonts.css";

body {
  font: 18px/1.33333 "Montserrat", "Source Sans Pro",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { margin: 0; padding: 0; }

body {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  color: #0b0c0c;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

a, summary span {
  color: #282661;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #282661;
}

a:visited {
  color: #333;
  border-bottom: 1px solid #333;
}

a:hover, summary span:hover {
  background-color: #fff6cc;
  background-color: rgba(255,192,0, 0.2);
  border-bottom: 2px solid #282661;
}

a.image, a.image:hover {
  background-color: inherit;
  border-bottom: none;
}

a.th {
  color: #000;
  text-decoration: none;
  border-bottom: none;
  font-weight: 700;
}

a.th:hover {
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
  font-weight: 700;
}

div.schema a {
  border-bottom: 1px solid #d4351c;
}

div.schema a:hover {
  border-bottom: 2px solid #d4351c;
}

header, footer {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  /* or just margin-left: calc(-50vw + 50%); after width: 100vw;
   * but then we need overflow-x: hidden; on body */
}

header {
  font-size: 24px;
  color: #fff;
  background: linear-gradient(90deg, #282661 0%, #662f8f 20%,
    #9e2165 40%, #cb2138 60%, #ea7826 80%, #f7ae18 100%);
}

nav { padding: 0 0 24px 24px; font-size: 16px; line-height: 24px; margin-top: -12px; }

nav a, nav a:visited {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #fff;
}

nav a:hover {
  background-color: inherit;
  border-bottom: 2px solid #fff;
}

nav .sep {
	font-size: 32px;
  line-height: 24px;
	display: inline-block;
	position: relative;
	top: 2px;
	color: #fff;
	padding: 0 3px;
}

footer {
  font-size: 15px;
  color: #333;
  background: #f3f2f1;
  box-shadow: 0 50vh 0 50vh #f3f2f1; /* genius from so.9741701 */
  clear: both;
  padding: 35px 0 36px 0;
  border-top: 12px solid #e9e3e0;
}

footer p { margin: 0 0 12px 0; }

footer a { color: #333; border-bottom: 1px solid #333; }

footer a:hover { border-bottom: 2px solid #333; }

footer p.way { float: right; }

footer p.way img { margin-top: -24px; /* counteract the SVG padding */ }

header div.outer {
  display: table;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
 
header .inner { display: table-cell; vertical-align: middle }

header h1 {
  padding: 24px;
  font-size: 36px;
  line-height: 36px;
}

header h1 img.method {
  margin-right: 6px;
  opacity: .9;
}

header a.inner {
  text-align: right;
  border: none;
}

img { border: none; }

header div a img { margin: 12px 36px; vertical-align: middle; }

footer div {
  width: 100%;
  max-width: 912px; /* 960px - 24px - 24px paddings */
  margin: 0 auto;
  padding: 0 24px;
}

main { display: table; margin: 0; padding: 0; width: 100%; }

article, aside {
  display: table-cell;
  margin: 0;
  padding: 12px 24px 36px 24px;
  vertical-align: top;
  /* stop the box overflowing on mobile */
  box-sizing: border-box;
}

article { width: 66.5%; max-width: 640px; padding: 48px 24px; }

aside { width: 33.5%; background-color: #f3f2f1; }

aside.soft { background-color: #fff; }

section { margin-bottom: 60px; }

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border-top: 1px solid #aaa;
  margin: 0 0 24px 0;
}

table.headed {
  border-top: none;
}

table.uneven th { width: 40%; }

table.uneven td { width: 60%; }

caption {
  font-family: Lato;
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  text-align: left;
  margin: 0 0 24px 0;
}

caption.h3 {
  font-size: 22px;
}

th, td {
  border-bottom: 1px solid #aaa;
  text-align: left;
  padding: 18px 24px 17px 0;
}

td { font-weight: 500; }

/* FORMS */

form { margin-bottom: 36px; }

fieldset, div.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

div.field { margin: 0 0 24px 0; }

div.field.error {
  border-left: 6px solid #d4351c;
  padding-left: 18px;
}

div.field.error h2, div.field.error div.schema, .rubric, div.schema a {
  color: #d4351c;
}

div.field.error div.schema, div.schema a {
  font-weight: 600;
}

label { display: block; font-weight: 500; line-height: 24px; }

h2 label { display: inline; font-weight: inherit; }

div.schema { color: #777; font-size: 16px; line-height: 24px; }

legend { margin: 0 0 24px 0; }

input, textarea {
  font: 18px Montserrat;
  line-height: 24px;
  border: 2px solid #0b0c0c;
  padding: 7px;
}

input[type=file] {
  border: 2px solid #ccc;
  padding: 19px;
}

input.right {
  text-align: right;
  font-weight: 500;
}

input:focus, textarea:focus {
  border: 3px solid #0b0c0c !important;
  outline: 3px solid #fd0 !important;
  outline-offset: 0 !important;
  padding: 6px !important;
}

select {
  font: 20px/24px Montserrat;
  border: 2px solid #0b0c0c;
}

select:focus {
  outline: 3px solid #fd0 !important;
  outline-offset: 0 !important;
}

textarea {
	width: 90%;
	min-height: 240px;
}

div.radios div {
  display: block;
  position: relative;
  min-height: 48px;
  margin-bottom: 12px;
  padding-left: 36px;
}

div.radios input {
  cursor: pointer;
  position: absolute;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
}

div.radios label {
  display: inline-block;
  padding: 8px 15px 5px;
  cursor: pointer;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

div.radios label:before {
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

div.radios label:after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 0;
  height: 0;
  border: 10px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  background: currentColor;
}

div.radios input:checked + label:after {
  opacity: 1;
}

div.checks div {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: block;
  position: relative;
  min-height: 40px;
  margin-bottom: 10px;
  padding-left: 40px;
  clear: left;
}

div.checks input {
  cursor: pointer;
  position: absolute;
  z-index: 1;
  top: -2px;
  left: -2px;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
}

div.checks label {
  display: inline-block;
  margin-bottom: 0;
  padding: 8px 15px 5px;
  cursor: pointer;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

div.checks label:before {
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  background: transparent;
}

div.checks label:after {
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  top: 11px;
  left: 9px;
  width: 23px;
  height: 12px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  border: solid;
  border-width: 0 0 5px 5px;
  border-top-color: transparent;
  opacity: 0;
  background: transparent;
}

div.checks input:checked + label:after {
  opacity: 1;
}

div.alert, div.interface, div.preview { 
  border: 6px solid #9e2165;
  padding: 24px 24px 0 24px;
  margin-bottom: 24px;
}

h1, h2, h3, h4 { font-family: Lato; font-weight: 700; }

h1 { font-size: 48px; line-height: 36px; margin: 0; }

h2 { font-size: 28px; line-height: 36px; margin: 36px 0 24px 0; }

h3 { font-size: 22px; line-height: 36px; margin: 24px 0 24px 0; }

h4 { font-size: 20px; line-height: 36px; margin: 24px 0 24px 0; }

article h2:first-child { margin-top: 0; }

p, pre { margin: 0 0 24px 0; line-height: 24px; }

pre { white-space: pre-wrap; }

p.buttons { margin: 36px 0; }

details div, .details {
  border-left: 3px solid #555;
  padding-left: 15px;
}

details {
  font-size: 16px;
  margin: 24px 0;
}

details summary { cursor: pointer; }

details div {
  margin-top: 18px;
  margin-bottom: 6px;
}

.big { font-size: 20px; line-height: 24px; }

.big a {
  display: inline-block;
  line-height: 21px;
  border-bottom: 2px solid #282661;
}

.small {
  color: #555;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400; /* ? */
}

.regular {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
}

.special {
  color: #aaa;
}

.full, .blue {
  color: #282661;
}

.partial, .orange {
  color: #ea7826;
}

.empty, .red {
  color: #cb2138;
}

.verbatim {
  white-space: pre-wrap;
}

.unbreaking {
  white-space: nowrap;
}

form.inline {
  display: inline-block;
  margin: 0;
  padding: 0;
}

div.controls {
  margin-bottom: 24px;
}

div.controls button, table td.buttons a {
  white-space: nowrap;
  font-size: 14px;
  padding: 3px 6px;
  margin-bottom: 6px;
}

div.preview div.field {
  margin-bottom: 48px;
}

.upper { text-transform: uppercase; }

.right { text-align: right; }

div.warning {
  border: 6px solid #ea7826;
  margin-bottom: 24px;
  padding: 36px 24px 12px 24px;
  font-size: 20px;
}

div.warning p.warn {
  font-weight: 700;
}

.bang {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 700;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	display: inline-block;
  margin-right: 6px;
	position: relative;
	top: 3px;
	min-width: 35px;
	min-height: 35px;
	border: 3px solid #0b0c0c;
	border-radius: 50%;
	color: #fff;
	background: #0b0c0c;
	font-size: 30px;
	line-height: 29px;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* p.breadcrumbs { */
/*   /\* yiss *\/ */
/*   margin-top: -24px; */
/*   margin-bottom: 36px; */
/*   font-size: 16px; */
/*   line-height: 24px; */
/* } */

td.normal { font-weight: 400; }

em, em a { font-weight: 500; font-style: normal; }

strong, strong a { font-weight: 600; font-style: normal; }

strong.percent { font-size: 22px; padding-left: 3px; }

button,
.buttons a,
td.buttons a,
div.errata button,
div.errata p.buttons a {
  border: 2px solid transparent;
  color: #fff;
  font-size: 21px;
  font-family: Montserrat;
  font-weight: 600;
  padding: 6px 12px;
  background-color: #9e2165;
  box-shadow: 1px 2px 1px #2d1800;
  text-align: center;
  vertical-align: top;
  cursor: pointer;
  -webkit-apperance: none;
}

div.errata button:hover, div.errata p.buttons a:hover {
  border: 2px solid transparent;
  color: #fff;
}

button[disabled="disabled"] {
  cursor: default;
  background-color: #666;
  box-shadow: 1px 2px 1px #333;
}

.buttons a {
  text-decoration: none;
  display: inline-block;
  margin-right: 12px;
}

div.card {
	background: #f3f2f1;
	border: 2px solid #555;
	padding: 6px 24px;
	border-radius: 6px;
  margin: 0 18px 36px 0;
}

div.card .buttons a { font-size: 16px; line-height: 24px; }

div.errata {
  border: 6px solid #d4351c;
  padding: 12px 24px;
  margin-bottom: 24px;
}

div.errata h2 {
  font-size: 22px;
  line-height: 36px;
  margin: 24px 0 24px 0;
}

div.errata p {
  color: #d4351c;
  font-weight: 500;
}

div.errata p a, div.errata p a:hover {
  color: #d4351c;
  font-weight: 600;
  border-bottom: 2px solid #d4351c;
}

/* Can be on h2 or label etc. */
/* .error-label { color: #d4351c; font-weight: 600 !important; } */

/* span.erratum { */
/*   display: block; */
/*   color: #d4351c; */
/*   font-weight: 500; */
/*   font-size: 16px; */
/*   margin: 12px 0; */
/* } */

/* div.form-errors p a:hover { */
/*   background-color: rgba(255,192,0, 0.2); */
/* } */

div.ps {
	position: absolute;
	z-index: 1;
	top: 0;
	padding-left: 24px;
	color: #ccc;
}

input#the-checkbox { display: none; }

input#the-checkbox:checked + div#the-result { display: none; }

div#the-result, div.notice {
  position: relative;
  border: 6px solid #282661;
  padding: 24px 24px 0 24px;
  margin-bottom: 24px;
}

label.dismiss {
  /* or make it a button */
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  color: #282661;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  border-bottom: 1px solid #282661;
}

label.dismiss:hover {
  border-bottom: 2px solid #282661;
}

p.skip, div.committee, div.applicant {
  margin-bottom: 36px;
}

div.stripes div.field, div.committee, div.applicant {
  padding: 6px 24px;
}

div.committee { margin-left: 36px; }

div.applicant { margin-right.: 36px; }

div.stripes div.field:nth-child(odd), div.committee {
  background-color: #eef5ff;
}

div.stripes div.field:nth-child(even), div.applicant {
  background-color: #f6f6f6;
}

div.subform {
  border: 3px solid #f3f2f1;
  padding: 0px 21px;
  border: 1px solid #aaa;
  padding: 0px 23px;
}

@media only screen and (max-device-width: 480px) {
  body { font-size: 16px; }

  h1 { font-size: 36px; line-height: 24px; }

  h2 { font-size: 24px; line-height: 24px; }

  h3 { font-size: 18px; line-height: 24px; }

  header .inner.image { display: none; }
}

@media only screen and (max-width: 640px) {
  main { display: block; }

  article { display: block; width: 100% !important; }

  aside { display: block; width: 100% !important; }
}
