/* Passo PoC mocks v0.7 — shared component layer.
   Builds on ../assets/tokens/ericom-service.css (Ericom Service Identity v0.3).
   Every colour, radius and type size below comes from those tokens.
   Fonts are self-hosted from ../assets/fonts (no CDN). */

@font-face { font-family:'Source Serif 4'; font-weight:600; src:url('../assets/fonts/SourceSerif4-Semibold.ttf') format('truetype'); }
@font-face { font-family:'Source Serif 4'; font-weight:700; src:url('../assets/fonts/SourceSerif4-Bold.ttf') format('truetype'); }
@font-face { font-family:'Source Sans 3'; font-weight:200 900; src:url('../assets/fonts/SourceSans3-VariableFont_wght.ttf') format('truetype'); }
@font-face { font-family:'IBM Plex Mono'; font-weight:400; src:url('../assets/fonts/IBMPlexMono-Regular.ttf') format('truetype'); }
@font-face { font-family:'IBM Plex Mono'; font-weight:500; src:url('../assets/fonts/IBMPlexMono-Medium.ttf') format('truetype'); }
@font-face { font-family:'IBM Plex Mono'; font-weight:600; src:url('../assets/fonts/IBMPlexMono-SemiBold.ttf') format('truetype'); }

* { box-sizing: border-box; }
html, body { background: #FFFFFF; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
.stage { padding: 24px; display: inline-block; background: #FFFFFF; }

/* ---------- Type helpers ---------- */
.t-screen  { font-family: var(--e-display); font-size: var(--e-size-screen-title); line-height: var(--e-lh-screen-title); font-weight: 700; letter-spacing: var(--e-track-display); color: var(--e-primary); }
.t-section { font-family: var(--e-display); font-size: var(--e-size-section); line-height: var(--e-lh-section); font-weight: 700; letter-spacing: -.01em; color: var(--e-primary); }
.t-panel   { font-family: var(--e-display); font-size: var(--e-size-panel); line-height: var(--e-lh-panel); font-weight: 600; letter-spacing: -.01em; color: var(--e-primary); }
.t-card    { font-family: var(--e-display); font-size: var(--e-size-card); line-height: var(--e-lh-card); font-weight: 600; letter-spacing: -.005em; color: var(--e-primary); }
.t-figure  { font-family: var(--e-display); font-size: var(--e-size-figure); line-height: var(--e-lh-figure); font-weight: 700; color: var(--e-primary); }
.t-body    { font-size: var(--e-size-body); line-height: var(--e-lh-body); color: var(--e-text); }
.t-help    { font-size: var(--e-size-body); line-height: var(--e-lh-body); color: var(--e-text-secondary); }
.t-meta    { font-family: var(--e-data); font-size: var(--e-size-meta); line-height: var(--e-lh-meta); color: var(--e-text-secondary); }
.t-label   { font-family: var(--e-data); font-size: var(--e-size-label); line-height: var(--e-lh-label); letter-spacing: var(--e-track-label); text-transform: uppercase; color: var(--e-text-secondary); font-weight: 500; }
.mono      { font-family: var(--e-data); }

/* ---------- Product tile (inline SVG polygon, never rounded) ---------- */
.tile { display: block; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--e-ui); font-size: var(--e-size-control); font-weight: 600; line-height: 1;
  min-height: var(--e-touch-min); padding: 0 18px; border-radius: var(--e-radius-ctl);
  border: 1px solid var(--e-border); background: var(--e-surface); color: var(--e-primary);
  white-space: nowrap; text-decoration: none;
}
.btn--primary { background: var(--e-primary); border-color: var(--e-primary); color: #FFFFFF; }
.btn--primary .e-icon { color: #FFFFFF; }
.btn--disabled { background: var(--e-disabled-bg); border-color: var(--e-disabled-bg); color: var(--e-disabled-fg); }
.btn--danger { color: var(--e-error); border-color: var(--e-error); }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--e-radius-badge); }
.btn--icon { padding: 0; width: var(--e-touch-min); }
.tablet .btn { min-height: var(--e-touch-tablet); font-size: 15.5px; padding: 0 20px; }
.tablet .btn--icon { width: var(--e-touch-tablet); padding: 0; }
.tablet .btn--sm { min-height: var(--e-touch-tablet); }

/* ---------- Chips (filters, never search) ---------- */
.chips { display: flex; gap: 8px; flex-wrap: nowrap; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 40px; padding: 0 16px; border-radius: var(--e-radius-pill);
  border: 1px solid var(--e-border); background: var(--e-surface);
  font-size: 14px; font-weight: 600; color: var(--e-primary);
}
.chip .n { font-family: var(--e-data); font-weight: 400; font-size: 11.5px; color: var(--e-text-secondary); margin-left: 6px; }
.chip--on { background: var(--e-primary); border-color: var(--e-primary); color: #FFFFFF; }
.chip--on .n { color: #C9CDD1; }
.tablet .chip { min-height: var(--e-touch-tablet); padding: 0 20px; font-size: 15px; }

/* ---------- Status ---------- */
.status {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--e-data); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  border-radius: var(--e-radius-badge); border: 1px solid var(--e-border); background: var(--e-surface);
  color: var(--e-primary); padding: 6px 10px;
}
.status--solid { background: var(--e-primary); border-color: var(--e-primary); color: #FFFFFF; }
.status--draft { background: var(--e-draft); border-color: #BDD7ED; color: var(--e-primary); }
.status--ok    { color: var(--e-success); border-color: var(--e-success); }
.status--warn  { color: var(--e-warning); border-color: var(--e-warning); }
.status--error { color: var(--e-error); border: 1.5px solid var(--e-error); }
.status--muted { color: var(--e-text-secondary); background: var(--e-surface-tint); }

/* ---------- Notices (say it in words, above the content it governs) ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--e-surface); border: 1px solid var(--e-border); border-radius: var(--e-radius-ctl);
  padding: 14px 16px; font-size: 14.5px; line-height: 1.5; color: var(--e-text);
}
.notice .e-icon { margin-top: 1px; color: var(--e-primary); }
.notice--tint { background: var(--e-surface-tint); }
.notice b { color: var(--e-primary); font-weight: 600; }

/* ---------- Panels & cards ---------- */
.panel { background: var(--e-surface); border: 1px solid var(--e-border); border-radius: var(--e-radius-panel); }
.card  { background: var(--e-surface); border: 1px solid var(--e-border); border-radius: var(--e-radius-panel); }
.glyphbox {
  width: 48px; height: 48px; border-radius: var(--e-radius-ctl); background: var(--e-surface-tint);
  border: 1px solid var(--e-hairline); display: flex; align-items: center; justify-content: center; color: var(--e-primary); flex: none;
}

/* ---------- Progress & scrub ---------- */
.bar { height: 6px; border-radius: 999px; background: var(--e-hairline); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--e-primary); border-radius: 999px; }

/* ---------- Switch (always paired with its word) ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: #D3D6DA; position: relative; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; }
.switch.on .track { background: var(--e-primary); }
.switch.on .track::after { left: 21px; }
.switch .word { font-family: var(--e-data); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--e-text-secondary); width: 26px; }
.switch.on .word { color: var(--e-primary); }
.switch.locked .track { background: var(--e-disabled-bg); border: 1px solid var(--e-border); }
.switch.locked .track::after { background: var(--e-disabled-fg); top: 2px; left: 2px; }

/* ---------- Review labels (outside the device / browser frame) ---------- */
.review-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 632px; }
.review-wrap--admin { width: 1440px; }
.review-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 10px 18px;
  background: var(--e-surface-tint); border: 1px solid var(--e-border); border-radius: var(--e-radius-ctl);
  font-family: var(--e-ui); font-size: 15px; font-weight: 600; color: var(--e-primary); text-align: center;
}
.review-banner .tag {
  font-family: var(--e-data); font-size: 10.5px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--e-text-secondary);
}
