/*
 * esg_v2.0.css — ESG pages premium CSS (light theme)
 * 次の灯株式会社
 *
 * Styles for:
 * - ESG hub page (esg-top)
 * - Dashboard: light hero, KPI stats, charts, categories, progress (esg-dashboard)
 * - Report article list & pagination (esg-report)
 *
 * Requires: common_v4.0.css (:root variables)
 * Class prefix: ewrd-
 *
 * v2.0 (light retheme):
 * - Removed dark Bloomberg/terminal aesthetic
 * - White & F8F9FA base — clean, premium environmental report feel
 * - Green (#1B5E20) accents, gold (#B8942E) highlights
 * - Gloriosa gradient used as decorative accent strip
 * - Soft shadow cards with green left-border accent
 * - Counting-up JS animation for KPI numbers
 * - Progress bars keep green gradients, now on white background
 * - Centered dashboard container (max-width + margin auto)
 * - Subtle green glow on hover (no neon)
 */

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */

/* Stat number entrance — opacity + translate */
@keyframes numberFadeIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle green shimmer on card hover (replaces dark neon glow) */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar fill */
@keyframes progressFill {
    0% {
        width: 0%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/* Gloriosa gradient shimmer */
@keyframes gloriosaShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Live blink for update indicator */
@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* Fade-in for section elements */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   GLOBAL: main padding override (sub-hero layout)
============================================================ */
.ewrd-main {
    padding-top: 0;
}

/* ============================================================
   GLORIOSA ACCENT STRIP
   A thin rainbow gradient bar used as decorative accent
============================================================ */
.ewrd-esg-gloriosa-strip {
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #D61518 0%,
        #ffc107 25%,
        #28a745 50%,
        #ffc107 75%,
        #D61518 100%
    );
    background-size: 200% 100%;
    animation: gloriosaShimmer 6s ease infinite;
}

/* ============================================================
   1. ESG INTRO — Lead text section
============================================================ */
.ewrd-esg-intro {
    padding: var(--section-py-sm) 0;
    background: var(--white);
}

.ewrd-esg-intro-text {
    max-width: 800px;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-main);
    letter-spacing: var(--ls-body);
}

.ewrd-esg-intro-text--center {
    text-align: center;
    margin: 0 auto;
}

/* ============================================================
   2. NOTE / SYSTEM MESSAGE
============================================================ */
.ewrd-esg-note {
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    padding: 20px 24px;
    margin-bottom: 56px;
    font-size: var(--fs-body-s);
    color: var(--text-sub);
    line-height: 1.8;
    border-radius: var(--radius-sm);
}

/* ============================================================
   3. ESG HUB — 2-card layout
============================================================ */
.ewrd-esg-hub {
    padding: 0 0 var(--section-py);
    background: var(--white);
}

.ewrd-esg-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Hub card */
.ewrd-esg-hub-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 52px 44px;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Top accent line: reveals on hover */
.ewrd-esg-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-color) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

/* Subtle green wash on hover */
.ewrd-esg-hub-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 30% 0%,
        rgba(27, 94, 32, 0.03) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.ewrd-esg-hub-card:hover {
    border-color: rgba(27, 94, 32, 0.18);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(27, 94, 32, 0.06) inset;
    transform: translateY(-3px);
}

.ewrd-esg-hub-card:hover::before {
    transform: scaleX(1);
}

.ewrd-esg-hub-card:hover::after {
    opacity: 1;
}

/* Dashboard variant — navy card on hub */
.ewrd-esg-hub-card--dashboard {
    background: var(--secondary-color);
    border-color: rgba(255, 255, 255, 0.08);
}

.ewrd-esg-hub-card--dashboard::before {
    background: linear-gradient(
        90deg,
        var(--accent-color) 0%,
        #E8C76A 50%,
        var(--accent-color) 100%
    );
}

