/* (c) Haxter Corporation | Stock Quote | H27-HX26-MS */

.hxstock_page {
    --hxstock_blue: #0067b8;
    --hxstock_blue_dark: #005da6;
    --hxstock_text: #171717;
    --hxstock_muted: #62666d;
    --hxstock_border: #e4e6e8;
    --hxstock_soft: #f6f7f8;
    --hxstock_surface: #ffffff;
    --hxstock_navy: #07162b;
    --hxstock_success: #107c10;
    --hxstock_success_soft: #eef8ee;
    --hxstock_danger: #b42318;
    --hxstock_danger_soft: #fff3f1;

    background: #ffffff;
}

/* TOP */

.hxstock_top {
    background:
        radial-gradient(circle at 92% 20%, rgba(0, 103, 184, 0.085), transparent 25%),
        #ffffff;
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_top_inner {
    max-width: 980px;
    padding: 72px 0 64px;
}

.hxstock_top h1 {
    margin: 0;
    color: var(--hxstock_text);
    font-size: clamp(48px, 5.6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.064em;
    font-weight: 600;
}

.hxstock_top p:not(.hxinv_label) {
    max-width: 780px;
    margin: 22px 0 0;
    color: var(--hxstock_muted);
    font-size: 18px;
    line-height: 1.64;
}

.hxstock_top_meta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--hxstock_border);
    border-left: 1px solid var(--hxstock_border);
}

