/*
 * The sign-up's own layout (/start and /claim/{placeId}; Package 83, board 11
 * "Build as drawn"): three short screens, Find your place, Check the pin,
 * About you. At a desktop's width the three steps stand on the left (the
 * current one marked, the ones done ticked) and the step on the right; on a
 * phone, one column under "Step n of 3".
 *
 * The brand (fonts, colours, buttons, fields, the focus ring) is brand.css and
 * the site's frame and form parts are site.css; this file uses brand.css's
 * colour roles only, so it follows the browser's theme as the site does.
 * Every control here is a whole target, 44 high at the least.
 */

/* ---- the steps and the step ---- */
.signup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 12px; }
.signup-col { max-width: 560px; min-width: 0; }
.signup-col h1 { font-size: clamp(30px, 5vw, 40px); }
.signup-col > .eyebrow + h1 { margin-top: 6px; }
/* The step keeps its column when the steps go (after Submit). */
@media (min-width: 761px) { .signup-col { grid-column: 2; } }
.signup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.signup-steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; color: var(--ink2); }
.signup-steps li[aria-current="step"] { color: var(--ink); }
.signup-step-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 11px; background: var(--sunken); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; color: var(--ink); }
.signup-steps li[aria-current="step"] .signup-step-n { background: var(--ink); color: var(--canvas); border-color: transparent; }
.signup-steps li.done .signup-step-n { background: var(--raised); }
.signup-aside-note { margin-top: 14px; }
@media (max-width: 760px) {
  .signup { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  /* On a phone the step is said once, by "Step n of 3" over the heading. */
  .signup-aside { display: none; }
}

/* ---- 1 · Find your place ---- */
.signup-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.signup-results:empty { display: none; }
.signup-result { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.signup-result-head { display: flex; align-items: flex-start; gap: 12px; }
.signup-result-head .grow { display: grid; gap: 1px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* A place's two letters on a plain tile: never its logo or a photo (rule L8). */
.signup-tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sunken); color: var(--ink); font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 15px; }
.signup-result-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.signup-figure { flex: 1 1 140px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.signup-star { color: var(--accent-ink); }
/* A button that reads as a link ("Not here? Add your place", "Not you?"). */
button.link { background: none; border: 0; font: inherit; font-weight: 700; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.signup-wide { width: 100%; }

/* ---- 2 · Check the pin ---- */
.signup-col .radius-map { height: 300px; }
@media (min-width: 761px) { .signup-col .radius-map { height: 420px; } }
/* The map in the site's colours (board 11, keep 3 and choice 11.5), never a
   third-party map's own style: radius_map.js's tiles are drawn calm and
   desaturated in daylight, dark at night, by a filter on the tiles alone. The
   attribution sits beside the tiles, not in them, so it stays as it is,
   readable in both. The console's maps (site.css) are untouched. */
.signup-col .radius-map-tiles img { filter: grayscale(1) sepia(0.12) contrast(0.9) brightness(1.04); }
@media (prefers-color-scheme: dark) {
  .signup-col .radius-map-tiles img { filter: invert(0.9) hue-rotate(180deg) grayscale(0.7) contrast(0.9); }
}
/* The pin as a map pin (radius_map.js `dragPin`) in the site's accent, its dot
   the surface, as the board draws it; and its grip: what a mouse, a pen or a
   finger holds, centred over the pin's head. */
.signup-col .radius-map-pin { fill: var(--accent); stroke: var(--surface); }
.signup-col .radius-map-pin-dot { fill: var(--surface); }
.radius-map-grip { position: absolute; width: 44px; height: 52px; margin: -48px 0 0 -22px; touch-action: none; cursor: grab; }
.radius-map-grip:active { cursor: grabbing; }
.signup-inside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.signup-inside p { flex: 1 1 200px; }
.signup-pair { display: flex; gap: 10px; }
.signup-pair .btn-primary { flex: 1; }

/* ---- 3 · About you ---- */
/* Own it / Manage it: two radios drawn as one switch of two; the chosen one is
   raised and its own dot stays, so the choice is not said by colour alone. */
.signup-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); }
.signup-seg .choice { align-items: center; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.signup-seg .choice input { margin: 0; }
.signup-seg .choice:has(input:checked) { background: var(--raised); color: var(--ink); box-shadow: 0 1px 0 var(--line2); }
.signup-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.signup-or::before, .signup-or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.signup-signed { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }

/* ---- Then ---- */
.signup-done { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-ink); font-size: 28px; font-weight: 800; }

/* Two-step sign-in's board 3.1: Show on the password, and the line about what comes next. */
.pw-field { position: relative; display: grid; }
.pw-field input { padding-right: 76px; }
.pw-field .pw-show {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-weight: 700; font-size: 14px; color: var(--accent-ink, currentColor); cursor: pointer;
}
.pw-field .pw-show:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }
.signup-two-step { margin: 0; }
