/* Transfer ownership page.

   Values follow the PCE Web design spec: 340 left column, 80 gap, 756 form
   card, 32 card padding, 32/64 page padding.

   Page-specific only. Design tokens, base styles, header and footer live in
   pce-chrome.css, which this page loads first. */

/* padding-top, not the padding shorthand: this element also carries
   .tr-wrap, and the shorthand would zero that gutter and pull the
   breadcrumb out of line with the logo and the page content. */
.tr-crumb{padding-top:32px;font-weight:400;font-size:13px;line-height:20px;color:var(--ink-soft)}
.tr-crumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.tr-crumb li+li::before{content:"/";margin-right:8px;color:var(--rule)}
.tr-crumb [aria-current]{color:var(--ink-soft)}

/* ---------- layout ---------- */
.tr-main{padding:32px 0 64px}
.tr-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:80px;align-items:start}

/* ---------- left column ---------- */
.tr-lede{font-family:var(--f-display);font-weight:400;font-size:40px;line-height:46px;color:var(--ink)}
.tr-lede span{display:block}
.tr-intro{margin-top:24px;font-weight:400;font-size:17px;line-height:26px;color:var(--ink-soft)}

.tr-steps{margin-top:24px;background:var(--white);border:1px solid var(--rule);border-radius:2px;padding:24px}
.tr-steps-title{font-weight:500;font-size:14px;line-height:20px;color:var(--ink-soft);margin-bottom:20px}
.tr-steps ol{list-style:none}

.tr-step{display:flex;align-items:center;gap:14px;position:relative;min-height:40px}
/* 14px connector between rows; a 2px bar at left 15px centres under the
   32px marker. Its colour is set by the step above it. */
.tr-step+.tr-step{margin-top:14px}
.tr-step+.tr-step::before{content:"";position:absolute;left:15px;top:-14px;height:14px;width:2px;background:var(--rule)}

.tr-step-n{flex:none;position:relative;display:grid;place-items:center;width:32px;height:32px;border-radius:16px;border:1.5px solid var(--rule);background:var(--white);color:var(--ink-soft);font-weight:600;font-size:14px;line-height:20px}
.tr-step-tick{display:none}
.tr-step-label{font-weight:400;font-size:16px;line-height:24px;color:var(--ink-soft)}

