/* Articles index and article pages. Palette follows lets-get-started.css / service-picker.css. */

/* ---- shared: category tag --------------------------------------------------------------- */

.article-category {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(211, 170, 45, 0.15);
    color: #8a6d1a;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

a.article-category:hover,
a.article-category:focus-visible {
    background: rgba(211, 170, 45, 0.28);
}

/* ---- shared: byline (card, article header) ----------------------------------------------- */

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.9rem;
    font-size: 0.86rem;
    color: #455468;
}

.article-meta__author {
    font-weight: 700;
    color: #0f3a69;
    font-size: 0.9rem;
}

.article-meta__author::before {
    content: "By ";
    font-weight: 400;
    color: #455468;
}

/* ---- index: two-column layout ------------------------------------------------------------ */

.articles-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 68rem;
    margin: 0 auto;
    align-items: start;
    text-align: left;
}

@media (min-width: 860px) {
    .articles-layout {
        grid-template-columns: 15rem 1fr;
    }
}

/* ---- index: category sidebar (left) ------------------------------------------------------- */

.articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.articles-sidebar__heading {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a6d1a;
}

.articles-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: #33455c;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.articles-sidebar__link:hover,
.articles-sidebar__link:focus-visible {
    background: #f4f8fd;
    color: #0f3a69;
}

.articles-sidebar__link[aria-current="true"] {
    background: #f4f8fd;
    color: #0f3a69;
    box-shadow: inset 2px 0 0 0 #d3aa2d;
}

.articles-sidebar__count {
    color: #8b9bb0;
    font-weight: 400;
    font-size: 0.88rem;
}

.articles-sidebar__link[aria-current="true"] .articles-sidebar__count {
    color: #455468;
}

/* ---- index: article list ------------------------------------------------------------------ */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Set by articles-filter.js when a category with no matching cards is selected. */
.articles-list__empty {
    display: none;
    padding: 2rem 1.6rem;
    border: 1px dashed #dbe4f0;
    border-radius: 16px;
    color: #455468;
}

.articles-list__empty.is-visible {
    display: block;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 1.75rem 1.6rem;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 58, 105, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.article-card:hover,
.article-card:focus-visible {
    transform: translateY(-3px);
    border-color: #0f3a69;
    box-shadow: 0 10px 24px rgba(15, 58, 105, 0.12);
    outline: none;
}

.article-card:focus-visible {
    outline: 3px solid rgba(211, 170, 45, 0.6);
    outline-offset: 2px;
}

.article-card__title {
    margin: 0.2rem 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f3a69;
    line-height: 1.3;
}

.article-card__excerpt {
    margin: 0;
    color: #455468;
    line-height: 1.6;
}

.article-card__cue {
    font-weight: 600;
    color: #0f3a69;
}

.article-card__cue::after {
    content: " \2192";
}

/* ---- article page: plain full-width hero (no overlaid title) ----------------------------- */

.article-hero {
    display: block;
    width: 100%;
    height: clamp(220px, 34vw, 420px);
    object-fit: cover;
}

/* ---- article page: header block, below the image ------------------------------------------ */

.article-header {
    max-width: 46rem;
    margin: 0 auto;
    text-align: left;
}

.article-header .article-category {
    margin-bottom: 1rem;
}

.article-header__title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: #16233a;
}

.article-header .article-meta {
    padding-top: 1.1rem;
    border-top: 1px solid #dbe4f0;
}

/* ---- article page: body ------------------------------------------------------------------- */

.article-body {
    max-width: 46rem;
    margin: 2rem auto 0;
    text-align: left;
}

.article-body > p {
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.article-body ul {
    margin: 0 0 1.3rem;
    padding-left: 1.3rem;
    list-style: disc;
}

.article-body li {
    margin-bottom: 0.6rem;
    line-height: 1.65;
}

.article-body__lead {
    font-size: 1.12rem;
    color: #33455c;
}

.article-body__figure {
    margin: 1.8rem auto;
    max-width: 20rem;
    text-align: center;
}

.article-body__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 2px 10px rgba(15, 58, 105, 0.08);
}

.article-body__figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.86rem;
    color: #455468;
}

.article-back {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
    color: #0f3a69;
}

.article-back::before {
    content: "\2190 ";
}
