/* ==========================================================================
   Aradel ESG Reports — aradel-esg-reports.css
   Scoped entirely to .ar-esg-page
   ========================================================================== */

/* ── Outer section wrapper ─────────────────────────────────────────────────
   Carries standard site padding tokens. Bricks places the shortcode output
   inside this element, so we use the host element for padding.              */
.ar-esg-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 112px 96px;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

@media (max-width: 1024px) {
    .ar-esg-page {
        padding: 0 64px 72px;
    }
}

@media (max-width: 640px) {
    .ar-esg-page {
        padding: 0 24px 48px;
    }
}

/* ── Year tabs wrapper ──────────────────────────────────────────────────── */
.ar-esg-page__tabs-wrap {
    padding-bottom: 48px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ar-esg-page__tabs-wrap::-webkit-scrollbar {
    display: none;
}

/* ── Year tabs row ──────────────────────────────────────────────────────── */
.ar-esg-page__year-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    min-width: max-content;
    border-bottom: 2px solid #E5E5E5;
}

/* ── Individual year tab ────────────────────────────────────────────────── */
.ar-esg-page__year-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: #AAAAAA;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ar-esg-page__year-tab:hover {
    color: #01303A;
}

.ar-esg-page__year-tab.is-active {
    color: #01303A;
    font-weight: 700;
    border-bottom-color: #01303A;
}

/* ── Report list container ──────────────────────────────────────────────── */
.ar-esg-page__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ar-esg-page__empty {
    color: #666;
    font-size: 16px;
}

/* ── Single entry card (pill/row) ───────────────────────────────────────── */
.ar-esg-page__entry {
    background: #F9F9F9;
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s ease;
}

.ar-esg-page__entry[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .ar-esg-page__entry {
        padding: 24px 20px;
    }
}

/* ── Meta row: tag + date ───────────────────────────────────────────────── */
.ar-esg-page__entry-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ar-esg-page__tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #01303A;
}

.ar-esg-page__date {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #666666;
}

/* ── Body row: text + button ────────────────────────────────────────────── */
.ar-esg-page__entry-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ar-esg-page__entry-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Title ──────────────────────────────────────────────────────────────── */
.ar-esg-page__title {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #01303A;
}

@media (max-width: 1024px) {
    .ar-esg-page__title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .ar-esg-page__title {
        font-size: 17px;
    }
}

/* ── Subtitle ───────────────────────────────────────────────────────────── */
.ar-esg-page__subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #555555;
}

@media (max-width: 640px) {
    .ar-esg-page__subtitle {
        font-size: 13px;
    }
}

/* ── Download button column ─────────────────────────────────────────────── */
.ar-esg-page__entry-action {
    flex: 0 0 auto;
}

/* ── Mobile: stack text above button ───────────────────────────────────── */
@media (max-width: 640px) {
    .ar-esg-page__entry-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ar-esg-page__entry-action {
        width: 100%;
    }
}
