/* Digital Products / Resource Hub */
.dh-wrap{max-width:1150px;margin:0 auto;padding:18px}
.dh-hero{display:flex;gap:14px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin:12px 0 14px}
.dh-title{font-size:28px;font-weight:900;letter-spacing:.2px}
.dh-sub{opacity:.8;max-width:720px}
.dh-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.dh-input{min-width:240px;flex:1;max-width:420px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.18);color:inherit}
.dh-select{padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.18);color:inherit}

.dh-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.dh-chip{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
  opacity:.95;
  color:#e5e7eb;   /* <-- add this */
}
.dh-chip[aria-pressed="true"]{outline:2px solid rgba(255,255,255,.55);border-color:rgba(255,255,255,.22)}

.dh-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:980px){.dh-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.dh-grid{grid-template-columns:1fr}}

.dh-card{border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);overflow:hidden;display:flex;flex-direction:column;min-height:100%}
.dh-img{width:100%;aspect-ratio: 16 / 9;object-fit:cover;display:block;background:rgba(255,255,255,.03)}
.dh-pad{padding:14px;display:grid;gap:10px;flex:1}
.dh-kicker{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dh-pill{font-size:11px;font-weight:800;padding:6px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18);opacity:.92}
.dh-pill.featured{border-color:rgba(255,90,31,.55);background:rgba(255,90,31,.14)}
.dh-subject{font-weight:900;font-size:16px;line-height:1.25}
.dh-desc{opacity:.86;font-size:14px;line-height:1.55;min-height:110px}
.dh-foot{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:auto}
.dh-price{font-weight:900}
.dh-btn{padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:inherit;font-weight:900;cursor:pointer}
.dh-btn.primary{border-color:rgba(255,90,31,.45);background:rgba(255,90,31,.18)}
.dh-btn:disabled{opacity:.45;cursor:not-allowed}

.dh-featured{margin:10px 0 18px}
.dh-featuredGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:980px){.dh-featuredGrid{grid-template-columns:1fr}}
.dh-featuredCard{display:grid;grid-template-columns: 1.1fr .9fr;gap:0;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);overflow:hidden}
@media(max-width:980px){.dh-featuredCard{grid-template-columns:1fr}}
.dh-featuredImg{width:100%;height:100%;min-height:220px;object-fit:cover;display:block}
.dh-featuredPad{padding:16px;display:grid;gap:10px}


/* Rich text (markdown rendering) */
.rt{word-break:break-word}
.rt .rt-h{margin:10px 0 6px;font-weight:900;letter-spacing:.1px}
.rt .rt-p{margin:0 0 10px 0}
.rt .rt-ul,.rt .rt-ol{margin:0 0 10px 18px;padding:0}
.rt li{margin:4px 0}
.rt code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.95em;padding:2px 6px;border-radius:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)
}
.rt strong{font-weight:900}
.rt em{font-style:italic}
