/* fearthecow.net site-level additions on top of the robmcleay theme */

/* Sidebar: featured apps block */
.nav-featured {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 0.6em 0.4em 0.5em 0.4em;
    margin: 0.2em 0.5em 0.8em 0;
    max-width: 22em;
}
div#sidebar .nav-featured h5.nav-featured-title {
    font-size: 85%;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin: 0 0 0.3em 0;
    padding: 0 0.6em;
}
div#sidebar a.nav-featured-item {
    display: block;
    padding: 0.35em 0.6em;
    border-radius: 5px;
    text-shadow: none;
}
div#sidebar a.nav-featured-item:hover,
div#sidebar a.nav-featured-item:focus {
    background-color: rgba(255, 255, 255, 0.15);
}
.nav-featured-name {
    display: block;
    font-size: 125%;
    font-weight: 700;
    line-height: 1.25;
}
.nav-featured-name .fa { font-size: 70%; opacity: 0.7; vertical-align: 2px; }
.nav-featured-tagline {
    display: block;
    font-size: 95%;
    line-height: 1.3;
    opacity: 0.85;
}
/* Top-level links (About Me, Archive) match the section headings (theme h5: 120%, bold, 10px inset). */
div#sidebar a.nav-top { font-weight: 700; font-size: 120%; padding: 5px 10px; }
div#sidebar a.nav-archive { margin-top: 0.4em; }
div#sidebar a.nav-more { font-style: italic; opacity: 0.85; padding-bottom: 0.3em; }
div#sidebar a.nav-more:hover, div#sidebar a.nav-more:focus { opacity: 1; text-decoration: underline; }
ul.list-current li { margin-bottom: 0.6em; }
.list-description { color: #666; }

/* Featured cards (home page and /software/) */
.featured-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 1em 0 1.2em 0;
}
a.featured-card {
    display: flex;
    flex-direction: column;
    padding: 0.9em 1em;
    border: 1px solid #ddd;
    border-left: 4px solid #2a6f97;
    border-radius: 6px;
    background: #fff;
    color: #222;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}
a.featured-card:hover, a.featured-card:focus {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    border-color: #bbb;
    border-left-color: #2a6f97;
}
.featured-card-name { font-weight: 700; font-size: 120%; }
.featured-card-tagline { margin: 0.25em 0 0.6em 0; flex: 1; }
.featured-card-link { font-size: 85%; color: #2a6f97; }
.featured-card-link .fa { font-size: 85%; }

@media (max-width: 575px) {
    .featured-cards { grid-template-columns: 1fr; }
}

ul.list-older li { margin-bottom: 0.15em; }
