/* Score Criteria Section: same shell as other sections */
#s6.score-criteria{
  padding: 80px var(--page-gutter);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
}

#s6 .sec-title{
  position: absolute;
  top: 20px;
  left: 40px;
}

/* Text block width matches other methodology sections */
#s6 .rf-heading{
  width: 90vw;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Figure holding the table */
.sc-figure{
  width: 90vw;
  max-width: var(--container-max);
  margin: 24px auto 0;
}

/* Table container fills the figure width */
.sc-table-wrap{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Main table */
.sc-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font: 400 13px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e1dcc8;
}

/* Header row */
.sc-table thead{
  background: #fdf7e6;
}

.sc-table th{
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid #e1dcc8;
}

/* Body rows */
.sc-table td{
  padding: 9px 12px;
  border-bottom: 1px solid #f3ebd4;
}

/* Remove border under last row */
.sc-table tr:last-child td{
  border-bottom: none;
}

/* Clickable rows – future popup hook */
.sc-row{
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.sc-row:hover{
  background: #fff4d0;
  transform: translateY(-1px);
}

/* Mobile: allow horizontal scroll if needed */
@media (max-width: 720px){
  .sc-figure{
    overflow-x: auto;
  }

  .sc-table-wrap{
    min-width: 600px;  /* keep columns legible, scroll if too narrow */
  }
}

.sc-table {
  color: #3b3423;
  font-size: 15px;
  line-height: 1.55;
}

/* Adjust table layout for 6 columns */
.sc-table th,
.sc-table td {
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
}

.sc-table td:nth-child(5) {
  text-align: left;  /* allow multiline formulas to read naturally */
}

.sc-table td:nth-child(6),
.sc-table th:nth-child(6) {
  font-weight: 600;
  color: #1e2a57; /* darker blue accent for final scores */
}

/* Optional color accent for computation rule column */
.sc-table td:nth-child(4),
.sc-table th:nth-child(4) {
  color: #3a528b;
  font-style: normal;
  font-weight: 600;
}

.sc-table th,
.sc-table td {
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}

.sc-table td:nth-child(4) {
  text-align: left;
  color: #3a528b;
  font-weight: 600;
  padding-left: 25px !important;
}

.sc-table td:nth-child(5),
.sc-table th:nth-child(5) {
  font-weight: 600;
  color: #1e2a57;
  text-align: center !important;
}

/* Footnote styling */
.sc-footnote {
  max-width: 90vw;
  margin: 12px auto 0;
  font: 400 14px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
  color: #6b634f;
  text-align: left;
}

.rule-note {
  font-weight: 400 !important;   
  opacity: 0.9;                  
}

.sc-click {
  cursor: pointer;
  transition: background 0.15s;
}

.sc-click:hover {
  background: #fff4d0; /* same hover tint as section 5 */
}

/* Increase indent for lists inside Score Criteria popup */
#sc-popup-overlay .wa-popup-body ul {
  padding-left: 16px;
  margin-left: 0;
}

#sc-popup-overlay .wa-popup-body li {
  margin-bottom: 0px;
}

.sc-svg-wrap img {
  display: block;
  margin: 0 auto;
}

.equation {
  color: #e1dcc8;
  font-family: "CMU Serif", "Computer Modern", serif;
  font-size: 1.1em;
}

.sc-subtable-wrap {
  margin-top: 4px;
  margin-bottom: 4px;
  overflow-x: auto;
}

.sc-subtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border-top: 1.5px solid #d0d0d0;
  border-bottom: 1.5px solid #d0d0d0;
}

.sc-subtable thead {
  background: rgba(0, 0, 0, 0.03);
}

.sc-subtable thead th {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1.5px solid #c8c8c8;  /* horizontal line below header */
}

.sc-subtable th,
.sc-subtable td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.sc-subtable th:first-child,
.sc-subtable td:first-child {
  white-space: nowrap;
}

.sc-subtable td:nth-child(3),
.sc-subtable td:nth-child(4),
.sc-subtable td:nth-child(5),
.sc-subtable th:nth-child(3),
.sc-subtable th:nth-child(4),
.sc-subtable th:nth-child(5) {
  text-align: center;
}

.popup-link {
  color: #6ec9ff;
  text-decoration: none;
  font-weight: 500;
}

.popup-link:hover {
  text-decoration: underline;
}