/* =========================================================
   WOI Recent Company Events V2
   ========================================================= */

.woi-company-events-panel,
.woi-company-events-panel * {
    box-sizing: border-box;
}

.woi-company-events-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;

    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(20, 184, 166, 0.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.09),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            rgba(11, 24, 39, 0.99),
            rgba(9, 17, 31, 0.99)
        );

    box-shadow:
        0 24px 56px rgba(2, 6, 23, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* Header */

.woi-company-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 17px 18px 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);

    background:
        linear-gradient(
            90deg,
            rgba(15, 37, 55, 0.82),
            rgba(10, 22, 38, 0.48)
        );
}

.woi-company-events-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woi-company-events-title-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 13px;

    color: #7dd3fc;
    font-size: 19px;
    font-weight: 1000;

    background:
        linear-gradient(
            145deg,
            rgba(14, 116, 144, 0.24),
            rgba(30, 64, 175, 0.15)
        );

    box-shadow:
        0 12px 28px rgba(14, 116, 144, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.woi-company-events-title-copy {
    min-width: 0;
}

.woi-company-events-title {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 1000;
    line-height: 1.2;
    letter-spacing: 0.015em;
}

.woi-company-events-subtitle {
    margin-top: 4px;
    color: rgba(203, 213, 225, 0.62);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.woi-company-events-header-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.woi-company-events-badge {
    min-height: 26px;
    padding: 5px 9px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    border-radius: 999px;
    font-size: 9px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.woi-company-events-badge--verified {
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(6, 182, 212, 0.10);
}

.woi-company-events-badge--count {
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(124, 58, 237, 0.10);
}

.woi-company-events-badge-icon {
    font-size: 10px;
}

.woi-company-events-latest {
    min-height: 26px;
    padding: 5px 9px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 999px;

    color: rgba(226, 232, 240, 0.82);
    background: rgba(15, 23, 42, 0.40);

    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.woi-company-events-latest-label {
    color: rgba(148, 163, 184, 0.62);
    font-weight: 700;
}

/* Grid */

.woi-company-events-grid {
    display: grid;
    gap: 12px;
    align-items: stretch;
    padding: 16px;
}

.woi-company-events-grid--1 {
    grid-template-columns: minmax(0, 1fr);
}

.woi-company-events-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.woi-company-events-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Event card */

.woi-company-event-card {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;

    display: grid;
    grid-template-columns: 58px 42px minmax(0, 1fr);
    align-items: start;
    gap: 13px;

    padding: 16px 16px 15px 19px;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.055),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(15, 29, 49, 0.98),
            rgba(11, 21, 37, 0.99)
        );

    box-shadow:
        0 16px 32px rgba(2, 6, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        transform 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease,
        background 170ms ease;
}

.woi-company-event-card:hover {
    transform: translateY(-2px);

    border-color: rgba(96, 165, 250, 0.28);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.09),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(17, 33, 55, 0.99),
            rgba(12, 23, 41, 0.99)
        );

    box-shadow:
        0 22px 42px rgba(2, 6, 23, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.woi-company-event-accent {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;

    width: 3px;
    border-radius: 0 999px 999px 0;
    opacity: 0.92;
}

/* Timeline date */

.woi-company-event-date {
    position: relative;
    min-height: 72px;
    padding: 9px 5px 13px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(3, 10, 25, 0.80),
            rgba(6, 15, 29, 0.58)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.woi-company-event-date::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;

    width: 1px;
    height: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(148, 163, 184, 0.42),
            transparent
        );
}

.woi-company-event-date-month {
    color: rgba(203, 213, 225, 0.74);
    font-size: 10px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0.09em;
}

.woi-company-event-date-day {
    margin-top: 5px;
    color: #f8fafc;
    font-size: 21px;
    font-weight: 1000;
    line-height: 1;
}

.woi-company-event-date-year {
    margin-top: 5px;
    color: rgba(148, 163, 184, 0.52);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.woi-company-event-date-node {
    position: absolute;
    bottom: -23px;
    left: 50%;

    width: 7px;
    height: 7px;

    border: 2px solid rgba(2, 6, 23, 0.96);
    border-radius: 999px;

    transform: translateX(-50%);
}

/* Category icon */

.woi-company-event-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid;
    border-radius: 13px;

    font-size: 18px;
    font-weight: 1000;
}

/* Content */

.woi-company-event-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.woi-company-event-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.woi-company-event-category {
    font-size: 11px;
    font-weight: 1000;
    line-height: 1.25;
    letter-spacing: 0.045em;
}

.woi-company-event-headline {
    margin-top: 8px;

    color: #f8fafc;
    font-size: 15px;
    font-weight: 1000;
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.woi-company-event-details {
    margin-top: 8px;

    color: rgba(226, 232, 240, 0.86);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

.woi-company-event-summary {
    cursor: pointer;
    list-style: none;
    outline: none;
}

.woi-company-event-summary::-webkit-details-marker {
    display: none;
}

.woi-company-event-toggle {
    display: inline-flex;
    align-items: center;

    margin-left: 5px;

    color: #7dd3fc;
    font-size: 11px;
    font-weight: 1000;
    white-space: nowrap;
}

.woi-company-event-toggle::after {
    content: "Read more  ›";
}

.woi-company-event-details[open]
    > .woi-company-event-summary
    .woi-company-event-preview {
    display: none;
}

.woi-company-event-details[open]
    > .woi-company-event-summary
    .woi-company-event-toggle {
    display: block;
    margin: 0 0 7px;
}

.woi-company-event-details[open]
    > .woi-company-event-summary
    .woi-company-event-toggle::after {
    content: "Show less  ⌃";
}

.woi-company-event-full {
    margin-top: 0;
    color: rgba(226, 232, 240, 0.90);
}

/* Filing footer */

.woi-company-event-footer {
    margin-top: auto;
    padding-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.woi-company-event-filing-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: rgba(148, 163, 184, 0.70);
    font-size: 10px;
    font-weight: 800;
}

.woi-company-event-footer-icon {
    color: rgba(125, 211, 252, 0.66);
}

.woi-company-event-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 8px;

    border: 1px solid rgba(56, 189, 248, 0.17);
    border-radius: 999px;

    color: #93c5fd;
    background: rgba(14, 116, 144, 0.07);

    font-size: 10px;
    font-weight: 1000;
    line-height: 1;
    text-decoration: none;

    transition:
        color 150ms ease,
        border-color 150ms ease,
        background 150ms ease;
}

a.woi-company-event-source-link:hover {
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(14, 116, 144, 0.14);
}

.woi-company-event-source-link--inactive {
    opacity: 0.70;
}

.woi-company-event-link-arrow {
    font-size: 10px;
}

/* Responsive */

@media (max-width: 1180px) {
    .woi-company-events-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woi-company-events-grid--3
        .woi-company-event-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .woi-company-events-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .woi-company-events-header-meta {
        justify-content: flex-start;
    }

    .woi-company-events-grid--2,
    .woi-company-events-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .woi-company-events-grid--3
        .woi-company-event-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .woi-company-events-header {
        padding: 14px;
    }

    .woi-company-events-title-icon {
        width: 38px;
        height: 38px;
    }

    .woi-company-events-title {
        font-size: 14px;
    }

    .woi-company-events-subtitle {
        font-size: 10px;
    }

    .woi-company-events-grid {
        padding: 12px;
    }

    .woi-company-event-card {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 11px;
        padding: 14px 13px 13px 16px;
    }

    .woi-company-event-date {
        grid-row: 1 / span 2;
        min-height: 67px;
    }

    .woi-company-event-icon {
        display: none;
    }

    .woi-company-event-content {
        grid-column: 2;
    }

    .woi-company-event-headline {
        font-size: 14px;
    }

    .woi-company-event-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Recent Company Events — canonical category presentation
   Single final category layer
   ========================================================= */

.woi-company-event-card {
    --event-color: #60a5fa;
    --event-surface: #10294a;
    --event-border: #3b82f6;
}

/* Category identity */

.woi-company-event-category {
    color: var(--event-color) !important;
    text-shadow: none !important;
    filter: none !important;
}

.woi-company-event-accent {
    width: 4px !important;
    opacity: 1 !important;
    background: var(--event-color) !important;
    box-shadow: none !important;
}

/* Fully opaque category icon */

.woi-company-event-icon {
    position: relative;
    isolation: isolate;

    color: var(--event-color) !important;
    background: var(--event-surface) !important;

    border: 2px solid var(--event-border) !important;

    font-size: 19px !important;
    text-shadow: none !important;
    filter: none !important;

    box-shadow:
        0 8px 18px rgba(2, 6, 23, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.woi-company-event-icon::before {
    content: none !important;
}

/* Neutral date surface */

.woi-company-event-date {
    color: #f8fafc;
    background: #09172a !important;
    border: 1px solid #29415a !important;

    box-shadow:
        0 8px 18px rgba(2, 6, 23, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.woi-company-event-date::after {
    width: 2px !important;
    background: #344c65 !important;
}

/* Category-colored timeline marker */

.woi-company-event-date-node {
    width: 9px !important;
    height: 9px !important;

    color: var(--event-color) !important;
    background: var(--event-color) !important;

    border: 2px solid #071321 !important;

    box-shadow:
        0 0 0 1px var(--event-color),
        0 0 7px var(--event-color) !important;
}

/* Importance badges */

.woi-company-event-meta > span {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.woi-company-event-meta > span[style*="#fb7185"],
.woi-company-event-meta > span[style*="#ef4444"] {
    color: #ff7b7b !important;
    background: #351116 !important;
    border-color: #d53845 !important;
}

.woi-company-event-meta > span[style*="#fbbf24"] {
    color: #ffe05e !important;
    background: #302607 !important;
    border-color: #c69612 !important;
}

/* Neutral source action */

.woi-company-event-source-link {
    color: #b3c7d8 !important;
    background: #0c1d2d !important;
    border-color: #2b465d !important;
    box-shadow: none !important;
}

.woi-company-event-source-link--inactive {
    opacity: 0.82 !important;
}

/* Header badges */

.woi-company-events-badge--verified {
    color: #8cecf4 !important;
    background: #082832 !important;
    border-color: #168198 !important;
}

.woi-company-events-badge--count {
    color: #d8caff !important;
    background: #21163d !important;
    border-color: #674cb0 !important;
}

.woi-company-events-latest {
    background: #0c1b2b !important;
    border-color: #2a4055 !important;
}


/* =========================================================
   WOI Company Events – Final polish
   ========================================================= */

/* Stronger category accent */
.woi-company-event-accent{
    width:6px !important;
}

/* Bigger premium icon */
.woi-company-event-icon{
    width:48px !important;
    height:48px !important;
    font-size:20px !important;
    border-width:2px !important;
}

/* Bigger date spacing because icon grew */
.woi-company-event-card{
    grid-template-columns:64px 48px minmax(0,1fr) !important;
    gap:16px !important;
}

/* Category-colored badges */
.woi-company-event-meta > span{
    color:var(--event-color) !important;
    background:color-mix(in srgb,var(--event-color) 14%, #111827) !important;
    border:1px solid var(--event-border) !important;
}


/* =========================================================
   WOI Company Events – Final polish
   ========================================================= */

/* Stronger category accent */
.woi-company-event-accent{
    width:6px !important;
}

/* Bigger premium icon */
.woi-company-event-icon{
    width:48px !important;
    height:48px !important;
    font-size:20px !important;
    border-width:2px !important;
}

/* Bigger date spacing because icon grew */
.woi-company-event-card{
    grid-template-columns:64px 48px minmax(0,1fr) !important;
    gap:16px !important;
}

/* Category-colored badges */
.woi-company-event-meta > span{
    color:var(--event-color) !important;
    background:color-mix(in srgb,var(--event-color) 14%, #111827) !important;
    border:1px solid var(--event-border) !important;
}


/* =========================================================
   Mobile Company Events compact layout
   Must remain after final-polish !important rules.
   ========================================================= */

@media (max-width: 560px) {
    .woi-company-event-card {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 10px !important;
        padding: 12px 12px 12px 15px !important;
        min-height: 0 !important;
    }

    .woi-company-event-date {
        grid-column: 1 !important;
        grid-row: 1 / span 3 !important;
        width: 56px !important;
        min-width: 56px !important;
        min-height: 64px !important;
        align-self: start !important;
    }

    .woi-company-event-icon {
        display: none !important;
    }

    .woi-company-event-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .woi-company-event-meta {
        min-width: 0 !important;
        gap: 6px !important;
        margin-bottom: 7px !important;
    }

    .woi-company-event-category {
        min-width: 0 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .woi-company-event-headline {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;

        margin-bottom: 7px !important;
        min-width: 0 !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .woi-company-event-details {
        min-width: 0 !important;
    }

    .woi-company-event-preview,
    .woi-company-event-full {
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .woi-company-event-preview {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        line-height: 1.4 !important;
    }

    .woi-company-event-footer {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 10px !important;
        min-width: 0 !important;
    }

    .woi-company-event-filing-type {
        white-space: nowrap !important;
    }

    .woi-company-event-source-link {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}
