/* HPT desk — Nadwi-style rounded boxes (self-hosted, no Tailwind CDN) */

.hpt-desk-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .85rem;
  margin: 1.85rem 0 .4rem;
  align-items: stretch;
}
.hpt-desk-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 1.15rem .7rem 1rem;
  border-radius: 18px;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.hpt-desk-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, .18);
  filter: brightness(1.04);
}
.hpt-desk-n {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.hpt-desk-k {
  margin-top: .42rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hpt-desk-s {
  margin-top: .22rem;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: .88;
  max-width: 16ch;
}

/* tones — navy / gold / red / white / electric (Nadwi + HPT) */
.hpt-tone-navy  { background: #0f172a !important; color: #fff !important; }
.hpt-tone-gold  { background: #d4af37 !important; color: #111827 !important; }
.hpt-tone-red   { background: #dc2626 !important; color: #fff !important; } /* Breaking / Alert only */
.hpt-tone-white { background: #f8f5ee !important; color: #0f172a !important; border: 1px solid #e7dcc8; box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.hpt-tone-blue  { background: #2563eb !important; color: #fff !important; } /* mode tab only */
.hpt-tone-sand  { background: #f5d76e !important; color: #111827 !important; }
.hpt-tone-silver{ background: #c0c7d1 !important; color: #0f172a !important; }

.hpt-home-rail {
  margin-top: 2.25rem !important;
  scroll-margin-top: 5.5rem;
}
.hpt-home-rail > .hpt-sec-h,
.hpt-home-rail > p.hpt-muted {
  display: none !important;
}

.hpt-desk-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .45rem;
  margin: 0 0 1.15rem;
}
.hpt-desk-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: .7rem 1.6rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}
.hpt-desk-sub {
  margin: 0;
  color: #64748b;
  font-size: .9rem;
  font-weight: 600;
}

.hpt-desk-cats {
  margin-top: 2.6rem;
  text-align: center;
}
.hpt-desk-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem 1.4rem;
  border-radius: 999px;
  background: #d4af37;
  color: #111827;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hpt-desk-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.hpt-desk-pill {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .84rem;
  text-decoration: none !important;
  transition: transform .12s, box-shadow .12s;
}
.hpt-desk-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15,23,42,.12); }
.hpt-desk-pills .hpt-desk-pill:nth-child(5n+1) { background: #0f172a; color: #fff !important; }
.hpt-desk-pills .hpt-desk-pill:nth-child(5n+2) { background: #d4af37; color: #111827 !important; }
.hpt-desk-pills .hpt-desk-pill:nth-child(5n+3) { background: #c0c7d1; color: #0f172a !important; }
.hpt-desk-pills .hpt-desk-pill:nth-child(5n+4) { background: #f8f5ee; color: #0f172a !important; border: 1px solid #d6dee8; }
.hpt-desk-pills .hpt-desk-pill:nth-child(5n+5) { background: #f5d76e; color: #111827 !important; }

.hpt-sec-h .hpt-viewall {
  display: inline-flex;
  align-items: center;
  padding: .32rem .9rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none !important;
}

.hpt-footer-cats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 1.7rem;
  text-align: center;
}
.hpt-footer-cats .hpt-desk-label {
  background: #d4af37;
  color: #111827;
}
.hpt-footer-cats .hpt-desk-pills .hpt-desk-pill {
  background: rgba(192,199,209,.16) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(192,199,209,.35);
}
.hpt-footer-cats .hpt-desk-pills .hpt-desk-pill:nth-child(5n+1) {
  background: #0f172a !important;
  color: #f8f5ee !important;
  border-color: #d4af37;
}
.hpt-footer-cats .hpt-desk-pills .hpt-desk-pill:nth-child(5n+2) {
  background: #d4af37 !important;
  color: #111827 !important;
  border-color: transparent;
}
.hpt-footer-cats .hpt-desk-pills .hpt-desk-pill:nth-child(5n+3) {
  background: #c0c7d1 !important;
  color: #0f172a !important;
  border-color: transparent;
}
.hpt-footer-cats .hpt-desk-pills .hpt-desk-pill:nth-child(5n+4) {
  background: #f8f5ee !important;
  color: #0f172a !important;
  border-color: transparent;
}
.hpt-footer-cats .hpt-desk-pills .hpt-desk-pill:nth-child(5n+5) {
  background: #f5d76e !important;
  color: #111827 !important;
  border-color: transparent;
}

html { scroll-behavior: smooth; }

html[data-theme="dark"] .hpt-desk-sub { color: #94a3b8; }
html[data-theme="dark"] .hpt-tone-white { background: #111827 !important; color: #e5e7eb !important; border-color: #1f2937; }
html[data-theme="dark"] .hpt-desk-pills .hpt-desk-pill:nth-child(5n+4) {
  background: #f8f5ee; color: #0f172a !important; border-color: #d6dee8;
}

@media (max-width: 520px) {
  .hpt-desk-boxes { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .hpt-desk-box { min-height: 96px; padding: .9rem .5rem; border-radius: 14px; }
  .hpt-desk-n { font-size: 1.55rem; }
}
