:root {
    /* Surfaces */
    --desktop-bg: #f3f6f4;
    --desktop-surface: #ffffff;
    --desktop-surface-soft: #f7faf8;

    /* Text */
    --desktop-text: #1a211f;
    --desktop-muted: #5f6b66;
    --desktop-muted-soft: #6d7772;
    --desktop-on-dark: #ffffff;

    /* Brand green */
    --desktop-green: #00a86b;
    --desktop-green-hover: #08764f;
    --desktop-green-dark: var(--desktop-green-hover);
    --desktop-green-soft: #e7f6ef;

    /* Gold accent */
    --desktop-gold: #9d6c11;
    --desktop-gold-accent: #c4922b;
    --desktop-gold-soft: #fff7e5;

    /* Status */
    --desktop-blue: #3f6b9d;
    --desktop-blue-soft: #edf3fb;
    --desktop-red: #b33a3a;
    --desktop-red-soft: #fff0f0;

    /* Borders */
    --desktop-border: #dde4e0;
    --desktop-border-strong: #c5cec9;
    --desktop-border-subtle: #e8eeea;

    /* Radius */
    --desktop-radius-sm: 10px;
    --desktop-radius-md: 14px;
    --desktop-radius-card: var(--desktop-radius-md);
    --desktop-radius-lg: var(--desktop-radius-card);
    --desktop-radius-pill: 999px;
    --desktop-radius-badge: var(--desktop-radius-pill);

    /* Panels */
    --desktop-panel-tint: color-mix(in srgb, var(--desktop-green-soft) 38%, var(--desktop-surface));

    /* Shadow / focus */
    --desktop-shadow: 0 2px 8px rgba(31, 45, 39, 0.05);
    --desktop-shadow-soft: var(--desktop-shadow);
    --desktop-focus-ring: 0 0 0 3px rgba(0, 168, 107, 0.22);

    /* Layout */
    --desktop-max: 1360px;
    --desktop-header-h: 68px;

    /* Spacing scale */
    --desktop-space-1: 4px;
    --desktop-space-2: 8px;
    --desktop-space-3: 12px;
    --desktop-space-4: 16px;
    --desktop-space-5: 20px;
    --desktop-space-6: 24px;
    --desktop-space-7: 32px;
    --desktop-space-8: 48px;
    --desktop-pad: var(--desktop-space-5);

    /* Motion */
    --desktop-ease: ease;
    --desktop-duration: 160ms;
    --desktop-duration-fast: 120ms;
    --desktop-duration-slow: 200ms;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--desktop-bg);
}

body {
    margin: 0;
    background: var(--desktop-bg);
    color: var(--desktop-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ── Interaction + a11y foundation ──────────────────── */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 2px;
}

.desktop-brand,
.desktop-nav a,
.desktop-search-row,
.desktop-search-input,
.desktop-search-button,
.desktop-filter,
.desktop-card-title a,
.desktop-trend-more,
.desktop-read-more,
.desktop-sidebar-item,
.desktop-company-chip,
.desktop-page-button:not(.is-disabled) {
    transition-property: color, background-color, border-color, box-shadow, text-decoration-color, transform, gap, opacity;
    transition-duration: var(--desktop-duration);
    transition-timing-function: var(--desktop-ease);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html,
body {
    min-width: 1100px;
    overflow-x: auto;
}

.desktop-shell {
    width: min(calc(100% - var(--desktop-space-8)), var(--desktop-max));
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────── */

.desktop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--desktop-header-h);
    background: color-mix(in srgb, var(--desktop-surface) 92%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--desktop-border);
}

.desktop-header-inner {
    min-height: var(--desktop-header-h);
    display: flex;
    align-items: center;
    gap: var(--desktop-space-6);
    padding: var(--desktop-space-2) 0;
}

.desktop-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    border-radius: var(--desktop-radius-sm);
}

.desktop-brand:hover {
    color: var(--desktop-green-hover);
}

.desktop-brand:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
}

.desktop-brand img {
    width: 32px;
    height:  32px;
    object-fit: contain;
}



/* StockBayan desktop wordmark */
.desktop-brand > span {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    line-height: 1;
}

.desktop-brand > span::before,
.desktop-brand > span::after {
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.desktop-brand > span::before {
    content: "Stock";
    color: var(--desktop-green);
}

.desktop-brand > span::after {
    content: "Bayan";
    color: var(--desktop-text);
}

.desktop-brand:hover > span::before {
    color: var(--desktop-green-hover);
}

.desktop-brand:hover > span::after {
    color: var(--desktop-text);
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--desktop-space-1);
    color: var(--desktop-muted);
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--desktop-radius-sm);
    white-space: nowrap;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--desktop-text);
    background: var(--desktop-surface-soft);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.desktop-nav a:active {
    background: var(--desktop-green-soft);
    transform: translateY(1px);
}

.desktop-nav a.is-active,
.desktop-nav a[aria-current="page"] {
    color: var(--desktop-text);
    background: var(--desktop-green-soft);
    font-weight: 700;
}

.desktop-nav a.is-active::after,
.desktop-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: var(--desktop-radius-pill);
    background: var(--desktop-green);
}

.desktop-nav a:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 2px;
}

.desktop-header-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--desktop-space-2);
    padding: 7px 12px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-pill);
    background: var(--desktop-surface);
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.desktop-status-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--desktop-radius-pill);
    background: var(--desktop-green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--desktop-green) 14%, transparent);
    flex-shrink: 0;
}

/* ── Hero band ──────────────────────────────────────── */

.desktop-hero {
    padding: var(--desktop-space-5) 0 var(--desktop-space-3);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--desktop-green-soft) 65%, transparent) 0%,
            color-mix(in srgb, var(--desktop-green-soft) 28%, transparent) 55%,
            transparent 100%
        );
}

.desktop-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: var(--desktop-space-4) var(--desktop-space-6);
    align-items: center;
}

.desktop-hero-copy-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.desktop-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: var(--desktop-space-2);
    padding: 4px 9px;
    border-radius: var(--desktop-radius-badge);
    background: var(--desktop-green-soft);
    color: var(--desktop-green-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.desktop-hero h1 {
    max-width: 22ch;
    margin: var(--desktop-space-2) 0 var(--desktop-space-2);
    font-size: clamp(2.5rem, 3.2vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}



/* Hero emphasis */
.desktop-hero-highlight {
    color: var(--desktop-green);
}
.desktop-hero-copy {
    max-width: 34rem;
    margin: 0;
    color: var(--desktop-muted);
    font-size: 14px;
    line-height: 1.55;
}

.desktop-hero-visual-panel {
    min-width: 0;
}

.desktop-hero-search-wrap {
    margin-top: var(--desktop-space-3);
}

.desktop-hero-visual {
    position: relative;
    height: 230px;
    overflow: hidden;
    padding: 7px;
    border: 1px solid rgba(19, 46, 39, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(231, 246, 239, 0.62)
        );
    box-shadow:
        0 12px 30px rgba(20, 45, 38, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.desktop-hero-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 77% center;
    border-radius: 13px;
    transform: scale(0.965);
    filter: saturate(0.93) contrast(0.98) brightness(1.02);
}

.desktop-hero-visual::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 13px;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(240, 249, 245, 0.22) 0%,
            rgba(240, 249, 245, 0.03) 38%,
            rgba(240, 249, 245, 0.02) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0) 68%,
            rgba(231, 246, 239, 0.10) 100%
        );
    box-shadow: inset 0 0 24px rgba(238, 249, 244, 0.18);
}

.desktop-search-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-self: center;
}

.desktop-search-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--desktop-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.desktop-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--desktop-space-2);
    padding: 4px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: color-mix(in srgb, var(--desktop-surface) 88%, transparent);
    transition:
        border-color var(--desktop-duration) var(--desktop-ease),
        box-shadow var(--desktop-duration) var(--desktop-ease),
        background var(--desktop-duration) var(--desktop-ease);
}

.desktop-search-row:hover {
    border-color: var(--desktop-border-strong);
}

.desktop-search-row:focus-within {
    border-color: var(--desktop-green);
    background: var(--desktop-surface);
    box-shadow: var(--desktop-focus-ring);
}

.desktop-search-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: var(--desktop-radius-sm);
    background: transparent;
    padding: 0 12px;
    color: var(--desktop-text);
    outline: none;
}

.desktop-search-input:hover {
    background: color-mix(in srgb, var(--desktop-surface-soft) 80%, transparent);
}

.desktop-search-input:focus,
.desktop-search-input:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.desktop-search-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--desktop-surface-soft);
}

