/* Sign up, log in, You're in and Take part (Design R7: web-207…231, mobile-156…165).
   Loaded after ttr-skin.css on the auth pages. One 400 px column on the right,
   the four steps bottom left, the help square bottom left.
   Author: Maré Greyling (Thevertex) <mare.greyling@gmail.com> — https://mare-greyling.com */

body.r7{display:flex;min-height:100dvh}
/* Maré, 28 Sep (a change from Design web-208 / web-229, which draw the panel at 36%): the brand panel is
   half the screen, the logo and strapline bigger and aligned to its right edge, next to the form. The
   400 px column starts 8.2% of the width in from the panel. */
body.r7 .left{flex:0 0 50%;max-width:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end;text-align:right;padding:64px 64px 96px;position:relative}
body.r7 .left .logo{justify-content:flex-end;margin:0 0 48px}
body.r7 .left .logo img,body.r7 .left > img{width:min(340px,80%)!important;height:auto!important}
/* The logo file is square with the wordmark in its middle band: pull the empty band in so the strapline sits close under it. */
body.r7 .left .logo img,body.r7 .left > img{margin:-100px 0 -100px}
body.r7 .left h2{font-size:44px!important;max-width:460px;margin:0;text-align:right}
body.r7 .left .steps{margin-top:auto;align-self:flex-end;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;max-width:none}
body.r7 .left .stp{display:flex;gap:10px;align-items:center;font-size:12.5px;color:var(--ttr-muted)!important}
body.r7 .left .stp .no{width:17px;height:17px;flex:0 0 17px;display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:800;border:1px solid var(--ttr-line-2)!important;background:transparent!important;color:var(--ttr-muted)!important}
body.r7 .left .stp.on{color:var(--ttr-text)!important;font-weight:800}
body.r7 .left .stp.on .no{background:var(--ttr-yellow)!important;border-color:var(--ttr-yellow)!important;color:#0C0F0E!important}
body.r7 .left .stp.done .no{background:var(--ttr-paper)!important;border-color:var(--ttr-paper)!important;color:#0C0F0E!important;font-size:0}
body.r7 .left .stp.done .no::after{content:"";width:7px;height:4px;border-left:1.5px solid #0C0F0E;border-bottom:1.5px solid #0C0F0E;transform:rotate(-45deg) translate(1px,-1px)}
body.r7 .left .stp.done{color:var(--ttr-text-2)!important}

body.r7 .right{flex:1;max-width:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:28px 24px 20px 8.2vw;position:relative;min-height:100dvh}
.r7col{width:100%;max-width:400px;display:flex;flex-direction:column;flex:1}
.r7col h1{font-size:22px!important;margin:0 0 6px!important;line-height:1.15}
.r7col .lede{font-size:12.5px;color:var(--ttr-text-2)!important;margin:0 0 14px;line-height:1.45}
.r7h{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ttr-muted);font-weight:800;margin:14px 0 7px;display:block}
.r7h i{font-style:normal;text-transform:none;letter-spacing:0;font-weight:500;color:var(--ttr-faint);margin-left:5px}
.r7col label.r7h{margin-bottom:7px}

/* The four ways to take part */
.r7opts{border:1px solid var(--ttr-line)}
.r7opts label,.r7opts label *{letter-spacing:0!important;text-transform:none!important}
.r7opts label{display:flex;align-items:center;gap:10px;padding:0 12px;height:43px;cursor:pointer;border-bottom:1px solid var(--ttr-line);margin:0;
  text-transform:none;letter-spacing:0;font-weight:500;color:var(--ttr-text);position:relative}
.r7opts label:last-child{border-bottom:0}
.r7opts input{position:absolute;opacity:0;pointer-events:none}
.r7opts .rd{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--ttr-idle);flex:0 0 12px;display:flex;align-items:center;justify-content:center}
.r7opts b{font-size:13px;font-weight:800;color:var(--ttr-text)}
.r7opts small{margin-left:auto;font-size:10.5px;color:var(--ttr-muted);text-align:right}
.r7opts label:has(input:checked){background:var(--ttr-surface-2);box-shadow:inset 3px 0 0 var(--ttr-yellow)}
.r7opts label:has(input:checked) .rd{border-color:var(--ttr-yellow)}
.r7opts label:has(input:checked) .rd::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--ttr-yellow)}
.r7opts label:has(input:focus-visible){outline:2px solid var(--ttr-yellow);outline-offset:2px;z-index:1}
.r7seg{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--ttr-line)}
.r7seg label{height:38px;border-bottom:0;border-right:1px solid var(--ttr-line)}
.r7seg label:last-child{border-right:0}

