/*
|--------------------------------------------------------------------------
| Stock details core UI
|--------------------------------------------------------------------------
| Extracted from details.rtl.css and cleaned for the English/LTR stock page.
| Purpose:
| - Breadcrumb/back-to-results area
| - Stock section jump links
| - Page context note
| - Inline data update notice
| - Stock FAQ block
|
| Keep this file after app.css, styleTable.css and stock-insights.rtl.css
| until the page is fully migrated away from RTL-specific assets.
*/

/* Natural page scroll for full-page screenshots and normal LTR rendering */
html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.stock-details-page {
    direction: ltr;
    text-align: left;
}

/* =========================================================
   Breadcrumbs / Back to results
   ========================================================= */

.stock-details-page nav[aria-label="breadcrumb"] {
    float: left;
    text-align: left;
}

.stock-details-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: transparent;
    border-radius: 0;
    list-style: none;
    margin: 0 0 8px;
    padding: 8px 0;
    direction: ltr;
}

.stock-details-page .breadcrumb-item {
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.55;
}

.stock-details-page .breadcrumb-item a {
    color: #246199;
    text-decoration: none;
}

.stock-details-page .breadcrumb-item a:hover {
    color: #0b4f7a;
    text-decoration: underline;
}

.stock-details-page .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
    padding-right: 0;
}

.stock-details-page .breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    padding-left: 0;
    color: #98a2b3;
    content: var(--bs-breadcrumb-divider, "/");
}

.stock-details-page .breadcrumb-item.active {
    color: #667085;
}

.stock-details-page .backtolist {
    float: right;
    padding: 8px 0;
    text-align: right;
    font-size: 0.86rem;
}

.stock-details-page .backtolist a {
    color: #246199;
    text-decoration: none;
}

.stock-details-page .backtolist a:hover {
    color: #0b4f7a;
    text-decoration: underline;
}

@media (max-width: 479px) {
    .stock-details-page nav[aria-label="breadcrumb"] {
        float: none !important;
        text-align: center !important;
        width: 100%;
    }

    .stock-details-page .breadcrumb {
        float: none !important;
        display: inline-flex;
        justify-content: center;
        margin: 0 auto 0 !important;
        padding: 0 !important;
        font-size: 11px;
        text-align: center !important;
    }

    .stock-details-page .backtolist {
        float: none !important;
        margin: 0 auto 10px;
        padding: 0 0 10px;
        text-align: center;
        font-size: 11px;
    }
}

/* =========================================================
   Stock section jump links
   ========================================================= */

.stock-details-page .stock-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
    direction: ltr;
    text-align: left;
}

.stock-details-page .stock-section-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #f8fbff;
    color: #1f3b57 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.stock-details-page .stock-section-nav__link:hover,
.stock-details-page .stock-section-nav__link:focus {
    background: #eef4ff;
    border-color: #b9d2f3;
    transform: translateY(-1px);
}

.stock-details-page .stock-page-context-note {
    margin: 0 0 12px;
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.8;
    direction: ltr;
    text-align: left;
}

