/* HELM cockpit PWA styles. Translated faithfully from the locked mockups
   (queue-layout option B grouped-sections, approve-card option A quiet
   tap-to-sign, awareness option A standing-sectioned). Locked GVP/HELM
   palette and type. No icons, no shadows, hairlines only.

   Fonts: subscription-only, offline PWA, no third-party CDN. The two
   variable faces are bundled LOCALLY at deploy time into fonts/ (a named
   residual: the font-bundling is a deploy/build step; the .woff2 binaries
   are NOT committed in this task). Until they are present the fallback
   fallbacks below carry the type (Fraunces -> Georgia; Manrope -> system-ui).
   No em dash, no en dash anywhere (owner hard rule). */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic-Variable.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1A1A2E;
  --paper: #FDFCF8;
  --cream: #F5F2EA;
  --cream-deep: #EBE7DC;
  --ink: #2D2D3A;
  --ink-mute: #6B6B7B;
  --gold: #C9A84C;
  --gold-hi: #E0C06A;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--cream-deep);
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The phone-first column: the whole surface is a single Paper sheet. */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

/* Navy header with the inline Meridian (Paper strokes). */
.bar {
  background: var(--navy);
  padding: 18px 0 14px;
  text-align: center;
}
.bar svg { display: block; margin: 0 auto; }

/* The two-area structure: The queue / Standing. Hairline tab rule. */
.tabs {
  display: flex;
  border-bottom: 1px solid #e7e2d4;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--paper);
}
.tabs button {
  flex: 1;
  text-align: center;
  padding: 13px 0;
  color: var(--ink-mute);
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.tabs button.on {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  margin-bottom: -1px;
}

.view { padding: 18px 24px 32px; flex: 1; }
.view[hidden] { display: none; }

/* --- The queue (grouped sections, option B) --- */
.sect {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 16px;
  color: var(--navy);
  margin: 20px 0 4px;
}
.sect:first-child { margin-top: 2px; }
.sect .n {
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.row {
  padding: 13px 0;
  border-top: 1px solid #e7e2d4;
  cursor: pointer;
  position: relative;
}
.row:first-of-type { border-top: 0; }
.row .r1 { font-size: 14.5px; color: var(--ink); font-weight: 500; padding-right: 64px; }
.row .r2 { font-size: 12px; color: var(--ink-mute); margin-top: 2px; padding-right: 64px; }
.row .go {
  position: absolute;
  right: 0;
  top: 13px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  font-weight: 600;
}
.gold-i { font-style: italic; color: var(--gold); }

/* --- The approve card (quiet tap to sign, option A) --- */
.back {
  color: #cfc9bb;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 24px 0;
  background: none;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
  display: block;
}
.card { padding: 8px 24px 28px; }
.cap {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.render {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 22px;
  line-height: 1.32;
  color: var(--navy);
  margin-bottom: 16px;
}
.detail {
  border-top: 1px solid #e7e2d4;
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.detail .k { color: var(--ink-mute); }
.detail .v { color: var(--ink); font-weight: 500; }
.assure {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 16px 0 4px;
  line-height: 1.5;
}
.assure b { color: var(--navy); font-weight: 600; }

/* The single hairline sign affordance, and the quiet decline. */
.signlabel {
  display: block;
  width: 100%;
  text-align: center;
  margin: 20px auto 6px;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 14px;
  background: none;
  font-family: var(--sans);
  cursor: pointer;
}
.signlabel:disabled { color: var(--ink-mute); border-color: #e7e2d4; cursor: default; }
.decline {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

/* A drift item reuses the card; the three reconciliation choices replace
   the single sign affordance. Each choice is the same hairline label. */
.choices { margin-top: 20px; }
.choice {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto 10px;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 14px;
  background: none;
  font-family: var(--sans);
  cursor: pointer;
}

/* --- The awareness panel (standing, sectioned, option A) --- */
.acap {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 18px 0 8px;
}
.acap:first-child { margin-top: 2px; }
.conn {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #efeadd;
  font-size: 14px;
}
.conn:first-of-type { border-top: 0; }
.conn .lvl {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lvl.act { color: var(--navy); }
.lvl.obs { color: var(--ink-mute); }
.measure { font-family: var(--serif); font-size: 16px; color: var(--navy); }
.measure.sub { font-size: 14px; color: var(--ink-mute); }
.measure .gold-i { font-style: italic; color: var(--gold); }
.ev { padding: 11px 0; border-top: 1px solid #efeadd; }
.ev:first-of-type { border-top: 0; }
.ev .t { font-size: 14px; color: var(--ink); }
.ev .t b { font-weight: 600; }
.ev .w { font-size: 11.5px; color: var(--ink-mute); margin-top: 1px; }
.quiet {
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 18px;
  text-align: center;
}

/* --- Quiet states (spec section 8): offline, empty, errors, login --- */
.state {
  padding: 64px 28px;
  text-align: center;
  color: var(--ink-mute);
}
.state .m { margin: 0 auto 18px; display: block; }
.state h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.state p { font-size: 14px; max-width: 320px; margin: 0 auto; line-height: 1.6; }
.state .hl {
  height: 1px;
  width: 64px;
  background: var(--gold);
  margin: 22px auto;
  border: 0;
}
.notice {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid #e7e2d4;
  border-radius: 2px;
  line-height: 1.5;
}
.notice.warn { color: var(--navy); border-color: var(--gold); }

.foot {
  padding: 22px 24px 28px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .5px;
}
.foot .stamp { font-style: italic; color: var(--gold); }
