/* Pacisoft 2026 — vendor hub + vendor landing (hang.html) and 404.html.
   Requires tokens.css + base.css. Defines NO tokens, overrides NO base components.
   Page-local only — no contract for other pages. */

[hidden] { display: none !important; }

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb { padding-block: var(--space-6) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- page head */
.page-head { padding-block: var(--space-6) var(--space-8); max-width: 62ch; }
.page-head .lead { margin-top: var(--space-3); }

/* ================================================================ hub === */
.vendor-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: var(--space-12);
}
@media (min-width: 560px) { .vendor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .vendor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .vendor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.vendor-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.vendor-tile:hover, .vendor-tile:focus-visible {
  transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10,27,51,.14); border-color: #C4D2E4;
}
.vendor-tile-media {
  display: grid; place-items: center; width: 100%; height: 56px;
}
.vendor-tile-media img { max-width: 100%; max-height: 56px; width: auto; height: auto; mix-blend-mode: multiply; }
.vendor-tile-wordmark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
}
.vendor-tile-name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  color: var(--ink); line-height: 1.3;
}
.vendor-tile-count { font-size: var(--text-xs); color: var(--ink-soft); }

.vendor-empty {
  padding: var(--space-16) var(--space-6); text-align: center;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}

/* ============================================================ landing === */
.vendor-hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: var(--white);
  padding-block: var(--space-12);
  margin-inline: calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .vendor-hero { margin-inline: calc(var(--space-6) * -1); padding-inline: var(--space-6); padding-block: var(--space-16); }
}
.vendor-hero-inner {
  max-width: 1200px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8);
}
.vendor-hero-figure {
  flex-shrink: 0; display: grid; place-items: center;
  width: 132px; height: 132px;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: var(--space-4);
}
.vendor-hero-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.vendor-hero-figure .vendor-tile-wordmark { width: 64px; height: 64px; font-size: var(--text-2xl); }
.vendor-hero-text { flex: 1 1 320px; min-width: 0; }
.vendor-hero h1 { color: var(--white); margin: 0; }
.vendor-hero-desc { margin-top: var(--space-3); max-width: 56ch; color: rgba(255,255,255,.76); font-size: var(--text-lg); line-height: 1.55; }
.vendor-hero-count { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,.9); }

.vendor-products { padding-block: var(--space-8) var(--space-4); }
.vendor-products-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.vendor-filter-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); text-decoration: none;
}
.vendor-filter-link svg { transition: transform var(--dur) var(--ease); }
.vendor-filter-link:hover svg { transform: translateX(3px); }

.vendor-license-head { margin-top: var(--space-12); }
.vendor-license-table { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.vendor-license-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 480px; }
.vendor-license-table th, .vendor-license-table td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vendor-license-table th { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.vendor-license-table tr:last-child td { border-bottom: 0; }
.vendor-license-table tr:nth-child(even) td { background: var(--paper); }

/* -------------------------------------------------------- product grid == */
.vendor-grid-products { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-8); }
@media (min-width: 520px) { .vendor-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vendor-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.v-card .card-media { aspect-ratio: 4 / 3; }
.v-card .card-media img { width: auto; max-height: 100%; object-fit: contain; }
.v-card .card-title { min-height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v-card .card-title a { display: block; }

.v-spec-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.v-spec-chips .chip { max-width: 100%; }
.v-spec-chips .chip-key { font-weight: 600; color: var(--ink); }
.v-spec-chips .chip-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.v-card-actions { display: grid; gap: var(--space-2); }
@media (min-width: 380px) { .v-card-actions { grid-template-columns: minmax(0, 1fr) auto; } }

/* .compare-toggle base look comes from .btn.btn-ghost.btn-sm (base.css); the
   pressed-state highlight is injected globally by compare.js. */

.v-add.is-added { background: var(--ok); box-shadow: none; }
.v-add.is-added:hover { background: var(--ok); }

/* ============================================================= 404 ===== */
.notfound-hero {
  background: var(--navy-950); color: var(--white);
  padding-block: var(--space-16);
  margin-inline: calc(var(--space-4) * -1); padding-inline: var(--space-4);
  text-align: center;
}
@media (min-width: 768px) { .notfound-hero { margin-inline: calc(var(--space-6) * -1); padding-inline: var(--space-6); } }
.notfound-code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 14vw, 6.5rem);
  letter-spacing: -.03em; line-height: 1; color: var(--accent);
  margin: 0 0 var(--space-2);
}
.notfound-hero h1 { color: var(--white); margin: 0 auto; max-width: 30ch; }
.notfound-hero .lead { color: rgba(255,255,255,.76); margin: var(--space-4) auto 0; max-width: 46ch; }
.notfound-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }

.notfound-search { max-width: 480px; margin: var(--space-12) auto 0; }
.notfound-search-row { display: flex; gap: var(--space-2); }
.notfound-search .input { min-height: 48px; }
.notfound-search .btn { flex-shrink: 0; }

.notfound-section { padding-block: var(--space-12); }
.notfound-section h2 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  text-align: center; margin: 0 0 var(--space-6);
}
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.notfound-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-4);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.notfound-links a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