@media (max-width: 767.98px) {
    .stock-details-page .stock-section-nav {
        gap: 6px;
        margin: 8px 0 12px;
    }

    .stock-details-page .stock-section-nav__link {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .stock-details-page .stock-page-context-note {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }
}

/* =========================================================
   Inline stock data update notice
   ========================================================= */

.stock-details-page .stock-inline-notice-slot {
    width: 100%;
    min-height: 84px;
    margin: 10px 0 16px;
    direction: ltr;
    text-align: left;
}

.stock-details-page .stock-inline-notice {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 84px;
    padding: 14px 52px 14px 16px;
    border-radius: 16px;
    border: 1px solid #e7d38a;
    background: linear-gradient(135deg, #fff8e1, #ffefbf);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: opacity .22s ease, transform .22s ease, background-color .22s ease, border-color .22s ease;
}

.stock-details-page .stock-inline-notice.is-fading {
    opacity: .28;
    transform: translateY(2px);
}

.stock-details-page .stock-inline-notice.is-closing {
    opacity: 0;
    transform: translateY(-4px);
}

.stock-details-page .stock-inline-notice--fair {
    background: linear-gradient(135deg, #fff8e1, #ffefbf);
    border-color: #e7c85f;
}

.stock-details-page .stock-inline-notice__close {
    position: absolute;
    top: 10px;
    right: 12px;
    left: auto;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: #475467;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.stock-details-page .stock-inline-notice__content {
    width: 100%;
}

.stock-details-page .stock-inline-notice__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.stock-details-page .stock-inline-notice__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 1rem;
}

.stock-details-page .stock-inline-notice__text {
    flex: 1 1 auto;
    min-width: 0;
    color: #344054;
    font-size: 0.95rem;
    line-height: 1.8;
}

.stock-details-page .stock-inline-notice__text strong {
    color: #101828;
}

@media (max-width: 767.98px) {
    .stock-details-page .stock-inline-notice-slot {
        min-height: 92px;
        margin: 8px 0 14px;
    }

    .stock-details-page .stock-inline-notice {
        min-height: 92px;
        padding: 14px 44px 14px 12px;
        border-radius: 14px;
    }

    .stock-details-page .stock-inline-notice__row {
        gap: 10px;
    }

    .stock-details-page .stock-inline-notice__text {
        font-size: 0.89rem;
        line-height: 1.75;
    }

    .stock-details-page .stock-inline-notice__close {
        top: 8px;
        right: 8px;
    }
}

/* =========================================================
   Stock FAQ section
   ========================================================= */

.stock-details-page .stock-faq-section {
    direction: ltr;
    text-align: left;
    margin: 2rem 0 2.5rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e6edf3;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.stock-details-page .stock-faq-header {
    margin-bottom: 1.4rem;
    text-align: left;
}

.stock-details-page .stock-faq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
}

.stock-details-page .stock-faq-title {
    margin: 0 0 0.6rem;
    color: #182230;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: -0.01em;
    text-align: left;
}

.stock-details-page .stock-faq-intro {
    margin: 0;
    max-width: 1020px;
    color: #5a6678;
    font-size: 1rem;
    line-height: 2;
    text-align: left;
}

.stock-details-page .stock-faq-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 1.4rem 0 1.65rem;
}

.stock-details-page .stock-faq-summary-card {
    position: relative;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid #e7ebf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.045);
    overflow: hidden;
    min-height: 126px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stock-details-page .stock-faq-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(16, 24, 40, 0.06);
    border-color: #d9e3ec;
}

.stock-details-page .stock-faq-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #98a2b3;
}

