/* =========================================================
   Investor Relations
   Inline style attributes are blocked by the CSP, so every
   visual rule for these pages lives in this file.
   ========================================================= */

:root {
    --ir-navy: #061a4a;
    --ir-heading: #0b1d51;
    --ir-text: #34405c;
    --ir-muted: #64708a;
    --ir-primary: #0d4fcf;
    --ir-red: #ef2b2d;
    --ir-red-dark: #d81f22;
    --ir-surface: #ffffff;
    --ir-soft: #eef5fe;
    --ir-soft-2: #e4eefc;
    --ir-row-alt: #f7faff;
    --ir-border: #dbe5f3;
    --ir-shadow: 0 4px 16px rgba(11, 29, 81, 0.05);
}

[data-bs-theme="dark"] {
    --ir-heading: #eef2fb;
    --ir-text: #c9d1e1;
    --ir-muted: #95a0b6;
    --ir-primary: #6ea1ff;
    --ir-surface: #151a24;
    --ir-soft: #0f141d;
    --ir-soft-2: #1b2638;
    --ir-row-alt: #18202d;
    --ir-border: #273246;
    --ir-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Metronic sets a fixed size and muted colour on every Font Awesome <i>;
   inside IR pages icons inherit from their container instead. */
.ir-page i[class*="fa-"] {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ---------- Header (only loaded on IR pages) ---------- */
#kt_body .menu-link.ir-menu-active,
#kt_body .menu-link.ir-menu-active > span {
    position: relative;
    color: var(--ir-red) !important;
}

@media (min-width: 992px) {
    #kt_body .menu-link.ir-menu-active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 40px;
        height: 2px;
        border-radius: 2px;
        transform: translateX(-50%);
        background: var(--ir-red);
    }
}

/* ---------- Hero ---------- */
.ir-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 44px;
    color: #fff;
    background:
        radial-gradient(ellipse 30% 55% at 98% 100%, rgba(239, 43, 45, 0.95), rgba(239, 43, 45, 0) 70%),
        radial-gradient(ellipse 22% 40% at 82% -5%, rgba(239, 43, 45, 0.55), rgba(239, 43, 45, 0) 70%),
        radial-gradient(ellipse 45% 90% at 72% 60%, rgba(20, 98, 236, 0.75), rgba(20, 98, 236, 0) 70%),
        linear-gradient(110deg, #04153f 0%, #08276e 45%, #0b3ca8 100%);
}

/* soft curved shape behind the illustration */
.ir-hero::before {
    content: "";
    position: absolute;
    right: -6%;
    top: -40%;
    width: 60%;
    height: 180%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 50%, rgba(57, 132, 255, 0.35), rgba(57, 132, 255, 0) 60%);
    pointer-events: none;
}

.ir-hero .container {
    position: relative;
    z-index: 1;
}

.ir-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.ir-breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
}

.ir-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.ir-breadcrumb a:hover {
    color: #fff;
}

.ir-hero .ir-eyebrow {
    color: #fff;
}

.ir-hero-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.ir-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    margin: 0;
    max-width: 620px;
}

.ir-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Illustration built from glass panels */
.ir-hero-art {
    position: relative;
    height: 230px;
    max-width: 440px;
    margin-left: auto;
}