.desktop-search-button {
    min-width: 96px;
    min-height: 44px;
    border: 0;
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-text);
    color: var(--desktop-on-dark);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.desktop-search-button:hover {
    background: var(--desktop-green-hover);
    box-shadow: var(--desktop-shadow);
}

.desktop-search-button:active {
    transform: translateY(1px);
    box-shadow: none;
}

.desktop-search-button:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
}

.desktop-search-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--desktop-muted);
}

/* ── Stats ──────────────────────────────────────────── */

.desktop-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--desktop-space-3);
    margin-top: var(--desktop-space-5);
}

.desktop-stat {
    padding: var(--desktop-space-3) var(--desktop-space-4);
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.desktop-stat-value {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.desktop-stat-label {
    margin-top: 6px;
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 500;
}

/* ── Toolbar / filters ──────────────────────────────── */

.desktop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-4);
    margin-top: var(--desktop-space-3);
    margin-bottom: var(--desktop-space-2);
}

.desktop-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--desktop-space-2);
    align-items: center;
}

.desktop-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--desktop-border-subtle);
    border-radius: var(--desktop-radius-badge);
    background: color-mix(in srgb, var(--desktop-surface) 92%, var(--desktop-bg));
    color: var(--desktop-muted-soft);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.desktop-filter:hover {
    border-color: var(--desktop-border-strong);
    color: var(--desktop-text);
    background: var(--desktop-surface-soft);
    box-shadow: inset 0 -2px 0 var(--desktop-green);
}

.desktop-filter:active {
    transform: translateY(1px);
    background: var(--desktop-green-soft);
}

.desktop-filter.is-active,
.desktop-filter[aria-current="page"] {
    border-color: var(--desktop-text);
    background: var(--desktop-text);
    color: var(--desktop-on-dark);
    box-shadow: none;
    font-weight: 700;
}

.desktop-filter.is-active:hover,
.desktop-filter[aria-current="page"]:hover {
    background: var(--desktop-green-hover);
    border-color: var(--desktop-green-hover);
    color: var(--desktop-on-dark);
    box-shadow: none;
}

.desktop-filter:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
}

.desktop-result-count {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: var(--desktop-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Main grid ──────────────────────────────────────── */

.desktop-content {
    padding: 0 0 calc(var(--desktop-space-8) + var(--desktop-space-4));
}

.desktop-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: var(--desktop-space-6);
    align-items: start;
}

.desktop-feed {
    display: grid;
    gap: var(--desktop-space-4);
    min-width: 0;
}

/* ── Disclosure cards ───────────────────────────────── */

.desktop-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
    box-shadow: none;
    transition:
        border-color var(--desktop-duration) var(--desktop-ease),
        box-shadow var(--desktop-duration) var(--desktop-ease);
}

.desktop-card:hover {
    border-color: var(--desktop-border-strong);
}

.desktop-card:focus-within {
    border-color: color-mix(in srgb, var(--desktop-green) 45%, var(--desktop-border));
    box-shadow: var(--desktop-focus-ring);
}

.desktop-card-accent {
    height: 2px;
    background: var(--desktop-green);
}

.desktop-card.quarterly .desktop-card-accent {
    background: var(--desktop-blue);
}

.desktop-card.dividend .desktop-card-accent {
    background: var(--desktop-gold-accent);
}

.desktop-card-inner {
    padding: var(--desktop-space-5) var(--desktop-space-6) var(--desktop-space-4);
}

.desktop-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-3) var(--desktop-space-5);
}

.desktop-company {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.desktop-company > div:last-child {
    min-width: 0;
}

.desktop-company-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-surface-soft);
    color: var(--desktop-text);
    font-size: 11px;
    font-weight: 600;
}

.desktop-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.desktop-company-symbol {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.desktop-company-name {
    margin-top: 1px;
    color: var(--desktop-muted);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: min(380px, 100%);
}

.desktop-card-meta {
    display: flex;
    align-items: center;
    gap: var(--desktop-space-2);
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.desktop-type-badge,
.desktop-impact-badge,
.desktop-sentiment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: var(--desktop-radius-badge);
    font-size: 11px;
    font-weight: 600;
}

.desktop-type-badge.press {
    background: var(--desktop-green-soft);
    color: var(--desktop-green-dark);
}

.desktop-type-badge.quarterly {
    background: var(--desktop-blue-soft);
    color: var(--desktop-blue);
}

.desktop-type-badge.dividend {
    background: var(--desktop-gold-soft);
    color: var(--desktop-gold);
}

.desktop-card-time {
    color: var(--desktop-muted-soft);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.desktop-card-title {
    margin: var(--desktop-space-4) 0 var(--desktop-space-2);
    font-size: clamp(1.125rem, 1.9vw, 1.5rem);
    line-height: 1.28;
    letter-spacing: -0.03em;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 40rem;
}

.desktop-card-title a {
    color: var(--desktop-text);
    border-radius: 2px;
}

.desktop-card-title a:hover {
    color: var(--desktop-green-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.desktop-card-title a:active {
    color: var(--desktop-green-dark);
}

.desktop-card-title a:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
}

.desktop-card-summary {
    margin: 0;
    max-width: 42rem;
    color: var(--desktop-muted);
    font-size: 15px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desktop-signal-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.desktop-impact-badge {
    background: var(--desktop-surface-soft);
    color: var(--desktop-text);
}

.desktop-sentiment-badge.positive {
    background: var(--desktop-green-soft);
    color: var(--desktop-green-dark);
}

.desktop-sentiment-badge.neutral {
    background: var(--desktop-surface-soft);
    color: var(--desktop-muted);
}

.desktop-sentiment-badge.negative {
    background: var(--desktop-red-soft);
    color: var(--desktop-red);
}

.desktop-card-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(0, 35%);
    gap: var(--desktop-space-3) var(--desktop-space-4);
    align-items: stretch;
    margin-top: var(--desktop-space-4);
    padding-top: var(--desktop-space-4);
    border-top: 1px solid var(--desktop-border-subtle);
}

.desktop-card-body-grid:has(.desktop-facts:only-child),
.desktop-card-body-grid:has(.desktop-trend:only-child) {
    grid-template-columns: 1fr;
}

.desktop-facts,
.desktop-trend {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--desktop-border-subtle);
    border-radius: var(--desktop-radius-sm);
    padding: var(--desktop-space-3) var(--desktop-space-3);
    min-width: 0;
    min-height: 0;
}

.desktop-facts {
    background: var(--desktop-panel-tint);
    border-color: color-mix(in srgb, var(--desktop-green) 12%, var(--desktop-border-subtle));
}

.desktop-trend {
    background: var(--desktop-surface);
    border-color: var(--desktop-border);
}

.desktop-block-label {
    margin-bottom: 10px;
    color: var(--desktop-muted-soft);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.desktop-facts ul {
    margin: 0;
    padding-left: 1.1em;
    color: var(--desktop-text);
    font-size: 14px;
    line-height: 1.5;
}

.desktop-facts li + li {
    margin-top: 10px;
}

.desktop-trend-badge {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--desktop-green-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.desktop-trend-text {
    color: var(--desktop-muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desktop-trend-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 32px;
    margin-top: auto;
    padding: 4px 6px;
    border-radius: var(--desktop-radius-sm);
    color: var(--desktop-green-dark);
    font-size: 12px;
    font-weight: 600;
}

.desktop-trend-more:hover {
    color: var(--desktop-green-hover);
    background: var(--desktop-green-soft);
    text-decoration: none;
}

.desktop-trend-more:active {
    transform: translateY(1px);}

.desktop-trend-more:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 2px;
}

.desktop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--desktop-border-subtle);
}

.desktop-price {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 500;
}

.desktop-price strong {
    color: var(--desktop-text);
    font-size: 13px;
    font-weight: 700;
}

.desktop-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px;
    margin: -4px -8px -4px 0;
    border-radius: var(--desktop-radius-sm);
    background: transparent;
    color: var(--desktop-green-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.desktop-read-more:hover {
    color: var(--desktop-green-hover);
    gap: 9px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.desktop-read-more:active {
    transform: translateY(1px);
    gap: 6px;
}

.desktop-read-more:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
    background: var(--desktop-green-soft);
}

/* ── Sidebar ────────────────────────────────────────── */

.desktop-sidebar {
    position: sticky;
    top: calc(var(--desktop-header-h) + var(--desktop-space-4));
    display: grid;
    gap: var(--desktop-space-3);
    align-self: start;
    min-width: 0;
}

.desktop-sidebar-card {
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
    padding: var(--desktop-space-4);
    box-shadow: none;
    min-width: 0;
}

.desktop-sidebar-title {
    margin: 0 0 var(--desktop-space-3);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.desktop-sidebar-list {
    display: flex;
    flex-direction: column;
}

.desktop-sidebar-item {
    display: block;
    padding: var(--desktop-space-3);
    margin: 0;
    border-radius: var(--desktop-radius-sm);
    border-bottom: 1px solid var(--desktop-border-subtle);
    min-width: 0;
}

.desktop-sidebar-item:last-child {
    border-bottom: 0;
}

.desktop-sidebar-item:hover {
    background: var(--desktop-surface-soft);
}

.desktop-sidebar-item:active {
    background: var(--desktop-green-soft);
    transform: translateY(1px);
}

.desktop-sidebar-item:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 1px;
    background: var(--desktop-surface-soft);
}

.desktop-sidebar-item:hover .desktop-sidebar-item-title,
.desktop-sidebar-item:focus-visible .desktop-sidebar-item-title {
    color: var(--desktop-green-hover);
}

.desktop-sidebar-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-2);
    margin-bottom: 8px;
    min-width: 0;
}

.desktop-sidebar-symbol {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.desktop-impact-score {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    margin-left: auto;
    border-radius: var(--desktop-radius-badge);
    background: var(--desktop-gold-soft);
    color: var(--desktop-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    flex-shrink: 0;
}

.desktop-sidebar-item-title {
    color: var(--desktop-text);
    font-size: 14px;
    line-height: 1.48;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.desktop-sidebar-time {
    display: block;
    margin-top: 8px;
    color: color-mix(in srgb, var(--desktop-muted) 65%, var(--desktop-bg));
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.desktop-sidebar-meta {
    color: var(--desktop-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.desktop-sidebar-about {
    margin: 0;
    color: var(--desktop-muted);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
}

.desktop-company-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--desktop-space-2);
}

.desktop-company-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    padding: var(--desktop-space-3);
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-surface-soft);
    min-width: 0;
}

.desktop-company-chip:hover {
    border-color: color-mix(in srgb, var(--desktop-green) 22%, var(--desktop-border));
    background: var(--desktop-green-soft);
}

.desktop-company-chip:active {
    transform: translateY(1px);
}

.desktop-company-chip:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 2px;
    background: var(--desktop-surface);
}

.desktop-company-chip-symbol {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.desktop-company-chip-count {
    margin-top: 3px;
    color: color-mix(in srgb, var(--desktop-muted) 75%, var(--desktop-bg));
    font-size: 12px;
    font-weight: 400;
}

/* ── Empty / pagination / footer ────────────────────── */

.desktop-empty {
    padding: 48px 24px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
    text-align: center;
}

.desktop-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.desktop-empty p {
    margin: 0;
    color: var(--desktop-muted);
    font-size: 14px;
}

.desktop-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 14px 2px 0;
}

.desktop-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 44px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-surface);
    font-size: 13px;
    font-weight: 600;
}