.ewrd-esg-hub-card--dashboard:hover {
    border-color: rgba(184, 148, 46, 0.3);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.ewrd-esg-hub-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-english);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.07);
    border: 1px solid rgba(27, 94, 32, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: var(--ls-en-label);
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-badge {
    color: var(--accent-color);
    background: rgba(184, 148, 46, 0.1);
    border-color: rgba(184, 148, 46, 0.2);
}

/* Live indicator dot */
.ewrd-esg-hub-card-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: liveBlink 2s ease-in-out infinite;
}

.ewrd-esg-hub-card-num {
    font-family: var(--font-english);
    font-size: var(--fs-caption);
    font-weight: 500;
    color: var(--text-caption);
    letter-spacing: var(--ls-en-label);
    margin-bottom: 8px;
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-num {
    color: rgba(255, 255, 255, 0.4);
}

.ewrd-esg-hub-card-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
    letter-spacing: var(--ls-heading);
    line-height: 1.5;
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-title {
    color: rgba(255, 255, 255, 0.92);
}

.ewrd-esg-hub-card-desc {
    font-size: var(--fs-body-s);
    color: var(--text-sub);
    line-height: var(--lh-body);
    flex: 1;
    margin-bottom: 28px;
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-desc {
    color: rgba(255, 255, 255, 0.5);
}

/* Mini KPI preview inside hub card */
.ewrd-esg-hub-card-preview {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-preview {
    border-color: rgba(255, 255, 255, 0.06);
}

.ewrd-esg-hub-card-preview-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ewrd-esg-hub-card-preview-value {
    font-family: var(--font-english);
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-preview-value {
    color: var(--accent-color);
}

.ewrd-esg-hub-card-preview-label {
    font-size: var(--fs-caption);
    color: var(--text-caption);
    letter-spacing: 0.04em;
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-preview-label {
    color: rgba(255, 255, 255, 0.4);
}

.ewrd-esg-hub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-english);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: gap var(--transition-base);
}

.ewrd-esg-hub-card--dashboard .ewrd-esg-hub-card-link {
    color: var(--accent-color);
}

.ewrd-esg-hub-card:hover .ewrd-esg-hub-card-link {
    gap: 14px;
}

.ewrd-esg-hub-card-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================================
   4. DASHBOARD HERO — Light, clean hero section
============================================================ */
.ewrd-esg-dash-hero {
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 64px 0 48px;
    overflow: hidden;
}

/* Subtle green-tinted mesh pattern overlay */
.ewrd-esg-dash-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(27, 94, 32, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 94, 32, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Light radial glow at top */
.ewrd-esg-dash-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 70% 50% at 50% 0%,
        rgba(27, 94, 32, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Gloriosa strip at very top of hero */
.ewrd-esg-dash-hero-gloriosa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #D61518 0%,
        #ffc107 25%,
        #28a745 50%,
        #ffc107 75%,
        #D61518 100%
    );
    background-size: 200% 100%;
    animation: gloriosaShimmer 8s ease infinite;
}

.ewrd-esg-dash-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb in light hero */
.ewrd-esg-dash-hero .ewrd-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.ewrd-esg-dash-hero .ewrd-breadcrumb-item {
    font-family: var(--font-english);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-caption);
    letter-spacing: 0.08em;
}

.ewrd-esg-dash-hero .ewrd-breadcrumb-item a {
    color: var(--text-caption);
    text-decoration: none;
    transition: color 0.2s;
}

.ewrd-esg-dash-hero .ewrd-breadcrumb-item a:hover {
    color: var(--primary-color);
}

.ewrd-esg-dash-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ewrd-esg-dash-hero-label {
    font-family: var(--font-english);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-caption);
    letter-spacing: var(--ls-en-label);
    text-transform: uppercase;
}

/* Live badge — green on white */
.ewrd-esg-dash-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-english);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid rgba(27, 94, 32, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(27, 94, 32, 0.06);
}

.ewrd-esg-dash-hero-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: liveBlink 1.5s ease-in-out infinite;
}