.ir-hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ir-glass {
    position: absolute;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(150deg, rgba(120, 180, 255, 0.55), rgba(40, 110, 240, 0.25));
    box-shadow: 0 18px 40px rgba(2, 16, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    color: #fff;
}

.ir-glass-main {
    width: 150px;
    height: 190px;
    left: 50%;
    top: 0;
    transform: translateX(-40%) rotate(-4deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2;
}

.ir-page .ir-glass-main > i {
    font-size: 60px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.ir-glass-left {
    width: 120px;
    height: 120px;
    left: 4%;
    top: 46px;
    transform: rotate(-10deg);
    padding: 18px 16px;
    opacity: 0.9;
}

.ir-glass-right {
    width: 96px;
    height: 96px;
    right: 0;
    top: 34px;
    transform: rotate(8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    z-index: 1;
}

.ir-glass-bottom {
    width: 120px;
    height: 74px;
    left: 30%;
    bottom: 0;
    transform: rotate(-6deg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    z-index: 3;
}

.ir-glass-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

.ir-glass-lines span {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
}

.ir-glass-lines span:nth-child(2) { width: 80%; }
.ir-glass-lines span:nth-child(3) { width: 60%; }

.ir-glass-main .ir-glass-lines {
    width: 70%;
}

.ir-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 4;
}

.ir-orb-red {
    width: 26px;
    height: 26px;
    left: 30%;
    top: 4px;
    background: radial-gradient(circle at 35% 30%, #ff8a8a, #e01418 70%);
    box-shadow: 0 6px 14px rgba(224, 20, 24, 0.5);
}

.ir-orb-blue {
    width: 16px;
    height: 16px;
    left: 2%;
    top: 30px;
    background: radial-gradient(circle at 35% 30%, #8fc1ff, #1660e8 70%);
    box-shadow: 0 4px 10px rgba(22, 96, 232, 0.5);
}

/* ---------- Sub navigation ---------- */
.ir-subnav {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: var(--ir-surface);
    border-bottom: 1px solid var(--ir-border);
}

.ir-subnav-list {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ir-subnav-list::-webkit-scrollbar {
    display: none;
}

.ir-subnav-list a {
    position: relative;
    display: block;
    padding: 17px 10px 15px;
    white-space: nowrap;
    color: var(--ir-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.ir-subnav-list a:hover {
    color: var(--ir-heading);
}

.ir-subnav-list a.active {
    color: var(--ir-heading);
    font-weight: 700;
}

.ir-subnav-list a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ir-red);
}

/* ---------- Sections & type ---------- */
.ir-section {
    padding: 56px 0;
    color: var(--ir-text);
}

.ir-section-soft {
    background: var(--ir-soft);
}

.ir-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ir-heading);
    margin-bottom: 8px;
}

.ir-eyebrow::before,
.ir-mark::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--ir-red);
}

.ir-mark {
    display: block;
    margin-bottom: 4px;
}

.ir-mark::before {
    display: block;
}

.ir-heading {
    font-weight: 800;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ir-heading);
    margin-bottom: 8px;
}

.ir-heading-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ir-heading-bar::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 0.95em;
    border-radius: 2px;
    background: var(--ir-red);
}

.ir-lead {
    color: var(--ir-text);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 0;
}

.ir-title-sm {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ir-heading);
    margin-bottom: 6px;
}

.ir-subheading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ir-heading);
    margin-bottom: 4px;
}

.ir-subheading::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--ir-red);
}

.ir-muted {
    color: var(--ir-muted);
}

.ir-text {
    color: var(--ir-text);
}

.ir-strong {
    color: var(--ir-heading);
    font-weight: 700;
}

/* ---------- Buttons & links ---------- */
.ir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ir-btn-sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.85rem;
}

.ir-btn-red {
    background: var(--ir-red);
    color: #fff;
}

.ir-btn-red:hover,
.ir-btn-red:focus {
    background: var(--ir-red-dark);
    color: #fff;
}

.ir-btn-outline {
    background: var(--ir-surface);
    border-color: var(--ir-primary);
    color: var(--ir-primary);
}

.ir-btn-outline:hover,
.ir-btn-outline:focus {
    background: var(--ir-primary);
    color: #fff;
}

.ir-btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

.ir-btn-outline-light:hover,
.ir-btn-outline-light:focus {
    background: #fff;
    color: var(--ir-navy);
}

.ir-btn-block {
    width: 100%;
}

.ir-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.ir-link {
    color: var(--ir-primary);
    font-weight: 600;
}

