/* ==========================================================================
   financetom homepage v2 — editorial light theme
   Scoped to .hp-body so inner pages keep the original styles.
   ========================================================================== */

.hp-body {
    --hp-ink: #0b1526;
    --hp-muted: #5b6b82;
    --hp-faint: #98a2b3;
    --hp-line: #e3e8ef;
    --hp-soft: #f5f7fa;
    --hp-blue: #1769d2;
    --hp-blue-dark: #0d4fa8;
    --hp-red: #cf2e2e;
    --hp-green: #0a7d43;
    --hp-navy: #0a1424;
    margin: 0;
    background: #fff;
    color: var(--hp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hp-body *,
.hp-body *::before,
.hp-body *::after {
    box-sizing: border-box;
}

.hp-wrap {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.hp-body a {
    color: inherit;
    text-decoration: none;
}

/* ---------- top utility bar ---------- */
.hp-topbar {
    background: var(--hp-navy);
    color: #cbd5e1;
    font-size: 12px;
    letter-spacing: .02em;
}

.hp-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.hp-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.hp-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hp-topbar-right a {
    color: #cbd5e1;
}

.hp-topbar-right a:hover {
    color: #fff;
}

/* ---------- masthead ---------- */
.hp-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--hp-line);
}

.hp-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 74px;
}

.hp-logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.hp-logo img {
    width: 172px;
    height: auto;
}

.hp-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    overflow: hidden;
}

.hp-nav a {
    font-size: 14px;
    font-weight: 600;
    color: #1f2a3d;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.hp-nav a:hover {
    color: var(--hp-blue);
    border-bottom-color: var(--hp-blue);
}

.hp-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.hp-cta {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--hp-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease;
}

.hp-cta:hover {
    background: var(--hp-blue-dark);
}

.hp-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--hp-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.hp-menu-btn span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--hp-ink);
    border-radius: 2px;
}

/* ---------- latest ticker ---------- */
.hp-ticker {
    background: var(--hp-soft);
    border-bottom: 1px solid var(--hp-line);
}

.hp-ticker-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 44px;
    overflow: hidden;
}

.hp-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hp-red);
}

.hp-ticker-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hp-red);
    animation: hp-pulse 1.6s infinite;
}

@keyframes hp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.hp-ticker-list {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hp-ticker-list::-webkit-scrollbar {
    display: none;
}

.hp-ticker-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 18px;
    border-left: 1px solid var(--hp-line);
    white-space: nowrap;
}

.hp-ticker-item:first-child {
    border-left: 0;
    padding-left: 0;
}

.hp-ticker-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hp-blue);
}

.hp-ticker-title {
    font-size: 13px;
    font-weight: 600;
    color: #26344c;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-ticker-item:hover .hp-ticker-title {
    color: var(--hp-blue);
}

/* ---------- shared blocks ---------- */
.hp-block {
    padding: 34px 0;
    border-bottom: 1px solid var(--hp-line);
}

.hp-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hp-block-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.2px;
    color: var(--hp-ink);
}

.hp-block-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-blue);
    white-space: nowrap;
}

.hp-block-link:hover {
    color: var(--hp-blue-dark);
}

/* ---------- hero ---------- */
.hp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    padding: 36px 0 30px;
    border-bottom: 1px solid var(--hp-line);
}

.hp-hero-lead {
    display: block;
    padding-right: 44px;
}

.hp-hero-solo {
    grid-template-columns: 1fr;
}

.hp-hero-solo .hp-hero-lead {
    padding-right: 0;
    border-bottom: 0;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--hp-blue);
}

.hp-kicker::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--hp-blue);
    opacity: .5;
}

.hp-hero-title {
    margin: 14px 0 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -.8px;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-hero-lead:hover .hp-hero-title {
    color: var(--hp-blue-dark);
}

.hp-hero-excerpt {
    margin: 16px 0 0;
    font-size: 16.5px;
    line-height: 1.62;
    color: var(--hp-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hp-faint);
}

.hp-meta .hp-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--hp-faint);
}

.hp-hero-side {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--hp-line);
    padding-left: 36px;
}

.hp-side-item {
    display: block;
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hp-line);
}

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

.hp-side-title {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -.2px;
    color: var(--hp-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hp-side-item:hover .hp-side-title {
    color: var(--hp-blue);
}

.hp-side-meta {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--hp-faint);
}

/* ---------- latest list ---------- */
.hp-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 34px;
}

.hp-latest-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--hp-line);
    align-items: start;
}

.hp-latest-item:nth-last-child(-n+3) {
    border-bottom: 0;
}

.hp-latest-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--hp-faint);
    padding-top: 3px;
}

.hp-latest-title {
    font-size: 14.5px;
    line-height: 1.42;
    font-weight: 600;
    color: #202c40;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hp-latest-item:hover .hp-latest-title {
    color: var(--hp-blue);
}

/* ---------- market snapshot ---------- */
.hp-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hp-market-card {
    flex: 1 1 300px;
    min-width: 0;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    padding: 18px 20px 10px;
    background: #fff;
}

.hp-market-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hp-line);
}

.hp-market-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.1px;
}

.hp-market-card-link {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hp-blue);
}