.ewrd-esg-dash-hero-title {
    font-family: var(--font-english);
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.ewrd-esg-dash-hero-title strong {
    font-weight: 700;
    color: var(--primary-color);
}

.ewrd-esg-dash-hero-subtitle {
    font-size: var(--fs-body-s);
    color: var(--text-sub);
    line-height: 1.8;
    max-width: 560px;
    letter-spacing: var(--ls-body);
}

.ewrd-esg-dash-hero-meta {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.ewrd-esg-dash-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ewrd-esg-dash-hero-meta-label {
    font-family: var(--font-english);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-caption);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ewrd-esg-dash-hero-meta-value {
    font-family: var(--font-english);
    font-size: var(--fs-body-s);
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 0.04em;
}

/* ============================================================
   5. DASHBOARD SECTION WRAPPER — White/light backgrounds
============================================================ */
.ewrd-esg-dashboard-section {
    background: var(--bg-light);
    padding: 56px 0 80px;
}

/* Centered container constraint */
.ewrd-esg-dashboard-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section divider line */
.ewrd-esg-dashboard-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0 0 48px;
}

/* Section label row */
.ewrd-esg-dashboard-section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ewrd-esg-dashboard-section-label-text {
    font-family: var(--font-english);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-caption);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ewrd-esg-dashboard-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* ============================================================
   6. KPI STATS GRID — 4-column, 2-row grid
============================================================ */
.ewrd-esg-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.ewrd-esg-stats-grid--secondary {
    gap: 12px;
    margin-bottom: 48px;
}

/* ============================================================
   7. STAT CARD — Clean white card with green accent
============================================================ */
.ewrd-esg-stat-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 28px 24px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;

    /* Entrance animation */
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* Stagger entrance */
.ewrd-esg-stats-grid .ewrd-esg-stat-card:nth-child(1) { animation-delay: 0.05s; }
.ewrd-esg-stats-grid .ewrd-esg-stat-card:nth-child(2) { animation-delay: 0.10s; }
.ewrd-esg-stats-grid .ewrd-esg-stat-card:nth-child(3) { animation-delay: 0.15s; }
.ewrd-esg-stats-grid .ewrd-esg-stat-card:nth-child(4) { animation-delay: 0.20s; }
.ewrd-esg-stats-grid--secondary .ewrd-esg-stat-card:nth-child(1) { animation-delay: 0.25s; }
.ewrd-esg-stats-grid--secondary .ewrd-esg-stat-card:nth-child(2) { animation-delay: 0.30s; }
.ewrd-esg-stats-grid--secondary .ewrd-esg-stat-card:nth-child(3) { animation-delay: 0.35s; }
.ewrd-esg-stats-grid--secondary .ewrd-esg-stat-card:nth-child(4) { animation-delay: 0.40s; }

.ewrd-esg-stat-card:hover {
    border-color: var(--primary-color);
    box-shadow:
        0 4px 24px rgba(27, 94, 32, 0.08),
        0 1px 6px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Gold variant */
.ewrd-esg-stat-card--gold {
    border-left-color: var(--accent-color);
}

.ewrd-esg-stat-card--gold:hover {
    border-color: var(--accent-color);
    box-shadow:
        0 4px 24px rgba(184, 148, 46, 0.1),
        0 1px 6px rgba(0, 0, 0, 0.04);
}

/* Red variant */
.ewrd-esg-stat-card--red {
    border-left-color: var(--accent-red);
}

.ewrd-esg-stat-card--red:hover {
    border-color: var(--accent-red);
    box-shadow:
        0 4px 24px rgba(214, 21, 24, 0.08),
        0 1px 6px rgba(0, 0, 0, 0.04);
}

/* Card icon area */
.ewrd-esg-stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ewrd-esg-stat-icon-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 94, 32, 0.07);
    border: 1px solid rgba(27, 94, 32, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-family: var(--font-english);
    font-weight: 700;
    font-size: 0.75rem;
}

.ewrd-esg-stat-card--gold .ewrd-esg-stat-icon-badge {
    background: rgba(184, 148, 46, 0.08);
    border-color: rgba(184, 148, 46, 0.18);
    color: var(--accent-color);
}

.ewrd-esg-stat-card--red .ewrd-esg-stat-icon-badge {
    background: rgba(214, 21, 24, 0.06);
    border-color: rgba(214, 21, 24, 0.14);
    color: var(--accent-red);
}

/* Change indicator (vs prior year) */
.ewrd-esg-stat-change {
    font-family: var(--font-english);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.ewrd-esg-stat-change--up {
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.08);
}

.ewrd-esg-stat-change--down {
    color: var(--accent-red);
    background: rgba(214, 21, 24, 0.07);
}

/* The main KPI number */
.ewrd-esg-stat-value {
    font-family: var(--font-english);
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;

    animation: numberFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--stat-delay, 0.2s);
}

