/* Public company profile layout & components */
.company-profile {
    padding-bottom: 2rem;
}

.cp-panel {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .cp-panel {
        padding: 1.5rem;
    }
}

.cp-panel--flush {
    padding: 0;
    overflow: hidden;
}

.cp-tv-financials-wrap {
    margin: 0 -0.5rem;
}

@media (min-width: 768px) {
    .cp-tv-financials-wrap {
        margin: 0;
        background: #ffffff;
        border: 1px solid #e6e8ec;
        border-radius: 14px;
        overflow: hidden;
    }
}

.cp-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cp-panel-title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: #14181f;
    margin-bottom: 0;
}

.cp-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.cp-section-link:hover {
    text-decoration: underline;
}

.cp-green-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(0, 121, 107, 0.55);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.cp-green-link:hover {
    color: #005a50;
    text-decoration-color: #005a50;
}

.cp-news-cta {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.cp-panel-footer {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid #eef0f3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
}

.cp-modal-article {
    background: #f8f9fb;
    border: 1px solid #e6e8ec;
    border-left: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

/* Performance 2x2 tiles inside the hero snapshot panel */
.cp-perf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.cp-perf-tile {
    background: #f8f9fb;
    border: 1px solid #eceef2;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.cp-perf-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.cp-perf-value {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

/* Compact 12M range bar */
.cp-range {
    margin-top: 1.125rem;
    padding-top: 1rem;
    border-top: 1px solid #eef0f3;
}

.cp-range-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e9ecef;
    margin: 0.45rem 0;
}

.cp-range-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color);
}

.cp-range-dot {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 121, 107, 0.35);
    transform: translate(-50%, -50%);
}

.cp-range-summary {
    margin-top: 0.55rem;
    font-size: 0.825rem;
    color: #5f666c;
}

.cp-help-icon {
    color: #8c959f;
    cursor: pointer;
    transition: color 0.15s ease;
}

.cp-help-icon:hover,
.cp-help-icon:focus {
    color: var(--primary-color);
}

.cp-blur-value {
    display: inline-block;
    filter: blur(5px);
    opacity: 0.72;
    user-select: none;
    pointer-events: none;
}

.cp-metrics-hook {
    margin-top: 1.15rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    background: rgba(0, 121, 107, 0.06);
    border: 1px solid rgba(0, 121, 107, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

/* Compact key-value rows */
.cp-kv-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    border-top: 1px solid #eef0f3;
}

.cp-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.875rem;
}

.cp-kv-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cp-kv-label {
    color: #5f666c;
    min-width: 0;
}

.cp-kv-value {
    font-weight: 700;
    color: #14181f;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Soft semantic badges */
.cp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.cp-pill--up {
    background: #e6f4ea;
    color: #137333;
}

.cp-pill--down {
    background: #fce8e6;
    color: #c5221f;
}

.cp-pill--neutral {
    background: #f1f3f5;
    color: #495057;
}

.cp-pill--teal {
    background: rgba(0, 121, 107, 0.1);
    color: var(--primary-color);
}

.cp-pill--warn {
    background: #fff3cd;
    color: #856404;
}

/* News list */
.cp-news-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid #eef0f3;
}

.cp-news-list li:first-child {
    padding-top: 0;
}

.cp-news-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cp-news-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.2rem;
}

.cp-news-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: #14181f;
    margin-bottom: 0.25rem;
}

.cp-news-lead {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #5f666c;
    margin-bottom: 0;
}

.cp-news-footer {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #eef0f3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #5f666c;
}

/* Dividends & events side list */
.cp-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-side-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eef0f3;
}

.cp-side-item-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.cp-side-item-text {
    min-width: 0;
    flex: 1 1 auto;
}

.cp-side-item-title {
    font-weight: 600;
    line-height: 1.35;
    color: #14181f;
    overflow-wrap: anywhere;
}

.cp-side-item:first-child {
    padding-top: 0;
}

.cp-side-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cp-div-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #14181f;
    font-variant-numeric: tabular-nums;
}

.cp-div-upcoming {
    background: rgba(0, 121, 107, 0.06);
    border: 1px solid rgba(0, 121, 107, 0.24);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.9rem;
}

.cp-div-upcoming-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.cp-div-upcoming-amount {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #14181f;
    font-variant-numeric: tabular-nums;
}

.cp-div-upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #5f666c;
    font-variant-numeric: tabular-nums;
}

.cp-side-note {
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #eef0f3;
    font-size: 0.825rem;
    color: #6c757d;
}

.cp-event-datebox {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0, 121, 107, 0.08);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1.1;
}

.cp-event-datebox--muted {
    background: #f3f5f7;
    color: #495057;
}

.cp-event-day {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cp-event-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Single premium showcase ("people buy with their eyes") */
.cp-showcase {
    background: #004d46;
    color: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    overflow: hidden;
}

@media (min-width: 992px) {
    .cp-showcase {
        padding: 2.5rem;
    }
}

.cp-showcase-kicker {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #b2dfdb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.cp-showcase-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cp-showcase-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.25rem;
}

.cp-showcase-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.cp-showcase-points li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.94);
}

.cp-showcase-points i {
    color: var(--accent-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cp-showcase-point--soon {
    color: rgba(255, 255, 255, 0.78);
}

.cp-showcase-point--soon i {
    color: rgba(255, 255, 255, 0.55);
}

.cp-showcase-soon {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #b2dfdb;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.cp-showcase-note {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0.75rem 0 0;
}

.cp-browser-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cp-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    background: #f1f3f5;
    border-bottom: 1px solid #e2e6ea;
}

.cp-browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ced4da;
}

.cp-browser-url {
    margin-left: 0.5rem;
    padding: 0.15rem 0.65rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    color: #5f666c;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Technical indicators subgroup heading */
.cp-subgroup-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cp-about-body {
    max-width: 78ch;
    line-height: 1.65;
    color: #3e3d3d;
}

.cp-index-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.cp-index-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f3f5f7;
    border: 1px solid #e6e8ec;
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
}

/* Related & recently visited */
.cp-recent-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e6e8ec;
    text-decoration: none;
    color: #14181f;
    font-size: 0.85rem;
    font-weight: 700;
    transition: border-color 0.15s ease;
}

.cp-recent-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cp-related-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e6e8ec;
    text-decoration: none;
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-related-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cp-related-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f8f9fb;
    border: 1px solid #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.cp-related-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