/* Our own lists (never a native select): races, boats, classes */
.r7pick{position:relative}
/* In the two-column row (sail number, class) the list opens over the page, never pushing it down. */
.r7two .r7list{position:absolute;left:0;right:0;top:100%;z-index:6}
.r7box{display:flex;align-items:center;width:100%;height:40px;padding:0 12px;border:1px solid var(--ttr-line);background:transparent;color:var(--ttr-text);
  font-size:13px;text-align:left;cursor:pointer;gap:8px;font-family:inherit}
.r7box .ph{color:var(--ttr-muted)}
.r7box::after{content:"";margin-left:auto;width:6px;height:6px;border-right:1.5px solid var(--ttr-idle);border-bottom:1.5px solid var(--ttr-idle);transform:rotate(45deg) translate(-2px,-2px)}
.r7pick.open .r7box{border-color:var(--ttr-yellow)}
.r7pick.open .r7box::after{transform:rotate(-135deg) translate(-2px,-2px)}
.r7box:focus-visible{outline:2px solid var(--ttr-yellow);outline-offset:2px}
.r7list{border:1px solid var(--ttr-yellow);border-top:0;max-height:260px;overflow:auto;background:var(--ttr-bg)}
.r7list[hidden]{display:none}
.r7row{display:flex;gap:10px;align-items:center;width:100%;min-height:38px;padding:7px 12px;border:0;border-top:1px solid var(--ttr-line);background:transparent;color:var(--ttr-text);text-align:left;cursor:pointer;font-family:inherit}
.r7row:first-child{border-top:0}
.r7row:hover,.r7row:focus-visible{background:var(--ttr-surface);outline:0}
.r7row.on{background:var(--ttr-surface-2);box-shadow:inset 3px 0 0 var(--ttr-yellow)}
.r7row .a{flex:1;min-width:0}
.r7row .a b,.r7row .z b{display:block;font-size:12px;font-weight:800}
.r7row .a small,.r7row .z small{display:block;font-size:10px;color:var(--ttr-muted);margin-top:2px}
.r7row .z{text-align:right}
.r7row .n{width:22px;font-size:11px;font-weight:800;color:var(--ttr-muted)}
.r7state{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid var(--ttr-line);font-size:12px;color:var(--ttr-text-2)}
.r7state button{margin-left:auto}
.r7spin{width:12px;height:12px;border:2px solid var(--ttr-line-2);border-top-color:var(--ttr-yellow);border-radius:50%;animation:r7s 0.8s linear infinite}
@keyframes r7s{to{transform:rotate(360deg)}}
.r7search{display:flex;align-items:center;border:1px solid var(--ttr-yellow);height:40px}
body.r7 .r7col .r7search input,body.r7 .r7col .r7search input:focus,body.r7 .r7col .r7search input:focus-visible{outline:0!important;box-shadow:none!important;border:0!important}
.r7search input{flex:1;height:38px;border:0!important;background:transparent!important;color:var(--ttr-text)!important;padding:0 10px!important;margin:0!important;font-size:12.5px!important;box-shadow:none!important}
.r7search .mag{width:10px;height:10px;border:1.5px solid var(--ttr-muted);border-radius:50%;margin-left:12px;position:relative}
.r7search .mic{width:38px;height:38px;border:0;border-left:1px solid var(--ttr-line);background:transparent;color:var(--ttr-text);cursor:pointer;font-size:13px}
.r7search + .r7list{border-top:0}