.ir-link:hover,
.ir-link:focus {
    color: var(--ir-red);
}

.ir-link-u {
    color: var(--ir-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ir-link-u:hover {
    color: var(--ir-red);
}

.ir-sep {
    color: var(--ir-border);
    margin: 0 10px;
}

.ir-icon-btn {
    color: var(--ir-red);
    font-size: 1.15rem;
}

.ir-icon-btn:hover {
    color: var(--ir-red-dark);
}

/* ---------- Cards ---------- */
.ir-card {
    background: var(--ir-surface);
    border: 1px solid var(--ir-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--ir-shadow);
    color: var(--ir-text);
}

.row > [class*="col"] > .ir-card:only-child {
    height: 100%;
}

.ir-card-soft {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, #f2f7ff, #e3eefd);
    border-color: #d6e4fa;
}

[data-bs-theme="dark"] .ir-card-soft {
    background: linear-gradient(160deg, #18233a, #131c2e);
    border-color: var(--ir-border);
}

/* decorative chat bubbles in the corner of soft cards */
.ir-page i.ir-card-deco {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 54px;
    color: #9cc0f5;
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
}

.ir-card-deco::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

[data-bs-theme="dark"] .ir-card-deco::after {
    background: rgba(255, 255, 255, 0.04);
}

.ir-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ir-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(11, 29, 81, 0.1);
}

/* Icons */
.ir-icon-circle {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--ir-primary);
    background: radial-gradient(circle at 30% 25%, #ffffff, #dce9fc 75%);
    box-shadow: inset 0 0 0 1px #d4e3fa;
}

[data-bs-theme="dark"] .ir-icon-circle {
    background: var(--ir-soft-2);
    box-shadow: none;
}

.ir-icon-circle-sm {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.ir-icon-square {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(145deg, #a7c6f2, #6f9de0);
    box-shadow: 0 6px 14px rgba(42, 99, 196, 0.2);
}

.ir-page i.ir-icon-line {
    flex-shrink: 0;
    width: 40px;
    color: var(--ir-red);
    font-size: 30px;
    text-align: center;
}

.ir-step-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #a9c3ea;
}

[data-bs-theme="dark"] .ir-step-number {
    color: #4a6797;
}

/* Strategy columns divided by vertical rules */
.ir-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ir-step {
    display: flex;
    gap: 20px;
    padding: 8px 28px;
}

.ir-step:first-child {
    padding-left: 0;
}

.ir-step + .ir-step {
    border-left: 1px solid #c9daf2;
}

[data-bs-theme="dark"] .ir-step + .ir-step {
    border-left-color: var(--ir-border);
}

/* Chips */
.ir-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    background: var(--ir-soft-2);
    color: var(--ir-primary);
    white-space: nowrap;
}

.ir-chip-lg {
    padding: 6px 18px;
    font-size: 0.85rem;
}

.ir-note-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    background: var(--ir-soft-2);
    color: var(--ir-primary);
}

/* ---------- Document covers ---------- */
.ir-doc {
    display: flex;
    gap: 18px;
}

.ir-cover {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    height: 160px;
    border-radius: 4px;
    padding: 12px 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        linear-gradient(135deg, transparent 58%, rgba(239, 43, 45, 0.95) 58.5%, #a3131a 80%, transparent 80.5%),
        radial-gradient(circle at 105% 80%, rgba(50, 120, 255, 0.85) 0 26%, transparent 27%),
        linear-gradient(165deg, #071a4d 0%, #0a2668 60%, #0f3a9a 100%);
    box-shadow: 0 10px 22px rgba(7, 26, 77, 0.28);
}

.ir-cover img {
    width: 72px;
}

.ir-cover span {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 16px;
}

.ir-cover-lg {
    width: 156px;
    height: 236px;
    padding: 18px 16px;
}

.ir-cover-lg img {
    width: 110px;
}

.ir-cover-lg span {
    font-size: 1.15rem;
    margin: 0 0 auto;
    padding-top: 26px;
}

/* ---------- Filters ---------- */
.ir-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ir-tab {
    border: 1px solid var(--ir-border);
    background: var(--ir-surface);
    color: var(--ir-heading);
    border-radius: 6px;
    padding: 8px 22px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ir-tab:hover {
    border-color: var(--ir-primary);
}

.ir-tab.active {
    background: var(--ir-primary);
    border-color: var(--ir-primary);
    color: #fff;
}

.ir-tab-sm {
    padding: 4px 14px;
    font-size: 0.8rem;
}

.ir-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ir-filters .ir-search {
    flex: 1 1 320px;
}

.ir-filters .form-select {
    flex: 0 1 220px;
}

.ir-search {
    position: relative;
    margin: 0;
}

.ir-page .ir-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ir-heading);
}

.ir-search .form-control {
    padding-left: 46px;
}

.ir-filters .form-control,
.ir-filters .form-select {
    min-height: 44px;
    background-color: var(--ir-surface);
    border-color: var(--ir-border);
    color: var(--ir-text);
}

.ir-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--ir-primary);
    font-weight: 600;
    padding: 8px 10px;
}

