/* DJC-DEMO-MODULE-OPERATING-MODEL-v0.2.0 · operating-model.css
 *
 * Scoped CSS for the NEW v0.2.0 elements on operating-model.html:
 *   - .context-strip + .context-cells + .context-cell        (Q2 ratified)
 *   - .coop-tier + .coop-tier-historical/.coop-tier-active   (Q1 Option A)
 *   - .coop-active-grid + .coop-active-card + sub-elements   (Q1 Option A)
 *   - .role-workspace-link + .admin-queue-link-cta           (Q5 Option D)
 *
 * Preserved v0.1.7 classes (.op-section / .coop-network / .coop-state /
 * .role-workspaces / .app-table / .op-caption / etc.) inherit from
 * djc-demo.css and are NOT touched here (4F-scoped per Q3 ratified).
 *
 * FUG v0.1.8 §3.2 floors honored on new elements:
 *   - Body text: 16px (1rem) minimum
 *   - Helper/label text: 14px (0.875rem) minimum
 *   - Touch targets on new links: ≥44×44px effective area
 *
 * Cycle banner styles inherited from annual-order.css (per HTML link order).
 */

/* ════════════════════════════════════════════════════════════════════════
   Supplemental context strip (below page-summary; above Section 1)
   ════════════════════════════════════════════════════════════════════════ */

.context-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper-elevated);
  border: 1px solid var(--rules);
  border-radius: 4px;
}

.context-strip-label {
  font-size: 0.875rem;          /* 14px — FUG helper-text floor */
  color: var(--ink-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.context-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.context-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5rem;
}

.context-cell-value {
  font-family: var(--font-app);
  font-weight: 600;
  font-size: 1.5rem;            /* 24px — large display number */
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.context-cell-label {
  font-size: 0.875rem;          /* 14px — FUG helper-text floor */
  color: var(--ink-secondary);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .context-strip {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
  .context-cells {
    gap: 1rem;
  }
  .context-cell {
    min-width: 4.5rem;
  }
  .context-cell-value {
    font-size: 1.25rem;          /* 20px on mobile, still well above floor */
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Two-tier Section 1 (Cooperative Network)
   Per Q1 Option A: Historical Footprint + Active Demo Workspace
   ════════════════════════════════════════════════════════════════════════ */

.coop-tier {
  margin-top: 1.5rem;
}

.coop-tier-heading {
  font-size: 1.25rem;            /* 20px — section sub-heading */
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.coop-tier-desc {
  font-size: 1rem;               /* 16px — FUG body floor */
  color: var(--ink-secondary);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.coop-tier-desc code {
  font-family: var(--font-mono, monospace);
  font-size: 0.9em;
  background: var(--paper-elevated);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--ink);
}

.coop-tier-historical {
  /* Preserved-from-v0.1.7 styling lives in djc-demo.css via .coop-network etc.
     The new tier wrapper just gives the section a containing block + heading. */
}

.coop-tier-active {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rules);
}

/* ════════════════════════════════════════════════════════════════════════
   Active Demo Workspace cards (canonical-driven)
   ════════════════════════════════════════════════════════════════════════ */

.coop-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.coop-active-grid .empty {
  font-size: 1rem;
  color: var(--ink-tertiary);
  font-style: italic;
  padding: 1rem 0;
  grid-column: 1 / -1;
}

.coop-active-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-elevated);
  border: 1px solid var(--rules);
  border-radius: 4px;
  padding: 1rem 1.125rem;
}

.coop-active-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--rules);
}

.coop-active-card-name {
  font-family: var(--font-app);
  font-weight: 600;
  font-size: 1.0625rem;          /* 17px — slightly above body floor */
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.coop-active-card-state {
  font-size: 0.875rem;           /* 14px — FUG helper-text floor */
  color: var(--ink-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.coop-active-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.coop-active-card-count {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.coop-active-card-count-value {
  font-family: var(--font-app);
  font-weight: 600;
  font-size: 1.5rem;             /* 24px — pronounced count display */
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}

.coop-active-card-count-label {
  font-size: 1rem;               /* 16px — FUG body floor */
  color: var(--ink-secondary);
}

.coop-active-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.coop-active-card-list li {
  font-size: 0.9375rem;          /* 15px — slightly above helper floor */
  color: var(--ink);
  line-height: 1.35;
}

.coop-active-card-overflow {
  color: var(--ink-tertiary) !important;
  font-style: italic;
}

.coop-active-card-empty {
  font-size: 0.9375rem;
  color: var(--ink-tertiary);
  font-style: italic;
  margin: 0;
}

@media (max-width: 640px) {
  .coop-active-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .coop-active-card {
    padding: 0.875rem 1rem;
  }
  .coop-active-card-name {
    font-size: 1rem;
  }
  .coop-active-card-count-value {
    font-size: 1.375rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Admin queue link CTA (Section 3 · admin-role-only)
   FUG §3.6: touch-target ≥44×44; padding ensures clickable area
   ════════════════════════════════════════════════════════════════════════ */

.role-workspace-link {
  margin: 0.75rem 0 0;
  font-size: 1rem;               /* 16px — FUG body floor */
}

.admin-queue-link-cta {
  display: inline-block;
  padding: 0.625rem 1rem;        /* ≥10px vertical → ~44px with line-height */
  background: var(--paper);
  border: 1px solid var(--ink-secondary);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;          /* 15px — above helper floor */
  line-height: 1.5;
  min-height: 44px;              /* FUG §3.6 touch-target floor */
  box-sizing: border-box;
}

.admin-queue-link-cta:hover {
  background: var(--paper-elevated);
  border-color: var(--ink);
}

.admin-queue-link-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