.stock-details-page .stock-faq-summary-card[data-status="positive"]::before { background: #12b76a; }
.stock-details-page .stock-faq-summary-card[data-status="negative"]::before { background: #f04438; }
.stock-details-page .stock-faq-summary-card[data-status="neutral"]::before  { background: #f79009; }
.stock-details-page .stock-faq-summary-card[data-status="info"]::before     { background: #1570ef; }
.stock-details-page .stock-faq-summary-card[data-status="unavailable"]::before { background: #98a2b3; }

.stock-details-page .stock-faq-summary-label {
    margin-bottom: 0.4rem;
    color: #5f6b7b;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.6;
}

.stock-details-page .stock-faq-summary-value {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.5;
    word-break: break-word;
}

.stock-details-page .stock-faq-summary-meta {
    font-size: 0.9rem;
    line-height: 1.85;
}

.stock-details-page .stock-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-details-page .stock-faq-card {
    display: block !important;
    border: 1px solid #e7ebf0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
    overflow: hidden !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stock-details-page .stock-faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(16, 24, 40, 0.07);
    border-color: #dbe3ea !important;
}

.stock-details-page .stock-faq-card[data-status="positive"] { border-left: 4px solid #12b76a !important; }
.stock-details-page .stock-faq-card[data-status="negative"] { border-left: 4px solid #f04438 !important; }
.stock-details-page .stock-faq-card[data-status="neutral"]  { border-left: 4px solid #f79009 !important; }
.stock-details-page .stock-faq-card[data-status="info"]     { border-left: 4px solid #1570ef !important; }
.stock-details-page .stock-faq-card[data-status="unavailable"] { border-left: 4px solid #98a2b3 !important; }

.stock-details-page .stock-faq-card .accordion-header {
    margin: 0;
}

.stock-details-page .stock-faq-button {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 1.05rem 1.15rem !important;
    border: 0 !important;
    background: #fff !important;
    color: #101828 !important;
    box-shadow: none !important;
    text-align: left !important;
    font-weight: 900;
}

.stock-details-page .stock-faq-button::after {
    margin-left: auto;
    margin-right: 0;
}

.stock-details-page .stock-faq-button:not(.collapsed) {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%) !important;
}

.stock-details-page .stock-faq-button:focus,
.stock-details-page .stock-faq-button:active,
.stock-details-page .stock-faq-button:hover {
    box-shadow: none !important;
}

.stock-details-page .stock-faq-question-text {
    flex: 1 1 auto;
    color: #101828;
    font-size: 0.98rem;
    line-height: 1.75;
    font-weight: 900;
    text-align: left;
}

.stock-details-page .stock-faq-answer-wrap {
    border-top: 1px solid #edf1f5;
    background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
}

.stock-details-page .stock-faq-answer {
    padding: 0.9rem 1.15rem 1.05rem;
    color: #4f5b6c;
    font-size: 0.99rem;
    line-height: 2.02;
    text-align: left;
}

.stock-details-page .stock-faq-inline-value {
    font-weight: 900;
}

.stock-details-page .stock-faq-inline-value.stock-faq-value--positive,
.stock-details-page .stock-faq-value--positive {
    color: #039855;
}

.stock-details-page .stock-faq-inline-value.stock-faq-value--negative,
.stock-details-page .stock-faq-value--negative {
    color: #d92d20;
}

.stock-details-page .stock-faq-inline-value.stock-faq-value--neutral,
.stock-details-page .stock-faq-value--neutral {
    color: #dc6803;
}

.stock-details-page .stock-faq-inline-value.stock-faq-value--info,
.stock-details-page .stock-faq-value--info {
    color: #175cd3;
}

.stock-details-page .stock-faq-inline-value.stock-faq-value--unavailable,
.stock-details-page .stock-faq-value--unavailable {
    color: #667085;
}

@media (max-width: 991.98px) {
    .stock-details-page .stock-faq-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .stock-details-page .stock-faq-section {
        margin: 1.5rem 0 2rem;
        padding: 1rem;
        border-radius: 18px;
    }

    .stock-details-page .stock-faq-header {
        margin-bottom: 1.1rem;
    }

    .stock-details-page .stock-faq-title {
        font-size: 1.35rem;
        line-height: 1.55;
    }

    .stock-details-page .stock-faq-intro {
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .stock-details-page .stock-faq-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 1rem 0 1.25rem;
    }

    .stock-details-page .stock-faq-summary-card {
        min-height: auto;
        padding: 0.9rem;
    }

    .stock-details-page .stock-faq-button {
        padding: 0.94rem 0.96rem !important;
    }

    .stock-details-page .stock-faq-question-text {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .stock-details-page .stock-faq-answer {
        padding: 0.85rem 0.95rem 0.95rem;
        font-size: 0.95rem;
        line-height: 1.98;
    }
}

/* =========================================================
   PriceToWorth Featured-in chips on stock details pages
   Same visual language as list pages; separate from metric badges.
   ========================================================= */
.stock-details-page .stock-listing-types {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 10px 0 14px !important;
    padding: 8px 10px 8px 12px !important;
    border-left: 4px solid #f28c28 !important;
    border-radius: 16px !important;
    background: linear-gradient(90deg, rgba(242, 140, 40, 0.105), rgba(31, 78, 121, 0.05)) !important;
    box-shadow: inset 0 0 0 1px rgba(216, 225, 235, 0.78), 0 8px 18px rgba(15, 23, 42, 0.035) !important;
}

.stock-details-page .stock-listing-types__label,
.stock-details-page .stock-listing-types .gradient-text {
    display: inline-flex !important;
    align-items: center !important;
    color: #8a4b00 !important;
    background: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #8a4b00 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.stock-details-page .adlistingtype-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 28px !important;
    padding: 6px 11px !important;
    border-radius: 10px !important;
    border: 1px solid #cfd8e3 !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: #243447 !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
}

.stock-details-page .adlistingtype-link::before {
    content: "" !important;
    flex: 0 0 auto !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #e63946, #ff9e1b) !important;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.12) !important;
}

.stock-details-page .adlistingtype-link:hover,
.stock-details-page .adlistingtype-link:focus {
    border-color: #98b5d1 !important;
    background: linear-gradient(180deg, #ffffff, #eef6ff) !important;
    color: #163a5a !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(31, 78, 121, 0.12) !important;
}

@media (max-width: 575.98px) {
    .stock-details-page .stock-listing-types {
        width: 100% !important;
        margin: 8px 0 12px !important;
        padding: 7px 9px !important;
        gap: 6px !important;
    }

    .stock-details-page .stock-listing-types__label,
    .stock-details-page .stock-listing-types .gradient-text {
        width: 100% !important;
    }

    .stock-details-page .adlistingtype-link {
        min-height: 26px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}
