/* The customer portal and the staff page (packet P1): the handoff's
   layout (web/portal) in the brand's tokens (web/assets/css/tokens.css):
   a navy rail, fog ground, white panels, square corners, Signal Orange for
   the one primary action with navy text on it. No inline styles, no
   script; Archivo served from here. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; }
:root {
  --navy: #0A1826; --orange: #F26B2A; --fog: #EDF0F1; --white: #FFFFFF;
  --deep: #07121D; --panel: #10263B; --body: #2A3B4D; --slate: #44566A; --mist: #A9B8C6; --pale: #D5DEE6; --rule: #CDD5DA;
  --ok: #1E6B3C; --ok-bg: #E3F1E8; --warn: #8A5A00; --warn-bg: #FBF0D9; --bad: #9B2C1F; --bad-bg: #F7E1D9;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 17px/1.55 "Archivo", "Helvetica Neue", Arial, sans-serif; color: var(--navy); background: var(--fog); min-height: 100vh; }
a { color: inherit; text-underline-offset: 4px; }
.display { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.015em; line-height: 1; }
.label { font-stretch: 62%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--slate); }
.muted { color: var(--slate); }
.mono { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 14px; overflow-wrap: anywhere; }

/* The frame: a rail and the page. */
.frame { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--navy); color: var(--pale); display: flex; flex-direction: column; padding: 24px 0; gap: 24px; }
.rail .brand { display: flex; align-items: center; gap: 12px; padding: 0 20px; color: var(--white); text-decoration: none; min-height: 44px; }
.rail .brand img { width: 30px; height: auto; }
.rail .brand span { display: flex; flex-direction: column; line-height: 1.15; }
.rail .brand b { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: -0.01em; }
.rail .brand small { color: var(--mist); font-size: 13px; }
.rail nav { display: flex; flex-direction: column; }
.rail nav a { display: flex; align-items: center; min-height: 44px; padding: 0 17px; border-left: 3px solid transparent; color: var(--pale); text-decoration: none; }
.rail nav a:hover { background: var(--panel); }
.rail nav a[aria-current="page"] { background: var(--panel); border-left-color: var(--orange); color: var(--white); font-weight: 600; }
.rail .who { margin-top: auto; padding: 0 20px; font-size: 15px; color: var(--mist); display: grid; gap: 6px; }
.rail .who b { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.rail .who form { margin: 6px 0 0; }
.rail .who button { background: transparent; border: 1px solid var(--panel); color: var(--pale); min-height: 40px; padding: 0 14px; font: inherit; font-size: 15px; cursor: pointer; }
.rail .who button:hover { border-color: var(--pale); }
main { padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; align-content: start; max-width: 1180px; }
main > header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
h2 { margin: 0; font-size: 20px; font-weight: 700; }
p { margin: 0; }

/* Panels, rows, numbers. */
.panel { background: var(--white); border: 1px solid var(--rule); padding: 24px; display: grid; gap: 16px; }
.panel.navy { background: var(--navy); color: var(--pale); border-color: var(--navy); }
.panel.navy h2 { color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.facts > div { background: var(--white); padding: 20px 24px; display: grid; gap: 6px; }
.facts b { font-size: 26px; font-weight: 800; font-stretch: 112%; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); font-stretch: 62%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--slate); }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 0 8px; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; line-height: 22px; background: var(--fog); color: var(--slate); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.note { padding: 14px 18px; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--orange); }
.note.bad { border-left-color: var(--bad); }
.note.ok { border-left-color: var(--ok); }

/* Forms and buttons: 56 px, square; one orange primary a page. */
form { display: grid; gap: 16px; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; }
input, select, textarea { font: inherit; font-size: 17px; min-height: 56px; padding: 0 16px; border: 1px solid var(--slate); background: var(--white); color: var(--navy); width: 100%; max-width: 480px; }
textarea { padding: 12px 16px; min-height: 120px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary, button.primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.button.small, button.small { min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 600; }
button.danger { color: var(--bad); border-color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* The checklist. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.steps li { background: var(--white); padding: 18px 24px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.steps .n { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--navy); font-weight: 800; }
.steps li.done .n { background: var(--navy); color: var(--white); }
.steps li.done .what { color: var(--slate); }

/* Two-step set-up. */
.qr svg { display: block; width: 220px; height: 220px; }
.codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; font-family: ui-monospace, monospace; font-size: 17px; }

/* Sign-in and the other single pages: one card on navy. */
body.single { background: var(--navy); display: grid; place-items: center; padding: 24px 16px; }
.single .card { background: var(--white); width: min(520px, 100%); padding: clamp(24px, 5vw, 44px); display: grid; gap: 20px; }
.single .card .brand { display: flex; align-items: center; gap: 12px; }
.single .card .brand img { width: 34px; }
.single .card h1 { font-size: clamp(26px, 5vw, 34px); }
.single footer { color: var(--mist); font-size: 14px; margin-top: 16px; text-align: center; }
.single footer a { color: var(--pale); }

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .rail { padding: 12px 0; gap: 8px; }
  .rail nav { flex-direction: row; flex-wrap: wrap; padding: 0 12px; }
  .rail nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 0 10px; }
  .rail nav a[aria-current="page"] { border-bottom-color: var(--orange); }
  .rail .who { margin: 0; flex-direction: row; display: flex; flex-wrap: wrap; align-items: center; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .steps li form { grid-column: 2; }
}
td.nowrap { white-space: nowrap; }
td.sha { font-size: 12px; max-width: 34ch; }
