/* Scoped recommendation cards. No global theme selectors or JavaScript. */
.an-recommendations {
    --an-accent: #b51c2c;
    --an-text: #19232d;
    --an-muted: #596572;
    margin: 36px 0 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e6ea;
    color: var(--an-text);
}
.an-recommendations .an-recommendations__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.an-recommendations .an-recommendations__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--an-accent);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.an-recommendations .an-recommendations__heading {
    margin: 0;
    padding: 0;
    color: var(--an-text);
    font-family: inherit;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.5px;
}
.an-recommendations .an-recommendations__hint {
    color: var(--an-muted);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.an-recommendations .an-recommendations__hint span { margin-left: 6px; }
.an-recommendations .an-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.an-recommendations .an-recommendations__item {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.an-recommendations .an-recommendations__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    background: #fff;
    color: var(--an-text);
    text-decoration: none;
    box-shadow: 0 2px 8px rgb(20 32 45 / 3%);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.an-recommendations .an-recommendations__card:visited { color: var(--an-text); }
.an-recommendations .an-recommendations__card:focus-visible {
    outline: 3px solid var(--an-accent);
    outline-offset: 4px;
}
.an-recommendations .an-recommendations__media {
    display: block;
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eff2f5;
}
.an-recommendations .an-recommendations__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform .35s ease;
}
.an-recommendations .an-recommendations__placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #64707c;
    background: linear-gradient(135deg, #eff2f5, #e5eaef);
    font-size: 11px;
    letter-spacing: .5px;
    font-weight: 600;
}
.an-recommendations .an-recommendations__placeholder svg { width: 38px; height: 38px; }
.an-recommendations .an-recommendations__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}
.an-recommendations .an-recommendations__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--an-muted);
}
.an-recommendations .an-recommendations__meta time { white-space: nowrap; }
.an-recommendations .an-recommendations__label {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f0f2f4;
    color: #505d69;
    font-weight: 600;
}
.an-recommendations .an-recommendations__label--topic {
    background: #fcebed;
    color: #9b1825;
}
.an-recommendations .an-recommendations__title {
    margin: 0 0 16px;
    padding: 0;
    color: var(--an-text);
    font-family: inherit;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.2px;
    overflow-wrap: anywhere;
}
.an-recommendations .an-recommendations__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef0f2;
    color: var(--an-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.an-recommendations .an-recommendations__cta span { font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
    .an-recommendations .an-recommendations__card:hover {
        transform: translateY(-3px);
        border-color: #c6cdd5;
        box-shadow: 0 8px 24px rgb(20 32 45 / 9%);
    }
    .an-recommendations .an-recommendations__card:hover .an-recommendations__image { transform: scale(1.035); }
    .an-recommendations .an-recommendations__card:hover .an-recommendations__title { color: var(--an-accent); }
}
@media (min-width: 600px) and (max-width: 767px) {
    .an-recommendations .an-recommendations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .an-recommendations { margin-top: 28px; padding-top: 20px; }
    .an-recommendations .an-recommendations__hint { display: none; }
    .an-recommendations .an-recommendations__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .an-recommendations .an-recommendations__card { flex-direction: row; border-radius: 12px; }
    .an-recommendations .an-recommendations__media { flex: 0 0 112px; width: 112px; aspect-ratio: auto; }
    .an-recommendations .an-recommendations__image { position: absolute; inset: 0; }
    .an-recommendations .an-recommendations__body { padding: 12px; }
    .an-recommendations .an-recommendations__meta { gap: 5px; margin-bottom: 7px; }
    .an-recommendations .an-recommendations__title { font-size: 16px; line-height: 1.35; margin-bottom: 10px; }
    .an-recommendations .an-recommendations__cta { padding-top: 8px; }
}
@media (max-width: 359px) {
    .an-recommendations .an-recommendations__media { flex-basis: 88px; width: 88px; }
    .an-recommendations .an-recommendations__body { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .an-recommendations .an-recommendations__card,
    .an-recommendations .an-recommendations__image { transition: none; }
    .an-recommendations .an-recommendations__card:hover,
    .an-recommendations .an-recommendations__card:hover .an-recommendations__image { transform: none; }
}
