/* Additions for the real site. site.css is the approved prototype stylesheet, unchanged; this file only covers
   what the prototype faked: links drawn like its buttons, the dialog layer, and hidden elements. */
html,body{margin:0;background:#120B2B}
.ws [hidden]{display:none !important}

/* hero switch and updates filter are links now (the prototype used buttons) */
.ws-seg a{display:inline-block;text-decoration:none;font-family:var(--display);font-weight:800;font-size:16px;line-height:1;color:#4A3A12;padding:13px 22px;border-radius:999px;transition:background .15s ease-out,color .15s ease-out}
.ws-seg a[aria-current="page"]{background:var(--ink);color:#fff}
.ws-filter a{display:inline-block;text-decoration:none;font-family:var(--display);font-weight:800;font-size:15px;padding:9px 16px;border-radius:999px;background:rgba(124,77,255,.16);color:var(--accent)}
.ws-filter a[aria-current="page"]{background:var(--violet);color:#fff}
.ws-own .ws-row2{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@container ws (max-width: 860px){.ws-own .ws-row2{justify-content:flex-start}.ws-own .ws-row2 .ws-btn{width:auto}}

/* the checkout dialog sits in its own fixed layer above the page, so Stripe's bank-check window can open over it */
.ws-layer{position:fixed;inset:0;z-index:100;overflow:auto;background:transparent;-webkit-overflow-scrolling:touch}
.ws-layer .ws-back{position:relative;min-height:100%}
.ws-layer .ws-modal{top:20px}
.ws-layer .ws-err{margin-top:10px}
.ws-pe{padding-top:14px}
.ws-field input.bad{box-shadow:0 0 0 2px var(--sig-r)}
.ws form[data-form] .ws-err{margin-top:10px}
.ws-when{font-size:14.5px;color:var(--muted);margin-top:8px}
.ws-base .ws-when{color:#5C4A1A}
.ws-actions .ws-when{flex-basis:100%;text-align:center}

/* personal page: removing a device (a <details>, so its one confirmation works without JavaScript), the add-a-TV form */
.ws-rm summary{list-style:none;cursor:pointer;text-align:center}
.ws-rm summary::-webkit-details-marker{display:none}
.ws-own>div>.ws-rm[open]{grid-column:1/-1}
.ws-rm[open] summary{width:max-content;margin-left:auto}
.ws-rm form{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:12px}
.ws-rm form>p:not(.ws-err){flex:1 1 260px;margin:0;color:var(--muted);font-size:15px}
.ws-rm .ws-err,.ws-addtv .ws-err{flex-basis:100%;margin:0}
.ws-devs .ws-banner{margin-top:16px}
.ws-devs .ws-when{margin:12px 0 0}
@container ws (max-width: 860px){.ws-rm summary,.ws-rm[open] summary{width:100%;margin-left:0}}

/* Install checklist and TV handoff use the same steps, commands and notices as the rest of the site. */
.ws-onboard h2 { margin-bottom: 12px }
.ws-onboard-steps { margin-top: 0; max-width: none; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.ws-onboard-steps > li { grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px }
.ws-onboard-steps > li + li { border-top: 1px solid var(--line) }
.ws-onboard-steps > li::before { content: none }
.ws-onboard-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 15px var(--display); background: rgba(124,77,255,.18); color: var(--accent) }
.ws-onboard-mark svg { width: 18px; height: 18px }
.ws-onboard-steps > li[aria-current="step"] { background: rgba(124,77,255,.08) }
.ws-onboard-steps > li[aria-current="step"] .ws-onboard-mark { background: #FFC857; color: #211503 }
.ws-onboard-steps > li[data-done] .ws-onboard-mark { background: rgba(31,185,85,.16); color: var(--text) }
.ws-onboard-steps .ws-btn { width: auto; padding: 10px 16px; font-size: 15px }
.ws-onboard .ws-banner > div { min-width: 0; width: 100% }
.ws-onboard .ws-banner ul { display: grid; gap: 8px; margin-top: 8px }
.ws-onboard p + .ws-btn, .ws-onboard [data-mac-status], .ws-onboard [data-mac-open] { margin-top: 12px }
.ws-onboard [data-mac-open] { display: inline-block }
.ws-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.ws-install-command { margin-top: 14px }
.ws-install-command > summary, .ws-text-button { cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px }
.ws-text-button { background: none; border: 0; padding: 0; font: inherit; text-align: left }
.ws-install-command > p { margin-top: 8px }
.ws-install-link { display: inline-block; margin-top: 8px }
.ws-install-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px }
.ws-scan-facts { max-width: 520px; margin: 20px 0 }
.ws-scan-facts > div { grid-template-columns: minmax(84px,1fr) 2fr; gap: 12px }
.ws-scan-facts dd { margin: 0; justify-self: start; overflow-wrap: anywhere }
[data-scan-known] p, [data-scan-error] { margin-top: 12px }
@container ws (max-width: 660px) {
  .ws-onboard-steps > li { grid-template-columns: 30px minmax(0, 1fr); align-items: start }
  .ws-onboard-steps .ws-btn { grid-column: 2; justify-self: start }
}

/* footer legal links, and the links under the consent tick in the checkout */
.ws-legal a{color:inherit;text-underline-offset:3px}
.ws-legal a:hover{color:var(--violet)}
.ws-consent-links{text-align:left;margin-top:8px}
.ws-legal-page h2+p{margin-top:10px}
.ws-legal-page p+p{margin-top:12px}

/* the one-time purchase page (/add/<code>): the checkout card, drawn on the page instead of over it */
/* centred under the bun: the card, paid or not, shares the heading's centre line at every width */
.ws-add .ws-modal{position:static;margin:28px auto 0;width:min(520px,100%)}
.ws-add .ws-modal .ws-tk{margin-top:18px}
/* "Activate this TV on your key?" on the personal page, opened from a scanned code. */
.ws-tv-confirm .ws-row2 { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ws-tv-confirm p { margin: 4px 0 0; }
