* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: #707070;
  overflow-x: hidden;
}

body {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.dna {
  display: none;
}

.site-header,
.site-nav,
.page {
  position: relative;
  z-index: 1;
}

.site-header {
  background: #fff;
  padding: 0.45rem 1.4rem;
}

.brand {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  display: block;
  width: min(14rem, 42vw);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.slogan {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(0, 0, 0, 0.3);
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 64px;
  background: #EEEEEE;
  border-bottom: 3px solid #D52D32;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0 1.5rem;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transform: skew(-20deg);
}

.site-nav a span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transform: skew(20deg);
}

.site-nav a span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D52D32;
  flex: 0 0 auto;
}

.site-nav a.current,
.site-nav a:hover {
  background: #fff;
}

.page {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0 3.5rem;
  background: #fff;
}

.page.wide { width: min(1000px, calc(100% - 2rem)); }

.page.evaluations { width: min(1200px, calc(100% - 2rem)); }

h1 {
  margin: 0 0 0.8rem;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.lead,
.q {
  margin: 0.9rem 0 0.45rem;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.form-section {
  margin: 1.35rem 0 0;
  padding: 0.85rem 1rem 1.05rem;
  background: #EEEEEE;
  border-top: 4px solid #D52D32;
}

.form-section .section-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #D52D32;
  color: #D52D32;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.form-section .q:first-child { margin-top: 0; }

.item-title,
.item-header,
.item-sub {
  margin: 0 0 0.2rem;
  font-family: Raleway, "Segoe UI", sans-serif;
  line-height: 1.35;
}

.item-title {
  color: #D52D32;
  font-size: 1.2rem;
  font-weight: 700;
}

.item-header {
  color: #707070;
  font-size: 1.05rem;
  font-weight: 700;
}

.item-sub {
  margin-bottom: 0.45rem;
  color: #707070;
  font-size: 0.98rem;
  font-weight: 500;
}

.form-section .item-title:first-child,
.form-section .item-header:first-child,
.form-section .item-sub:first-child { margin-top: 0; }

.question-lead {
  margin: 0;
  color: #707070;
  font-size: 0.92rem;
}

.new-evaluation { padding: 0.85rem 1rem 1.05rem; }

.new-evaluation summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  padding: 0 0 0.4rem;
  border-bottom: 2px solid #D52D32;
  list-style: none;
  cursor: pointer;
}

.new-evaluation summary::-webkit-details-marker { display: none; }

.new-evaluation summary::marker { content: ""; }

.new-evaluation .section-title {
  margin: 0;
  padding: 0;
  border: 0;
}

.new-evaluation .arrow {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2.5px solid #707070;
  border-bottom: 2.5px solid #707070;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.new-evaluation[open] .arrow { transform: rotate(45deg); }

.new-evaluation:not([open]) summary { margin-bottom: 0; }

.new-evaluation form { margin: 0; }

.form-section table.grid,
.form-section textarea,
.form-section input.blank,
.form-section input[type="date"] {
  background: #fff;
}

a { color: #D52D32; }

.doc-header {
  margin: 0.8rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid #D52D32;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.doc-header p { margin: 0; }

.instruction {
  margin: 0 0 1rem;
  color: #707070;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
}

.tick-note {
  margin: 0.8rem 0 0.4rem;
  font-size: 0.95rem;
  font-style: italic;
}

.sub { margin: 0 0 0.35rem; font-weight: 700; }

.choices { margin: 0.15rem 0 0.4rem; }

.opt {
  margin: 0 0.7rem 0.35rem 0;
  cursor: pointer;
  font-weight: 400;
}

.stack .opt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-right: 0;
}

p.specify { margin: 0.2rem 0 0.55rem; }

input[type="checkbox"],
input[type="radio"] {
  width: 0.95em;
  height: 0.95em;
  margin: 0 0.15em 0 0.2em;
  vertical-align: -0.12em;
  accent-color: #D52D32;
  cursor: pointer;
}

input.blank,
input[type="date"],
input[type="search"] {
  width: 16rem;
  max-width: 70%;
  padding: 0.28rem 0.4rem;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #707070;
  font: inherit;
}

input.blank.wide { width: 100%; max-width: 100%; }

.form-section input.blank.line {
  width: min(18rem, 100%);
  padding: 0.05rem 0.2rem 0.12rem;
  border: 0;
  border-bottom: 1px dashed #707070;
  border-radius: 0;
  background: transparent;
}

input[type="file"] { font: inherit; }

.note { margin: 0.35rem 0 0.8rem; }

#your-name .note { margin-bottom: 0.15rem; }

#your-name .note + .note { margin-top: 0; margin-bottom: 0.8rem; }

.nav { margin: 0 0 0.6rem; }

a.back {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid #D52D32;
  color: #D52D32;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

a.back:hover { background: #EEEEEE; }

.edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.edit-actions .submit { margin-top: 0; }

a.view-user {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #D52D32;
  background: #fff;
  color: #D52D32;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

a.view-user:hover { background: #EEEEEE; }

table.directory a { font-weight: 700; }

.page.wide table.directory {
  table-layout: fixed;
  width: 100%;
}

.page.wide table.directory td:nth-child(2),
.page.wide table.directory td:nth-child(3) {
  width: 8.75rem;
  white-space: nowrap;
}
.page.wide table.directory td:nth-child(4) { width: 5.5rem; }
.page.wide table.directory td:nth-child(5) { width: 7rem; }
.page.wide table.directory td:nth-child(6) { width: 4.5rem; }
.page.wide table.directory td:nth-child(7) { width: 6rem; }
.page.wide table.directory td:nth-child(8) { width: 6.5rem; }
.page.wide table.directory td:nth-child(9) { width: 6.25rem; }
.page.wide table.directory td:nth-child(10) { width: 5.5rem; }

.course-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.course-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #D52D32;
}

.course-card .section-title {
  margin: 0;
  padding: 0;
  border: 0;
  word-break: normal;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1.6rem;
  margin: 0;
}

.course-meta b {
  display: block;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.course-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  width: 100%;
  margin-top: 0.9rem;
}

.course-actions a {
  font-weight: 700;
  text-decoration: none;
}

.course-actions form { margin: 0; }

.download-options {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.action-label {
  margin: 0 0 0.35rem;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.download-options a { font-weight: 700; }


button.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: #D52D32;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-list { margin: 0.8rem 0 0; padding-left: 1.2rem; }

dialog.delete-dialog:not([open]) { display: none; }

dialog.delete-dialog {
  border: 4px solid #D52D32;
  background: #fff;
  color: #707070;
  padding: 1.2rem 1.3rem 1rem;
  max-width: 28rem;
}

dialog.delete-dialog p { margin: 0 0 0.7rem; }

dialog.delete-dialog strong { font-weight: 700; }

dialog.delete-dialog form { display: flex; gap: 0.6rem; justify-content: flex-end; }

button.cancel {
  margin-top: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d5d5d5;
  background: #EEEEEE;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: center;
}

.page.wide table.directory td.name {
  width: auto;
  overflow: hidden;
}

.page.wide table.directory td.name span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page.wide table.directory td:not(:first-child) { text-align: center; }

td.event-date { white-space: nowrap; }

td.downloads a { display: block; }

input.code {
  width: 6.4rem;
  margin: 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.save-help { margin: 0.4rem 0 0.8rem; }

#confirmation p { margin: 0.75rem 0; }

.resume .submit {
  margin-top: 0;
  padding: 0.28rem 0.7rem;
  vertical-align: baseline;
}

.actions .submit { margin-right: 0.45rem; }

#save-note,
#resume-error { margin: 0.45rem 0 0.2rem; }

textarea {
  display: block;
  width: 100%;
  margin: 0.25rem 0 0.75rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid #d5d5d5;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.65em - 1px),
    #EEEEEE calc(1.65em - 1px),
    #EEEEEE 1.65em
  );
  background-attachment: local;
  color: #707070;
  font: inherit;
  line-height: 1.65em;
  resize: vertical;
}

.lines-1 { min-height: 1.65em; }
.lines-2 { min-height: calc(1.65em * 2); }
.lines-4 { min-height: calc(1.65em * 4); }
.lines-8 { min-height: calc(1.65em * 8); }
.lines-12 { min-height: calc(1.65em * 12); }

table.grid {
  width: 100%;
  margin: 0.25rem 0 0.85rem;
  border-collapse: collapse;
  font-weight: 400;
}

table.grid td {
  padding: 0.4rem 0.55rem;
  border: 1px solid #d5d5d5;
  vertical-align: middle;
}

table.directory tr:first-child td,
table.sessions tr:first-child td,
table.scale tr:first-child td {
  background: #EEEEEE;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-weight: 700;
}

table.scale td { width: 25%; text-align: center; }

td.scale-label { text-align: center; line-height: 1.15; }

.scale-num,
.scale-word { display: block; }

.scale-word { margin-top: 0.15rem; font-weight: 600; }

table.course td:first-child { width: 24%; font-weight: 700; }
table.course tr:first-child td { font-weight: 400; text-align: center; }
table.course tr:first-child td:first-child { text-align: left; }

table.sessions td:first-child { width: 52%; }
table.sessions td.tick { width: 12%; text-align: center; }
table.sessions tr.group td { background: #fff; font-weight: 700; }

td.tick { text-align: center; }

td.tick label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35em;
  cursor: pointer;
}

.form-error {
  margin: 0.6rem 0 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #D52D32;
  background: #fff;
}

.is-missed {
  outline: 2px solid #D52D32;
  outline-offset: 3px;
  scroll-margin: 2rem;
}

.form-error p { margin: 0 0 0.3rem; color: #D52D32; font-weight: 700; }
.form-error ul { margin: 0; padding-left: 1.2rem; }

button.submit,
a.submit {
  margin-top: 0.4rem;
  padding: 0.5rem 1rem;
  border: 0;
  background: #D52D32;
  color: #fff;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

a.submit { display: inline-block; }

button.submit:hover,
a.submit:hover { background: #b92429; }

button.submit:disabled { cursor: wait; }

.closing {
  margin: 1.3rem 0 0;
  font-weight: 700;
  text-align: center;
}

input:focus-visible,
textarea:focus-visible,
button.submit:focus-visible,
a:focus-visible {
  outline: 2px solid #D52D32;
  outline-offset: 2px;
}

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

.questions { margin-top: 1.8rem; }

.questions h2 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #D52D32;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.question-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }

.question-card {
  scroll-margin: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1.2rem;
  align-items: start;
  margin: 0 0 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d5d5d5;
  background: #fff;
}

.question-card.is-open { border-color: #D52D32; }

.question-wording {
  display: block;
  margin: 0;
  font-weight: 700;
}

.question-kind {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

.question-preview {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.question-preview li { margin: 0.12rem 0; }

.question-shift {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.question-shift a {
  color: #D52D32;
  font-weight: 700;
  text-decoration: none;
}

.question-shift a:hover { text-decoration: underline; }

.question-shift form { margin: 0; }

.question-form {
  margin: 0.2rem 0 1.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #d5d5d5;
}

.question-form label.field { display: block; margin: 0.9rem 0; }

.question-form label.field > span,
.field-label {
  display: block;
  margin: 0 0 0.3rem;
  color: #707070;
  font-family: Raleway, "Segoe UI", sans-serif;
  font-weight: 700;
}

.field-label { margin-top: 0.9rem; }

.choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.85rem;
  align-items: center;
  margin: 0.55rem 0;
}

.choice-row input.blank { width: 100%; max-width: 100%; }

.specify-toggle {
  grid-column: 1 / -1;
  margin: 0;
}

.scale-edit { margin: 0.2rem 0 0.6rem; }

.score-line {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin: 0.45rem 0;
}

.score-line span {
  font-family: Raleway, "Segoe UI", sans-serif;
  font-weight: 700;
}

.question-form select,
.question-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #707070;
  font: inherit;
}

.question-form textarea { min-height: 4.5rem; resize: vertical; }

.question-form .cancel { margin-top: 0.15rem; }

@media (min-width: 1200px) {
  .dna {
    display: block;
    position: fixed;
    z-index: 0;
    top: 50%;
    width: 240vh;
    height: 10rem;
    margin-top: -5rem;
    background-image: url("/dna-strip.png");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    opacity: 0.5;
    pointer-events: none;
  }

  .dna-left {
    left: calc(-120vh - 1.1rem);
    transform: rotate(93deg);
  }

  .dna-right {
    right: calc(-120vh - 1.1rem);
    transform: rotate(93deg);
  }
}

@media (max-width: 720px) {
  .brand { flex-direction: column; align-items: flex-start; }
  .slogan {
    padding: 0.75rem 0 0;
    border-top: 1px solid #EEEEEE;
    border-left: 0;
    font-size: 0.95rem;
  }
  .site-nav { flex-wrap: wrap; }
  .site-nav a,
  .site-nav a span { transform: none; }
  .site-nav a { min-width: 0; }
  .page { width: auto; padding: 1rem 0.85rem 2.5rem; }
  table.sessions { font-size: 0.85rem; }
  .question-card { grid-template-columns: 1fr; }
  .question-shift { justify-content: flex-start; }
  input.blank { width: 100%; max-width: 100%; }
}
