/* ===== AI JARGON BUSTER ===== */

/* Hero subtitle — allow single-line fit */
.page-header p {
    max-width: 900px;
}

/* ------------------------------------------------
   SPLIT SECTION — exact homepage panel values
   ------------------------------------------------ */
.jb-split {
    padding: 3rem 2rem 3rem;
}
.jb-split-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: start;
}

/* Panels — exact homepage values */
.jb-panel {
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid #E2E4ED;
    box-shadow: 0 2px 8px rgba(18, 21, 61, 0.06);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* ------------------------------------------------
   PANEL HEADER
   ------------------------------------------------ */
.jb-panel-header {
    margin-bottom: 1.25rem;
}
.jb-panel-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #12153D;
    margin: 0 0 1rem;
}
.jb-panel-title em {
    font-style: normal;
    color: #1EC86A;
}

/* ------------------------------------------------
   SEARCH BAR — inside left panel
   ------------------------------------------------ */
.jb-search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.jb-search-input-wrap {
    flex: 1;
    position: relative;
    min-width: 180px;
}
.jb-search-input,
.jb-news-input {
    width: 100%;
    background: #fff;
    border: 1px solid #D0D3E8;
    color: #12153D;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.jb-search-input {
    padding-right: 68px;
}
.jb-search-input:focus,
.jb-news-input:focus {
    outline: none;
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}
.jb-search-input::placeholder,
.jb-news-input::placeholder {
    color: #8A8FAA;
}
.jb-clear-btn {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8A8FAA;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.jb-clear-btn:hover {
    color: #12153D;
}
.jb-suggestions-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #C8CAD8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.jb-suggestions-toggle.active {
    color: #6C63FF;
}
.jb-search-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    background: #1EC86A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}
.jb-search-btn:hover {
    background: #19B55E;
    transform: translateY(-1px);
}

/* Suggestions dropdown */
.jb-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #D0D3E8;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(18,21,61,0.1);
}
.jb-suggestion {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #4A4E7A;
    cursor: pointer;
    transition: background 0.1s;
}
.jb-suggestion:hover {
    background: #F5F6FA;
    color: #12153D;
}
.jb-suggestion-active {
    background: #F0EFFE;
    color: #12153D;
}

/* ------------------------------------------------
   LEFT PANEL STATES
   ------------------------------------------------ */
.jb-default-state {
    color: #8A8FAA;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 1rem;
}
.jb-default-state p {
    margin: 0;
    color: #8A8FAA;
}
.jb-loading {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}
.jb-loading p {
    color: #6C63FF;
    font-size: 0.92rem;
    margin: 0;
}
.jb-error {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}
.jb-error p {
    color: #C0392B;
    font-size: 0.92rem;
    margin: 0;
}

/* ------------------------------------------------
   ANSWER CARD
   ------------------------------------------------ */
.jb-answer-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #E2E4ED;
    border-left: 4px solid #1EC86A;
    box-shadow: 0 2px 8px rgba(18,21,61,0.06);
}
.jb-answer-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.jb-answer-term {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #12153D;
}
.jb-answer-abbr {
    font-size: 0.88rem;
    font-weight: 500;
    color: #6C63FF;
}
.jb-answer-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6C63FF;
    background: rgba(108,99,255,0.1);
    padding: 2px 8px;
    border-radius: 100px;
}
.jb-answer-def {
    font-size: 0.92rem;
    color: #4A4E7A;
    line-height: 1.7;
    margin: 0.5rem 0;
}
.jb-answer-why {
    border-top: 1px solid #E2E4ED;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 0.88rem;
    color: #4A4E7A;
    line-height: 1.65;
}
.jb-answer-why-label {
    color: #1EC86A;
    font-weight: 600;
}
.jb-answer-example {
    border-top: 1px solid #E2E4ED;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 0.82rem;
    color: #8A8FAA;
    line-height: 1.55;
}
.jb-answer-examples {
    border-top: 1px solid #E2E4ED;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}
.jb-answer-examples-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #12153D;
    margin-bottom: 0.5rem;
}
.jb-answer-examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.jb-answer-examples-list li {
    font-size: 0.85rem;
    color: #4A4E7A;
    line-height: 1.6;
    padding: 0.4rem 0 0.4rem 1rem;
    border-left: 2px solid #E2E4ED;
    margin-bottom: 0.5rem;
}
.jb-answer-funnel {
    border-top: 1px solid #E2E4ED;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}
.jb-answer-funnel a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6C63FF;
    text-decoration: none;
}
.jb-answer-funnel a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------
   RIGHT PANEL — NEWS
   ------------------------------------------------ */