.desktop-page-button:hover {
    border-color: var(--desktop-border-strong);
    background: var(--desktop-surface-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.desktop-page-button:active {
    transform: translateY(1px);
    background: var(--desktop-green-soft);
}

.desktop-page-button:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
}

.desktop-page-button.is-disabled,
.desktop-page-button[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
    background: var(--desktop-surface-soft);
    color: var(--desktop-muted);
}

.desktop-page-info {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 700;
}

.desktop-footer {
    border-top: 1px solid var(--desktop-border);
    padding: var(--desktop-space-5) 0 var(--desktop-space-6);
    color: var(--desktop-muted);
    font-size: 12px;
    background: var(--desktop-surface);
}

.desktop-footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--desktop-space-4);
}

.desktop-footer-disclaimer {
    max-width: 50rem;
    font-size: 13px;
    line-height: 1.65;
}

.desktop-footer-disclaimer p {
    margin: 0;
}

.desktop-footer-disclaimer p + p {
    margin-top: var(--desktop-space-2);
}

.desktop-footer-disclaimer a {
    color: var(--desktop-green-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.desktop-footer-disclaimer a:hover {
    color: var(--desktop-green-hover);
}

.desktop-footer-disclaimer a:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.desktop-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-5);
    flex-wrap: wrap;
    padding-top: var(--desktop-space-3);
    border-top: 1px solid var(--desktop-border-subtle);
    font-size: 12px;
}

/* ── Legal / content pages ──────────────────────────── */

.desktop-legal-intro {
    padding: var(--desktop-space-6) 0 var(--desktop-space-5);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--desktop-green-soft) 65%, transparent) 0%,
            color-mix(in srgb, var(--desktop-green-soft) 28%, transparent) 55%,
            transparent 100%
        );
}

.desktop-legal-intro h1 {
    max-width: 20ch;
    margin: var(--desktop-space-3) 0 var(--desktop-space-3);
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.desktop-legal-lede {
    max-width: 42rem;
    margin: 0;
    color: var(--desktop-muted);
    font-size: 15px;
    line-height: 1.65;
}

.desktop-legal-content {
    padding-top: 0;
}

.desktop-legal-article {
    max-width: 50rem;
    margin: 0 0 var(--desktop-space-6);
    padding: var(--desktop-space-6) var(--desktop-space-7);
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
}

.desktop-legal-article section + section {
    margin-top: var(--desktop-space-6);
    padding-top: var(--desktop-space-5);
    border-top: 1px solid var(--desktop-border-subtle);
}

.desktop-legal-article h2 {
    margin: 0 0 var(--desktop-space-3);
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.desktop-legal-article p {
    margin: 0;
    max-width: 42rem;
    color: var(--desktop-muted);
    font-size: 15px;
    line-height: 1.7;
}

.desktop-legal-updated {
    margin-top: var(--desktop-space-6) !important;
    padding-top: var(--desktop-space-5);
    border-top: 1px solid var(--desktop-border-subtle);
    color: var(--desktop-muted-soft) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.desktop-legal-action {
    margin-top: var(--desktop-space-5) !important;
}

.desktop-legal-action .desktop-read-more {
    margin: 0;
}

/* ── Contact page ───────────────────────────────────── */

.desktop-contact-content {
    padding-top: 0;
}

.desktop-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: var(--desktop-space-5);
    row-gap: var(--desktop-space-3);
    align-items: start;
    max-width: 56rem;
}

.desktop-contact-partner {
    align-self: start;
    margin-top: 2px;
    padding: var(--desktop-space-5);
    border: 1px solid color-mix(in srgb, var(--desktop-green) 16%, var(--desktop-border));
    border-radius: var(--desktop-radius-card);
    background: color-mix(in srgb, var(--desktop-green-soft) 82%, #f4faf6);
}

.desktop-contact-partner h2 {
    margin: 0 0 var(--desktop-space-3);
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.desktop-contact-partner p {
    margin: 0;
    color: var(--desktop-muted);
    font-size: 14px;
    line-height: 1.7;
}

.desktop-contact-partner p + p {
    margin-top: var(--desktop-space-3);
}

.desktop-contact-form-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
}

.desktop-contact-form-inner {
    padding: var(--desktop-space-5) var(--desktop-space-6);
}

.desktop-contact-form {
    display: grid;
    gap: var(--desktop-space-4);
}

.desktop-contact-field {
    display: grid;
    gap: var(--desktop-space-2);
}

.desktop-contact-field label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--desktop-space-2);
    color: var(--desktop-text);
    font-size: 14px;
    font-weight: 700;
}

.desktop-contact-required,
.desktop-contact-optional {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 600;
}

.desktop-contact-field input,
.desktop-contact-field select,
.desktop-contact-field textarea {
    width: 100%;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-surface);
    color: var(--desktop-text);
    font: inherit;
    padding: 10px 12px;
    transition:
        border-color var(--desktop-duration) var(--desktop-ease),
        box-shadow var(--desktop-duration) var(--desktop-ease),
        background-color var(--desktop-duration) var(--desktop-ease);
}

.desktop-contact-field input,
.desktop-contact-field select {
    min-height: 44px;
}

.desktop-contact-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.desktop-contact-field input:hover,
.desktop-contact-field select:hover,
.desktop-contact-field textarea:hover {
    border-color: var(--desktop-border-strong);
}

.desktop-contact-field input:focus,
.desktop-contact-field input:focus-visible,
.desktop-contact-field select:focus,
.desktop-contact-field select:focus-visible,
.desktop-contact-field textarea:focus,
.desktop-contact-field textarea:focus-visible {
    outline: none;
    border-color: var(--desktop-green);
    box-shadow: var(--desktop-focus-ring);
    background: var(--desktop-surface);
}

