/* account.playr.vivin.media: only what this site needs on top of site.css (the shared rules, synced from
   shared/site.css). Tokens, buttons, fields, notices, tables, facts and the code display all come from there.
   No data: URIs and no inline styles: the security policy blocks both. */

/* ---------- page widths ---------- */
/* Forms, account pages and messages keep to a reading width inside .content. */
.content.narrow>*{max-width:760px}
.form{max-width:480px}

/* ---------- the top of a page ---------- */
.page-top{padding:clamp(40px,6vw,88px) 0 clamp(32px,4vw,48px)}
.page-top .lede{margin-top:16px}
.page-top .meta{margin-top:12px}

/* ---------- sections on account pages ----------
   Each section is one row: its name on the left, its content and its one action on the right. Under 780px the name
   sits above the content. Buttons always come last in a section, left aligned. */
.content.account>*{max-width:920px}
.block{margin-top:0;padding:32px 0;border-top:1px solid var(--line)}
.block.first{margin-top:8px}
.block:last-child{border-bottom:1px solid var(--line)}
.block>h2{font-size:20px;font-weight:600;line-height:1.3;letter-spacing:0;margin-bottom:16px}
.block-body{min-width:0}
.block-body>*+*{margin-top:16px}
.block-body>.actions{margin-top:24px}
.block-body .form .actions{margin-top:20px}
.block-body .notice{margin-block:0}
.block-body>.notice+*{margin-top:16px}
@media (min-width:780px){
  .block{display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:48px}
  .block>h2{margin:0;padding-top:2px}
}
.notice{margin-block:24px}
.notice a{text-underline-offset:.2em}
.actions>form.inline{display:inline-flex}

/* ---------- buy page: two boxes side by side, stacked under 780px ---------- */
.plans{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}
.plan{min-width:0;display:flex;flex-direction:column;padding:clamp(24px,3vw,40px);border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 45%,transparent)}
.plan h2{font-size:28px}
.plan .who{margin-top:6px;color:var(--soft)}
.amount{margin-top:24px;line-height:1.1}
.amount .big{font-size:clamp(40px,4.4vw,56px);font-weight:500;letter-spacing:-.02em}
.amount .per{margin-left:2px;font-size:19px;color:var(--soft)}
.amount-alt{margin-top:8px;font-size:19px;color:var(--soft)}
.amount-alt strong{font-weight:600;color:var(--text)}
.points{margin:28px 0 0;padding:0;list-style:none;max-width:32em}
.points li{margin:0;padding:12px 0 12px 22px;border-top:1px solid var(--hair);position:relative;text-wrap:pretty}
.points li::before{content:"";position:absolute;left:2px;top:22px;width:8px;height:8px;border-radius:50%;background:var(--text)}
.points strong{font-weight:600}
/* Both boxes end on their pay buttons, level with each other. */
.plan>.actions.pay,.plan>.dept{margin-top:auto;padding-top:28px}
.actions.pay{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.actions.pay>form,.actions.pay .button{width:100%}
.dept .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px 16px}
.dept .fields .field+.field{margin-top:0}
.dept .actions.pay{margin-top:24px}
.plan .note{margin-top:16px;font-size:15px;color:var(--soft)}
.plan .note a{color:var(--text)}
.after{list-style:none;margin:32px 0 0;padding:0;max-width:none;display:grid;gap:10px;font-size:16px}
.after li{margin:0;text-wrap:pretty}
.after a{color:var(--text)}
@media (max-width:780px){.plans{grid-template-columns:1fr}}
/* On phones a row's button sits under the row's values, not under an empty label. */
@media (max-width:560px){.table td.end{display:block;padding-top:10px}}

/* ---------- numbered steps (thank you pages) ---------- */
.steps{list-style:none;margin:0;padding:0;counter-reset:step;max-width:var(--measure);border-bottom:1px solid var(--hair)}
.steps li{counter-increment:step;display:grid;grid-template-columns:44px 1fr;align-items:baseline;margin:0;padding:16px 0;border-top:1px solid var(--hair);font-size:19px;line-height:1.45}
.steps li::before{content:counter(step);font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.steps+.actions,.thanks-grid .steps+*{margin-top:32px}
.content.narrow>p+p,.thanks-grid p+p{margin-top:12px}
.thanks-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:48px clamp(32px,6vw,96px);align-items:start}
.thanks-piece{min-width:0}
@media (max-width:900px){.thanks-grid{grid-template-columns:1fr}.thanks-piece{max-width:440px}}

/* ---------- lists of licenses (account and owner) ---------- */
.licenses{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.licenses li{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:baseline;justify-content:space-between;margin:0;padding:10px 0;border-bottom:1px solid var(--hair)}
.licenses a{display:inline-flex;align-items:center;min-height:44px}
.history{font-size:15px;font-variant-numeric:tabular-nums}
.history li+li{margin-top:4px}

/* ---------- the join code ---------- */
.code{margin-top:8px}
/* The date field on the owner pages, which site.css leaves out. */
input[type=date]{display:block;width:100%;height:48px;padding:12px 14px;margin:0;font:400 16px/1.4 var(--sans);color:var(--text);background:var(--surface);border:1px solid var(--field-border);border-radius:0}

/* ---------- terms and privacy: the HTML from legal.js, as built ---------- */
.legal h2{font-size:clamp(22px,2.4vw,28px);margin:48px 0 12px}
.legal h3{font-size:19px;margin:28px 0 8px}
.legal p+p,.legal p+ul,.legal ul+p,.legal .table-wrap+p,.legal .table-wrap+ul,.legal p+.table-wrap{margin-top:14px}
.legal ul{margin-top:14px}
.legal .page-top+p{font-size:19px}
.legal .table-wrap{overflow-x:auto;margin-top:16px;max-width:100%}
.legal table{width:100%;min-width:560px;border-collapse:collapse;font-size:15px;line-height:1.45}
.legal th{text-align:left;font-size:13px;font-weight:500;letter-spacing:.015em;color:var(--soft);padding:0 16px 10px 0;border-bottom:1px solid var(--line);vertical-align:bottom}
.legal td{padding:12px 16px 12px 0;border-bottom:1px solid var(--hair);vertical-align:top}
.legal th:last-child,.legal td:last-child{padding-right:0}
/* On a phone a table scrolls sideways inside its own box. The border shows where the box ends, and a shade at
   either side shows there is more to that side (the plain-colour covers scroll with the table and hide the shade
   at the ends). */
@media (max-width:560px){
  .legal .table-wrap{border:1px solid var(--line);padding:4px 14px 0;overscroll-behavior-x:contain;
    background:linear-gradient(to right,var(--surface) 40%,transparent) left/32px 100% no-repeat local,
      linear-gradient(to left,var(--surface) 40%,transparent) right/32px 100% no-repeat local,
      linear-gradient(to right,var(--line),transparent) left/12px 100% no-repeat scroll,
      linear-gradient(to left,var(--line),transparent) right/12px 100% no-repeat scroll,
      var(--surface)}
  .legal table{min-width:500px;font-size:14px}
  .legal tr:last-child td{border-bottom:0}
}
.legal code{font:500 .9em var(--mono)}
/* Long addresses in the text break rather than widen the page on a small phone. */
.legal a{overflow-wrap:anywhere}