.jb-news-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #D0D3E8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #fff;
}
.jb-news-search-bar .jb-news-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
    outline: none;
    background: transparent;
}
.jb-news-search-bar .jb-news-input:focus {
    box-shadow: none;
}
.jb-news-time-filter {
    border: none;
    border-left: 1px solid #D0D3E8;
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #12153D;
    background: #F5F6FA;
    cursor: pointer;
    appearance: auto;
    font-family: inherit;
    outline: none;
}
.jb-news-time-filter:focus {
    border-color: #6C63FF;
}
.jb-news-list {
    flex: 1;
    overflow-y: auto;
}
.jb-news-card {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #E2E4ED;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(18, 21, 61, 0.04);
}
.jb-news-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6C63FF;
    background: rgba(108, 99, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}
.jb-news-headline {
    font-size: 1rem;
    font-weight: 700;
    color: #12153D;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.jb-news-meta {
    font-size: 0.75rem;
    color: #8A8FAA;
    margin: 0 0 0.75rem;
}
.jb-news-source-name {
    font-weight: 600;
    color: #1EC86A;
}
.jb-news-synopsis {
    font-size: 0.85rem;
    color: #4A4E7A;
    line-height: 1.65;
    margin: 0 0 0.5rem;
}
.jb-news-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6C63FF;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.5rem;
}
.jb-news-expand-btn:hover {
    color: #1EC86A;
}
.jb-news-full-tldr {
    padding: 0.75rem;
    background: #F5F6FA;
    border-radius: 6px;
    border-left: 3px solid #1EC86A;
    margin-bottom: 0.5rem;
}
.jb-news-full-tldr p {
    font-size: 0.85rem;
    color: #4A4E7A;
    line-height: 1.6;
    margin: 0;
}
.jb-news-link-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.jb-news-link-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #12153D;
    white-space: nowrap;
}
.jb-news-link-url {
    font-size: 0.78rem;
    font-weight: 400;
    color: #6C63FF;
    text-decoration: none;
}
.jb-news-link-url:hover {
    text-decoration: underline;
}
.jb-news-terms-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E2E4ED;
}
.jb-news-terms-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #12153D;
    white-space: nowrap;
}
.jb-news-term-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6C63FF;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.jb-news-term-btn:hover {
    background: #6C63FF;
    color: #ffffff;
    border-color: #6C63FF;
}
.jb-jargon-link {
    color: #6C63FF;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
    font-weight: 500;
}
.jb-jargon-link:hover {
    color: #1EC86A;
}
.jb-news-empty,
.jb-news-loading {
    color: #8A8FAA;
    font-size: 0.88rem;
    text-align: center;
    padding: 2rem 0;
}

/* ------------------------------------------------
   MOBILE TABS
   ------------------------------------------------ */
.jb-mobile-tabs {
    display: none;
    background: #ffffff;
    border-top: 1px solid #E2E4ED;
    position: sticky;
    bottom: 0;
    z-index: 40;
}
.jb-mobile-tab {
    flex: 1;
    padding: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8A8FAA;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.jb-mobile-tab.active {
    color: #12153D;
    border-bottom-color: #1EC86A;
}

/* ------------------------------------------------
   RESPONSIVE — MOBILE
   ------------------------------------------------ */
@media (max-width: 768px) {
    .jb-split {
        padding: 0;
    }
    .jb-split-container {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 0;
    }
    .jb-panel {
        border-radius: 12px;
        min-height: auto;
    }
    #jb-panel-right {
        display: none;
    }
    .jb-mobile-tabs {
        display: flex;
    }
    .jb-search-bar {
        flex-wrap: nowrap;
    }
}

/* ================================================
   INDIVIDUAL TERM PAGE
   (preserves existing term.html styles)
   ================================================ */
