/* Lucky Duck Client Hub — clean page + IONOS-style dashboard */
.ld-hub-page { background: #f7f8fa; min-height: 100vh; }
.ld-hub-topbar { background: #fff; border-bottom: 1px solid #e6eaf0; box-shadow: 0 1px 3px rgba(14,27,46,.05); }
.ld-hub-topbar-inner { max-width: 1120px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; }
.ld-hub-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #21392f; font-weight: 800; letter-spacing: .01em; }
.ld-hub-logo img { width: 36px; height: 36px; }
.ld-hub-logout { color: #c47d12; font-weight: 700; text-decoration: none; font-size: .9rem; }
.ld-hub-logout:hover { text-decoration: underline; }

.ld-hub { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; font-family: 'Inter', system-ui, sans-serif; color: #0e1b2e; }
.ld-hub-preview { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; padding: 10px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .9rem; }
.ld-hub-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ld-hub-brand img { width: 44px; height: 44px; }
.ld-hub-brand span { font-weight: 800; color: #21392f; letter-spacing: .01em; }
.ld-hub-head h1 { font-size: 2rem; font-weight: 800; margin: 0 0 6px; color: #0e1b2e; }
.ld-hub-head p { color: #475569; font-size: 1.05rem; margin: 0 0 30px; }
.ld-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ld-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; padding: 22px; text-decoration: none; color: inherit; box-shadow: 0 10px 30px -22px rgba(14,27,46,.5); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 190px; }
.ld-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(14,27,46,.55); border-color: #f2a030; }
.ld-tile-icon { font-size: 2rem; margin-bottom: 12px; }
.ld-tile-body { flex: 1; }
.ld-tile-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-tile-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ld-tile-sub { font-size: .82rem; color: #64748b; font-family: ui-monospace, monospace; margin-top: 3px; }
.ld-tile-body p { color: #475569; font-size: .92rem; line-height: 1.45; margin: 10px 0 0; }
.ld-tile-cta { margin-top: 16px; font-weight: 700; color: #c47d12; font-size: .92rem; }
.ld-badge { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.ld-badge--active { background: #dcfce7; color: #166534; }
.ld-badge--maintenance, .ld-badge--migrating { background: #fef9c3; color: #854d0e; }
.ld-badge--pre-deployment { background: #e0e7ff; color: #3730a3; }
.ld-badge--suspended, .ld-badge--decommissioned { background: #fee2e2; color: #991b1b; }
.ld-hub-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid #e6eaf0; color: #64748b; font-size: .9rem; text-align: center; }
@media (max-width: 640px) { .ld-hub-head h1 { font-size: 1.6rem; } }

/* Banner region (hook_erpal_hub_banners_alter). Layout only — every banner
   styles ITSELF from its own module's library, so erpal_hub owns the gap and
   nothing else. */
.ld-hub-banners { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

/* click-to-show sign-in details (2026-07-16) */
.ld-tile-wrap { display: flex; flex-direction: column; }
.ld-tile-wrap .ld-tile { flex: 1; }
.ld-creds-link { display: block; margin-top: 6px; text-align: center; color: #c47d12; font-weight: 700; font-size: 14px; text-decoration: none; }
.ld-creds-link:hover { text-decoration: underline; }

/* PHONE TAP TARGETS (Troy, 2026-09-13 13:00: "this all needs to look good on a
   mobile app"). Measured at 390x844 on a clone before this rule existed: the
   hub chrome's two controls rendered as 128x36 (the logo/home link) and 55x14
   (Sign out) — and on the ACCESS-DENIED page, which is what a seat without the
   client hub now sees, "Sign out" at 55x14 was the ONLY thing on the page a
   thumb could hit. A refusal a person cannot act on is half a refusal.
   44px is the floor; the links keep their exact type, colour and position, so
   nothing moves on a desktop. */
@media (max-width: 640px) {
  .ld-hub-topbar-inner { padding: 8px 16px; }
  .ld-hub-logo,
  .ld-hub-logout {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .ld-hub-logout { padding: 0 10px; margin-right: -10px; }
}
