/* The face rater (build/faceRaterTool.ts), on its own page
   (build/faceRaterPage.ts) and in the attractiveness scale article. The tool
   sits in a card like the landing pages' trait card, and its result uses the
   app's report card (.pm-card, report-card.css, loaded first) with a row per
   face feature. On /rate-my-face the hero, steps, FAQ and closing band are
   the landing pages' (profile-review.css). */

/* "Rate my face" on one line, sized to its column (about 5.2em wide). */
.rater-hero h1 { width: auto; padding-right: 0; font-size: min(79px, 18cqi); white-space: nowrap; }
/* The five features as boxes on one line; em sizing scales the row (24.25em, measured) to 97% of the column. */
.rater-features { display: flex; gap: .3em; margin: 0; padding: 0; list-style: none; font-size: min(14px, 4cqi); font-weight: 600; line-height: 1; white-space: nowrap; }
.rater-features button { padding: .6em .55em; background: var(--surface); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px #ffffff1f; color: var(--cyan); font: inherit; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.rater-features button:hover { box-shadow: inset 0 0 0 1px #37dced80; }
.rater-features button[aria-expanded="true"] { background: #37dced26; box-shadow: inset 0 0 0 1px var(--cyan); color: #fff; }
/* Why the open box's feature matters (face-rater-page.js). */
.rater-feature-why { max-width: 440px; margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* The hero, the steps and the FAQ share the page's background, so one 48-56px
   gap separates each from the next, not one section's bottom padding plus
   the next one's top (92-132px). */
.rater-hero { padding-bottom: 48px; }
.rater-hero + .workflow, .workflow + .faq-section { padding-top: 0; }
/* The closing band is about dating profiles, not faces: the apps' icons over the heading, "dating profile" in cyan. */
.closing-apps { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.closing-apps img { width: 52px; height: 52px; border-radius: 13px; }
.closing-cta h2 span { color: var(--cyan); white-space: nowrap; }

/* The tool's card sets its own text color, as it also sits on the scale
   article's white page (build/attractivenessScaleArticle.ts). */
.rater { display: grid; align-content: start; gap: 16px; width: min(100%, 440px); justify-self: center; container-type: inline-size; padding: 28px; background: var(--surface); border: 1px solid #ffffff1f; border-radius: 6px; box-shadow: 0 25px 60px #0003; color: #fff; color-scheme: dark; transition: border-color .2s; }
.rater.is-over { border-color: var(--cyan); }
.rater-start, .rater-result, .rater-example-body { display: grid; gap: 14px; }
/* The card's heading, where the page around it is about something else: one
   line, shrinking from 24px to fit a narrow card. "Where are you on the
   scale?" is about 12.9em wide in Space Grotesk Bold; 7.4cqi leaves room. */
.rater-heading { font-size: min(24px, 7.4cqi); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
/* The landing pages' solid gray secondary button (profile-review.css), which
   the article doesn't load. */
.rater .button-secondary { background: #3a4044; border-color: #3a4044; color: #fff; }
.rater .button-secondary:hover { background: #454b4f; border-color: #454b4f; }

.rater [hidden] { display: none; }
.rater-hint { margin-top: -6px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.rater .button { width: 100%; font-size: 15px; }
/* The example result over the button, grayed out and tagged over its photo so it can't pass for the visitor's own. */
.rater-example { position: relative; }
.rater-example-body { filter: grayscale(1); opacity: .45; pointer-events: none; user-select: none; }
/* The example's photo once the visitor picks their own (blankExample in face-rater.js): an empty square. */
.rater-example.is-blank .rater-photo { background: #ffffff14; }
.rater-example-tag { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 2px 6px; background: #3a4044; border-radius: 3px; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
/* While a photo is being scored: the site's muted gray, solid, and still. */
.rater-choose:disabled { background: #3a4044; border-color: #3a4044; color: #ffffff99; cursor: not-allowed; transform: none; }
.rater-status { min-height: 1.5em; font-size: 14px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.rater-status:empty { display: none; }
.rater-progress { height: 6px; overflow: hidden; background: #ffffff1a; border-radius: 2px; }
.rater-progress span { display: block; width: 0; height: 100%; background: var(--cyan); border-radius: 2px; transition: width .2s; }
.rater-error { padding: 10px 12px; background: #ef44441a; border: 1px solid #ef444466; border-radius: 4px; color: #fecaca; font-size: 14px; line-height: 1.5; }

/* The result: at top left the face score with its tier name to its right,
   the bell curve under both, and the scored crop at top right; then the
   features. The crop takes 36% of the row, which keeps it about as tall as
   the score and curve beside it at any card width. */
.rater-summary { display: flex; align-items: flex-start; gap: 18px; }
.rater-standing { flex: 1; min-width: 0; }
.rater-photo { flex: none; width: 36%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid #ffffff1f; border-radius: 4px; }
.rater-score { display: flex; align-items: center; gap: 12px; }
.rater-score strong { font: 800 48px/1 var(--font-display); letter-spacing: -.03em; color: var(--score, #fff); font-variant-numeric: tabular-nums; }
/* The tier name, one word a line (the script and the build put the breaks in). */
.rater-tier { font: 700 16px/1.15 var(--font-display); letter-spacing: -.01em; text-transform: capitalize; white-space: pre-line; color: #fff; }
/* The bell curve (drawCurve in face-rater.js): the share left of the dot in the score's color. */
.rater-curve { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.rater-curve .curve-area { fill: #ffffff14; }
.rater-curve .curve-share { fill: var(--score, #fff); fill-opacity: .35; }
.rater-curve .curve-line { fill: none; stroke: #ffffff59; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.rater-curve line { stroke: var(--score, #fff); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.rater-curve circle { fill: var(--score, #fff); stroke: var(--surface); stroke-width: 2px; vector-effect: non-scaling-stroke; }

/* The report card's rows here have no group name, icon or chevron and open
   nothing: each feature's name, score and bar. */
.rater .pm-card { grid-template-columns: auto auto 1fr; font-family: var(--font-display); }
.rater .pm-row { grid-column: 1 / -1; cursor: default; }
.rater .pm-row:hover { background: none; }
.rater .pm-row.is-medium:hover, .rater .pm-row.is-high:hover { filter: none; }
.rater-na { font-size: 13px; line-height: 1.5; color: var(--muted); }
.rater-upsell { font-size: 14px; line-height: 1.6; color: var(--muted); }
.rater-upsell strong { font-weight: 600; color: #fff; }
.rater-actions { display: grid; gap: 10px; }
/* "Rate my profile" in larger type than the other buttons, with the Hinge icon to its left (no ↗); the button keeps .button's 56px minimum, the same height as "Try another photo". */
.rater .rater-cta { padding: 7px 12px; font-size: 19px; }
.rater-cta-label { display: inline-flex; align-items: center; gap: 12px; }
.rater-cta-label img { width: 33px; height: 33px; border-radius: 8px; }

@media (max-width: 1000px) {
  .rater { padding: 24px; }
}
@media (max-width: 760px) {
  .rater-hero { padding-top: 16px; gap: 24px; }
  .rater-hero .hero-tagline { margin-block: 12px; }
  /* One column: the tool under the copy, as wide as the text. */
  .rater { justify-self: start; width: 100%; max-width: 440px; padding: 20px; }
  .rater-score strong { font-size: 40px; }
  .rater-score { gap: 10px; }
  .rater-tier { font-size: 15px; }
}
