/**
 * YES! Retro Blog & Article styles.
 * Scoped to .yes-blog-* / .yes-article so nothing leaks into other pages.
 */

/* ---------- Listing grids ---------- */
.yes-blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.75rem;
}

.yes-blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .yes-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .yes-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- Cards ---------- */
.yes-blog-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.yes-blog-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 0 #ff007f;
}

.yes-blog-card .yes-blog-thumb img {
    transition: transform 0.5s ease;
}

.yes-blog-card:hover .yes-blog-thumb img {
    transform: scale(1.06);
}

.yes-blog-thumb {
    aspect-ratio: 16 / 10;
}

/* Highlighter accent for listing / article titles (matches homepage headline) */
.ys-title-accent {
    background-image: linear-gradient(transparent 60%, #ffe600 60%, #ffe600 92%, transparent 92%);
    padding: 0 0.06em;
}

/* ---------- Article typography ---------- */
.yes-article {
    color: #27272a;
    font-size: 1.0625rem;
    line-height: 1.95;
}

.yes-article > * + * {
    margin-top: 1.15em;
}

.yes-article > :first-child {
    margin-top: 0;
}

.yes-article h1,
.yes-article h2,
.yes-article h3,
.yes-article h4,
.yes-article h5 {
    color: #09090b;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.yes-article h2 {
    margin-top: 1.9em;
    padding-left: 0.7rem;
    border-left: 0.4rem solid #ff007f;
    font-size: 1.6rem;
}

.yes-article h3 {
    margin-top: 1.6em;
    font-size: 1.3rem;
}

.yes-article h4 {
    margin-top: 1.4em;
    font-size: 1.1rem;
}

.yes-article ul,
.yes-article ol {
    padding-left: 1.35rem;
}

.yes-article ul {
    list-style: disc;
}

.yes-article ol {
    list-style: decimal;
}

.yes-article li + li {
    margin-top: 0.5em;
}

.yes-article li::marker {
    color: #ff007f;
    font-weight: 700;
}

.yes-article a {
    color: #d10069;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ffe600;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.yes-article a:hover {
    background-color: #ffe600;
    text-decoration-color: #ff007f;
}

.yes-article strong {
    color: #09090b;
    font-weight: 900;
}

.yes-article blockquote {
    margin: 1.5em 0;
    padding: 0.9rem 1.1rem;
    background-color: #fff1f6;
    border-left: 0.4rem solid #ff007f;
    border-radius: 0.75rem;
    font-weight: 600;
}

.yes-article img,
.yes-article figure img {
    max-width: 100%;
    height: auto;
    border: 2px solid #000;
    border-radius: 0.75rem;
}

.yes-article iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 2px solid #000;
    border-radius: 0.75rem;
}

.yes-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.yes-article th,
.yes-article td {
    padding: 0.5rem 0.75rem;
    border: 2px solid #000;
    text-align: left;
}

.yes-article th {
    background-color: #ffe600;
    font-weight: 900;
}

.yes-article hr {
    margin: 2em 0;
    border: 0;
    border-top: 3px dashed #d4d4d8;
}
