/* =========================================================
   66 Hub Pages
   Shared light-surface layout for portal and workflow hubs.
   ========================================================= */

.hc-hub,
.app-hub,
.hcm-hub{
  max-width:1180px;
  margin:0 auto 48px;
  color:#1f2937;
}

.hc-hub-hero,
.app-hub-hero,
.hcm-hero{
  border:1px solid #c8d9ea;
  border-radius:18px;
  padding:24px;
  background:linear-gradient(135deg,#eef5fb,#fff);
  box-shadow:0 14px 34px rgba(31,41,55,.08);
}

.hc-hub-hero h1,
.app-hub-hero h1,
.hcm-hero h1{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.35;
  color:#1f2937;
}

.hc-hub-hero p,
.app-hub-hero p,
.hcm-hero p{
  margin:0;
  color:#475569;
  line-height:1.8;
}

.hc-hub-flow,
.app-hub-flow,
.hcm-flow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.hc-hub-flow span,
.app-hub-flow span,
.hcm-flow span,
.hub-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #c8d9ea;
  color:#345d86;
  font-weight:800;
  box-shadow:0 1px 2px rgba(31,41,55,.04);
}

.hc-hub-section,
.app-hub-section,
.hcm-section{
  margin-top:18px;
  padding:20px;
  border-radius:18px;
  border:1px solid #dbe4ee;
  background:#fff;
  box-shadow:0 10px 26px rgba(31,41,55,.06);
}

.hc-hub-section h2,
.app-hub-section h2,
.hcm-section h2{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.4;
  color:#1f2937;
}

.hc-hub-section__lead,
.app-hub-section__lead,
.hcm-lead{
  margin:0 0 16px;
  color:#475569;
  line-height:1.75;
}

.hc-hub-grid,
.app-hub-grid,
.hcm-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
}

.hc-hub-card,
.app-hub-card,
.hcm-card{
  min-height:238px;
  padding:18px;
  border-radius:14px;
  border:1px solid #dbe4ee;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:0 8px 22px rgba(31,41,55,.07);
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hc-hub-card:hover,
.app-hub-card:hover,
.hcm-card:hover{
  border-color:#9bb7d3;
  box-shadow:0 12px 28px rgba(63,111,159,.12);
  transform:translateY(-1px);
}

.hc-hub-card.is-disabled,
.app-hub-card.is-disabled,
.hcm-card.is-disabled{
  opacity:1;
  border-color:#e5edf5;
  background:#f8fafc;
  box-shadow:none;
  transform:none;
}

.hc-hub-card__top,
.app-hub-card__top,
.hcm-card__top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
}

.hc-hub-card h3,
.app-hub-card h3,
.hcm-card h3{
  margin:0;
  font-size:18px;
  line-height:1.45;
  color:#1f2937;
}

.hc-hub-card p,
.app-hub-card p,
.hcm-card p{
  margin:0;
  color:#334155;
  line-height:1.75;
}

.hc-hub-card__tag,
.hc-hub-card__state,
.app-hub-card__tag,
.app-hub-card__state,
.hcm-tag,
.hcm-state{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
}

.hc-hub-card__tag,
.app-hub-card__tag,
.hcm-tag{
  background:#eef5fb;
  color:#345d86;
  border:1px solid #9bb7d3;
}

.hc-hub-card__state,
.app-hub-card__state,
.hcm-state{
  background:#d1fae5;
  color:#065f46;
  border:1px solid #34d399;
}

.hc-hub-card.is-disabled .hc-hub-card__state,
.app-hub-card.is-disabled .app-hub-card__state,
.hcm-card.is-disabled .hcm-state{
  background:#f1f5f9;
  color:#64748b;
  border-color:#cbd5e1;
}

.hc-hub-card.is-disabled .hc-hub-card__tag,
.hc-hub-card.is-disabled p,
.hc-hub-card.is-disabled .hc-hub-next,
.app-hub-card.is-disabled .app-hub-card__tag,
.app-hub-card.is-disabled p,
.app-hub-card.is-disabled .app-hub-next,
.hcm-card.is-disabled .hcm-tag,
.hcm-card.is-disabled p,
.hcm-card.is-disabled .hcm-next{
  color:#64748b;
}

.hc-hub-next,
.app-hub-next,
.hcm-next{
  margin-top:auto;
  padding:10px 12px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #e5edf5;
  color:#345d86;
  line-height:1.6;
  font-size:13px;
}

.hc-hub-button,
.app-hub-button,
.hcm-button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:42px;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  background:#3f6f9f;
  box-shadow:0 10px 22px rgba(63,111,159,.18);
}

.hc-hub-button:hover,
.app-hub-button:hover,
.hcm-button:hover{
  background:#345d86;
  color:#fff;
  text-decoration:none;
}

.hc-hub-button.is-muted,
.app-hub-button.is-muted,
.hcm-button.is-muted{
  color:#64748b;
  background:#f1f5f9;
  border:1px solid #cbd5e1;
  box-shadow:none;
}

.hc-hub-note,
.app-hub-note,
.hcm-note{
  margin-top:18px;
  border:1px solid #fde68a;
  border-radius:14px;
  padding:14px 16px;
  background:#fffbeb;
  color:#92400e;
  line-height:1.7;
}

@media (max-width:720px){
  .hc-hub,
  .app-hub,
  .hcm-hub{
    margin-inline:10px;
  }

  .hc-hub-hero,
  .hc-hub-section,
  .app-hub-hero,
  .app-hub-section,
  .hcm-hero,
  .hcm-section{
    padding:16px;
  }

  .hc-hub-grid,
  .app-hub-grid,
  .hcm-grid{
    grid-template-columns:1fr;
  }
}
