/* How-To's video grid and dialog. Loaded before density.css. */
.ht-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ht-card{display:block;height:100%;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;color:inherit;text-decoration:none}
a.ht-card:hover,a.ht-card:focus-visible{border-color:var(--blue);box-shadow:0 6px 18px rgba(16,36,71,.12)}
.ht-thumb{position:relative;display:block;aspect-ratio:16/9;background:#102447}
.ht-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.ht-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(16,36,71,.82);color:#fff;transition:transform .15s}
a.ht-card:hover .ht-play,a.ht-card:focus-visible .ht-play{transform:scale(1.1);background:var(--blue)}
.ht-card h2{margin:0;padding:16px 18px 18px;font-size:clamp(18px,1.5vw,21px);line-height:1.3}
.ht-card-pending .ht-thumb img{opacity:.6}
.ht-note{margin:-10px 18px 18px;color:var(--muted);font-style:italic}

.ht-dialog{width:min(960px,calc(100vw - 32px));max-width:none;padding:0;border:0;border-radius:8px;background:#fff;color:inherit;overflow:hidden}
.ht-dialog::backdrop{background:rgba(8,18,38,.78)}
.ht-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 12px 12px 20px}
.ht-dialog-head h2{margin:0;font-size:clamp(18px,2vw,22px)}
.ht-close{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--pale);color:var(--navy);cursor:pointer}
.ht-close:hover{background:var(--navy);color:#fff}
.ht-frame{aspect-ratio:16/9;background:#000}
.ht-frame iframe{display:block;width:100%;height:100%;border:0}
.ht-dialog-desc{margin:0;padding:16px 20px 20px;line-height:1.6}
.ht-dialog-desc:empty{display:none}
html.ht-open{overflow:hidden}

@media (max-width:900px){.ht-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.ht-grid{grid-template-columns:1fr}.ht-dialog{width:calc(100vw - 16px)}}
.ht-card .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