.desktop-contact-field.has-error input,
.desktop-contact-field.has-error select,
.desktop-contact-field.has-error textarea {
    border-color: var(--desktop-red);
    border-left-width: 3px;
}

.desktop-contact-field.has-error input:focus,
.desktop-contact-field.has-error input:focus-visible,
.desktop-contact-field.has-error select:focus,
.desktop-contact-field.has-error select:focus-visible,
.desktop-contact-field.has-error textarea:focus,
.desktop-contact-field.has-error textarea:focus-visible {
    border-color: var(--desktop-red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--desktop-red) 18%, transparent);
}

.desktop-contact-hint {
    margin: 0;
    color: var(--desktop-muted-soft);
    font-size: 13px;
    line-height: 1.45;
}

.desktop-contact-error {
    margin: 0;
    color: var(--desktop-red);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.desktop-contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.desktop-contact-actions {
    display: grid;
    gap: var(--desktop-space-3);
    justify-items: start;
    padding-top: var(--desktop-space-1);
}

.desktop-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    max-width: 100%;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-green);
    color: var(--desktop-on-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color var(--desktop-duration) var(--desktop-ease),
        transform var(--desktop-duration) var(--desktop-ease),
        box-shadow var(--desktop-duration) var(--desktop-ease);
}

.desktop-contact-submit:hover {
    background: var(--desktop-green-hover);
    box-shadow: var(--desktop-shadow);
}

.desktop-contact-submit:active {
    transform: translateY(1px);
    box-shadow: none;
}

.desktop-contact-submit:focus-visible {
    outline: 2px solid var(--desktop-green);
    outline-offset: 3px;
}

.desktop-contact-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--desktop-muted);
}

.desktop-contact-privacy {
    margin: 0;
    max-width: 36rem;
    color: var(--desktop-muted);
    font-size: 12px;
    line-height: 1.5;
}

.desktop-contact-success {
    margin-bottom: var(--desktop-space-4);
    padding: var(--desktop-space-4) var(--desktop-space-5);
    border: 1px solid color-mix(in srgb, var(--desktop-green) 35%, var(--desktop-border));
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-green-soft);
    color: var(--desktop-green-hover);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.desktop-contact-alert {
    margin-bottom: var(--desktop-space-4);
    padding: var(--desktop-space-4) var(--desktop-space-5);
    border: 1px solid color-mix(in srgb, var(--desktop-red) 35%, var(--desktop-border));
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-red-soft);
    color: var(--desktop-red);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.desktop-contact-trust {
    grid-column: 1 / -1;
    max-width: 50rem;
    margin: 0;
    padding: var(--desktop-space-3) var(--desktop-space-5);
    border: 1px solid var(--desktop-border-subtle);
    border-radius: var(--desktop-radius-md);
    background: var(--desktop-surface-soft);
}

.desktop-contact-trust p {
    margin: 0;
    color: var(--desktop-muted-soft);
    font-size: 13px;
    line-height: 1.65;
}

.desktop-contact-back {
    grid-column: 1 / -1;
    margin-top: 0 !important;
}

.desktop-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--desktop-space-2);
}

.desktop-footer-links span {
    color: var(--desktop-border-strong);
}

/* Contact page: usable when opened directly on smaller viewports */
html:has(body.desktop-page-contact),
body.desktop-page-contact {
    min-width: 0;
}

body.desktop-page-contact .desktop-legal-intro h1 {
    max-width: 18ch;
}

@media (max-width: 900px) {
    body.desktop-page-contact .desktop-shell {
        width: min(calc(100% - var(--desktop-space-6)), var(--desktop-max));
    }

    body.desktop-page-contact .desktop-header-status {
        display: none;
    }

    body.desktop-page-contact .desktop-contact-layout {
        grid-template-columns: 1fr;
        max-width: none;
        row-gap: var(--desktop-space-4);
    }

    body.desktop-page-contact .desktop-contact-partner {
        margin-top: 0;
        order: -1;
    }

    body.desktop-page-contact .desktop-legal-intro h1 {
        max-width: none;
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    body.desktop-page-contact .desktop-contact-form-inner {
        padding: var(--desktop-space-5);
    }

    body.desktop-page-contact .desktop-contact-submit {
        width: auto;
        min-width: min(200px, 100%);
    }
}

/* ── Responsive (narrow desktop windows only) ───────── */

@media (max-width: 1280px) {
    .desktop-shell {
        width: min(calc(100% - var(--desktop-space-7)), var(--desktop-max));
    }

    .desktop-header-inner {
        gap: var(--desktop-space-4);
    }

    .desktop-nav a {
        padding: 8px 10px;
    }

    .desktop-main-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
        gap: var(--desktop-space-5);
    }

    .desktop-hero h1 {
        font-size: clamp(2.25rem, 2.8vw, 3rem);
        max-width: 22ch;
    }

    .desktop-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.85fr);
        gap: var(--desktop-space-4);
    }

    .desktop-card-body-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    }

    .desktop-legal-article {
        padding: var(--desktop-space-5) var(--desktop-space-6);
    }

    .desktop-contact-layout {
        gap: var(--desktop-space-4);
    }
}

/* Insider transactions: structured PSE data, no AI detail page */
.desktop-card.insider .desktop-card-accent {
    background: #0f766e;
}

.desktop-type-badge.insider {
    background: var(--desktop-green-soft);
    color: #0f766e;
}

.desktop-card-title-static {
    color: var(--desktop-text);
}

.desktop-insider-note {
    margin-top: var(--desktop-space-4);
    padding-top: var(--desktop-space-3);
    border-top: 1px solid var(--desktop-border-subtle);
    color: var(--desktop-muted-soft);
    font-size: 12px;
    line-height: 1.5;
}


/* Insider transaction direction */
.desktop-insider-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-4);
    margin-top: var(--desktop-space-4);
}

.desktop-insider-title-row .desktop-card-title {
    min-width: 0;
    margin: 0;
}

.desktop-insider-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid;
    border-radius: var(--desktop-radius-badge);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.desktop-insider-action.buy {
    background: var(--desktop-green-soft);
    border-color: color-mix(in srgb, var(--desktop-green) 35%, var(--desktop-border));
    color: var(--desktop-green-hover);
}

.desktop-insider-action.sell {
    background: var(--desktop-red-soft);
    border-color: color-mix(in srgb, var(--desktop-red) 30%, var(--desktop-border));
    color: var(--desktop-red);
}

.desktop-insider-action.mixed {
    background: var(--desktop-gold-soft);
    border-color: color-mix(in srgb, var(--desktop-gold-accent) 35%, var(--desktop-border));
    color: var(--desktop-gold);
}

.desktop-insider-action.unknown {
    background: var(--desktop-surface-soft);
    border-color: var(--desktop-border);
    color: var(--desktop-muted);
}


/* Structured insider transaction summary */
.desktop-insider-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: var(--desktop-space-3);
    margin-top: var(--desktop-space-4);
}
.desktop-insider-summary-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 82px;
    padding: var(--desktop-space-3) var(--desktop-space-4);
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-surface-soft);
}
.desktop-insider-summary-primary {
    background: color-mix(in srgb, var(--desktop-green-soft) 68%, var(--desktop-surface));
    border-color: color-mix(in srgb, var(--desktop-green) 23%, var(--desktop-border));
}
.desktop-insider-summary-label {
    margin-bottom: 5px;
    color: var(--desktop-muted-soft);
    font-size: 12px;
    font-weight: 600;
}
.desktop-insider-summary-item strong {
    color: var(--desktop-text);
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.desktop-insider-summary-primary strong { font-size: 24px; }
.desktop-insider-transaction-count {
    margin-top: var(--desktop-space-3);
    color: var(--desktop-muted-soft);
    font-size: 12px;
    line-height: 1.4;
}
.desktop-insider-fallback-summary { margin-top: var(--desktop-space-3); }
@media (max-width: 1280px) {
    .desktop-insider-summary-grid {
        grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
    }
}


/* Database-backed commercial feed card */
.desktop-card.commercial {
    border-color: color-mix(in srgb, var(--desktop-green) 30%, var(--desktop-border));
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--desktop-green-soft) 42%, var(--desktop-surface)) 0%,
            var(--desktop-surface) 58%
        );
    box-shadow: 0 10px 28px rgba(14, 99, 70, 0.09);
}

