.checkbox_text {
  /* SETS SIZE AND MARGIN IN CHECK LIST */
  display: flex;
  align-items: flex-start; /* Aligns the icon and text properly */
  font-size: 0.8rem;
}

.checkbox_text i {
  /* SETS CHECKBOX SIZING */
  flex-shrink: 0; /* Prevents the icon from resizing */
  margin-right: 0.5rem; /* Space between icon and text */
  font-size: 1.5em;
}

/* ========================================
      COMPONENT STYLES: ETIQUETTE
======================================== */

.etiquette-number-complex {
  /* CONTROLS RED CIRCLE IN ETIQUETTE NUMBERING SEQUENCES */
  color: #FFFFFF;
  font-size: 1.5rem;
  background-color: #800000;
  width: 3.0rem;
  height: 3.0rem;
  padding: 0px;
}

.etiquette-number-complex-practices {
  /* CONTROLS GRAY CIRCLE IN STANDARD PRACTICES NUMBERING SEQUENCES */
  color: #616161;
  font-size: 1.5rem;
  background-color: #C3C3C3;
  width: 3.0rem;
  height: 3.0rem;
  padding: 0px;
}

.card-link {
  display: flex;
  align-items: center; /* Ensures first line aligns with number */
  flex-wrap: wrap; /* Allows text to wrap when needed */
}

.etiquette-number {
  /* CONTROLS POSITIONING ON ETIQUETTE NUMBERS */
  flex-shrink: 0; /* Prevents the number from shrinking */
  text-align: center;
  width: 3.0rem; /* Keeps number's width consistent */
  height: 3.0rem; /* Ensures the circle remains a perfect shape */
  display: flex;   /* Center the number properly */
  align-items: center; /* Center the number properly */
  justify-content: center; /* Center the number properly */
  line-height: 3.0rem; /* Ensures vertical centering */
  margin-top: 5px; /* Center the number properly */
}

.etiquette-rule-accordian {
  /* CONTROLS DISPLAY CHARACTERISTICS OF FULL RULE IN CARD HEADER */
  flex: 1; /* Allows text to take up remaining space */
  margin-left: 1rem;
  padding-left: 0.5rem; /* Ensures proper spacing */
  text-indent: -0.5rem; /* Aligns second line properly */
  align-self: center; /* Keeps first line aligned with the number */
  margin-top: 5px;
}

#protocols .card-header {
  /* SETS INTERIOR SPACING AT BOTTOM ON COLLAPSED ACCORDIAN CARDS */
  padding-bottom: 0px;
}

#protocols .vocabulary_card .card-header {
  /* OVERRIDES CARD HEADER SPACING ON VOCABULARY CARD HEADER */
  padding-bottom: 10px;
}

#protocols .quick_reference_card .card-header {
  /* OVERRIDES CARD HEADER SPACING ON QUICK REFERENCE CARD HEADER */
  padding-bottom: 10px;
}
.eq {
  /* SETS SPACE BETWEEN COLLAPSED ACCORDIAN CARDS */
margin-bottom: 15px;
}

.etiquette-w p:nth-child(3), .practices-w p:nth-child(3) {
  margin-bottom: 20px; }
  /* SETS SPACING ON ALL PAGES LAST STRIPE SO THERE IS WHITE SPACE BETWEEN STRIPE AND RESPONSIBLE-SHIFTED TEXT */

.etiquette-w p:nth-child(4), .practices-w p:nth-child(4) {
  /* SETS SPACING ON ETIQUETTE PAGE LAST STRIPE SO THERE IS WHITE SPACE BETWEEN STRIPE AND RESPONSIBLE-SHIFTED TEXT */
  margin-bottom: 20px;
}

.etiquette-w p, .practices-w p {
  /* SETS BACKGROUND ON STRIPES IN "STANDARDS/PRACTICES EXPLAINED" SECTIONS */
  background-color: #800000;
  color: #FFF;
  font-weight: bold;
  font-size: 0.9em;
  margin: 0px 3px 6px 3px;
  padding: 5px;
}

.practices-w p {
  /* OVERRIDES BACKGROUND COLOR AND FONT ON STRIPES IN "PRACTICES EXPLAINED" SECTIONS ONLY  */
  background: #C3C3C3;
  color: #616161;
}

.practices h4 {
  /* SETS HEADING COLOR FOR "PRACTICES EXPLAINED" TO CORRESPOND WITH "#80000" H4 ETIQUETTE COLOR  */
  color: #616161;
}

/* =================================================
      COMPONENT STYLES: ANECODOTE SPECIAL FORMATTING
================================================= */

/* ************* TXT MSG SEQUENCES ************** */

.chat {
  /* CONTROLS CONTAINER FOR TXT MESSAGES */
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 20px 10px 20px;
  margin: -10px 5px 10px 5px;
  border: 2px solid #CFCFCF;
  font-size: .75rem;
}

.messages {
  margin-top: 0px;
  display: flex;
  flex-direction: column;
}

.message {
  border-radius: 20px;
  padding: 8px 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

.yours {
  align-items: flex-start;
}

.yours .message {
  margin-right: 25%;
  background-color: #EEE;
  position: relative;
}

.yours .message.last:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: -7px;
  height: 20px;
  width: 20px;
  background: #EEE;
  border-bottom-right-radius: 15px;
}

.yours .message.last:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-right-radius: 10px;
}

.mine {
  align-items: flex-end;
}

.timestamp {
  color: #B1B1B1;
  font-size: 95%;
  font-variant: small-caps;
  text-align: center;
}

.mine .message {
  color: white;
  margin-left: 25%;
  background: rgb(0, 120, 254);
  position: relative;
}

.mine .message.last:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: -8px;
  height: 20px;
  width: 20px;
  background: rgb(0, 120, 254);
  border-bottom-left-radius: 15px;
}

.mine .message.last:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-left-radius: 10px;
}

/* ************* COMMENT SEQUENCES ************** */

.profile_comment {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px; /* Ensures spacing between comments */
  margin-top: 40px;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 5px #800000;
}

.comment_bubble {
  background: #f1f1f1;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-left: 20px;
}

.comment_bubble h6 {
  font-size: 100%;
  margin-bottom: 0px;}

.comment_bubble p {
  margin: 0; /* Default: no extra space between lines */
}

.comment_bubble p + p {
  margin-top: 8px; /* Adds space only if there are multiple paragraphs */
}

.comment_bold {
  font-weight: bold;
  display: block;
}

/* ************* CHRONICLES FOOTER ************** */

.chronicles {
  /* CONTROLS THE ALIGNMENT ON ETIQUETTE ANECDOTES */
  text-align: right;
  Font-style: italic;
}
