/**
 * Aradel — Results & Presentations Widget
 * File: /wp-content/mu-plugins/aradel-results-presentations.css
 * Scoped entirely to .ar-rp — zero bleed into other widgets.
 *
 * v1.2 — removed row-link pattern; items now have discrete attachment buttons.
 */

/* ── Container ─────────────────────────────── */
.ar-rp {
    width: 100%;
    height: 100%;
    color: #fff;
}

.ar-rp__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

/* ── Meta heading ───────────────────────────── */
.ar-rp__meta {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin-bottom: 24px;
    flex-shrink: 0;
}

/* ── List ───────────────────────────────────── */
.ar-rp__list {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

/* ── Divider ────────────────────────────────── */
.ar-rp__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ── Item (article) ─────────────────────────── */
.ar-rp__item {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ── Row — replaces old row-link ────────────── */
/* No longer an anchor. Buttons handle their own clicks. */
.ar-rp__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    color: inherit;
}

/* ── Left column (date + title) ─────────────── */
/*
 * .ar-rp__left is now rendered as an <a> element so the entire
 * date + title zone is a proper link to the archive. The display:flex
 * rule must be explicit here because <a> is inline by default.
 * Hover/focus give a gentle opacity shift and a visible focus ring
 * for keyboard users. No layout changes — the column behaves
 * identically to the previous <div>.
 */
a.ar-rp__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    /* Use a.ar-rp__left (specificity 0,1,1) so our reset beats any Bricks/theme
       blanket  a { text-decoration: underline !important; }  (specificity 0,0,1)
       even when the theme stylesheet loads after ours. */
    color: inherit !important;
    text-decoration: none !important;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

a.ar-rp__left:hover {
    opacity: 0.82;
    text-decoration: none !important;
}

a.ar-rp__left:focus {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
    opacity: 1;
}

/* Keep child text elements from absorbing pointer events
   so the anchor's hit area stays consistent */
.ar-rp__left .ar-rp__date,
.ar-rp__left .ar-rp__title {
    pointer-events: none;
}

.ar-rp__date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.25;
}

.ar-rp__title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Buttons column ─────────────────────────── */
/* Holds 1–N circle buttons in a horizontal row.
   Each .ar-rp__btn-wrap is a non-interactive
   container so pointer events go to the anchor. */
.ar-rp__btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ar-rp__btn-wrap {
    display: flex;
    align-items: center;
}

/* Ensure ar-action circles inherit white colour
   from the card context */
.ar-rp__btn-wrap .ar-action {
    color: #fff;
}

/* ── Footer CTA ─────────────────────────────── */
.ar-rp__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 20px;
}

/* ── Empty state ────────────────────────────── */
.ar-rp__empty {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    padding: 20px 0;
    margin: 0;
}
