/* ============================================================
   ACM Historical Interest Rate Levels — Stylesheet v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Rajdhani:wght@400;500;600;700&display=swap');

.acm-ir-fullwidth {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    background: #07080A !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    font-family: 'Rajdhani', sans-serif;
    color: #E8E0D0;
}

/* ── Red ACM Banner Header ── */
.acm-ir-header {
    background: linear-gradient(135deg, #6B0000 0%, #8B0000 40%, #7A0000 100%);
    border-bottom: 3px solid #C9A84C;
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.acm-ir-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0,0,0,0.04) 40px, rgba(0,0,0,0.04) 80px);
    pointer-events: none;
}
.acm-ir-brand { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(232,224,208,0.65); margin-bottom: 8px; }
.acm-ir-title { font-size: 30px; font-weight: 700; color: #FFFFFF; letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; margin: 0; }
.acm-ir-sub   { font-size: 11px; color: rgba(232,224,208,0.55); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
.acm-ir-byline { border: 1px solid rgba(201,168,76,0.6); padding: 12px 20px; text-align: center; flex-shrink: 0; }
.acm-ir-byline-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(232,224,208,0.5); margin-bottom: 4px; }
.acm-ir-byline-name  { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #E8CC7A; margin-bottom: 4px; }
.acm-ir-live { font-size: 11px; letter-spacing: 2px; color: #00C853; }
@media (max-width: 700px) { .acm-ir-header { flex-direction: column; gap: 16px; padding: 24px 20px; } .acm-ir-title { font-size: 22px; } }

/* ── Current rate cards ── */
.acm-ir-current {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #0A0B0E;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
@media (max-width: 700px) { .acm-ir-current { grid-template-columns: 1fr; } }

.acm-ir-current-card {
    padding: 24px 32px;
    border-top: 3px solid;
    border-right: 1px solid rgba(201,168,76,0.1);
    text-align: center;
}
.acm-ir-current-card:last-child { border-right: none; }
.acm-ir-current-label  { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8A8278; margin-bottom: 10px; }
.acm-ir-current-val    { font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.acm-ir-current-date   { font-size: 13px; color: #555; margin-bottom: 4px; }
.acm-ir-current-source { font-size: 11px; color: #444; letter-spacing: 0.5px; }

/* ── Intro text ── */
.acm-ir-intro { padding: 36px 48px 0; }
.acm-ir-intro p { font-size: 18px; line-height: 1.9; color: #B8B0A0; margin: 0 0 18px; }
@media (max-width: 700px) { .acm-ir-intro { padding: 24px 20px 0; } }

/* ── Section labels & titles ── */
.acm-ir-section-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #C9A84C; margin-bottom: 10px; }
.acm-ir-section-title { font-size: 24px; font-weight: 700; color: #FFFFFF; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(201,168,76,0.2); }

/* ── Charts section ── */
.acm-ir-charts-section { padding: 40px 48px 0; }
@media (max-width: 700px) { .acm-ir-charts-section { padding: 28px 20px 0; } }

/* ── Tab buttons ── */
.acm-ir-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.acm-ir-tab {
    background: #0E1014;
    border: 1px solid rgba(201,168,76,0.2);
    color: #8A8278;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
}
.acm-ir-tab:hover  { color: #E8CC7A; border-color: rgba(201,168,76,0.4); }
.acm-ir-tab.active { background: #8B0000; border-color: #C9A84C; color: #E8CC7A; }

/* ── Range buttons ── */
.acm-ir-ranges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.acm-ir-range-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #555; margin-right: 4px; }
.acm-ir-range {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.15);
    color: #555;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.acm-ir-range:hover  { color: #C9A84C; border-color: rgba(201,168,76,0.35); }
.acm-ir-range.active { color: #E8CC7A; border-color: #C9A84C; background: rgba(201,168,76,0.08); }

/* ── Chart canvas ── */
.acm-ir-chart-wrap {
    background: #0A0B0E;
    border: 1px solid rgba(201,168,76,0.15);
    padding: 24px;
    position: relative;
}

/* ── Table section ── */
.acm-ir-table-section { padding: 40px 48px 0; }
@media (max-width: 700px) { .acm-ir-table-section { padding: 28px 20px 0; } }

.acm-ir-table-wrap { overflow-x: auto; }
.acm-ir-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Rajdhani', sans-serif;
}
.acm-ir-table thead tr { background: #0E1014; border-bottom: 2px solid rgba(201,168,76,0.3); }
.acm-ir-table th {
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
.acm-ir-table tbody tr { border-bottom: 1px solid rgba(201,168,76,0.06); transition: background 0.15s; }
.acm-ir-table tbody tr:hover { background: #0E1014; }
.acm-ir-table td { padding: 11px 16px; font-size: 15px; }
.acm-ir-month { color: #8A8278; font-size: 14px; }
.acm-ir-high  { color: #FF1744; font-weight: 700; }
.acm-ir-low   { color: #00C853; font-weight: 700; }

.acm-ir-table-note {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-top: 14px;
    padding: 0;
}

/* ── Explainer cards ── */
.acm-ir-explainer { padding: 40px 48px 0; }
@media (max-width: 700px) { .acm-ir-explainer { padding: 28px 20px 0; } }

.acm-ir-explain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 800px) { .acm-ir-explain-grid { grid-template-columns: 1fr; } }

.acm-ir-explain-card {
    background: #0E1014;
    border: 1px solid rgba(201,168,76,0.1);
    border-left: 4px solid;
    padding: 24px 22px;
}
.acm-ir-explain-num   { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; line-height: 1; margin-bottom: 8px; opacity: 0.6; }
.acm-ir-explain-title { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #E8E0D0; margin-bottom: 12px; }
.acm-ir-explain-body  { font-size: 15px; line-height: 1.7; color: #8A8278; margin: 0; }

/* ── Footer note ── */
.acm-ir-footer-note {
    padding: 24px 48px 40px;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
    border-top: 1px solid rgba(201,168,76,0.08);
    margin-top: 40px;
}
@media (max-width: 700px) { .acm-ir-footer-note { padding: 20px 20px 32px; } }
