/* HPT Landing — clean, fast, mobile-first (2026-08-17) */
:root {
  --hpt-bg: #f4f1ea;
  --hpt-card: #ffffff;
  --hpt-ink: #0f172a;
  --hpt-muted: #64748b;
  --hpt-line: #e2e8f0;
  --hpt-accent: #1d4ed8;
  --hpt-radius: 14px;
  --hpt-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
}
html[data-theme="dark"] {
  --hpt-bg: #0b1220;
  --hpt-card: #111827;
  --hpt-ink: #e5e7eb;
  --hpt-muted: #94a3b8;
  --hpt-line: #1f2937;
  --hpt-accent: #fb923c;
}

.hpt-home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  color: var(--hpt-ink);
}

.hpt-home-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 960px) {
  .hpt-home-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.hpt-section {
  background: transparent;
  margin-bottom: 0.5rem;
}
.hpt-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.hpt-section__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--hpt-ink);
}
.hpt-section__head a {
  color: var(--hpt-accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.hpt-section__sub {
  font-size: 0.85rem;
  color: var(--hpt-muted);
}
.hpt-empty {
  color: var(--hpt-muted);
  font-size: 0.92rem;
  margin: 0.5rem 0 1rem;
}

.hpt-cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .hpt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hpt-cards--wide { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .hpt-cards--wide { grid-template-columns: repeat(4, 1fr); }
}

.hpt-card {
  display: flex;
  flex-direction: column;
  background: var(--hpt-card);
  border: 1px solid var(--hpt-line);
  border-radius: var(--hpt-radius);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--hpt-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.hpt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,23,42,.1);
}
.hpt-card__media {
  position: relative;
  background: #e8eef5;
  overflow: hidden;
}
.hpt-card--web .hpt-card__media {
  aspect-ratio: 16 / 10;
}
.hpt-card--paper .hpt-card__media {
  aspect-ratio: 3 / 4;
}
.hpt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hpt-card__body {
  padding: 0.75rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.hpt-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hpt-accent);
  background: color-mix(in srgb, var(--hpt-accent) 12%, transparent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.hpt-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hpt-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hpt-card__meta {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--hpt-muted);
}

.hpt-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hpt-cat-chip {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hpt-line);
  background: var(--hpt-card);
  color: var(--hpt-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.hpt-cat-chip:hover {
  border-color: var(--hpt-accent);
  color: var(--hpt-accent);
}

.hpt-ad-banner {
  margin: 0 0 1.25rem;
  border-radius: var(--hpt-radius);
  overflow: hidden;
}
.hpt-ad-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article page — keep readable, not full-bleed PDF */
.hpt-article {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 1rem 1.25rem 3rem !important;
}
.hpt-hero-img.hpt-hero-webstyle {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0 0 1rem;
  background: #e2e8f0;
}
.hpt-hero-img.hpt-hero-webstyle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hpt-article-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important;
  line-height: 1.25 !important;
  margin: 0.5rem 0 0.35rem !important;
  color: var(--hpt-ink) !important;
}
