/* The client portal's component layer. Values come ONLY from tokens.css (the team portal's, copied verbatim) and its
   generated dark twin; nothing here defines a colour of its own. Mobile first; one column; calm ink, like the team portal. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

body {
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink2); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-canvas);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }

.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; flex: 1; }
.foot { padding: 20px 16px 28px; color: var(--muted); font-size: 0.875rem; text-align: center; border-top: 1px solid var(--line); }

h1 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 4px 0 8px; }
h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 12px; }
h3.folder { font-size: 0.9375rem; font-weight: 600; color: var(--ink2); margin: 16px 0 8px; }
p { margin: 0 0 8px; }
.lede { color: var(--ink2); margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
a[href^="tel:"] { white-space: nowrap; }
.empty { color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-control); }

.head { padding-bottom: 8px; }
.pill {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--chip-authority-bg);
  border: 1px solid var(--chip-authority-line);
  color: var(--chip-authority-ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card {
  display: block;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-control);
}
.card p:last-child { margin-bottom: 0; }
a.card.link { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
a.card.link:hover { background: var(--hover); }
a.card.link strong { overflow-wrap: anywhere; }
.next { font-weight: 500; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
label { font-weight: 500; font-size: 0.9375rem; }
input, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  width: 100%;
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
#code { font-size: 1.375rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

button, .button {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg-canvas);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.quiet, a.quiet {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--ink2);
  min-height: 44px;
  padding: 10px 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back { display: inline-flex; margin-bottom: 4px; }

.notice { padding: 12px 14px; border-radius: var(--radius-control); border: 1px solid var(--line); margin: 0 0 16px; }
/* --warn as text is ~3:1 on the canvas (below AA), so it marks the edge; the words stay in ink. */
.notice.error { color: var(--ink); border-color: var(--warn); border-left-width: 4px; }
.notice.done { color: var(--chip-authority-ink); background: var(--chip-authority-bg); border-color: var(--chip-authority-line); }

@media (min-width: 720px) {
  .page { padding-top: 40px; }
  h1 { font-size: 1.875rem; }
}

/* Issued files: one list with dividers -- dozens of files stay scannable on a phone. */
.rows { list-style: none; margin: 0; padding: 0; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--radius-control); }
.rows li + li { border-top: 1px solid var(--card-line); }
.rows a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; text-decoration: none; min-height: 44px; }
.rows a:hover { background: var(--hover); }
.rows a strong { font-weight: 500; overflow-wrap: anywhere; }
.jump { font-weight: 500; }
