/* =============================================================================
   Tikshoret News — Professional Content (modules 4 & 5) frontend styling
   Glossary tooltips, company tags, and the TL;DR block.
   ========================================================================== */

/* Glossary term mention — subtle blue dotted underline. */
.tkn-term.tkn-glossary {
    border-bottom: 1px dashed #1466b8;
    cursor: help;
    color: inherit;
}

/* Company mention — very subtle underline (spec §5.3). */
.tkn-term.tkn-company {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    color: inherit;
}

/* Tippy tooltip shell (uses Tippy's default theme as a base). */
.tippy-box[data-theme~='tikshoret'] {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px !important;
}
.tippy-box[data-theme~='tikshoret'] .tippy-content {
    padding: 12px 14px;
    text-align: right;
    direction: rtl;
}
.tippy-box[data-theme~='tikshoret'] .tippy-arrow { color: #ffffff; }

/* Glossary tooltip body. */
.tkn-tip__term { font-weight: 800; margin-bottom: 2px; }
.tkn-tip__en   { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.tkn-tip__short{ margin-bottom: 8px; }
.tkn-tip__more { color: #1466b8; font-weight: 700; text-decoration: none; }

/* Company tooltip body. */
.tkn-ctip { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.tkn-ctip__head { display: flex; align-items: center; gap: 8px; }
.tkn-ctip__logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.tkn-ctip__name { font-weight: 800; }
.tkn-ctip__price { font-size: 15px; font-weight: 700; }
.tkn-ctip__chg-up { color: #0a8a3e; }
.tkn-ctip__chg-down { color: #c01616; }
.tkn-ctip__articles { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid #eee; padding-top: 6px; }
.tkn-ctip__articles li { margin-bottom: 4px; font-size: 13px; }
.tkn-ctip__articles a { color: #1a1a1a; text-decoration: none; }
.tkn-ctip__profile { color: #1466b8; font-weight: 700; text-decoration: none; }

/* ---- TL;DR block ---------------------------------------------------------- */
.tikshoret-tldr {
    background: #f6f8fb;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 20px;
}
.tikshoret-tldr__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.tikshoret-tldr__title { font-weight: 800; font-size: 16px; }
.tikshoret-tldr__badge {
    font-size: 11px;
    color: #6b7280;
    background: #eef1f6;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 1px 8px;
}
.tikshoret-tldr__toggle {
    margin-inline-start: auto;
    background: none;
    border: none;
    color: #1466b8;
    font-weight: 700;
    cursor: pointer;
}
.tikshoret-tldr__list { margin: 0; padding-inline-start: 1.2em; }
.tikshoret-tldr__list li { margin-bottom: 4px; }
.tikshoret-tldr.is-collapsed .tikshoret-tldr__list { display: none; }