.ewrd-esg-stat-card--gold .ewrd-esg-stat-value {
    color: var(--accent-color);
}

.ewrd-esg-stat-card--red .ewrd-esg-stat-value {
    color: var(--accent-red);
}

/* Unit suffix */
.ewrd-esg-stat-value .ewrd-esg-stat-unit {
    font-size: 0.42em;
    font-weight: 400;
    color: var(--text-sub);
    margin-left: 4px;
    letter-spacing: 0.04em;
    vertical-align: baseline;
    position: relative;
    bottom: 0.1em;
}

/* Stat label */
.ewrd-esg-stat-label {
    font-size: var(--fs-body-s);
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: var(--ls-body);
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Stat description */
.ewrd-esg-stat-desc {
    font-size: var(--fs-caption);
    color: var(--text-caption);
    letter-spacing: 0.03em;
    line-height: 1.7;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* Secondary row stat cards — slightly smaller */
.ewrd-esg-stats-grid--secondary .ewrd-esg-stat-card {
    padding: 22px 20px 18px;
}

.ewrd-esg-stats-grid--secondary .ewrd-esg-stat-value {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* ============================================================
   8. CHARTS SECTION — 2-column light chart containers
============================================================ */
.ewrd-esg-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.ewrd-esg-chart-block {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 28px 24px;
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.ewrd-esg-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.ewrd-esg-chart-title {
    font-family: var(--font-japanese);
    font-size: var(--fs-body-s);
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: var(--ls-heading);
    line-height: 1.5;
}

.ewrd-esg-chart-period {
    font-family: var(--font-english);
    font-size: var(--fs-caption);
    font-weight: 500;
    color: var(--text-caption);
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding: 3px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--bg-light);
}

.ewrd-esg-chart-placeholder {
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-caption);
    font-size: var(--fs-small);
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
}

/* Simulated axis lines */
.ewrd-esg-chart-placeholder::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 90%;
    height: 1px;
    background: var(--border-light);
}

/* Chart legend */
.ewrd-esg-chart-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ewrd-esg-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-caption);
    color: var(--text-caption);
    letter-spacing: 0.04em;
}

.ewrd-esg-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ewrd-esg-chart-legend-dot--green {
    background: var(--primary-color);
}

.ewrd-esg-chart-legend-dot--gold {
    background: var(--accent-color);
}

.ewrd-esg-chart-legend-dot--muted {
    background: var(--border-light);
}

/* ============================================================
   9. DATA CATEGORIES — Tab navigation for E / S / G views
============================================================ */
.ewrd-esg-categories {
    margin-bottom: 48px;
}

.ewrd-esg-categories-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.ewrd-esg-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-english);
    font-size: var(--fs-body-s);
    font-weight: 500;
    color: var(--text-sub);
    letter-spacing: 0.06em;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
    white-space: nowrap;
}

.ewrd-esg-category-tab:hover {
    color: var(--text-main);
    background: rgba(27, 94, 32, 0.02);
}

.ewrd-esg-category-tab.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.ewrd-esg-category-tab--gold.is-active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.ewrd-esg-category-tab--blue.is-active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.ewrd-esg-category-tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ewrd-esg-category-tab.is-active .ewrd-esg-category-tab-dot {
    opacity: 1;
}

