/* Shared components for the account, invitation and setup pages (docs/branding.md B3). Needs tokens.css first.
   Served by the site at /brand/base.css; the commerce pages are on the same origin through the site proxy, so the
   pages' CSP (style-src 'self') allows it. Page-specific extras stay in deploy/<surface>/<surface>.css. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font-body); }
main { max-width: 34rem; margin: 0 auto; padding: 1.25rem 16px 3rem; }
a { color: var(--brand); }
[hidden] { display: none !important; }

/* top bar: tile + name, links home */
.brandbar { max-width: 34rem; margin: 0 auto; padding: 1rem 16px 0; }
.brandbar a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brandbar img { width: 34px; height: 34px; display: block; }
.brandbar span { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .02em; }

h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.15; margin: 1rem 0 .35rem;
     letter-spacing: .01em; }
h3 { font-size: .95rem; margin: .75rem 0 .25rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }
.help { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }

/* icons: <svg class="i"><use href="/brand/icons.svg#i-NAME"/></svg> */
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor;
        stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* boxes */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem;
       margin-top: .75rem; }
.box h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: 1.05rem; margin: 0 0 .25rem; }
.box h2 > svg.i { color: var(--brand); }
.box p { margin: .25rem 0 0; color: var(--muted); }
.box.unpaid { border: 2px solid var(--bad); }
.box.unpaid h2, .box.unpaid h2 > svg.i { color: var(--bad); }

/* status words: meaning colours only */
.status { font-weight: 600; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.error { color: var(--bad) !important; }

.tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-left: .25rem;
       padding: .1rem .55rem; border-radius: var(--radius-pill); color: var(--brand); background: var(--brand-soft); }

/* forms + buttons */
form { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
form.inline { margin-top: 0; }
label { font-weight: 600; font-size: .95rem; }
input[type=email], textarea, select {
  font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
button { font: inherit; font-weight: 600; padding: .65rem 1.1rem; border: 0; border-radius: var(--radius);
         background: var(--brand); color: var(--brand-text); cursor: pointer; align-self: flex-start;
         display: inline-flex; align-items: center; gap: .45rem; }
button:hover { background: var(--brand-hover); }
button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.quiet:hover { border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* line lists (plan lines, shipping, help links) */
ul.lines { list-style: none; padding: 0; margin: .5rem 0 0; }
ul.lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0;
              border-top: 1px solid var(--line); color: var(--muted); }
ul.lines li span:last-child { text-align: right; }
.next { margin-top: .75rem !important; }
.next a { font-weight: 600; }
