/* ═══════════════════════════════════════════
   Category Page Styles — OneTimeRegistration
   ═══════════════════════════════════════════ */

/* ── Hero Band ── */
.cat-hero-band {
  padding: 40px 0 52px;
  position: relative;
  overflow: hidden;
}
.cat-hero-band::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}
.cat-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cat-hero-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--t-fast);
}
.cat-hero-breadcrumb a:hover { color: var(--gold); }
.cat-hero-icon {
  font-size: 3rem;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
  width: 3rem; height: 3rem;
}
.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.02em;
  max-width: 700px;
}
.cat-hero-desc {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.cat-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.chs-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 8px 0;
}
.chs-stat strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.chs-stat span {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.chs-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
  margin: 0 20px 0 0;
  flex-shrink: 0;
}

/* ── Body Layout ── */
.cat-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 8px;
}
@media (min-width: 900px) {
  .cat-body-grid {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
}
.cat-sidebar {
  /* sticky on desktop */
}
@media (min-width: 900px) {
  .cat-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}

/* ── Post Cards Grid ── */
.cat-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Cat Post Card ── */
.cat-post-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med), transform var(--t-med);
}
.cat-post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
@media (min-width: 520px) {
  .cat-post-card { flex-direction: row; }
}
.cpc-img-link { flex-shrink: 0; display: block; }
.cpc-thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 520px) {
  .cpc-thumb {
    width: 160px;
    height: 100%;
    min-height: 130px;
  }
}
.cpc-icon {
  font-size: 2.8rem;
  opacity: .65;
  display: block;
  line-height: 1;
  width: 2.8rem;
  height: 2.8rem;
}
.cpc-views {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.8);
  font-family: var(--font-mono);
  font-size: .65rem;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.cpc-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cpc-cat {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}
.cpc-date {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
}
.cpc-title {
  font-size: clamp(.9rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--font-display);
  margin: 0;
}
.cpc-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast);
}
.cpc-title a:hover { color: var(--vermilion); }
.cpc-excerpt {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cpc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.cpc-deadline {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.cpc-read {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--vermilion);
  text-decoration: none;
  white-space: nowrap;
}
.cpc-read:hover { text-decoration: underline; }

/* ── Special (About/Contact/Legal) ── */
.special-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.special-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}
.special-article h2:first-child { margin-top: 0; }
.special-article p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.special-article ul, .special-article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.special-article li {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.65;
}
.special-article a { color: var(--vermilion); }
.special-article strong { color: var(--navy); font-weight: 600; }

/* ── Compact header on scroll ── */
.site-header.compact .header-top { display: none; }
.site-header.compact .hdr-main-inner { height: 52px; }
.site-header.compact .logo-tagline { display: none; }