.ir-page .ir-reset i {
    font-size: 1.15rem;
}

.ir-reset:hover {
    color: var(--ir-red);
}

.ir-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--ir-muted);
}

/* ---------- Tables ---------- */
.ir-table-wrap {
    background: var(--ir-surface);
    border: 1px solid var(--ir-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--ir-shadow);
}

.ir-table {
    width: 100%;
    margin: 0;
    color: var(--ir-text);
    border-collapse: collapse;
}

.ir-table th {
    background: var(--ir-soft-2);
    color: var(--ir-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 20px;
    white-space: nowrap;
    text-align: left;
}

.ir-table td {
    padding: 13px 20px;
    border-top: 1px solid var(--ir-border);
    vertical-align: middle;
}

.ir-table tbody tr:nth-child(even) {
    background: var(--ir-row-alt);
}

.ir-table tfoot td {
    background: var(--ir-soft-2);
    color: var(--ir-heading);
    font-weight: 700;
}

.ir-table .ir-doc-title {
    color: var(--ir-heading);
    font-weight: 600;
}

/* key/value table */
.ir-kv th {
    width: 32%;
    background: var(--ir-soft);
    border-top: 1px solid var(--ir-border);
    font-weight: 600;
    white-space: normal;
}

.ir-kv tr:first-child th,
.ir-kv tr:first-child td {
    border-top: 0;
}

.ir-kv tbody tr:nth-child(even) {
    background: transparent;
}

.ir-page i.ir-pdf {
    color: var(--ir-red);
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* ---------- Meta strip (date / time / place) ---------- */
.ir-meta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ir-meta {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 4px 22px;
}

.ir-meta:first-child {
    padding-left: 0;
}

.ir-meta + .ir-meta {
    border-left: 1px solid var(--ir-border);
}

.ir-page .ir-meta i {
    color: var(--ir-red);
    font-size: 1.7rem;
    margin-top: 2px;
}

.ir-meta small {
    display: block;
    color: var(--ir-text);
    font-size: 0.85rem;
}

.ir-meta strong {
    display: block;
    color: var(--ir-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ---------- Document list (RUPS) ---------- */
.ir-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ir-doc-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--ir-border);
}

.ir-doc-list .ir-doc-name {
    flex-grow: 1;
    min-width: 0;
    color: var(--ir-heading);
    font-weight: 500;
}

.ir-doc-list small {
    display: block;
    color: var(--ir-text);
    font-weight: 400;
}

/* ---------- Timeline (IPO schedule) ---------- */
.ir-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ir-timeline li {
    position: relative;
    padding: 0 0 14px 52px;
}

.ir-timeline li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid var(--ir-primary);
    background: var(--ir-surface);
    z-index: 1;
}

.ir-timeline li::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 22px;
    bottom: 0;
    border-left: 2px dotted #9db8e6;
}

