/* marketplace-hubs.css — the per-category marketplaces
 * ============================================================================
 * Filed: 2026-08-28 under PLAN-Marketplace-Appealing-Functional-2026-08-28
 * DIRECTIVE v2 item 1 (Awwad: "every category should be its own marketplace
 * from within the 0% APR marketplace").
 *
 * Token-only layer on the Amendment-A navy/gold system (skin-not-surgery):
 * no new palette, no framework, no strings (copy lives in the pages).
 */

.hub-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 30px;
}
.hub-hero h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.hub-hero h1 .gold { color: var(--gold); }
.hub-hero .lede { font-size: 15.5px; color: var(--ink-soft); max-width: 680px; line-height: 1.65; }
.hub-hero .hub-crumb { font-size: 12px; color: var(--ink-mute); margin-bottom: 14px; }
.hub-hero .hub-crumb a { color: var(--ink-soft); font-weight: 600; }
.hub-hero .hub-crumb a:hover { color: var(--gold); }

.hub-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hub-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--white);
  color: var(--ink-soft); border-radius: 100px;
  font-size: 12.5px; font-weight: 700; padding: 8px 14px;
  cursor: pointer; transition: all 0.15s;
}
.hub-chip:hover { border-color: var(--gold); color: var(--navy); }
.hub-chip.on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.hub-section { padding: 40px 0; }
.hub-section.alt { background: var(--cream-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hub-section h2 { font-size: 22px; margin-bottom: 8px; }
.hub-section .sub { font-size: 14px; color: var(--ink-soft); max-width: 640px; margin-bottom: 22px; line-height: 1.6; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.hub-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 34px 26px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.hub-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.hub-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.hub-feature .ico { font-size: 22px; margin-bottom: 10px; }
.hub-feature h3 { font-size: 15.5px; margin-bottom: 6px; }
.hub-feature p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.hub-feature a { font-weight: 700; }

/* Tool panels (pricing, closing steps, paste-a-link, lease enrollment) */
.hub-tool {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.hub-tool h3 { font-size: 17px; margin-bottom: 6px; }
.hub-tool .hint { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 16px; line-height: 1.55; }
.hub-tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-tool label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }
.hub-tool input, .hub-tool select, .hub-tool textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit; font-size: 14px;
  background: var(--white); color: var(--ink);
}
.hub-tool input:focus, .hub-tool select:focus, .hub-tool textarea:focus { outline: 2px solid rgba(212,175,55,0.45); border-color: var(--gold); }
.hub-tool .field { margin-bottom: 14px; }
.hub-tool .btn-row { margin-top: 6px; }
.hub-state {
  border-radius: var(--radius); padding: 14px 16px; font-size: 14px;
  line-height: 1.55; margin-top: 14px;
}
.hub-state.ok { background: rgba(16,130,78,0.08); color: #0E6B45; border: 1px solid rgba(16,130,78,0.18); }
.hub-state.pending { background: var(--cream); color: var(--ink); border: 1px solid var(--border); }
.hub-state.blocked { background: rgba(184,58,38,0.08); color: #9A2E1F; border: 1px solid rgba(184,58,38,0.18); }

/* Ordered legal steps */
.hub-steps { counter-reset: hubstep; list-style: none; padding: 0; margin: 16px 0 0; }
.hub-steps li {
  counter-increment: hubstep;
  position: relative; padding: 0 0 18px 44px;
  border-left: 1px solid var(--border); margin-left: 15px;
}
.hub-steps li:last-child { border-left-color: transparent; }
.hub-steps li::before {
  content: counter(hubstep);
  position: absolute; left: -16px; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hub-steps .st-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.hub-steps .st-why { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 3px; }
.hub-steps .st-meta { font-size: 11px; color: var(--ink-mute); margin-top: 3px; letter-spacing: 0.03em; }

/* Two-column tool band */
.hub-tools-band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* The Karam opportunity card — deliberately calmer and warmer than a sale
 * card: these are entrusted homes, presented with the respect of the owners. */
.karam-card {
  background: var(--white);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.karam-card .k-img {
  aspect-ratio: 16/9; position: relative;
  background: linear-gradient(135deg, rgba(212,175,55,0.14), var(--cream));
  display: flex; align-items: center; justify-content: center;
}
.karam-card .k-img img { width: 100%; height: 100%; object-fit: cover; }
.karam-card .k-img .img-mark { font-family: 'Playfair Display', Georgia, serif; font-size: 48px; color: rgba(10,14,26,0.14); }
.karam-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(212,175,55,0.95); color: var(--navy);
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px;
}
.karam-card .k-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.karam-card h4 { font-size: 15.5px; margin: 0; }
.karam-card .k-loc { font-size: 12px; color: var(--ink-mute); }
.karam-card .k-fig { padding-top: 10px; border-top: 1px solid var(--border); }
.karam-card .k-fig .lbl { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); }
.karam-card .k-fig .val { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; color: var(--navy); margin-top: 2px; }
.karam-card .k-purpose { font-size: 12px; color: var(--ink-soft); line-height: 1.55; background: var(--cream-soft); border-radius: var(--radius); padding: 10px 12px; }
.karam-card .k-closed { font-size: 12px; color: var(--ink-mute); font-weight: 700; }

@media (max-width: 820px) {
  .hub-tools-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hub-hero { padding: 28px 0 22px; }
  .hub-section { padding: 28px 0; }
  .hub-tool { padding: 20px; }
  .hub-tool .row { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
}
