body.orig-plus.cat-page header.site { overflow: visible; }
/* All Guides + Video Previews catalog (scoped; does not restyle the rest of the site) */

.cat-hero .lead { max-width: 40rem; }
.cat-hero .cat-hero-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: -6px; }
.cat-hero .cat-hero-links a { font-size: 0.95rem; font-weight: 650; color: var(--brand-700); text-decoration: none; }
.cat-hero .cat-hero-links a:hover { text-decoration: underline; text-underline-offset: 2px; }

.cat-feature {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #0B1220; color: #E2E8F0;
  border-radius: 16px; padding: 20px 24px; margin: 0 0 22px;
}
body.orig-plus .cat-feature h2 {
  color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 8px;
}
body.orig-plus .cat-feature .hl { color: #86EFAC; }
body.orig-plus .cat-feature p { color: #94A3B8; }
.cat-feature .kicker { color: #86EFAC; margin-bottom: 8px; }
.cat-feature p { color: #94A3B8; margin: 0 0 16px; max-width: 36rem; font-size: 0.98rem; }
.cat-feature .hl { color: #86EFAC; font-style: normal; }
.cat-feature-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.cat-feature-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0;
}
.cat-feature .btn-primary { background: #16A34A; border-color: #16A34A; color: #fff; }
.cat-feature .btn-primary:hover { background: #15803D; border-color: #15803D; }

.cat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.cat-count { font-size: 0.88rem; color: var(--slate-500); margin: 0; }
.cat-page .hero.cat-hero { padding: 36px 0 28px; }
.cat-page .section-tight { padding: 24px 0 32px; }
.cat-page .chips { margin-bottom: 14px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  overflow: hidden; color: inherit; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.cat-card:hover, .cat-card:focus-within { border-color: var(--brand-200, #BBF7D0); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.cat-card[hidden] { display: none; }
.cat-cover {
  display: flex; align-items: center; justify-content: center;
  background: var(--slate-50); padding: 10px 10px 8px; min-height: 150px;
}
.cat-cover img {
  width: auto; height: 128px; max-width: 100px;
  object-fit: contain; display: block;
  border-radius: 2px;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.16);
}
.cat-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.cat-price {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-800); background: var(--brand-50);
  border-radius: 999px; padding: 3px 8px;
}
.cat-price.is-paid { color: var(--slate-700); background: var(--slate-100); }
.cat-price.is-soon { color: #92400E; background: #FEF3C7; }
.cat-card.is-soon:hover { transform: none; }
.cat-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--slate-900); margin: 0; line-height: 1.3; }
.cat-card .cat-pitch { font-size: 0.84rem; color: var(--slate-600); margin: 0; line-height: 1.4; flex: 1; }
.cat-card .btn { width: 100%; margin-top: 4px; text-decoration: none; }

/* Video grid */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.vid-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; overflow: hidden; }
.vid-card:hover, .vid-card:focus-within { border-color: var(--brand-200, #BBF7D0); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
.vid-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0B1220;
  cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden;
}
.vid-thumb img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block; background: #0B1220;
}
.vid-thumb .vid-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,.12) 45%, rgba(11,18,32,.7) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.vid-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(22, 163, 74, .95); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.vid-play svg { width: 22px; height: 22px; margin-left: 2px; }
.vid-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  text-align: center;
}
.vid-thumb:hover .vid-play, .vid-thumb:focus-visible .vid-play { background: #15803D; }
.vid-thumb:focus-visible { outline: 3px solid rgba(74, 222, 128, .55); outline-offset: 2px; }
.vid-thumb.is-ready .vid-label { color: #86EFAC; }
.vid-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vid-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--slate-900); margin: 0; line-height: 1.3; }
.vid-body a { font-size: 0.9rem; font-weight: 650; color: var(--brand-700); text-decoration: none; margin-top: auto; }
.vid-body a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Modal player */
.vid-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.vid-modal[hidden] { display: none; }
.vid-modal-back { position: absolute; inset: 0; background: rgba(11, 18, 32, .72); border: 0; padding: 0; cursor: pointer; }
.vid-modal-box {
  position: relative; width: min(880px, 100%);
  background: #0B1220; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.vid-modal-box header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.vid-modal-box header h2 { color: #fff; font-size: 1rem; margin: 0; font-weight: 700; }
.vid-modal-x {
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent;
  color: #94A3B8; font-size: 22px; line-height: 1; cursor: pointer;
}
.vid-modal-x:hover, .vid-modal-x:focus-visible { background: rgba(255,255,255,.08); color: #fff; outline: none; }
.vid-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vid-frame iframe, .vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-soon {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  color: #E2E8F0; font-size: 1rem;
}
.cat-foot { margin-top: 24px; font-size: 0.9rem; color: var(--slate-500); }
.cat-foot a { color: var(--brand-700); }

@media (max-width: 700px) {
  .cat-feature { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .cat-feature-cta { align-items: flex-start; }
  .cat-feature .btn { width: 100%; }
  .cat-grid, .vid-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card { flex-direction: row; align-items: stretch; }
  .cat-cover { min-height: 0; width: 96px; flex: 0 0 96px; padding: 8px; }
  .cat-cover img { height: auto; width: 76px; max-width: 76px; }
  .cat-body { padding: 10px 12px 12px; }
  .vid-thumb { aspect-ratio: 16 / 10; }
  .vid-thumb img { object-fit: contain; background: #0B1220; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card, .vid-card { transition: none; }
  .cat-card:hover, .cat-card:focus-within { transform: none; }
}

/* Topic chips: one scrolling row on small screens; count stays visible. */
.cat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.cat-toolbar .chips { flex: 1 1 auto; margin-bottom: 0; }
.cat-page .chip { white-space: nowrap; }
.cat-page .chip:focus-visible { outline: 3px solid rgba(22, 163, 74, .45); outline-offset: 2px; }

@media (max-width: 700px) {
  .cat-toolbar { flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; width: 100%; }
  .cat-toolbar .cat-count { order: -1; }
  .cat-toolbar .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    min-width: 0;
    width: calc(100% + 32px);
    max-width: none;
    box-sizing: border-box;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .cat-toolbar .chip { flex: 0 0 auto; }
}
