/**
 * SNAPSMACK - Blogroll Page Styles
 *
 * Loaded only on blogroll.php. Currently minimal — most blogroll
 * presentation is handled by skin style.css under the .static-transmission
 * selector. This file exists as the contract endpoint for future blogroll
 * styling and as a hook for skins that want to scope blogroll-only rules.
 */

/*
 * SNAPSMACK_EOF_HEADER
 * Last non-empty line MUST be: slash-star, space, five equals, space,
 * 'SNAPSMACK EOF', space, five equals, space, star-slash.
 */


.blogroll-canvas {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Category label sits inline beside the peer name */
.blogroll-peer-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.blogroll-peer-cat {
    font-size: 0.65rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.1em;
    opacity: 0.45;
    border: 1px solid currentColor;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* URL at bottom of card — styled as a muted link */
a.blogroll-peer-url {
    display: block;
    font-size: 0.75rem;
    word-break: break-all;
    text-decoration: none;
    opacity: 0.5;
}
a.blogroll-peer-url:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ── Layout geometry ──────────────────────────────────────────────────────
   STRUCTURE ONLY: no colours, no fonts, no borders -- those are the skin's.
   Thirteen skins already style .blogroll-grid and .blogroll-peer in their own
   stylesheets and these rules sit under them harmlessly. The other ten render
   a blogroll and have never styled one, and without this their peers stack
   flat down the page. One file, so a fix reaches all of them instead of ten
   copies drifting apart. Every measurement is a custom property a skin can
   redefine without forking anything. */

.blogroll-category-block {
    margin: 0 0 var(--blogroll-block-gap, 56px) 0;
}

.blogroll-category-block:last-child {
    margin-bottom: 0;
}

.blogroll-grid {
    display: grid;
    /* The skin's Column Layout control writes grid-template-columns onto this
       selector and wins. This is the fallback for an owner who has never
       touched it. minmax(0,1fr) rather than 1fr so a long url cannot push its
       column wider than its share and shove the next one off the page. */
    grid-template-columns: repeat(var(--blogroll-columns, 2), minmax(0, 1fr));
    gap: var(--blogroll-gap, 40px);
    align-items: start;
}

.blogroll-peer {
    min-width: 0;   /* let a long url wrap rather than widen the grid */
}

.blogroll-peer-desc {
    margin: 0 0 6px 0;
}

/* A phone is too narrow for any column count the control can choose. */
@media (max-width: 760px) {
    .blogroll-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SNAPSMACK EOF ===== */