.tr-step.is-current .tr-step-n{background:var(--registry);border-color:var(--registry);color:#fff}
.tr-step.is-current .tr-step-label{color:var(--ink);font-weight:600}

.tr-step.is-done .tr-step-n{background:var(--seal);border-color:var(--seal);color:#fff}
.tr-step.is-done .tr-step-num{display:none}
.tr-step.is-done .tr-step-tick{display:block}
.tr-step.is-done .tr-step-label{color:var(--ink)}
.tr-step.is-done + .tr-step::before{background:var(--seal)}

.tr-help{display:flex;gap:12px;margin-top:24px;align-items:center}
.tr-help svg{flex:none;width:24px;height:24px;color:var(--ink-soft)}
.tr-help-q{font-weight:400;font-size:14px;line-height:20px;color:var(--ink-soft)}
.tr-help a{display:inline-block;margin-top:2px;font-weight:500;font-size:14px;line-height:20px}

/* ---------- form card ---------- */
.tr-card{background:var(--white);border:1px solid var(--rule);border-radius:2px;padding:32px}
.tr-back{display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:14px;line-height:20px;margin-bottom:12px}
.tr-back svg{flex:none;width:20px;height:20px}
.tr-h1{font-family:var(--f-display);font-weight:400;font-size:36px;line-height:41px;color:var(--ink)}
.tr-sub{margin-top:12px;font-weight:400;font-size:17px;line-height:26px;color:var(--ink-soft)}

.tr-field{margin-top:28px}
.tr-label{display:block;font-weight:600;font-size:14px;line-height:20px;margin-bottom:8px}
.tr-input{width:100%;min-height:52px;padding:14px 16px;border:1px solid var(--rule);border-radius:2px;background:var(--white);color:var(--ink);font-family:var(--f-sans);font-size:16px;line-height:24px;letter-spacing:.02em}
.tr-input::placeholder{color:#8FA3B4}
.tr-input:focus{outline:none;border-color:var(--registry);box-shadow:0 0 0 3px rgba(9,77,176,.16)}
.tr-hint{margin-top:8px;font-weight:400;font-size:14px;line-height:21px;color:var(--ink-soft)}
.tr-error{display:none;margin-top:8px;font-weight:600;font-size:14px;line-height:21px;color:var(--alert)}
.tr-field.has-error .tr-input{border-color:var(--alert)}
.tr-field.has-error .tr-error{display:block}
.tr-field.has-error .tr-hint{display:none}

.tr-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:14px 16px;border-radius:2px;font-weight:600;font-size:16px;line-height:24px;transition:background .16s,border-color .16s}
.tr-btn-primary{margin-top:28px;background:var(--seal);color:#fff}
.tr-btn-primary:hover{background:var(--seal-d)}
.tr-btn-secondary{margin-top:12px;background:var(--white);color:var(--ink);border:1px solid var(--rule)}
.tr-btn-secondary:hover{border-color:var(--ink-soft)}
.tr-btn-secondary svg{flex:none}

/* Notice panel, used for the sign-in note and the microchip summary alike. */
.tr-note,.tr-summary{margin-top:28px;background:var(--paper);padding:16px 20px}
.tr-note-title,.tr-summary-title{font-weight:600;font-size:17px;line-height:26px;color:var(--ink)}
.tr-note p,.tr-summary-line{margin-top:6px;font-weight:400;font-size:14px;line-height:21px;color:var(--ink-soft)}

/* ---------- found state ---------- */
.tr-record{margin-top:28px;border:1px solid var(--rule);border-radius:2px;padding:20px}
.tr-record-head{display:flex;align-items:center;gap:10px;font-weight:400;font-size:14px;line-height:20px;color:var(--ink-soft)}
.tr-record-head svg{flex:none;color:var(--ink-soft)}
.tr-record-number{margin-top:12px;font-weight:600;font-size:28px;line-height:34px;letter-spacing:.04em;color:var(--ink)}
.tr-badge{display:inline-block;margin-top:14px;padding:4px 10px;background:#FDF3DC;color:#6B4E00;font-weight:600;font-size:13px;line-height:20px}
.tr-record-note{margin-top:10px;font-weight:400;font-size:14px;line-height:21px;color:var(--ink-soft)}

/* Secondary text action, 48 tall per the spec. */
.tr-linkbtn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:12px;font-weight:500;font-size:15px;line-height:20px;color:var(--registry)}
.tr-linkbtn:hover{text-decoration:underline;text-underline-offset:3px}

.tr-session{margin-top:20px;font-weight:400;font-size:14px;line-height:21px;color:var(--ink-soft)}

/* ---------- details step ---------- */
.tr-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.tr-row .tr-field{margin-top:28px}
.tr-req{color:var(--ink-soft);font-weight:400}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .tr-grid{grid-template-columns:1fr;gap:32px}
}
@media (max-width:720px){
  .tr-card{padding:24px 20px}
  .tr-lede{font-size:34px;line-height:40px}
  .tr-h1{font-size:30px;line-height:36px}
  .tr-main{padding:24px 0 48px}
}
@media (max-width:620px){
  .tr-row{grid-template-columns:1fr;gap:0}
}

/* Sign in and microchip added (steps 3 and 4) */

/* .tr-back sets display, which would otherwise beat the [hidden] default. */
.tr-back[hidden]{display:none}

.tr-linkrow{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 24px}
.tr-linkrow .tr-linkbtn{width:auto;min-height:44px}

.tr-pw{position:relative;display:flex;align-items:center}
.tr-pw .tr-input{padding-right:76px}
.tr-pw-toggle{position:absolute;right:16px;font-weight:600;font-size:14px;line-height:20px;color:var(--registry)}
.tr-pw-toggle:hover{text-decoration:underline;text-underline-offset:3px}

.tr-forgot{display:inline-block;margin-top:24px;font-weight:500;font-size:15px;line-height:20px}

.tr-linkbtn-plain{gap:10px;color:var(--ink)}
.tr-linkbtn-plain svg{flex:none}

.tr-status{margin-top:12px;font-weight:500;font-size:14px;line-height:21px;color:var(--ink-soft)}
.tr-status:empty{display:none}
.tr-hint-inline{font-weight:400;color:var(--ink-soft)}

.tr-chip+.tr-chip{margin-top:20px;padding-top:20px;border-top:1px solid var(--rule-soft)}

/* .tr-linkbtn sets display, which would otherwise beat the [hidden] default. */
.tr-linkbtn[hidden]{display:none}

/* Per-chip removal link, shown only when the account holds more than one. */
.tr-chip-remove{display:inline-block;margin-top:12px;font-weight:500;font-size:14px;line-height:20px}
.tr-chip-remove:hover{text-decoration:underline;text-underline-offset:3px}

/* ---- create password (step 3d) ---------------------------------------
   Shown when a verified email had no account. Deliberately built from the
   same .tr-field / .tr-pw parts as the password sign in panel, so the two
   screens read as one family rather than as two different products. */
.tr-note-verified{border-left:3px solid var(--tr-ok,#1f7a3d)}
.tr-note-verified .tr-note-title{display:flex;align-items:center;gap:8px;color:var(--tr-ok,#1f7a3d)}
.tr-note-verified svg{flex:none}

.tr-pwrules{list-style:none;margin:10px 0 0;padding:0}
.tr-pwrules li{position:relative;padding-left:24px;margin-top:6px;font-size:13.5px;line-height:1.5;color:var(--tr-ink-soft,#5b5b66)}
/* The marker is a dash until the rule passes, then a tick. Colour alone is
   never the signal: the shape changes too, so it survives colour blindness
   and a monochrome print. */
.tr-pwrules li::before{content:"";position:absolute;left:4px;top:9px;width:10px;height:2px;background:currentColor;border-radius:1px}
.tr-pwrules li.is-met{color:var(--tr-ok,#1f7a3d)}
.tr-pwrules li.is-met::before{width:10px;height:5px;background:none;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);top:7px}

/* The requirements need to read as requirements, not as a passing hint: one
   faint grey line under a field is indistinguishable from help text, and an
   error pointing "above" at it has nothing to point to. */
.tr-pwrules-title{margin:12px 0 2px;font-size:13px;font-weight:600;color:var(--tr-ink,#1b1b22)}

/* Pet details (step 5) reuses the journey's field parts; only the checkbox
   row and the select need anything of their own. */
.tr-check{display:flex;align-items:center;gap:10px;margin:4px 0 22px;font-size:15px;cursor:pointer}
.tr-check input{width:18px;height:18px;flex:none;accent-color:var(--tr-seal,#16643a)}
select.tr-input{appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%235b5b66' stroke-width='2' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}

/* ---------- payment step ----------
   The cards inside are the Buy microchips payment UI itself (pce-shop.css).
   This only stacks the order summary above the payment methods, which is
   what fits the journey column. */
.tr-pay{display:flex;flex-direction:column;gap:24px;margin-top:28px}

/* Payment confirmation above the pet form. */
.tr-paid{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-weight:500;font-size:14px;line-height:21px;color:var(--seal)}