/* Fields */
.r7col input[type=text],.r7col input[type=email],.r7col input[type=tel],.r7col input[type=password]{height:40px;width:100%;padding:0 12px!important;margin:0!important;border:1px solid var(--ttr-line)!important;
  background:transparent!important;color:var(--ttr-text)!important;font-size:13px!important;border-radius:0!important;box-shadow:none!important}
.r7col input:focus{border-color:var(--ttr-yellow)!important;outline:0}
.r7col input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px var(--ttr-bg) inset!important;-webkit-text-fill-color:var(--ttr-text)!important;caret-color:var(--ttr-text)}
.r7two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.r7hint{font-size:10.5px;color:var(--ttr-muted);margin:6px 0 0;line-height:1.4}
.r7note{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--ttr-line);padding:9px 11px;font-size:11.5px;line-height:1.45;color:var(--ttr-text-2);margin-top:10px}
.r7note svg{flex:0 0 12px;margin-top:2px}
.r7note b{color:var(--ttr-text)}
.r7note .go{display:inline-flex;margin-top:8px}
.r7note.warn{border-left:3px solid var(--ttr-amber)}
.r7note.ok{border-left:3px solid var(--ttr-green)}
.r7pair{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}

/* Buttons */
.r7btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:40px;border:1px solid var(--ttr-line-2);background:transparent;color:var(--ttr-text);
  font-family:inherit;font-weight:800;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;text-decoration:none!important;padding:0 14px}