.hp-market-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f3f8;
}

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

.hp-market-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2a3d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-market-value {
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--hp-ink);
}

.hp-chg {
    min-width: 62px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hp-chg.up {
    color: var(--hp-green);
    background: rgba(10, 125, 67, .08);
}

.hp-chg.down {
    color: var(--hp-red);
    background: rgba(207, 46, 46, .08);
}

.hp-chg.flat {
    color: var(--hp-muted);
    background: var(--hp-soft);
}

.hp-stock-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f3f8;
}

.hp-stock-row:last-child {
    border-bottom: 0;
}

.hp-stock-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--hp-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hp-stock-logo img {
    max-width: 22px;
    max-height: 22px;
}

.hp-stock-symbol {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--hp-ink);
}

.hp-stock-company {
    display: block;
    font-size: 11.5px;
    color: var(--hp-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-stock-meta {
    min-width: 0;
}

.hp-stock-arrow {
    font-size: 15px;
    color: var(--hp-blue);
    font-weight: 700;
}

/* ---------- section grid ---------- */
.hp-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 48px;
    padding: 40px 0 20px;
}

.hp-section {
    border-top: 3px solid var(--hp-ink);
    padding-top: 16px;
}

.hp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.hp-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--hp-ink);
}

.hp-section-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-blue);
    white-space: nowrap;
}

.hp-section-lead {
    display: block;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--hp-line);
}

.hp-lead-title {
    font-size: 22px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #16213a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hp-section-lead:hover .hp-lead-title {
    color: var(--hp-blue);
}

.hp-lead-excerpt {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--hp-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hp-section-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-list-item {
    border-bottom: 1px dashed var(--hp-line);
}

.hp-list-item:last-child {
    border-bottom: 0;
}

.hp-list-item a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 12px;
    padding: 12px 0;
    align-items: start;
}

.hp-list-title {
    font-size: 14.5px;
    line-height: 1.42;
    font-weight: 600;
    color: #26344c;
}

.hp-list-item a:hover .hp-list-title {
    color: var(--hp-blue);
}

.hp-list-date {
    text-align: right;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--hp-faint);
    padding-top: 3px;
}

/* ---------- more coverage ---------- */
.hp-more {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: 4px 0 46px;
}

.hp-more-col {
    border-top: 1px solid var(--hp-line);
    padding-top: 14px;
}

.hp-more-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--hp-ink);
}

.hp-more-title a {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hp-blue);
}

.hp-more-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--hp-line);
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 600;
    color: #26344c;
}

.hp-more-link:last-child {
    border-bottom: 0;
}

.hp-more-link:hover {
    color: var(--hp-blue);
}

.hp-more-link time {
    flex: 0 0 auto;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--hp-faint);
    text-transform: uppercase;
}

/* ---------- footer alignment ---------- */
.hp-body .htmlBody {
    margin-top: 0;
    background: var(--hp-navy);
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
    .hp-nav {
        display: none;
    }

    .hp-menu-btn {
        display: block;
    }

    .hp-hero-title {
        font-size: 38px;
    }
}

@media (max-width: 900px) {
    .hp-hero {
        grid-template-columns: 1fr;
    }

    .hp-hero-lead {
        padding-right: 0;
        padding-bottom: 26px;
        border-bottom: 1px solid var(--hp-line);
    }

    .hp-hero-side {
        border-left: 0;
        padding-left: 0;
        padding-top: 22px;
    }

    .hp-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-latest-item:nth-last-child(-n+3) {
        border-bottom: 1px dashed var(--hp-line);
    }

    .hp-markets {
        flex-direction: column;
    }

    .hp-sections {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hp-more {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 720px) {
    .hp-wrap {
        width: auto;
        max-width: none;
        margin: 0 16px;
    }

    .hp-topbar-right a:not(:last-child) {
        display: none;
    }

    .hp-header-inner {
        height: 62px;
        gap: 12px;
    }

    .hp-logo img {
        width: 132px;
    }

    .hp-cta {
        height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .hp-ticker-inner {
        gap: 12px;
    }

    .hp-ticker-title {
        max-width: 180px;
    }

    .hp-hero {
        padding-top: 26px;
    }

    .hp-hero-title {
        font-size: 30px;
        letter-spacing: -.4px;
    }

    .hp-hero-excerpt {
        font-size: 15px;
    }

    .hp-side-title {
        font-size: 18px;
    }

    .hp-latest-grid {
        grid-template-columns: 1fr;
    }

    .hp-latest-item:nth-last-child(-n+3) {
        border-bottom: 1px dashed var(--hp-line);
    }

    .hp-latest-item:last-child {
        border-bottom: 0;
    }

    .hp-block {
        padding: 26px 0;
    }

    .hp-section-title {
        font-size: 20px;
    }

    .hp-lead-title {
        font-size: 20px;
    }

    .hp-list-item a {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .hp-list-date {
        text-align: left;
        padding-top: 0;
    }

    .hp-market-card {
        padding: 16px 16px 8px;
    }

    .hp-ticker-item {
        padding: 0 12px;
    }

    .hp-ticker-item:nth-child(n+4) {
        display: none;
    }
}