.ir-timeline li:last-child::after {
    display: none;
}

.ir-timeline .ir-link-u {
    font-weight: 500;
}

.ir-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ir-split > div + div {
    border-left: 1px solid var(--ir-border);
    padding-left: 32px;
}

/* ---------- Stock ---------- */
.ir-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 22px;
}

.ir-stat small {
    display: block;
    color: var(--ir-text);
}

.ir-stat strong {
    color: var(--ir-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.ir-up {
    color: #12a150;
    font-weight: 600;
}

.ir-down {
    color: var(--ir-red);
    font-weight: 600;
}

.ir-chart-grid-wrap {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
}

.ir-chart-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--ir-text);
    text-align: right;
    line-height: 1;
}

.ir-chart-x {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 0 44px;
    font-size: 0.75rem;
    color: var(--ir-text);
}

.ir-chart {
    width: 100%;
    height: 200px;
    display: block;
}

.ir-chart-line {
    fill: none;
    stroke: #1f63e0;
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ir-chart-area {
    fill: url(#irChartGradient);
}

.ir-chart-grid {
    stroke: var(--ir-border);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
}

.ir-chart-axis {
    stroke: #9fb3d4;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

/* ---------- Article ---------- */
.ir-article p {
    line-height: 1.75;
    font-size: 1rem;
}

.ir-article h3 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ir-heading);
    margin: 30px 0 12px;
}

.ir-article ol {
    padding-left: 22px;
    margin-bottom: 0;
}

.ir-article ol li {
    padding: 2px 0;
}

.ir-article-title {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ir-border);
}

.ir-sticky {
    position: sticky;
    top: 140px;
}

.ir-attachment {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--ir-surface);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.ir-page .ir-attachment i.ir-pdf {
    font-size: 2.8rem;
}

/* ---------- Contact ---------- */
.ir-contact-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 24px;
}

.ir-contact-item .ir-strong {
    font-size: 1.05rem;
}

.ir-form .form-label {
    font-weight: 500;
    color: var(--ir-heading);
    margin-bottom: 6px;
}

.ir-form .required::after {
    content: " *";
    color: var(--ir-red);
}

.ir-form .form-control,
.ir-form .form-select {
    background-color: var(--ir-surface);
    border-color: var(--ir-border);
    color: var(--ir-text);
    min-height: 44px;
}

.ir-form .form-control:focus,
.ir-form .form-select:focus {
    border-color: var(--ir-primary);
}

.ir-form .form-check-input {
    border-color: #a8b7d0;
}

.ir-office {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.ir-office-info {
    display: flex;
    gap: 18px;
    padding: 28px;
}

.ir-office-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, #f7fbff 0%, #e6f0fd 100%);
}

[data-bs-theme="dark"] .ir-office-art {
    background: linear-gradient(180deg, #151d2c 0%, #1b2638 100%);
}

.ir-office-art svg {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}

/* ---------- CTA banner ---------- */
.ir-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 40px;
    border-radius: 12px;
    background:
        radial-gradient(ellipse 22% 80% at 100% 0%, rgba(239, 43, 45, 0.9), rgba(239, 43, 45, 0) 70%),
        radial-gradient(ellipse 40% 120% at 75% 100%, rgba(30, 100, 235, 0.55), rgba(30, 100, 235, 0) 70%),
        linear-gradient(110deg, #04153f 0%, #0a2a78 100%);
    box-shadow: 0 16px 40px rgba(6, 26, 74, 0.2);
}

.ir-cta h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin: 4px 0 6px;
}

.ir-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 640px;
}

.ir-cta .ir-eyebrow {
    color: #fff;
}

/* ---------- Pagination ---------- */
.ir-pager {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ir-pager button {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--ir-border);
    background: var(--ir-surface);
    color: var(--ir-heading);
    font-weight: 500;
}

