/* Reading Closely: stable student task orientation */
.rc-task-viewport {
  height: 100%;
  overflow: auto;
  background: #f6f6f3;
}

.rc-task-shell {
  min-height: 100%;
  padding: clamp(14px, 2vw, 28px);
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.rc-task-masthead {
  background: #fff;
  border: 1px solid #d9d9d3;
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: minmax(160px, 205px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.rc-brand-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-brand-logo {
  display: block;
  width: 130px;
  max-width: 130px;
  height: auto;
  cursor: pointer;
}

.rc-task-context {
  min-width: 0;
  border-left: 6px solid #6b0909;
  padding: 8px 0 8px 20px;
}

.rc-context-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 4px;
}

.rc-context-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5d5d59;
}

.rc-attempt-label {
  display: inline-block;
  border: 1px solid #6b0909;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b0909;
  background: #fff;
}

.rc-assignment-title {
  margin: 2px 0 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.02;
  font-weight: 700;
  color: #6b0909;
  overflow-wrap: anywhere;
}

.rc-reading-title {
  margin: 8px 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.35rem);
  line-height: 1.35;
  color: #4e4e4a;
}

.rc-reading-title::before {
  content: 'Reading: ';
  font-weight: 700;
  color: #292927;
}

.rc-task-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 4px 32px;
}

.rc-task-content #questionbox,
.rc-task-content #multiplechoice,
.rc-task-content #studentAnswer,
.rc-task-content #feedback {
  background: #fff;
}

.rc-task-content #questionbox {
  font-size: 1.08rem;
  line-height: 1.45;
  border-width: 2px !important;
}

.rc-task-content #imagebox {
  display: block;
  max-width: min(100%, 760px);
  height: auto;
  margin: 12px auto;
}

@media (max-width: 900px) {
  .rc-task-shell {
    display: block;
  }

  .rc-task-masthead {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .rc-task-context {
    padding-left: 16px;
  }
}

@media (max-width: 600px) {
  .rc-task-shell {
    padding: 10px;
  }

  .rc-task-masthead {
    padding: 14px;
    border-radius: 12px;
  }
.rc-assignment-title {
    font-size: clamp(1.6rem, 7.5vw, 2.25rem);
  }

  .rc-task-content {
    padding-bottom: 24px;
  }
}
