/* =========================================
   SUPPORT PAGES (support.html, en/support.html): tutorial cards.
   Loaded only by the support pages, after lt-app.css and
   lt-legal.css (their colours and spacing).
   Each card links to the video on YouTube (a new tab); the
   thumbnail is YouTube's own image. No player, no scripts.
========================================= */

/* scoped under .legal-doc: its list rules (indent, bullets, spacing)
   must not apply to the cards */
.legal-doc .tutorial-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 6px;
    padding: 0;
    list-style: none;
}

.legal-doc .tutorial-cards > li {
    margin: 0;
    padding: 0;
}

.legal-doc .tutorial-cards > li::marker {
    content: "";
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tutorial-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-1px);
}

.tutorial-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tutorial-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.tutorial-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* a lime play badge over the thumbnail */
.tutorial-thumb::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tutorial-thumb::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    margin: -11px 0 0 -6px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--accent-ink);
}

.tutorial-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.tutorial-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.tutorial-text {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.45;
}

.tutorial-link {
    margin-top: auto;
    padding-top: 6px;
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .legal-doc .tutorial-cards {
        grid-template-columns: 1fr;
    }
}
