/* Additions to the prototype's stylesheet for server-rendered pages.
   Everything here replaces an inline style or a script-only behaviour. */

[hidden]{display:none!important}
form.inline{display:contents}

/* Links that look like the prototype's buttons. */
a.btn,a.cl,a.rowc,a.orow,a.iconbtn,a.fold,.seg a,.pn-list a,.menu a,#toast a,.pn-dec a{text-decoration:none;color:inherit}
a.cl{color:#17171a}
a.tbtn{color:var(--accent-text)}
.seg a{display:inline-flex;align-items:center;border-radius:7px;padding:0 14px;height:30px;font-size:13.5px;font-weight:500;color:var(--ink-2)}
.seg a:hover{color:var(--ink)}
.seg a[aria-current="page"]{background:var(--raise);color:var(--ink);box-shadow:var(--shadow-sm),0 0 0 1px var(--line)}

/* Keyboard users can skip the top bar. */
.skip{position:absolute;left:-10000px;top:8px;z-index:50;padding:8px 12px;border-radius:8px;background:var(--btn);color:var(--btn-ink)}
.skip:focus{left:8px}

/* Progress steps of the tenant form (the prototype sets the width inline). */
.t-prog i.s1{width:16.67%}.t-prog i.s2{width:33.33%}.t-prog i.s3{width:50%}
.t-prog i.s4{width:66.67%}.t-prog i.s5{width:83.33%}.t-prog i.s6{width:100%}
.t-desc{min-height:160px}
.t-stack{display:flex;flex-direction:column;gap:10px}

/* A field people must leave empty; hidden from sight and from assistive tech. */
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

.code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;font-weight:400;overflow-wrap:anywhere;text-align:left}
.facts .stack{flex-direction:column;align-items:flex-start;gap:6px;padding:12px 16px}
.facts .stack dd{text-align:left;flex-direction:column;align-items:flex-start;gap:6px}
.facts small{font-weight:400;font-size:13px;color:var(--ink-3)}

.userbox{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-2);min-width:0}
.userbox span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page.narrow{max-width:560px}
.muted{color:var(--ink-2)}
.lead{color:var(--ink-2);margin-top:-10px}
.back{margin-left:-8px}

/* Editing claims by hand. */
.pn-edit{display:flex;flex-direction:column;gap:8px}
.pn-edit .row{display:flex;gap:8px}
.pn-edit .row input{flex:1;min-width:0;width:auto;height:40px;font-size:14.5px}
.pn-edit .btn{width:100%}
.pn-edit .row .btn{width:auto;flex:none}
.pn-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.sent{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;color:#80808a}
.sent span{flex:1;min-width:0;white-space:pre-line}
.sent .btn{flex:none}
.paper .quote{padding:0;color:inherit}
.seal{display:flex;flex-direction:column;gap:6px;padding:14px 18px;border-top:1px solid var(--line);font-size:13.5px;color:var(--ink-2)}
.seal b{color:var(--ink);font-weight:500}

/* The tick in a hint chip is only shown once the hint is met. */
.hint svg{display:none}
.hint.ok svg{display:inline}

/* --- WCAG 2.2 AA contrast -------------------------------------------------
   The prototype's lightest grey (#8a8a94) reaches only 3.4:1 on white, and its
   green badge 3.5:1. Text needs 4.5:1. These are the nearest values that pass
   on every background they are used on; nothing else about the look changes. */
:root{--ink-3:#686870}
:root[data-mode="dark"]{--ink-3:#93939c}
.fill,.fold,.sent{color:#686870}
.fold:hover{color:#26262b}
.cl i.g,.pn-list i.g{background:#188247}

/* A definition list may only hold terms and descriptions, so the "Ret" button
   sits in a description of its own (the prototype had it loose in the row). */
.rev dd.act{grid-column:2;grid-row:1/3;align-self:center}
.rev dd.act .tbtn{margin:0}

/* Members and devices */
ul.plain{list-style:none;margin:0 0 24px;padding:0}
.prow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.prow .rc-main{flex:1;min-width:0}
.page.narrow h2{font-size:17px;margin:28px 0 12px}
.page.narrow form .btn{margin-top:12px}
.prow form .btn{margin-top:0}
.page.narrow a{color:var(--ink)}
.page.narrow label.f+label.f{margin-top:12px}

/* The mark: fixed colours, the same on light and dark. The thin light edge
   keeps the housing visible on a dark page and vanishes on a white one. */
.mark{display:block;flex:none;width:14px;height:30px}

/* Pages around logging in: one card in the middle. */
main.v-auth{display:flex;flex-direction:column;align-items:center;padding:clamp(20px,9vh,88px) 16px 48px}
.auth{width:100%;max-width:420px;display:flex;flex-direction:column;gap:18px;padding:36px 32px 32px;background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);text-align:center}
.auth>.mark{width:28px;height:60px;margin:0 auto 6px}
.auth h1{font-size:26px;font-weight:600;letter-spacing:-.025em;line-height:1.2;text-wrap:balance}
.auth .lead{margin:0;color:var(--ink-2);text-wrap:pretty}
.auth-step{display:flex;flex-direction:column;gap:18px}
.auth .btn{width:100%}
.auth .note{text-align:left}
.auth a{color:var(--ink)}
.auth-foot{font-size:14px;color:var(--ink-2)}
.auth-more{border-top:1px solid var(--line);padding-top:16px;font-size:14.5px;color:var(--ink-2)}
.auth-more summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:8px;font-weight:500}
.auth-more summary::-webkit-details-marker{display:none}
.auth-more summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.auth-more[open] summary::after{transform:translateY(1px) rotate(225deg)}
.auth-more summary:hover{color:var(--ink);background:var(--hover)}
.auth-more>p{margin:14px 0 0;text-align:left}
.auth-more form{display:flex;flex-direction:column;gap:12px;margin-top:14px;text-align:left}
@media(prefers-reduced-motion:reduce){.auth-more summary::after{transition:none}}
@media(max-width:480px){
  main.v-auth{padding:0;align-items:stretch}
  .auth{max-width:none;flex:1;border:0;border-radius:0;box-shadow:none;padding:40px 22px 32px}
}
/* On these pages the top bar only holds the theme switch, so it steps back. */
body:has(main.v-auth) .bar{background:none;border-bottom-color:transparent}