/* Category panel (toggled via JS is-visible class) */
.ewrd-esg-category-panel {
    display: none;
}

.ewrd-esg-category-panel.is-visible {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================================
   10. PROGRESS BARS — Animated with green gradients on white
============================================================ */
.ewrd-esg-progress {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.ewrd-esg-progress-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ewrd-esg-progress-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ewrd-esg-progress-label {
    font-size: var(--fs-body-s);
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: var(--ls-body);
    line-height: 1.4;
}

.ewrd-esg-progress-values {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ewrd-esg-progress-actual {
    font-family: var(--font-english);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.ewrd-esg-progress-target {
    font-family: var(--font-english);
    font-size: var(--fs-caption);
    font-weight: 400;
    color: var(--text-caption);
    letter-spacing: 0.04em;
}

/* Track */
.ewrd-esg-progress-track {
    position: relative;
    height: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    overflow: visible;
}

/* Fill bar */
.ewrd-esg-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        #2E7D32 60%,
        #4CAF50 100%
    );

    animation: progressFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--progress-delay, 0.3s);
    width: var(--progress-width, 0%);
}

/* Gold variant fill */
.ewrd-esg-progress-fill--gold {
    background: linear-gradient(
        90deg,
        #8B6914 0%,
        var(--accent-color) 60%,
        #D4AD3C 100%
    );
}

/* Blue variant fill (Social panel) */
.ewrd-esg-progress-fill--blue {
    background: linear-gradient(
        90deg,
        #1A2B48 0%,
        #2A4B7C 60%,
        #4A73A6 100%
    );
}

/* Target marker line */
.ewrd-esg-progress-target-marker {
    position: absolute;
    top: -3px;
    height: 12px;
    width: 2px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
    left: var(--target-position, 100%);
}

.ewrd-esg-progress-pct {
    font-family: var(--font-english);
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.04em;
}

/* ============================================================
   11. REPORT ARTICLE GRID — Blog-style cards (light theme)
============================================================ */
.ewrd-esg-report {
    padding: var(--section-py-sm) 0;
    background: var(--white);
}

.ewrd-esg-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: var(--content-gap);
}

.ewrd-esg-article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Green top accent line on article card */
.ewrd-esg-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.ewrd-esg-article-card:hover {
    border-color: rgba(27, 94, 32, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.ewrd-esg-article-card:hover::before {
    transform: scaleX(1);
}

.ewrd-esg-article-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-caption);
    font-size: var(--fs-small);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.ewrd-esg-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.ewrd-esg-article-card:hover .ewrd-esg-article-thumb img {
    transform: scale(1.03);
}

.ewrd-esg-article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ewrd-esg-article-card__photo {
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.ewrd-esg-article-card__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ewrd-esg-article-card__category {
    font-family: var(--font-english);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.06);
    border: 1px solid rgba(27, 94, 32, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    display: inline-block;
    margin-bottom: 8px;
}

.ewrd-esg-article-card__date {
    font-family: var(--font-english);
    font-size: var(--fs-caption);
    font-weight: 500;
    color: var(--text-caption);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 10px;
}

.ewrd-esg-article-card__title {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 10px;
    letter-spacing: var(--ls-heading);
    transition: color 0.25s ease;
}

.ewrd-esg-article-card:hover .ewrd-esg-article-card__title {
    color: var(--primary-color);
}

.ewrd-esg-article-card__excerpt {
    font-size: var(--fs-body-s);
    color: var(--text-sub);
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ewrd-esg-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ewrd-esg-article-date {
    font-family: var(--font-english);
    font-size: var(--fs-caption);
    font-weight: 500;
    color: var(--text-caption);
    letter-spacing: 0.06em;
}

.ewrd-esg-article-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.06);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    border: 1px solid rgba(27, 94, 32, 0.1);
}

.ewrd-esg-article-title {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 12px;
    letter-spacing: var(--ls-heading);
    transition: color 0.25s ease;
}

.ewrd-esg-article-card:hover .ewrd-esg-article-title {
    color: var(--primary-color);
}

.ewrd-esg-article-excerpt {
    font-size: var(--fs-body-s);
    color: var(--text-sub);
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.ewrd-esg-article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-english);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: auto;
    transition: gap var(--transition-base);
}