.desktop-card.commercial:hover {
    border-color: color-mix(in srgb, var(--desktop-green) 52%, var(--desktop-border));
    box-shadow: 0 14px 34px rgba(14, 99, 70, 0.13);
}

.desktop-card.commercial .desktop-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--desktop-green), #0f766e 72%, #17211e);
}

.desktop-type-badge.commercial {
    min-height: 27px;
    padding: 0 11px;
    background: var(--desktop-green);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 168, 107, 0.18);
}

.desktop-commercial-logo {
    background: linear-gradient(145deg, var(--desktop-green-soft), #ffffff);
    border-color: color-mix(in srgb, var(--desktop-green) 36%, var(--desktop-border));
    color: var(--desktop-green-hover);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.10);
}

.desktop-commercial-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: var(--desktop-space-6);
    align-items: center;
    margin-top: var(--desktop-space-4);
    padding: var(--desktop-space-4);border: 1px solid color-mix(in srgb, var(--desktop-green) 16%, var(--desktop-border-subtle));
    border-radius: var(--desktop-radius-md);
    background: color-mix(in srgb, var(--desktop-surface) 86%, var(--desktop-green-soft));
}

.desktop-commercial-copy {
    min-width: 0;
}

.desktop-commercial-copy .desktop-card-title {
    margin: 0 0 var(--desktop-space-2);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.desktop-commercial-copy .desktop-card-summary {
    max-width: 46rem;
    color: color-mix(in srgb, var(--desktop-text) 78%, var(--desktop-muted));
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.desktop-commercial-subline {
    display: inline-flex;
    align-items: center;
    margin: var(--desktop-space-4) 0 0;
    padding: 7px 11px;
    border-radius: var(--desktop-radius-pill);
    background: var(--desktop-green-soft);
    color: var(--desktop-green-hover);
    font-size: 13px;
    font-weight: 800;
}

.desktop-commercial-image-wrap {
    width: 250px;
    height: 140px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--desktop-green) 24%, var(--desktop-border));
    border-radius: var(--desktop-radius-md);
    background: var(--desktop-surface-soft);
    box-shadow: 0 8px 20px rgba(20, 45, 38, 0.12);
}

.desktop-commercial-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.desktop-commercial-footer-note {
    color: var(--desktop-green-hover);
    font-size: 12px;
    font-weight: 700;
}

.desktop-card.commercial .desktop-read-more {
    padding-left: 12px;
    padding-right: 12px;
    background: var(--desktop-green);
    color: #ffffff;
}

.desktop-card.commercial .desktop-read-more:hover {
    background: var(--desktop-green-hover);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .desktop-commercial-content {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: var(--desktop-space-4);
    }

    .desktop-commercial-image-wrap {
        width: 210px;
        height: 122px;
    }
}

/* Disclosure type colour separation
   Keeps green primarily for StockBayan commercial placements. */
.desktop-card.press .desktop-card-accent {
    background: #64748b;
}

.desktop-type-badge.press {
    background: #eef2f6;
    color: #475569;
}

.desktop-card.insider .desktop-card-accent {
    background: #7c5ac7;
}

.desktop-type-badge.insider {
    background: #f2edff;
    color: #6941b8;
}


/* ── PSE market indices feed card ───────────────────── */
.desktop-card.market-indices { border-color: color-mix(in srgb, var(--desktop-blue) 28%, var(--desktop-border)); background: linear-gradient(135deg, color-mix(in srgb, var(--desktop-blue-soft) 50%, var(--desktop-surface)) 0%, var(--desktop-surface) 62%); }
.desktop-card.market-indices:hover { border-color: color-mix(in srgb, var(--desktop-blue) 48%, var(--desktop-border)); }
.desktop-card.market-indices .desktop-card-accent { height: 3px; background: linear-gradient(90deg, var(--desktop-blue), #64748b); }
.desktop-market-index-logo { background: var(--desktop-blue-soft); border-color: color-mix(in srgb, var(--desktop-blue) 30%, var(--desktop-border)); color: var(--desktop-blue); }
.desktop-type-badge.market-indices { background: var(--desktop-blue-soft); color: var(--desktop-blue); }
.desktop-market-index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--desktop-space-3); margin-top: var(--desktop-space-4); }
.desktop-market-index-item { min-width: 0; padding: var(--desktop-space-3); border: 1px solid color-mix(in srgb, var(--desktop-blue) 13%, var(--desktop-border)); border-radius: var(--desktop-radius-sm); background: color-mix(in srgb, var(--desktop-surface) 90%, var(--desktop-blue-soft)); }
.desktop-market-index-name { min-height: 32px; color: var(--desktop-muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.desktop-market-index-value { margin-top: 5px; color: var(--desktop-text); font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.desktop-market-index-change { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 800; }
.desktop-market-index-change.up { color: var(--desktop-green-hover); }
.desktop-market-index-change.down { color: var(--desktop-red); }
.desktop-market-index-change.flat { color: var(--desktop-muted); }
@media (max-width: 1280px) { .desktop-market-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ── Market movers feed card ────────────────────────── */

.desktop-card.market-movers {
    border-color: color-mix(in srgb, #7c5ac7 24%, var(--desktop-border));
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, #f2edff 40%, var(--desktop-surface)) 0%,
            var(--desktop-surface) 62%
        );
}

.desktop-card.market-movers .desktop-card-accent {
    height: 3px;
    background: linear-gradient(90deg, #7c5ac7, #64748b);
}

.desktop-market-movers-logo {
    background: #f2edff;
    border-color: color-mix(in srgb, #7c5ac7 28%, var(--desktop-border));
    color: #6941b8;
}

.desktop-type-badge.market-movers {
    background: #f2edff;
    color: #6941b8;
}

.desktop-market-movers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--desktop-space-4);
    margin-top: var(--desktop-space-4);
}

.desktop-market-movers-panel {
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-sm);
    background: var(--desktop-surface);
}

.desktop-market-movers-heading {
    padding: 10px 12px;
    border-bottom: 1px solid var(--desktop-border-subtle);
    font-size: 12px;
    font-weight: 800;
}

.desktop-market-movers-heading.advance {
    background: var(--desktop-green-soft);
    color: var(--desktop-green-hover);
}

.desktop-market-movers-heading.decline {
    background: var(--desktop-red-soft);
    color: var(--desktop-red);
}

.desktop-market-movers-list {
    display: grid;
}

.desktop-market-mover-row {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) minmax(100px, auto) minmax(76px, auto);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--desktop-border-subtle);
    font-size: 12px;
}

.desktop-market-mover-row:last-child {
    border-bottom: 0;
}

.desktop-market-mover-row strong {
    font-size: 13px;
    letter-spacing: 0.02em;
}

.desktop-market-mover-row > span:nth-child(2) {
    color: var(--desktop-muted);
    text-align: right;
}

.desktop-market-mover-change {
    text-align: right;
    font-weight: 800;
}

.desktop-market-mover-change.advance {
    color: var(--desktop-green-hover);
}

.desktop-market-mover-change.decline {
    color: var(--desktop-red);
}

.desktop-market-movers-empty {
    padding: 16px 12px;
    color: var(--desktop-muted);
    font-size: 12px;
}
/* ── Market movers detail page ──────────────────────── */

.desktop-market-movers-intro h1 {
    max-width: none;
}

.desktop-market-movers-updated {
    display: inline-flex;
    margin-top: var(--desktop-space-4);
    color: var(--desktop-muted-soft);
    font-size: 12px;
    font-weight: 600;
}

.desktop-market-movers-detail-content {
    padding-top: var(--desktop-space-4);
}

.desktop-market-movers-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--desktop-space-5);
    align-items: start;
}

.desktop-market-movers-detail-card {
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
}

.desktop-market-movers-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-4);
    padding: var(--desktop-space-5);
    border-bottom: 1px solid var(--desktop-border-subtle);
}

.desktop-market-movers-detail-head.advance {
    background:
        linear-gradient(
            135deg,
            var(--desktop-green-soft),
            color-mix(in srgb, var(--desktop-green-soft) 24%, var(--desktop-surface))
        );
}

.desktop-market-movers-detail-head.decline {
    background:
        linear-gradient(
            135deg,
            var(--desktop-red-soft),
            color-mix(in srgb, var(--desktop-red-soft) 24%, var(--desktop-surface))
        );
}

.desktop-market-movers-detail-eyebrow {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-market-movers-detail-head h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.desktop-market-movers-count {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-pill);
    background: var(--desktop-surface);
    color: var(--desktop-text);
    font-size: 14px;
    font-weight: 800;
}