.ir-pager button:hover:not([disabled]) {
    border-color: var(--ir-primary);
}

.ir-pager .active button {
    background: var(--ir-primary);
    border-color: var(--ir-primary);
    color: #fff;
}

.ir-pager button[disabled] {
    opacity: 0.45;
}

/* Bootstrap utilities such as .d-flex use !important; keep the hidden attribute authoritative */
.ir-page [hidden] {
    display: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .ir-hero {
        padding: 100px 0 36px;
    }

    .ir-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ir-step,
    .ir-step:first-child {
        padding: 0;
    }

    .ir-step + .ir-step {
        border-left: 0;
        border-top: 1px solid #c9daf2;
        padding-top: 24px;
    }

    .ir-sticky {
        position: static;
    }

    .ir-office {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ir-section {
        padding: 40px 0;
    }

    .ir-hero-subtitle {
        font-size: 1rem;
    }

    .ir-hero-actions .ir-btn {
        flex: 1 1 140px;
    }

    .ir-subnav-list {
        gap: 6px;
    }

    .ir-subnav-list a {
        padding: 14px 8px 12px;
        font-size: 0.9rem;
    }

    .ir-card {
        padding: 18px;
    }

    .ir-cta {
        padding: 24px;
    }

    .ir-cta .ir-btn {
        width: 100%;
    }

    .ir-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        /* bleed to the screen edge, matching the container gutter */
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5) 2px;
    }

    .ir-tabs::-webkit-scrollbar {
        display: none;
    }

    .ir-tab {
        flex-shrink: 0;
        padding: 8px 16px;
    }

    .ir-range {
        margin: 0;
        padding: 0;
    }

    .ir-filters .ir-search {
        flex-basis: 100%;
    }

    .ir-filters .form-select {
        flex: 1 1 140px;
    }

    .ir-meta-strip {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ir-meta,
    .ir-meta:first-child {
        padding: 0;
    }

    .ir-meta + .ir-meta {
        border-left: 0;
    }

    .ir-split {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ir-split > div + div {
        border-left: 0;
        padding-left: 0;
    }

    .ir-cover {
        width: 92px;
        height: 132px;
    }

    .ir-cover img {
        width: 60px;
    }

    .ir-cover span {
        font-size: 0.72rem;
    }

    .ir-cover-lg {
        width: 120px;
        height: 180px;
    }

    .ir-cover-lg span {
        font-size: 0.95rem;
    }

    .ir-contact-item {
        padding: 16px 18px;
        gap: 16px;
    }

    .ir-office-info {
        padding: 20px;
    }

    .ir-chart {
        height: 160px;
    }

    /* Archive tables become stacked cards */
    .ir-table-stack thead {
        display: none;
    }

    .ir-table-stack,
    .ir-table-stack tbody,
    .ir-table-stack tr,
    .ir-table-stack td {
        display: block;
        width: 100%;
    }

    .ir-table-stack tr {
        display: flex;
        flex-direction: column;
        padding: 14px 16px;
        border-top: 1px solid var(--ir-border);
    }

    .ir-table-stack tr[hidden] {
        display: none;
    }

    .ir-table-stack tbody tr:first-child {
        border-top: 0;
    }

    .ir-table-stack tbody tr:nth-child(even) {
        background: transparent;
    }

    .ir-table-stack td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border: 0;
        text-align: right;
    }

    .ir-table-stack td[data-label]::before {
        content: attr(data-label);
        color: var(--ir-muted);
        font-size: 0.85rem;
        text-align: left;
        flex-shrink: 0;
    }

    .ir-table-stack td.ir-td-main {
        order: -1;
        display: block;
        text-align: left;
        padding-bottom: 8px;
    }

    .ir-table-stack .ir-td-main .ir-doc-title {
        font-size: 1rem;
    }
}
