/* =============================================
   Articles strip (public/js/articles-strip.js) - the newest articles as a compact
   row of cards: home page and both dashboards. Self-contained colours like the
   sponsor banner, so it reads the same whatever dashboard theme is picked.
   ============================================= */
.ast {
    margin: 0 0 20px;
    border-radius: 14px;
    background: #fffdf8;
    border: 1px solid #eadfc8;
    color: #1a1a1a;
    overflow: hidden;
}
.ast-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 10px 16px; background: #f4efe3; border-bottom: 1px solid #eadfc8; font-size: 13px;
}
.ast-title { font-weight: 700; }
.ast-title .fas { color: #ff6347; margin-inline-end: 4px; }
.ast-all { color: #1f6a41; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ast-all:hover { text-decoration: underline; }
.ast-row {
    list-style: none; margin: 0; padding: 12px 16px 14px;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.ast-row li { scroll-snap-align: start; min-width: 0; }
.ast-card {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid #eadfc8; border-radius: 10px; background: #fff; overflow: hidden;
    color: inherit; text-decoration: none; transition: border-color .15s, transform .15s;
}
.ast-card:hover, .ast-card:focus-visible { border-color: #1a1a1a; transform: translateY(-2px); }
.ast-pic { display: block; aspect-ratio: 16 / 7; background: #eee8da; overflow: hidden; }
.ast-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ast-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.ast-tag { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #5b5548; font-weight: 600; }
.ast-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ast-sum {
    font-size: 12.5px; color: #4a4a4a; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* The home page: square hairline look of index.html (Space Mono labels, no rounded box). */
.ast-landing .ast { border-radius: 0; border: 0; background: transparent; margin: 0; }
.ast-landing .ast-head { display: none; }
.ast-landing .ast-row { padding: 16px; }
.ast-landing .ast-card { border-radius: 0; border-color: #000; }
.ast-landing .ast-tag, .ast-landing .ast-all { font-family: var(--font-body, 'Space Mono', monospace); }

@media (max-width: 600px) {
    .ast-row { grid-auto-columns: 78%; padding: 10px 12px 12px; }
    .ast-head { padding: 9px 12px; }
}