.desktop-market-movers-table-wrap {
    overflow-x: auto;
}

.desktop-market-movers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.desktop-market-movers-table th,
.desktop-market-movers-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--desktop-border-subtle);
    text-align: right;
    white-space: nowrap;
}

.desktop-market-movers-table th:first-child,
.desktop-market-movers-table td:first-child {
    text-align: left;
}

.desktop-market-movers-table th {
    background: var(--desktop-surface-soft);
    color: var(--desktop-muted-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.desktop-market-movers-table tbody tr:last-child td {
    border-bottom: 0;
}

.desktop-market-movers-table tbody tr:hover {
    background: var(--desktop-surface-soft);
}

.desktop-market-movers-table td strong {
    color: var(--desktop-text);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.desktop-mover-positive {
    color: var(--desktop-green-hover);
    font-weight: 700;
}

.desktop-mover-negative {
    color: var(--desktop-red);
    font-weight: 700;
}

.desktop-market-movers-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-5);
    margin-top: var(--desktop-space-5);
    padding: var(--desktop-space-4) var(--desktop-space-5);
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-card);
    background: var(--desktop-surface);
}

.desktop-market-movers-detail-footer p {
    margin: 0;
    color: var(--desktop-muted);
    font-size: 12px;
    line-height: 1.55;
}

.desktop-market-movers-detail-links {
    display: flex;
    align-items: center;
    gap: var(--desktop-space-3);
    flex-shrink: 0;
}

@media (max-width: 1280px) {
    .desktop-market-movers-detail-grid {
        gap: var(--desktop-space-4);
    }

    .desktop-market-movers-table th,
    .desktop-market-movers-table td {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* ── Company market price on disclosure cards ───────── */
.desktop-market-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 9px;
    min-height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: nowrap;
}

.desktop-market-price-value {
    color: var(--desktop-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.015em;
}

.desktop-market-price-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.desktop-market-price-change.positive {
    color: var(--desktop-green-hover);
}

.desktop-market-price-change.negative {
    color: var(--desktop-red);
}

.desktop-market-price-change.neutral {
    color: var(--desktop-muted);
}

.desktop-market-price-unavailable {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 600;
}

/* Badge/date stay first; price sits directly below, aligned right. */
.desktop-card-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 215px;
}

.desktop-card-top-right .desktop-card-meta {
    width: 100%;
    justify-content: flex-end;
}

.desktop-card-top-right .desktop-market-price {
    width: 100%;
}

.desktop-card-top-right .desktop-card-time {
    color: var(--desktop-text);
    font-weight: 700;
}

.desktop-card-footer > .desktop-read-more:first-child {
    margin-left: auto;
}


/* ── Disclosure price split: daily % top, prices footer ─ */
.desktop-card-top-right .desktop-day-change {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    min-height: 18px;
}

.desktop-card-top-right .desktop-market-price-change {
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
}

.desktop-price-details {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    min-width: 0;
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 500;
}

.desktop-price-detail {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.desktop-price-detail + .desktop-price-detail::before {
    content: "·";
    margin-right: 8px;
    color: var(--desktop-border-strong);
}

.desktop-price-detail strong {
    color: var(--desktop-text);
    font-size: 13px;
    font-weight: 700;
}

.desktop-price-detail-muted {
    color: var(--desktop-muted);
}

.desktop-card-footer .desktop-read-more {
    margin-left: auto;
}

@media (max-width: 1180px) {
    .desktop-price-details {
        gap: 6px 10px;
    }
}


/* ── Small label beside today's percentage ─────────── */
.desktop-card-top-right .desktop-day-change {
    align-items: baseline;
    gap: 7px;
}

.desktop-day-change-label {
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}


/* ── Desktop Companies page ─────────────────────────── */
.desktop-companies-page {
    min-height: calc(100vh - 72px);
    background: var(--desktop-page);
}

.desktop-companies-hero {
    padding: 58px 0 36px;
    border-bottom: 1px solid var(--desktop-border);
    background:
        radial-gradient(
            circle at top right,
            rgba(0, 168, 107, 0.08),
            transparent 34%
        ),
        var(--desktop-surface);
}

.desktop-companies-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 12px;
}

.desktop-companies-heading-row h1 {
    margin: 0;
    color: var(--desktop-text);
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.desktop-companies-heading-row p {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--desktop-muted);
    font-size: 16px;
    line-height: 1.7;
}

.desktop-companies-count {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--desktop-border);
    border-radius: 999px;
    background: var(--desktop-surface-soft);
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 700;
}

.desktop-companies-search {
    max-width: 720px;
    margin-top: 28px;
}

.desktop-companies-search > label {
    display: block;
    margin-bottom: 8px;
    color: var(--desktop-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-companies-search-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.desktop-companies-search-row input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--desktop-border);
    border-radius: 10px;
    background: var(--desktop-surface-soft);
    color: var(--desktop-text);
    font: inherit;
    outline: none;
}

.desktop-companies-search-row input[type="search"]:focus {
    border-color: var(--desktop-green);
    background: var(--desktop-surface);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

.desktop-companies-search-row button,
.desktop-companies-search-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 17px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.desktop-companies-search-row button {
    border: 0;
    background: var(--desktop-green);
    color: #fff;
    cursor: pointer;
}

.desktop-companies-search-row a {
    color: var(--desktop-green-dark);
}

.desktop-companies-content {
    padding-top: 30px;
    padding-bottom: 54px;
}

.desktop-companies-table-wrap {
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: 14px;
    background: var(--desktop-surface);
    box-shadow: 0 8px 30px rgba(27, 39, 34, 0.045);
}

.desktop-companies-table {
    width: 100%;
    border-collapse: collapse;
}

.desktop-companies-table th,
.desktop-companies-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--desktop-border);
    text-align: left;
    vertical-align: middle;
}

.desktop-companies-table th {
    background: var(--desktop-surface-soft);
    color: var(--desktop-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.desktop-companies-table th a {
    color: inherit;
    text-decoration: none;
}

.desktop-companies-table tbody tr:last-child td {
    border-bottom: 0;
}

.desktop-companies-table tbody tr:hover {
    background: rgba(0, 168, 107, 0.025);
}

.desktop-companies-company {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.desktop-companies-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: 10px;
    background: var(--desktop-surface-soft);
    color: var(--desktop-text);
    font-size: 11px;
    font-weight: 800;
}

.desktop-companies-logo img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.desktop-companies-symbol {
    color: var(--desktop-text);
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
}

.desktop-companies-symbol:hover {
    color: var(--desktop-green-dark);
}

.desktop-companies-name {
    margin-top: 2px;
    color: var(--desktop-muted);
    font-size: 12px;
    font-weight: 600;
}

.desktop-companies-sector {
    margin-top: 2px;
    color: var(--desktop-muted-soft, #8a948f);
    font-size: 10px;
}

.desktop-companies-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
}

.desktop-companies-price strong {
    color: var(--desktop-text);
    font-size: 14px;
    font-weight: 750;
}

.desktop-companies-price span {
    color: var(--desktop-muted);
    font-size: 10px;
}

.desktop-companies-change {
    display: inline-flex;
    min-width: 68px;
    font-size: 13px;
    font-weight: 750;
}

.desktop-companies-change.positive {
    color: var(--desktop-green-dark);
}

.desktop-companies-change.negative {
    color: #b42318;
}

.desktop-companies-change.neutral {
    color: var(--desktop-muted);
}

.desktop-companies-time {
    display: inline-block;
    max-width: 150px;
    color: var(--desktop-muted);
    font-size: 11px;
    line-height: 1.35;
}

.desktop-companies-action-cell {
    text-align: right !important;
}

.desktop-companies-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--desktop-green-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-companies-action:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.desktop-companies-note {
    margin: 15px 2px 0;
    color: var(--desktop-muted);
    font-size: 11px;
    line-height: 1.55;
}

.desktop-companies-empty {
    padding: 44px 20px;
    color: var(--desktop-muted);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .desktop-companies-table-wrap {
        overflow-x: auto;
    }

    .desktop-companies-table {
        min-width: 860px;
    }
}


/* ── Companies hero: match the other desktop pages ─── */
.desktop-companies-hero {
    border-bottom: 1px solid var(--desktop-border);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--desktop-green-soft) 65%, transparent) 0%,
            color-mix(in srgb, var(--desktop-green-soft) 28%, transparent) 55%,
            transparent 100%
        );
}


/* ── Companies search: automatic delayed search ────── */
.desktop-companies-search-row input[type="search"] {
    width: 100%;
}

