/* Under the header and after the 6/10 tier, one line inviting readers to
   rate their own face, on the rater card's dark surface. Its button opens
   the face rater's photo picker (face-rater.js); the rater itself
   (face-rater.css), full size and centered, follows the 1/10 tier. */
.scale-rate { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding: 10px 10px 10px 16px; border-radius: 6px; background: var(--surface); }
.guide-content + .scale-rate { margin: 30px 0 0; }
.scale-rate p { margin: 0; color: #d9e5e9; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.scale-rate strong { color: #fff; font-weight: 700; }
/* "1-10" never breaks at its hyphen. */
.scale-rate strong span { white-space: nowrap; }
.scale-rate .button { flex: none; min-height: 42px; padding: 10px 18px; }
/* A line the rater has moved into (face-rater.js) hides; the rater takes its spacing under the header. */
.scale-rate[hidden] { display: none; }
.scale-rater { margin-top: 40px; }
.guide-header + .scale-rater { margin: 0 0 22px; }
/* The site header is sticky, so the jump to the rater stops below it. The
   heading sits closer to the card's top than the card's side padding. */
.scale-rater .rater { margin-inline: auto; padding-top: 18px; scroll-margin-top: 72px; }

.guide-content .scale-jump { margin: 0; }
.scale-jump-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.guide-content .scale-jump-head p { margin: 0; color: #536870; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.guide-content .scale-jump-head a { font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.guide-content .scale-jump ol { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.guide-content .scale-jump li { margin: 0; padding: 0; }
.guide-content .scale-jump ol a { display: block; padding: 5px 0; border: 1px solid #c8e0e4; border-radius: 4px; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; font-variant-numeric: tabular-nums; }
.guide-content .scale-jump ol a:hover { background: #eaf8fa; }

.scale-tier { margin-top: 30px; }
/* The site header is sticky, so jumps stop below it. */
.guide-content .scale-tier h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 24px; scroll-margin-top: 44px; }
.scale-score { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 62px; min-height: 38px; padding: 4px 9px; border: 1px solid #b5dce1; border-radius: 4px; background: #eaf8fa; color: #065c69; font-size: 19px; font-variant-numeric: tabular-nums; }
.scale-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.scale-portrait { min-width: 0; margin: 0; }
.scale-portrait a { display: block; border-radius: 4px; cursor: zoom-in; }
.scale-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; border-radius: 4px; background: #e8edef; }
.scale-portrait figcaption { margin-top: 6px; color: #24373e; font-size: 12px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.guide-content .scale-tier p { margin: 0; color: #3b5058; font-size: 15px; line-height: 1.65; }

.scale-chart { margin-top: 40px; }
.guide-content .scale-chart h2 { margin: 0 0 14px; font-size: 24px; }
.scale-chart-card { position: relative; max-height: 460px; overflow: hidden; border-radius: 6px; background: #071b21; }
.scale-chart-card img { width: 100%; height: auto; }
.scale-chart-card::after { content: ''; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(#071b2100, #071b21 70%); pointer-events: none; }
.guide-content .scale-chart-card .button { position: absolute; z-index: 1; bottom: 24px; left: 50%; translate: -50%; min-height: 48px; white-space: nowrap; color: #092129; background: #37dced; text-decoration: none; }

.guide-content .article-cta h2 { margin: 0 0 12px; color: #fff; font-size: 25px; }
/* The closing CTA is about dating profiles, not faces: the apps' icons over the heading, "dating profile" in cyan. */
.article-cta-apps { display: flex; gap: 10px; margin-bottom: 16px; }
.article-cta-apps img { width: 44px; height: 44px; border-radius: 11px; }
.guide-content .article-cta h2 span { color: var(--cyan); white-space: nowrap; }
.guide-content h3 { margin: 22px 0 6px; font-size: 18px; }
.scale-credits { overflow-wrap: anywhere; }
.scale-credits li { scroll-margin-top: 30px; }
.scale-credits li:target { background: #eaf8fa; outline: 3px solid #eaf8fa; }

/* The portrait viewer opened by static-pages.js, styled like the photo modal. */
.scale-viewer { width: calc(100% - 16px); max-width: 448px; max-height: calc(100% - 24px); padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #111827; color: #fff; font-family: var(--font-text); }
.scale-viewer:focus { outline: none; }
.scale-viewer::backdrop { background: #000c; backdrop-filter: blur(4px); }
html:has(.scale-viewer[open]) { overflow: hidden; }
.scale-viewer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-photo { position: relative; }
.sv-photo img { width: 100%; height: auto; max-height: calc(100dvh - 100px); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; background: #1f2937; }
.sv-close, .sv-step { position: absolute; z-index: 1; display: grid; place-items: center; padding: 0; border-radius: 50%; color: #fff; cursor: pointer; }
.sv-close { top: 8px; right: 8px; width: 32px; height: 32px; padding-bottom: 3px; border: 0; background: #000c; font: 700 24px/1 var(--font-text); }
.sv-step { top: 50%; width: 36px; height: 36px; border: 1px solid #fff3; background: #0009; transform: translateY(-50%); backdrop-filter: blur(4px); }
.sv-step[data-step="-1"] { left: 8px; }
.sv-step[data-step="1"] { right: 8px; }
.sv-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; }
.sv-name { font-size: 17px; }
.sv-rating { color: #7de1e7; font-size: 14px; font-weight: 600; white-space: nowrap; }

@media (max-width: 700px) {
  .scale-rate { gap: 12px; padding-left: 12px; }
  .guide-content + .scale-rate { margin-top: 26px; }
  .scale-rate p { font-size: 14px; }
  .scale-rater { margin-top: 34px; }
  .guide-content .scale-jump ol { gap: 4px; }
  .guide-content .scale-jump ol a { font-size: 14px; }
  .scale-tier { margin-top: 26px; }
  .guide-content .scale-tier h2 { gap: 10px; font-size: 22px; }
  .scale-score { min-width: 54px; min-height: 34px; font-size: 17px; }
  /* Three portraits and the edge of a fourth, swiped sideways to the card's edge. */
  .scale-row { display: flex; gap: 8px; margin: 0 -18px 12px; padding: 0 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; }
  .scale-row::-webkit-scrollbar { display: none; }
  .scale-row::after { content: ''; flex: 0 0 10px; }
  .scale-portrait { flex: 0 0 min(150px, calc((100% - 24px) / 3.35)); scroll-snap-align: start; }
  .scale-chart { margin-top: 34px; }
  .guide-content .scale-chart h2 { font-size: 22px; }
  .scale-chart-card { max-height: 400px; }
}