.hxstock_top_meta span {
    padding: 12px 15px;
    background: #ffffff;
    color: var(--hxstock_text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    border-right: 1px solid var(--hxstock_border);
    border-bottom: 1px solid var(--hxstock_border);
}

/* NAV */

.hxstock_navbar {
    position: sticky;
    top: 0;
    z-index: 20;
}

/* QUOTE STAGE */

.hxstock_quote_stage {
    padding: 72px 0 78px;
    background: #ffffff;
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_quote_center {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hxstock_quote_center h2 {
    margin: 0;
    color: var(--hxstock_blue);
    font-size: clamp(58px, 8.4vw, 118px);
    line-height: 0.96;
    letter-spacing: -0.078em;
    font-weight: 600;
}

.hxstock_quote_center p {
    margin: 20px 0 0;
    color: var(--hxstock_muted);
    font-size: 17px;
    line-height: 1.58;
}

.hxstock_quote_center > strong {
    display: block;
    margin-top: 22px;
    color: var(--hxstock_text);
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.hxstock_quote_matrix {
    max-width: 980px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--hxstock_border);
    border-left: 1px solid var(--hxstock_border);
}

.hxstock_quote_cell {
    min-height: 136px;
    padding: 24px 26px;
    background: #ffffff;
    border-right: 1px solid var(--hxstock_border);
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_quote_cell span {
    display: block;
    margin-bottom: 14px;
    color: var(--hxstock_muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.hxstock_quote_cell strong {
    display: block;
    color: var(--hxstock_text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.hxstock_quote_cell p {
    margin: 12px 0 0;
    color: var(--hxstock_muted);
    font-size: 14px;
    line-height: 1.48;
}

.hxstock_quote_cell.hxstock_change_positive {
    background: var(--hxstock_success_soft);
}

.hxstock_quote_cell.hxstock_change_positive strong {
    color: var(--hxstock_success);
}

.hxstock_quote_cell.hxstock_change_negative {
    background: var(--hxstock_danger_soft);
}

.hxstock_quote_cell.hxstock_change_negative strong {
    color: var(--hxstock_danger);
}

/* SPLIT */

.hxstock_split_band {
    padding: 0;
    background: var(--hxstock_navy);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hxstock_split_inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 150px 160px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.hxstock_split_inner span {
    color: #9fc8ee;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.hxstock_split_inner strong {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 600;
}

.hxstock_split_inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.55;
}

/* COMPACT SECTION HEAD */

.hxstock_section_compact_head {
    max-width: 900px;
    margin-bottom: 34px;
}

.hxstock_section_compact_head h2 {
    margin: 0;
    color: var(--hxstock_text);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.09;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.hxstock_section_compact_head p:not(.hxinv_label) {
    margin: 18px 0 0;
    color: var(--hxstock_muted);
    font-size: 17px;
    line-height: 1.62;
}

/* CHART */

.hxstock_chart_panel {
    height: 520px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--hxstock_border);
}

.hxstock_chart_panel canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* HISTORY MODULE */

.hxstock_history_section {
    background: #ffffff;
}

.hxstock_history_head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 30px;
}

.hxstock_history_head h2 {
    margin: 0;
    color: var(--hxstock_text);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.09;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.hxstock_history_head p:not(.hxinv_label) {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--hxstock_muted);
    font-size: 17px;
    line-height: 1.62;
}

.hxstock_history_latest {
    padding: 24px;
    background: var(--hxstock_soft);
    border: 1px solid var(--hxstock_border);
}

.hxstock_history_latest span {
    display: block;
    margin-bottom: 10px;
    color: var(--hxstock_muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.hxstock_history_latest strong {
    display: block;
    color: var(--hxstock_blue);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.hxstock_history_latest p {
    margin: 10px 0 0;
    color: var(--hxstock_muted);
    font-size: 14px;
    line-height: 1.45;
}

.hxstock_history_meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-top: 1px solid var(--hxstock_border);
    border-left: 1px solid var(--hxstock_border);
}

.hxstock_history_meta span {
    padding: 12px 14px;
    background: #ffffff;
    color: var(--hxstock_text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    border-right: 1px solid var(--hxstock_border);
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_history_table_shell {
    max-height: 620px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--hxstock_border);
}

.hxstock_history_table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #ffffff;
}

.hxstock_history_table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 15px 18px;
    background: #ffffff;
    color: var(--hxstock_text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_history_table td {
    padding: 16px 18px;
    color: var(--hxstock_text);
    font-size: 15px;
    line-height: 1.45;
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_history_table td:nth-child(1) {
    width: 180px;
    color: var(--hxstock_muted);
    font-weight: 600;
}

.hxstock_history_table td:nth-child(2) strong {
    color: var(--hxstock_text);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
}

.hxstock_history_table td:nth-child(2) span {
    display: inline-flex;
    margin-left: 10px;
    color: var(--hxstock_blue);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.hxstock_history_table td:nth-child(3) {
    width: 130px;
    color: var(--hxstock_muted);
    font-size: 13px;
    font-weight: 700;
}

.hxstock_history_row:hover td {
    background: var(--hxstock_soft);
}

.hxstock_history_row_event td {
    background: var(--hxstock_navy);
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hxstock_history_row_event td:nth-child(1),
.hxstock_history_row_event td:nth-child(3) {
    color: rgba(255, 255, 255, 0.72);
}

.hxstock_history_row_event td:nth-child(2) strong {
    color: #ffffff;
}

.hxstock_history_row_event td:nth-child(2) span {
    color: #9fc8ee;
}

.hxstock_history_row_event:hover td {
    background: #0a1f3d;
}

.hxstock_history_note {
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--hxstock_soft);
    border: 1px solid var(--hxstock_border);
}

.hxstock_history_note p {
    margin: 0;
    color: var(--hxstock_muted);
    font-size: 14px;
    line-height: 1.58;
}

/* NOTICE */

.hxstock_notice_panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
    gap: 54px;
    align-items: start;
}

.hxstock_notice_panel h2 {
    margin: 0;
    color: var(--hxstock_text);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.09;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.hxstock_notice_panel p:not(.hxinv_label) {
    margin: 18px 0 0;
    color: var(--hxstock_muted);
    font-size: 17px;
    line-height: 1.62;
}

.hxstock_notice_list {
    display: grid;
    border-top: 1px solid var(--hxstock_border);
    border-left: 1px solid var(--hxstock_border);
}

.hxstock_notice_item {
    padding: 18px 20px;
    background: #ffffff;
    color: var(--hxstock_text);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
    border-right: 1px solid var(--hxstock_border);
    border-bottom: 1px solid var(--hxstock_border);
}

/* ACCESSIBILITY */

.hxstock_page a:focus-visible,
.hxstock_page canvas:focus-visible {
    outline: 2px solid var(--hxstock_blue);
    outline-offset: 3px;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .hxstock_history_head,
    .hxstock_notice_panel {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hxstock_history_latest {
        max-width: 380px;
    }
}

@media (max-width: 920px) {
    .hxstock_top_inner {
        padding: 58px 0 54px;
    }

    .hxstock_quote_stage {
        padding: 58px 0 64px;
    }

    .hxstock_quote_matrix {
        grid-template-columns: 1fr;
    }

    .hxstock_split_inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0;
    }

    .hxstock_chart_panel {
        height: 440px;
        padding: 20px;
    }
}

@media (max-width: 820px) {
    .hxstock_top h1,
    .hxstock_quote_center h2,
    .hxstock_section_compact_head h2,
    .hxstock_history_head h2,
    .hxstock_notice_panel h2,
    .hxstock_quote_cell strong,
    .hxstock_history_latest strong {
        font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: 500;
        letter-spacing: -0.028em;
        text-wrap: balance;
    }

    .hxstock_top h1 {
        font-size: clamp(42px, 11vw, 56px);
        line-height: 1.05;
    }

    .hxstock_quote_center h2 {
        font-size: clamp(48px, 13vw, 74px);
        line-height: 1;
    }

    .hxstock_top p:not(.hxinv_label),
    .hxstock_quote_center p,
    .hxstock_section_compact_head p:not(.hxinv_label),
    .hxstock_history_head p:not(.hxinv_label),
    .hxstock_notice_panel p:not(.hxinv_label) {
        font-size: 17px;
        line-height: 1.68;
        letter-spacing: -0.01em;
    }

    .hxstock_quote_cell {
        min-height: auto;
        padding: 22px;
    }

    .hxstock_history_table_shell {
        max-height: 540px;
    }
}

@media (max-width: 560px) {
    .hxstock_top_inner {
        padding: 48px 0;
    }

    .hxstock_top_meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hxstock_quote_stage {
        padding: 48px 0 54px;
    }

    .hxstock_quote_matrix {
        margin-top: 34px;
    }

    .hxstock_chart_panel {
        height: 360px;
        padding: 16px;
    }

    .hxstock_history_latest {
        max-width: none;
    }

    .hxstock_history_table {
        min-width: 640px;
    }

    .hxstock_history_table td,
    .hxstock_history_table th {
        padding: 14px 16px;
    }

    .hxstock_notice_item {
        padding: 16px;
    }
}

.hxstock_top_note {
    max-width: 820px;
    margin-top: 30px;
    padding: 18px 20px;
    background: #ffffff;
    border-left: 3px solid var(--hxstock_blue);
    border-top: 1px solid var(--hxstock_border);
    border-right: 1px solid var(--hxstock_border);
    border-bottom: 1px solid var(--hxstock_border);
}

.hxstock_top_note p {
    margin: 0;
    color: var(--hxstock_muted);
    font-size: 15px;
    line-height: 1.62;
}