.desktop-companies-search-row button,
.desktop-companies-search-row > a {
    display: none;
}


/* ── Companies search: manual submit button ────────── */
.desktop-companies-search-row input[type="search"] {
    width: auto;
}

.desktop-companies-search-row button {
    display: inline-flex;
}

.desktop-companies-search-row > a {
    display: none;
}


/* ── Companies live search feedback ────────────────── */
.desktop-companies-table-wrap {
    transition: opacity 140ms ease;
}

.desktop-companies-table-wrap.is-loading {
    opacity: 0.48;
    pointer-events: none;
}


/* ── Companies table: multi-period performance ────── */
.desktop-companies-table {
    min-width: 1080px;
}

.desktop-companies-table th:nth-child(3),
.desktop-companies-table th:nth-child(4),
.desktop-companies-table th:nth-child(5),
.desktop-companies-table th:nth-child(6),
.desktop-companies-table td:nth-child(3),
.desktop-companies-table td:nth-child(4),
.desktop-companies-table td:nth-child(5),
.desktop-companies-table td:nth-child(6) {
    text-align: right;
}

.desktop-companies-table td:nth-child(3) .desktop-companies-change,
.desktop-companies-table td:nth-child(4) .desktop-companies-change,
.desktop-companies-table td:nth-child(5) .desktop-companies-change,
.desktop-companies-table td:nth-child(6) .desktop-companies-change {
    justify-content: flex-end;
}


/* ── Beginner-friendly period comparison prices ───── */
.desktop-companies-period {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 82px;
}

.desktop-companies-period .desktop-companies-change {
    justify-content: flex-end;
}

.desktop-companies-period-price {
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

/* ── Modern desktop company directory ───────────────── */
.desktop-company-directory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--desktop-space-6);
    margin-bottom: var(--desktop-space-4);
}

.desktop-company-directory-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.desktop-company-directory-toolbar h2 {
    margin: 0;font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.desktop-company-sort-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-radius-md);
    background: var(--desktop-surface);
}

.desktop-company-sort-links > span {
    padding: 0 8px;
    color: var(--desktop-muted);
    font-size: 11px;
    font-weight: 700;
}

.desktop-company-sort-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    color: var(--desktop-muted);
    font-size: 11px;
    font-weight: 750;
    transition:
        color var(--desktop-duration) var(--desktop-ease),
        background var(--desktop-duration) var(--desktop-ease);
}

.desktop-company-sort-links a:hover {
    color: var(--desktop-text);
    background: var(--desktop-surface-soft);
}

.desktop-company-sort-links a.is-active {
    color: var(--desktop-green-hover);
    background: var(--desktop-green-soft);
}

.desktop-companies-directory {
    display: grid;
    gap: var(--desktop-space-4);
    transition: opacity 140ms ease;
}

.desktop-companies-directory.is-loading {
    opacity: 0.48;
    pointer-events: none;
}

.desktop-company-profile-card {
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: 16px;
    background: var(--desktop-surface);
    box-shadow: 0 5px 20px rgba(27, 39, 34, 0.045);
    transition:
        border-color var(--desktop-duration) var(--desktop-ease),
        box-shadow var(--desktop-duration) var(--desktop-ease),
        transform var(--desktop-duration) var(--desktop-ease);
}

.desktop-company-profile-card:hover {
    border-color: var(--desktop-border-strong);
    box-shadow: 0 10px 28px rgba(27, 39, 34, 0.075);
    transform: translateY(-1px);
}

.desktop-company-profile-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: var(--desktop-space-6);
    align-items: start;
    padding: var(--desktop-space-5) var(--desktop-space-6);
}

.desktop-company-profile-identity {
    display: flex;
    align-items: flex-start;
    gap: var(--desktop-space-4);
    min-width: 0;
}

.desktop-company-profile-logo {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--desktop-border);
    border-radius: 14px;
    background: var(--desktop-surface-soft);
    color: var(--desktop-text);
    font-size: 13px;
    font-weight: 850;
}

.desktop-company-profile-logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.desktop-company-profile-copy {
    min-width: 0;
}

.desktop-company-profile-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.desktop-company-profile-symbol {
    color: var(--desktop-green-hover);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.035em;
}

.desktop-company-profile-symbol:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.desktop-company-profile-sector {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: var(--desktop-radius-pill);
    background: var(--desktop-surface-soft);
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 700;
}

.desktop-company-profile-copy h3 {
    margin: 4px 0 0;
    color: var(--desktop-text);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.desktop-company-profile-summary {
    max-width: 780px;
    margin: 9px 0 0;
    color: var(--desktop-muted);
    font-size: 13px;
    line-height: 1.62;
}

.desktop-company-profile-summary.is-empty {
    color: var(--desktop-muted-soft);
    font-style: italic;
}

.desktop-company-profile-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

.desktop-company-profile-price > span {
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.desktop-company-profile-price > strong {
    margin-top: 3px;
    color: var(--desktop-text);
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.desktop-company-profile-today {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 9px;
    background: var(--desktop-surface-soft);
}

.desktop-company-profile-today span {
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 700;
}

.desktop-company-profile-today b {
    font-size: 13px;
    font-weight: 850;
}

.desktop-company-profile-today.positive {
    background: var(--desktop-green-soft);
    color: var(--desktop-green-hover);
}

.desktop-company-profile-today.negative {
    background: var(--desktop-red-soft);
    color: var(--desktop-red);
}

.desktop-company-profile-today.neutral {
    color: var(--desktop-muted);
}

.desktop-company-performance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--desktop-border-subtle);
    border-bottom: 1px solid var(--desktop-border-subtle);
    background: color-mix(
        in srgb,
        var(--desktop-surface-soft) 74%,
        var(--desktop-surface)
    );
}

.desktop-company-performance-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: 8px;
    min-height: 58px;
    padding: 13px var(--desktop-space-6);
    border-right: 1px solid var(--desktop-border-subtle);
}

.desktop-company-performance-item:last-child {
    border-right: 0;
}

.desktop-company-performance-item > span {
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.desktop-company-performance-item strong {
    font-size: 14px;
    font-weight: 850;
}

.desktop-company-performance-item strong.positive {
    color: var(--desktop-green-hover);
}

.desktop-company-performance-item strong.negative {
    color: var(--desktop-red);
}

.desktop-company-performance-item strong.neutral {
    color: var(--desktop-muted);
}

.desktop-company-performance-item small {
    justify-self: end;
    color: var(--desktop-muted);
    font-size: 10px;
    font-weight: 500;
}

.desktop-company-profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--desktop-space-5);
    padding: 12px var(--desktop-space-6);
}

.desktop-company-profile-footer > div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--desktop-muted);
    font-size: 10px;
}

.desktop-company-profile-footer time {
    color: var(--desktop-muted);
    font-weight: 650;
}

.desktop-company-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 4px;
    color: var(--desktop-green-hover);
    font-size: 12px;
    font-weight: 800;
}

.desktop-company-profile-action:hover {
    gap: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1180px) {
    .desktop-company-profile-main {
        grid-template-columns: minmax(0, 1fr) 160px;
        gap: var(--desktop-space-4);
    }

    .desktop-company-performance-item {
        padding-left: var(--desktop-space-4);
        padding-right: var(--desktop-space-4);
    }

    .desktop-company-sort-links > span {
        display: none;
    }
}