.jb-term-page {
    padding: 2rem 0 0;
}
.jb-breadcrumb {
    font-size: 0.85rem;
    color: #8A8FAA;
    margin-bottom: 1.25rem;
}
.jb-breadcrumb a {
    color: #8A8FAA;
    text-decoration: none;
}
.jb-breadcrumb a:hover {
    color: #12153D;
}
.jb-term-detail {
    padding: 2.5rem 0;
}
.jb-term-detail h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #12153D;
    margin: 2rem 0 0.75rem;
}
.jb-term-detail h2:first-child {
    margin-top: 0;
}
.jb-term-definition {
    font-size: 1.05rem;
    color: #4A4E7A;
    line-height: 1.75;
    margin: 0 0 1.5rem;
}
.jb-term-why {
    background: #F5F6FA;
    border-left: 4px solid #1EC86A;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 0 0 2rem;
}
.jb-term-why p {
    font-size: 0.95rem;
    color: #4A4E7A;
    line-height: 1.7;
    margin: 0;
}
.jb-term-example {
    background: #F9F9FC;
    border: 1px solid #E2E4ED;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 0 0 2rem;
}
.jb-term-example p {
    font-size: 0.92rem;
    color: #4A4E7A;
    line-height: 1.65;
    margin: 0;
    font-style: italic;
}
.jb-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.jb-related a {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: #F5F6FA;
    color: #6C63FF;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
}
.jb-related a:hover {
    background: #E8E9F2;
}
.jb-appearances {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}
.jb-appearances li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #F0F0F5;
    font-size: 0.88rem;
}
.jb-appearances li:last-child {
    border-bottom: none;
}
.jb-appearances a {
    color: #6C63FF;
    text-decoration: none;
}
.jb-appearances a:hover {
    text-decoration: underline;
}
.jb-appearances .jb-app-date {
    color: #8A8FAA;
    font-size: 0.82rem;
}
.jb-funnel-link {
    display: block;
    background: rgba(108,99,255,0.06);
    border: 1px solid rgba(108,99,255,0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    text-decoration: none;
    color: #4A4E7A;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: border-color 0.2s;
}
.jb-funnel-link:hover {
    border-color: #6C63FF;
}
.jb-funnel-link strong {
    color: #6C63FF;
}
.jb-back {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: #6C63FF;
    text-decoration: none;
    font-weight: 600;
}
.jb-back:hover {
    text-decoration: underline;
}

/* ================================================
   DAILY BRIEFING PAGE
   (preserves existing briefing.html styles)
   ================================================ */
.jb-briefing-intro {
    font-size: 1.1rem;
    color: #4A4E7A;
    line-height: 1.75;
    margin: 0 0 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E2E4ED;
}
.jb-story-card {
    padding: 2rem 0;
    border-bottom: 1px solid #E2E4ED;
}
.jb-story-card:last-of-type {
    border-bottom: none;
}
.jb-story-source {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8A8FAA;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.jb-story-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
}
.jb-story-headline a {
    color: #12153D;
    text-decoration: none;
}
.jb-story-headline a:hover {
    color: #6C63FF;
}
.jb-story-excerpt {
    background: #F9F9FC;
    border: 1px solid #E2E4ED;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.jb-story-excerpt p {
    font-size: 0.9rem;
    color: #4A4E7A;
    line-height: 1.65;
    margin: 0;
}
.jb-story-tldr {
    background: #F5F6FA;
    border-left: 4px solid #1EC86A;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.jb-tldr-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1EC86A;
    margin-bottom: 0.4rem;
}
.jb-story-tldr p {
    font-size: 0.95rem;
    color: #4A4E7A;
    line-height: 1.7;
    margin: 0;
}
.jb-story-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.jb-story-term-link {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(108,99,255,0.08);
    color: #6C63FF;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
}
.jb-story-term-link:hover {
    background: rgba(108,99,255,0.18);
}
.jb-story-monardx {
    display: block;
    font-size: 0.85rem;
    color: #6C63FF;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.jb-story-monardx:hover {
    text-decoration: underline;
}
.jb-story-readmore {
    display: inline-block;
    font-size: 0.82rem;
    color: #8A8FAA;
    text-decoration: none;
}
.jb-story-readmore:hover {
    color: #6C63FF;
}
.jb-new-terms {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E4ED;
}
.jb-new-terms h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #12153D;
    margin: 0 0 0.75rem;
}
.jb-briefing-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E4ED;
    flex-wrap: wrap;
}
.jb-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E4ED;
}
.jb-page-info {
    font-size: 0.85rem;
    color: #8A8FAA;
}
