/* Aradel - Regulatory Announcements Widget
 * /wp-content/mu-plugins/aradel-regulatory-announcements.css
 * Scoped to .ar-regann only.
 *
 * Tokens mirror Financial Calendar + Results and Presentations exactly.
 * Meta:    16px / 600 / 0.12em / uppercase
 * Date:    13px / 300 / rgba(255,255,255,0.75)
 * Title:   20px / 600 / white
 * Divider: 1px solid rgba(255,255,255,0.2)
 * Past:    opacity 0.55
 */

.ar-regann {
    width: 100%;
    height: 100%;
    color: #fff;
    min-height: 0;    /* anchor the flex chain — without this the chain has no ceiling */
    overflow: hidden; /* clip anything that escapes */
}

.ar-regann__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    min-height: 0;    /* must propagate down from root */
    overflow: hidden;
}

.ar-regann__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;
}

.ar-regann__list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;    /* ← THE critical fix: without this, flex:1 child has no ceiling */
    overflow: hidden; /* clip items that exceed the constrained height */
    gap: 0;
}

.ar-regann__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.ar-regann__item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden; /* allows -webkit-line-clamp on title to fire */
    gap: 6px;
    padding: 20px 0;
}

/* Past items: keep title crisp, only soften date */
.ar-regann__item--past .ar-regann__date{
  color: rgba(255,255,255,0.55);
}

.ar-regann__item--past .ar-regann__title{
  color: #fff;
  opacity: 1;
}

.ar-regann__date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
    flex-shrink: 0; /* date is always fully visible — never compressed */
}

.ar-regann__title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.25;
    /* 3-line clamp with explicit max-height ceiling.
       max-height = font-size × line-height × lines = 20 × 1.25 × 3 = 75px
       Without max-height the clamp hard-clips instead of showing "…" */
    max-height: 75px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.ar-regann__title:hover,
.ar-regann__title:focus,
.ar-regann__title:active,
.ar-regann__title:visited {
    text-decoration: none !important;
    color: #fff;
}

.ar-regann__title:hover {
    opacity: 0.75;
}

.ar-regann__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 20px;
}

.ar-regann__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;
}
