.rating-page .top {border-bottom: 1px solid var(--iron);}
.rating-page .top-nav [aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.rating-main {padding-block: clamp(18px, 4vw, 40px);}
.rating-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #aa9779;
}
.rating-heading h1 {margin: 0; padding: 0; border: 0;}
.rating-heading p,
.rating-note {margin: 0; color: #634d35; font-size: 14px;}
.rating-note {margin-bottom: 16px;}

.rating-scroll {
  overflow-x: auto;
  border: 1px solid #aa9779;
}
.rating-table {width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;}
.rating-table th,
.rating-table td {
  padding: 10px clamp(8px, 2vw, 22px);
  border-bottom: 1px solid #c1af93;
  text-align: right;
  white-space: nowrap;
}
.rating-table th {color: var(--parch); background: var(--stone); font-size: 14px;}
.rating-table td:first-child {width: 1%; color: #634d35;}
.rating-table .rating-name {width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere;}
.rating-name img {vertical-align: text-bottom; margin-right: 3px;}
.rating-table tbody tr:last-child td {border-bottom: 0;}
.rating-table tbody tr:nth-child(even) {background: #e2d4bd;}
.rating-table tbody tr:hover,
.rating-table tbody tr:focus-within {background: #d9c8aa;}
.rating-table tbody tr:nth-child(-n+3) td:first-child,
.rating-table tbody tr:nth-child(-n+3) td:last-child {color: #714716;}

@media (max-width: 760px) {
  .rating-page .top .wrap {flex-wrap: wrap; gap: 8px 20px; padding-block: 12px;}
  .rating-page .top-nav {display: flex; gap: 6px 16px; font-size: 14px;}
  .rating-page .top-nav a {padding-block: 4px;}
  .rating-table {font-size: 14px;}
  .rating-table th,
  .rating-table td {padding-block: 8px;}
}