.r7btn:focus-visible{outline:2px solid var(--ttr-yellow);outline-offset:2px}
.r7btn.small{width:auto;height:34px;display:inline-flex}
.r7btn.go{background:var(--ttr-green);border-color:var(--ttr-green);color:#fff!important}
.r7btn.go:hover{background:var(--ttr-green-hi)}
.r7btn.google{background:#fff;color:#1F1F1F!important;border-color:#fff;text-transform:none;letter-spacing:0;font-weight:600;font-size:12.5px}
.r7btn.apple{background:#000;color:#fff!important;border-color:var(--ttr-line-2);text-transform:none;letter-spacing:0;font-weight:700;font-size:12.5px}
.r7btn[disabled]{opacity:.45;cursor:not-allowed}
.r7ways{display:flex;flex-direction:column;gap:8px}
.r7gsi{min-height:40px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.r7gsi > div{width:100%;display:flex;justify-content:center}
.r7or{display:flex;align-items:center;gap:10px;color:var(--ttr-muted);font-size:10.5px;margin:12px 0 4px}
.r7or::before,.r7or::after{content:"";flex:1;height:1px;background:var(--ttr-line)}
.r7err{border-left:3px solid var(--ttr-amber);background:rgba(245,158,11,.08);color:var(--ttr-text);padding:9px 11px;font-size:12px;margin:8px 0}
.r7err[hidden]{display:none}
.r7link{color:var(--ttr-text)!important;text-decoration:underline!important;font-weight:700;background:none;border:0;padding:0;cursor:pointer;font:inherit;font-size:inherit}
.r7small{font-size:11px;color:var(--ttr-text-2);margin:10px 0 0;line-height:1.5}
.r7small a{color:var(--ttr-text)!important;text-decoration:underline!important}

/* Taking part as · Change */
.r7as{display:flex;align-items:center;gap:10px;border:1px solid var(--ttr-line);box-shadow:inset 3px 0 0 var(--ttr-yellow);padding:8px 12px;margin:4px 0 6px;background:var(--ttr-surface)}
.r7as .a{flex:1;min-width:0}
.r7as small{display:block;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--ttr-muted);font-weight:800}
.r7as b{display:block;font-size:12px;font-weight:800;margin-top:2px}
.r7as .r7link{font-size:10.5px}

/* The code: six boxes over one real field (one-time-code autofill keeps working) */
.r7code{position:relative;display:grid;grid-template-columns:repeat(6,34px);gap:6px;margin:10px 0 12px}
.r7code span{height:34px;border:1px solid var(--ttr-line);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800}
.r7code span.on{border-color:var(--ttr-yellow)}
.r7code input{position:absolute!important;inset:0;opacity:0;width:100%!important;height:100%!important;cursor:text;font-size:16px!important}

/* You're in */
.r7result{display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--ttr-idle);padding:12px 14px;font-weight:800;font-size:13px;line-height:1.4;margin:4px 0 12px}
.r7result.no{border-color:var(--ttr-idle)}
.r7result svg{flex:0 0 14px;margin-top:2px}
.r7acts{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.r7acts .r7btn{width:auto}
.r7takeacts{display:flex;align-items:center;gap:12px;margin-top:14px}
.r7takeacts .r7btn.go{flex:1}
.r7takeacts .r7link{font-size:12px!important}
body.r7 .r7col a.r7btn{color:var(--ttr-text)!important}
body.r7 .r7col a.r7btn.go{color:#fff!important}
body.r7 .r7col a.r7btn.apple{color:#fff!important}
.r7ways{margin-top:10px}

.r7foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--ttr-line);font-size:11px;color:var(--ttr-text-2)}
.r7foot p{margin:0 0 10px}
body.r7 .r7foot a,body.r7 .r7small a,body.r7 .r7col .r7link{color:var(--ttr-text)!important;font-weight:800;text-decoration:underline!important}
.r7foot .dot{margin:0 8px;color:var(--ttr-faint)}
.r7foot small{font-size:9.5px;color:var(--ttr-muted)}
body.r7 .foot{display:none}
.r7col [hidden]{display:none!important}

/* Phone and small tablet (mobile-156…165): a logo bar, "Step 1 of 4 · …" with four
   bars, the option's words once under the list, and step 1 ends in one green Next. */
.r7prog{display:none}
.r7phone,.r7next{display:none}
@media (max-width:860px){
  body.r7{flex-direction:column}
  body.r7 .left{display:flex;flex:0 0 auto;max-width:none;width:100%;padding:10px 16px;flex-direction:row;align-items:center;gap:12px;border-right:0;border-bottom:2px solid var(--ttr-green);background:#000!important}
  body.r7 .left .logo{margin:0;justify-content:flex-start}
  body.r7 .left .logo img,body.r7 .left > img{width:56px!important;margin:0}
  body.r7 .left h2,body.r7 .left > p,body.r7 .left .steps,body.r7 .left .refnote{display:none!important}
  body.r7 .right{padding:10px 16px 16px;min-height:0}
  .r7prog{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:0 0 8px}
  .r7prog i{height:3px;background:var(--ttr-line-2)}
  .r7prog i.done{background:var(--ttr-paper)}
  .r7prog i.on{background:var(--ttr-yellow)}
  .r7prog span{grid-column:1/-1;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ttr-muted);font-weight:800;margin-top:6px}
  .r7opts small{display:none}
  .r7seg small{display:none}
  .r7phone{display:block}
  .r7next{display:flex}
  #stChoose:not(.p2) .r7ways,#stChoose:not(.p2) .r7then,#stChoose.p2 #suRole,#stChoose.p2 .s1only{display:none!important}
  #stChoose:not(.p2) .p2only{display:none!important}
  #stChoose.p2 .r7next,#stChoose.p2 .r7then{display:none!important}
  .r7foot{padding-bottom:78px}
}
#stChoose .p2only{display:none}
@media (max-width:860px){ #stChoose.p2 .p2only{display:block} #stChoose.p2 .r7as.p2only,#stChoose.p2 .r7note.p2only{display:flex} }
@media (max-width:380px){ .r7two{grid-template-columns:1fr} .r7code{grid-template-columns:repeat(6,1fr)} }

/* The show-the-password eye (static/js/ttr-reveal.js wraps each password field) */
.ttr-reveal{position:relative;display:block}
.ttr-reveal input{width:100%;padding-right:42px!important}
.ttr-reveal-btn{position:absolute;top:50%;right:6px;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:14px;line-height:1;padding:6px;color:var(--ttr-idle);opacity:.8}
.ttr-reveal-btn:hover{opacity:1}
.ttr-reveal-btn:focus-visible{outline:2px solid var(--ttr-yellow);outline-offset:1px;opacity:1}