/* Dividend calculator */
.desktop-dividend-calculator {
    margin-top: 16px;
    border: 1px solid color-mix(in srgb, var(--desktop-gold-accent) 30%, var(--desktop-border));
    border-radius: var(--desktop-radius-sm);
    background: color-mix(in srgb, var(--desktop-gold-soft) 55%, var(--desktop-surface));
    overflow: hidden;
}
.desktop-dividend-calculator-toggle {
    width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: transparent;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    color: var(--desktop-gold); font-weight: 800; cursor: pointer; text-align: left;
}
.desktop-dividend-calculator-toggle:hover { background: var(--desktop-gold-soft); }
.desktop-dividend-calculator-body { padding: 14px; border-top: 1px solid rgba(196,146,43,.22); }
.desktop-dividend-calculator-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.desktop-dividend-calculator-inputs label { display: grid; gap: 6px; color: var(--desktop-muted); font-size: 12px; font-weight: 700; }
.desktop-dividend-calculator-inputs input { width:100%; min-height:42px; padding:0 11px; border:1px solid var(--desktop-border); border-radius:8px; background:#fff; color:var(--desktop-text); }
.desktop-dividend-calculator-inputs input:focus { border-color:var(--desktop-gold-accent); box-shadow:0 0 0 3px rgba(196,146,43,.15); outline:none; }
.desktop-dividend-calculator-results { margin-top:12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.desktop-dividend-calculator-results > div { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:8px; background:#fff; font-size:12px; }
.desktop-dividend-calculator-results span { color:var(--desktop-muted); }
.desktop-dividend-calculator-results strong { color:var(--desktop-text); }
.desktop-dividend-calculator-results .desktop-dividend-calculator-net { grid-column:1/-1; background:var(--desktop-gold-soft); font-size:14px; }
.desktop-dividend-calculator-note { margin:10px 0 0; color:var(--desktop-muted-soft); font-size:13px; line-height:1.5; }


/* ── Desktop dividend calculator modal ───────────────── */
.desktop-dividend-calc-button {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--desktop-gold-accent) 28%, var(--desktop-border));
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf0 0%, #ffffff 68%);
    color: var(--desktop-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.desktop-dividend-calc-button:hover {
    border-color: color-mix(in srgb, var(--desktop-gold-accent) 58%, var(--desktop-border));
    background: linear-gradient(135deg, #fff6df 0%, #ffffff 72%);
    box-shadow: 0 10px 24px rgba(95, 70, 20, 0.09);
    transform: translateY(-1px);
}

.desktop-dividend-calc-button:focus-visible {
    outline: 3px solid rgba(196, 146, 43, 0.22);
    outline-offset: 3px;
}

.desktop-dividend-calc-button-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--desktop-gold-soft);
    color: var(--desktop-gold);
    font-size: 20px;
    font-weight: 900;
}

.desktop-dividend-calc-button-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.desktop-dividend-calc-button-copy strong {
    font-size: 14px;
    line-height: 1.3;
}

.desktop-dividend-calc-button-copy small {
    color: var(--desktop-muted);
    font-size: 13px;
    line-height: 1.35;
}

.desktop-dividend-calc-button-arrow {
    color: var(--desktop-gold);
    font-size: 18px;
    font-weight: 800;
    transition: transform 160ms ease;
}

.desktop-dividend-calc-button:hover .desktop-dividend-calc-button-arrow {
    transform: translateX(3px);
}

body.has-dividend-modal-open {
    overflow: hidden;
}

.desktop-dividend-modal[hidden] {
    display: none;
}

.desktop-dividend-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 32px;
}

.desktop-dividend-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 22, 0.56);
    backdrop-filter: blur(7px);
}

.desktop-dividend-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 20, 0.28);
    animation: desktopDividendModalIn 180ms ease-out;
}

@keyframes desktopDividendModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.desktop-dividend-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--desktop-border);
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: var(--desktop-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.desktop-dividend-modal-close:hover {
    background: var(--desktop-surface-soft);
    color: var(--desktop-text);
}

.desktop-dividend-modal-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 28px 70px 24px 28px;
    background: linear-gradient(135deg, #fff8e8 0%, #ffffff 78%);
    border-bottom: 1px solid #f0e5c9;
}

.desktop-dividend-modal-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    color: var(--desktop-gold);
    box-shadow: 0 8px 22px rgba(157, 108, 17, 0.12);
    font-size: 26px;
    font-weight: 900;
}

.desktop-dividend-modal-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--desktop-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.desktop-dividend-modal-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.desktop-dividend-modal-company {
    margin: 6px 0 0;
    color: var(--desktop-muted);
    font-size: 14px;
}

.desktop-dividend-modal-body {
    padding: 26px 28px 28px;
}

.desktop-dividend-modal-rate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 15px 16px;
    border: 1px solid #f0dfb5;
    border-radius: 14px;
    background: #fffaf0;
}

.desktop-dividend-modal-rate-card span {
    color: var(--desktop-muted);
    font-size: 14px;
    font-weight: 650;
}

.desktop-dividend-modal-rate-card strong {
    color: var(--desktop-gold);
    font-size: 21px;
    letter-spacing: -0.025em;
}

.desktop-dividend-modal-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.7fr) minmax(0, 1fr);
    gap: 14px;
}

.desktop-dividend-modal-field {
    display: grid;
    gap: 7px;
    color: var(--desktop-text);
    font-size: 12px;
    font-weight: 750;
}

.desktop-dividend-modal-field small {
    color: var(--desktop-muted);
    font-weight: 500;
}

.desktop-dividend-modal-field > input,
.desktop-dividend-modal-money-input,
.desktop-dividend-modal-percent-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--desktop-border);
    border-radius: 12px;
    background: var(--desktop-surface-soft);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.desktop-dividend-modal-field > input {
    padding: 0 14px;
}

.desktop-dividend-modal-money-input,
.desktop-dividend-modal-percent-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-left: 14px;
    color: var(--desktop-muted);
}

.desktop-dividend-modal-money-input input,
.desktop-dividend-modal-percent-input input {
    min-width: 0;
    height: 46px;
    padding: 0 14px 0 8px;
    border: 0;
    background: transparent;
    outline: none;
}


.desktop-dividend-modal-percent-input {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 0;
    padding-right: 14px;
    color: var(--desktop-muted);
}

.desktop-dividend-modal-percent-input input {
    padding-left: 14px;
    padding-right: 8px;
}

.desktop-dividend-modal-percent-input > span {
    font-weight: 750;
}

.desktop-dividend-modal-field > input:focus,
.desktop-dividend-modal-money-input:focus-within,
.desktop-dividend-modal-percent-input:focus-within {
    border-color: var(--desktop-gold-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(196, 146, 43, 0.13);
    outline: none;
}

.desktop-dividend-modal-breakdown {
    display: grid;
    gap: 0;
    margin-top: 22px;
    border: 1px solid var(--desktop-border-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.desktop-dividend-modal-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    background: #ffffff;
    font-size: 14px;
}

.desktop-dividend-modal-breakdown > div + div {
    border-top: 1px solid var(--desktop-border-subtle);
}

.desktop-dividend-modal-breakdown span {
    color: var(--desktop-muted);
}

.desktop-dividend-modal-breakdown strong {
    font-size: 14px;
}

.desktop-dividend-modal-net {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 16px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f2925 0%, #25352f 100%);
    color: #ffffff;
}

.desktop-dividend-modal-net > div {
    display: grid;
    gap: 3px;
}

.desktop-dividend-modal-net span {
    font-size: 14px;
    font-weight: 750;
}

.desktop-dividend-modal-net small {
    color: rgba(255,255,255,0.68);
    font-size: 13px;
}

.desktop-dividend-modal-net > strong {
    color: #dff7eb;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.desktop-dividend-modal-note {
    margin: 16px 2px 0;
    color: var(--desktop-muted-soft);
    font-size: 13px;
    line-height: 1.55;
}
/* ── Listed Companies: readability pass ───────────────── */
/* Improve dense company-directory text on both high-DPI laptops and large monitors. */
.desktop-companies-page .desktop-company-profile-summary {
    font-size: 16px;
    line-height: 1.65;
}

.desktop-companies-page .desktop-company-understand-preview h4 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.desktop-companies-page
    .desktop-company-understand-preview-watch-item strong {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.desktop-companies-page
    .desktop-company-understand-preview-watch-item p {
    font-size: 15px;
    line-height: 1.55;
}

.desktop-companies-page
    .desktop-company-understand-preview-link {
    font-size: 14px;
}

.desktop-companies-page .desktop-company-profile-lot span {
    font-size: 12px;
}

.desktop-companies-page .desktop-company-profile-lot strong {
    font-size: 16px;
}

.desktop-companies-page .desktop-company-profile-lot small {
    font-size: 12px;
    line-height: 1.45;
}

.desktop-companies-page .desktop-company-profile-price > span {
    font-size: 12px;
}

.desktop-companies-page .desktop-company-sort-links > span {
    font-size: 12px;
}

.desktop-companies-page .desktop-company-sort-links a {
    font-size: 13px;
}

.desktop-companies-page .desktop-company-view-tab {
    font-size: 14px;
}

.desktop-companies-page .desktop-company-profile-footer {
    font-size: 12px;
}

.desktop-companies-page .desktop-company-profile-action {
    font-size: 13px;
}

.desktop-companies-page .desktop-company-performance-item span {
    font-size: 12px;
}

.desktop-companies-page .desktop-company-performance-item small {
    font-size: 12px;
}

.desktop-companies-page .desktop-companies-note {
    font-size: 13px;
    line-height: 1.6;
}

.desktop-companies-page .desktop-companies-load-more-status {
    font-size: 12px;
}
