/* Library: five subject guides, each card is the whole link. */
.gs { margin: 0 0 22px; }
.gs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gs-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--xp-text); }
.gs-head a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; font-size: 13px; color: var(--xp-muted); text-decoration: none; }
.gs-head a:hover { color: var(--xp-accent); }
.gs-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gs-row > li { min-width: 0; display: flex; }
.gs-card { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 132px; padding: 16px 16px 14px; border: 1px solid var(--xp-border); border-radius: 12px; background: var(--wq-paper-grain), var(--xp-panel); color: var(--xp-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease, background-color .15s ease; }
.gs-card:hover { border-color: var(--xp-accent); text-decoration: none; transform: translateY(-2px); }
.gs-card:focus-visible { outline: 2px solid var(--xp-accent); outline-offset: 2px; }
.gs-subject { font-size: 12px; font-weight: 600; color: var(--xp-accent); }
.gs-card strong { margin: 8px 0 6px; font-size: 15px; line-height: 1.45; letter-spacing: -.4px; color: var(--xp-text); word-break: keep-all; }
.gs-desc { font-size: 12px; line-height: 1.55; color: var(--xp-muted); word-break: keep-all; padding-right: 18px; }
.gs-go { position: absolute; right: 14px; bottom: 12px; font-size: 15px; color: var(--xp-muted); transition: color .15s ease, transform .15s ease; }
.gs-card:hover .gs-go { color: var(--xp-accent); transform: translateX(2px); }
@media (max-width: 900px) {
    /* Swipe row: the next card peeks so it is obvious there is more. */
    .gs-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding: 0 16px; }
    .gs-row::-webkit-scrollbar { display: none; }
    .gs-row > li { flex: 0 0 min(64%, 240px); scroll-snap-align: start; }
    .gs-card { min-height: 118px; padding: 14px 14px 12px; }
    .gs-card strong { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .gs-card, .gs-go { transition: none; } .gs-card:hover { transform: none; } }