.ewrd-esg-article-card:hover .ewrd-esg-article-readmore {
    gap: 10px;
}

/* ============================================================
   12. PAGINATION
============================================================ */
.ewrd-esg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}

.ewrd-esg-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-family: var(--font-english);
    font-size: var(--fs-body-s);
    font-weight: 500;
    color: var(--text-sub);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    background: var(--white);
    cursor: pointer;
}

.ewrd-esg-pagination__item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.04);
}

.ewrd-esg-pagination__item.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
}

.ewrd-esg-pagination__next {
    padding: 0 16px;
    font-size: var(--fs-caption);
    letter-spacing: 0.06em;
}

/* ============================================================
   PLACEHOLDER UTILITY (light theme)
============================================================ */
.ewrd-placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-caption);
    font-size: var(--fs-small);
    letter-spacing: 0.04em;
    min-height: 120px;
}

.ewrd-placeholder::after {
    content: attr(data-label);
}

/* ============================================================
   FADE-IN UTILITY
============================================================ */
.ewrd-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ewrd-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (max-width: 900px)
============================================================ */
@media (max-width: 900px) {

    /* Hub */
    .ewrd-esg-hub-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ewrd-esg-hub-card {
        padding: 40px 36px;
    }

    /* Dashboard hero */
    .ewrd-esg-dash-hero {
        padding: 48px 0 40px;
    }

    .ewrd-esg-dash-hero-meta {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Stats grid */
    .ewrd-esg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ewrd-esg-stats-grid--secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Charts */
    .ewrd-esg-charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Category tabs */
    .ewrd-esg-categories-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ewrd-esg-categories-tabs::-webkit-scrollbar {
        display: none;
    }

    .ewrd-esg-category-tab {
        padding: 10px 18px;
        font-size: var(--fs-caption);
    }

    /* Article grid */
    .ewrd-esg-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 600px)
============================================================ */
@media (max-width: 600px) {

    /* Hub */
    .ewrd-esg-hub-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ewrd-esg-hub-card {
        padding: 32px 24px;
    }

    .ewrd-esg-hub-card-preview {
        gap: 16px;
        flex-wrap: wrap;
    }

    /* Dashboard hero */
    .ewrd-esg-dash-hero {
        padding: 36px 0 32px;
    }

    .ewrd-esg-dash-hero-title {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }

    .ewrd-esg-dash-hero-eyebrow {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Stats grid — 2-column on mobile */
    .ewrd-esg-stats-grid,
    .ewrd-esg-stats-grid--secondary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ewrd-esg-stat-card {
        padding: 20px 16px 16px;
    }

    .ewrd-esg-stat-value {
        font-size: clamp(1.625rem, 7vw, 2.25rem);
    }

    .ewrd-esg-stats-grid--secondary .ewrd-esg-stat-value {
        font-size: clamp(1.25rem, 5vw, 1.625rem);
    }

    /* Charts */
    .ewrd-esg-charts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ewrd-esg-chart-block {
        padding: 20px 16px 16px;
    }

    .ewrd-esg-chart-placeholder {
        height: 160px;
    }

    /* Section label — allow wrapping on mobile */
    .ewrd-esg-dashboard-section-label-text {
        white-space: normal;
        font-size: 0.625rem;
    }

    /* Category tabs */
    .ewrd-esg-category-tab {
        padding: 8px 14px;
        font-size: 0.6875rem;
    }

    /* Progress */
    .ewrd-esg-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Articles */
    .ewrd-esg-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ewrd-esg-article-card__body,
    .ewrd-esg-article-body {
        padding: 20px;
    }

    /* Pagination */
    .ewrd-esg-pagination {
        gap: 4px;
    }

    .ewrd-esg-pagination__item {
        min-width: 36px;
        height: 36px;
        font-size: var(--fs-caption);
    }
}
