/* Entity pages of the CTI redesign (threats, countries, panorama). Prefix: ix- */
.ix-page { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.25rem 2.5rem; }
.ix-kpis { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ix-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; flex-wrap: wrap; }
.ix-tab { padding: 0.55rem 0.95rem; font-size: 0.8rem; font-weight: 600; color: #5a6b7d; text-decoration: none;
          border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ix-tab:hover { color: #1C2B3A; }
.ix-tab--active { color: #1C2B3A; border-bottom-color: #2AA89D; }
.ix-tab-count { font-weight: 500; color: var(--text-muted); margin-left: 0.25rem; }
.ix-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.9rem; }
.ix-filters input[type=search], .ix-filters select {
    font: inherit; font-size: 0.8rem; padding: 0.4rem 0.6rem; border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-sm); background: #fff; color: #1C2B3A; }
.ix-filters input[type=search] { min-width: 220px; }
.ix-check { font-size: 0.78rem; color: #4a5568; display: inline-flex; align-items: center; gap: 0.3rem; }
.ix-reset { font-size: 0.78rem; color: var(--color-secondary); }
.ix-count { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.ix-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.ix-pill { font-size: 0.75rem; padding: 0.3rem 0.75rem; border-radius: 14px; border: 1px solid var(--border-color-dark);
           color: #4a5568; text-decoration: none; background: #fff; }
.ix-pill--active { background: #1C2B3A; color: #fff; border-color: #1C2B3A; }
.ix-table-card { padding: 0.4rem 1rem 0.6rem; overflow-x: auto; }
.ix-table td { font-size: 0.8rem; }
.ix-table th.ix-num, .ix-table td.ix-num { text-align: right; white-space: nowrap; }
/* a text column after a right-aligned number: keep the two headers apart */
.ix-table th.ix-num + th:not(.ix-num), .ix-table td.ix-num + td:not(.ix-num) { padding-left: 1.75rem; }
.ix-strong { font-weight: 600; color: #1C2B3A; text-decoration: none; }
.ix-strong:hover { color: var(--color-secondary); text-decoration: underline; }
.ix-sub { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.1rem; line-height: 1.35; }
.ix-id { font-size: 0.62rem; font-weight: 600; color: #5a6b7d; background: #edf2f7; border-radius: 3px; padding: 0.05rem 0.3rem; }
.ix-muted { color: var(--text-muted); }
.ix-flag { vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 1px rgba(0,0,0,.35); }
.ix-chip { display: inline-block; font-size: 0.65rem; font-weight: 600; padding: 0.1rem 0.35rem; margin: 0 0.2rem 0.2rem 0;
           border-radius: 3px; background: #edf2f7; color: #2d3748; text-decoration: none; white-space: nowrap; }
a.ix-chip:hover { background: #e2e8f0; }
.ix-chip--actor { background: #e9d8fd; color: #553c9a; }
/* A figure that is shown but never added to totals (programme envelope, investment target), or a caveat on a block */
.ix-scope { display: inline-block; font-size: 0.6rem; font-weight: 600; padding: 0.05rem 0.35rem; border-radius: 3px;
            background: #fefcbf; color: #744210; white-space: nowrap; cursor: help; vertical-align: middle; }
.ix-chip--cve { background: #fed7d7; color: #9b2c2c; }
.ix-chip--technique { background: #bee3f8; color: #2a4365; }
.ix-chip--country { background: #e6fffa; color: #285e61; }
.ix-chip--eu { background: #ebf4ff; color: #2c5aa0; }
.ix-tag-ransom { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.35rem; border-radius: 3px;
                 background: #fed7d7; color: #9b2c2c; text-transform: uppercase; letter-spacing: 0.03em; }
.ix-epss { display: inline-flex; align-items: center; gap: 0.35rem; justify-content: flex-end; }
.ix-epss-bar { width: 46px; height: 5px; background: #edf2f7; border-radius: 3px; overflow: hidden; }
.ix-epss-bar span { display: block; height: 100%; background: #dd6b20; }
.ix-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ix-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ix-stack { display: flex; flex-direction: column; gap: 1rem; }
.ix-prose { font-size: 0.85rem; line-height: 1.65; color: #2d3748; }
.ix-prose p { margin: 0 0 0.6rem; }
.ix-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; font-size: 0.8rem; margin: 0; }
.ix-dl dt { color: var(--text-secondary); font-weight: 600; }
.ix-dl dd { margin: 0; }
.ix-tactic { display: grid; grid-template-columns: 150px 1fr; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid #f0f2f5; }
.ix-tactic:last-child { border-bottom: none; }
.ix-tactic-name { font-size: 0.72rem; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.15rem; }
.ix-tech { display: inline-block; font-size: 0.72rem; padding: 0.15rem 0.45rem; margin: 0 0.25rem 0.25rem 0; border-radius: 3px;
           background: #ebf8ff; color: #2a4365; text-decoration: none; border: 1px solid #bee3f8; }
.ix-tech:hover { background: #bee3f8; }
.ix-tech b { font-weight: 700; margin-right: 0.2rem; }
.ix-list { list-style: none; margin: 0; padding: 0; }
.ix-list li { padding: 0.5rem 0; border-bottom: 1px solid #f0f2f5; font-size: 0.8rem; line-height: 1.45; }
.ix-list li:last-child { border-bottom: none; }
.ix-list a { color: #1C2B3A; text-decoration: none; font-weight: 500; }
.ix-list a:hover { color: var(--color-secondary); text-decoration: underline; }
.ix-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
.ix-map { height: 440px; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); margin-bottom: 1rem; z-index: 0; }
.ix-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.72rem; color: #4a5568; margin: -0.5rem 0 1rem; }
.ix-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.3rem; vertical-align: -1px; }
.ix-legend i.ix-sq { border-radius: 2px; }
.ix-event { display: grid; grid-template-columns: 78px 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #f0f2f5; }
.ix-event:last-child { border-bottom: none; }
.ix-event-date { font-size: 0.72rem; color: var(--text-secondary); font-weight: 600; padding-top: 0.1rem; }
.ix-note { font-size: 0.75rem; color: #5a6b7d; background: #f7fafc; border: 1px solid var(--border-color); border-radius: 6px;
           padding: 0.55rem 0.8rem; margin-bottom: 1rem; line-height: 1.5; }
.ix-source { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.9rem; line-height: 1.5; }
.ix-pager { display: flex; gap: 0.4rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: 0.8rem; }
.ix-pager a, .ix-pager span { padding: 0.3rem 0.65rem; border: 1px solid var(--border-color); border-radius: 4px; text-decoration: none; color: #2d3748; background: #fff; }
.ix-pager span.ix-pager-cur { background: #1C2B3A; color: #fff; border-color: #1C2B3A; }
.ix-bar-row { display: grid; grid-template-columns: 1fr 90px 28px; gap: 0.5rem; align-items: center; font-size: 0.78rem; padding: 0.2rem 0; }
.ix-bar { height: 6px; background: #edf2f7; border-radius: 3px; overflow: hidden; }
.ix-bar span { display: block; height: 100%; background: #2c5aa0; }
.ix-bar-row--hl { font-weight: 600; }
.ix-bar-row--hl .ix-bar span { background: #2AA89D; }
.ix-back { font-size: 0.75rem; color: var(--color-secondary); text-decoration: none; display: inline-block; margin-bottom: 0.6rem; }
@media (max-width: 900px) {
    .ix-grid, .ix-grid-2 { grid-template-columns: 1fr; }
    .ix-tactic { grid-template-columns: 1fr; gap: 0.2rem; }
    .ix-map { height: 320px; }
}
.ix-kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.ix-kpi-box { background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 0.7rem 0.9rem; }
.ix-kpi-box-val { font-size: 1.35rem; font-weight: 700; color: #1C2B3A; line-height: 1.1; }
.ix-kpi-box-lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8896a6; font-weight: 600; margin-top: 0.2rem; }
.ix-country-tabs { margin-top: 0.25rem; }
.ix-tabpanel[hidden] { display: none !important; }
.ix-eu-issues { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.8rem; line-height: 1.55; }
@media (max-width: 900px) { .ix-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ix-changes li { display: flex; gap: 0.6rem; align-items: baseline; }
.ix-change-kind { flex: 0 0 62px; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
                  padding: 0.12rem 0.35rem; border-radius: 3px; text-align: center; }
.ix-change-kind--physical { background: #fefcbf; color: #975a16; }
.ix-change-kind--eu { background: #ebf4ff; color: #2c5aa0; }
.ix-change-kind--risk { background: #fff5f5; color: #9b2c2c; }
.ix-change-kind--actor, .ix-change-kind--vuln, .ix-change-kind--cve, .ix-change-kind--event { background: #e9d8fd; color: #553c9a; }

/* Risk index (phase 2) */
.ix-note--warn { background: #fffbea; border: 1px solid #f6e05e; color: #744210; }
.ix-weights { background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 0.5rem 0.75rem; }
.ix-weights label { font-size: 0.78rem; color: #4a5568; display: inline-flex; align-items: center; gap: 0.3rem; }
.ix-weights input[type=number] { width: 4.2rem; font: inherit; font-size: 0.8rem; padding: 0.3rem 0.4rem;
    border: 1px solid var(--border-color-dark); border-radius: var(--border-radius-sm); }
.ix-weights-lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #5a6b7d; }
.ix-movers { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.9rem; }
.ix-mover { font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 4px; border: 1px solid; background: #fff; }
.ix-mover--up { border-color: #feb2b2; color: #9b2c2c; }
.ix-mover--down { border-color: #c6f6d5; color: #276749; }
.ix-risk-table td { vertical-align: top; }
.ix-nowrap { white-space: nowrap; }
.ix-score { font-size: 1rem; font-weight: 700; color: #1C2B3A; font-variant-numeric: tabular-nums; margin-right: 0.15rem; }
.ix-spark { display: block; overflow: visible; }
.ix-spark polyline { fill: none; stroke: #2c5aa0; stroke-width: 1.5; stroke-linejoin: round; }
.ix-up { color: #c53030; font-weight: 600; }
.ix-down { color: #276749; font-weight: 600; }
.ix-rbar { display: inline-block; width: 48px; height: 6px; background: #edf2f7; border-radius: 3px; vertical-align: middle; overflow: hidden; }
.ix-rbar > span { display: block; height: 100%; border-radius: 3px; background: #a0aec0; }
.ix-rbar--critical > span { background: #e53e3e; }
.ix-rbar--high > span { background: #dd6b20; }
.ix-rbar--elevated > span { background: #d69e2e; }
.ix-rbar--moderate > span { background: #3182ce; }
.ix-rbar--low > span { background: #38a169; }
.ix-rval { font-size: 0.78rem; font-variant-numeric: tabular-nums; margin-left: 0.35rem; color: #2d3748; }
.ix-drivers { min-width: 260px; }
.ix-drivers > div { font-size: 0.72rem; line-height: 1.35; margin-bottom: 0.2rem; }
.ix-drivers a { color: #1C2B3A; font-weight: 600; text-decoration: none; }
.ix-drivers a:hover { text-decoration: underline; }
.ix-pts { font-size: 0.65rem; font-weight: 700; color: #5a6b7d; background: #edf2f7; border-radius: 3px; padding: 0 0.25rem; white-space: nowrap; }
.ix-risk-card { display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 1rem; align-items: start; }
.ix-risk-head .ix-score { font-size: 1.9rem; display: block; line-height: 1.1; }
.ix-risk-head .ix-sub { margin-top: 0.3rem; }
.ix-risk-comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.ix-risk-comp { border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 0.5rem 0.65rem; background: #fff; }
.ix-risk-comp-lbl { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #5a6b7d; }
.ix-risk-signals { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.ix-risk-signals li { font-size: 0.7rem; line-height: 1.35; padding: 0.2rem 0; border-top: 1px solid #f1f4f7; color: #4a5568; }
.ix-risk-signals li strong { color: #1C2B3A; }
.ix-risk-chart { position: relative; height: 180px; margin-top: 0.75rem; }
@media (max-width: 760px) {
    .ix-risk-card { grid-template-columns: 1fr; }
    .ix-risk-comps { grid-template-columns: 1fr; }
}
.ix-eurel { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 0.08rem 0.35rem; border-radius: 3px;
            text-transform: uppercase; letter-spacing: 0.03em; vertical-align: 1px; white-space: nowrap; }
.ix-eurel--high { background: #2c5aa0; color: #fff; }
.ix-eurel--medium { background: #ebf4ff; color: #2c5aa0; border: 1px solid #bee3f8; }
.ix-eurel--low { background: #f7fafc; color: #718096; border: 1px solid #e2e8f0; }

/* ATT&CK matrix (phase 2) */
.ix-matrix-card { padding: 0.75rem; }
.ix-matrix { display: grid; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.3rem; }
.ix-matrix-col { min-width: 0; }
.ix-matrix-head { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #1C2B3A;
                  border-bottom: 2px solid #1C2B3A; padding: 0 0 0.3rem; margin-bottom: 0.3rem; min-height: 2.2em;
                  display: flex; justify-content: space-between; gap: 0.2rem; align-items: flex-end; }
.ix-matrix-head span { font-weight: 600; color: var(--text-muted); }
.ix-matrix-cell { display: block; position: relative; font-size: 0.64rem; line-height: 1.25; padding: 0.3rem 1.4rem 0.3rem 0.35rem;
                  margin-bottom: 0.2rem; border-radius: 3px; text-decoration: none; color: #1C2B3A; border: 1px solid #e2e8f0; }
.ix-matrix-cell b { display: block; font-size: 0.6rem; }
.ix-matrix-n { position: absolute; top: 0.25rem; right: 0.3rem; font-weight: 700; font-size: 0.62rem; }
.ix-matrix-empty { font-size: 0.7rem; }
.ix-heat-1 { background: #f0f5fb; }
.ix-heat-2 { background: #cfe0f3; }
.ix-heat-3 { background: #92b6e2; border-color: #92b6e2; }
.ix-heat-4 { background: #4a7fc1; border-color: #4a7fc1; color: #fff; }
.ix-heat-5 { background: #1e4e8c; border-color: #1e4e8c; color: #fff; }
.ix-matrix-cell:hover { outline: 2px solid #2AA89D; }

/* Light grey basemap from OpenStreetMap tiles (Panorama, incidents map) */
.ix-tiles-muted { filter: grayscale(1) brightness(1.06) contrast(.88); }

/* Text written by a language model: always disclosed next to it */
.ix-machine { font-size: 0.7rem; line-height: 1.5; color: #5a6b7d; background: #f7f9fb; border-left: 3px solid #a0aec0;
              padding: 0.4rem 0.6rem; margin: 0.6rem 0; border-radius: 0 4px 4px 0; }
.ix-machine a { color: var(--color-secondary); }
.ix-machine-tag { display: inline-block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
                  padding: 0.05rem 0.35rem; border-radius: 3px; background: #e2e8f0; color: #4a5568; vertical-align: 1px; }
/* About page */
.ab-page { max-width: 1040px; }
.ab-toc { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.78rem; margin: 0 0 1rem; }
.ab-toc a { color: var(--color-secondary); text-decoration: none; }
.ab-toc a:hover { text-decoration: underline; }
.ab-section { margin-bottom: 1rem; scroll-margin-top: 1rem; }
.ab-section .ix-prose { max-width: 78ch; }
.ab-section .ix-prose a, .ab-section td a { color: var(--color-secondary); }
.ab-sources tr.ab-first td { border-top: 1px solid #cbd5e0; }
.ab-sources td { vertical-align: top; }
.ab-links { margin: 0; padding-left: 1.1rem; }
.ab-sources tr.ab-silent td { color: var(--text-muted); }
.ss-footer-stamp { display: block; margin-top: 0.35rem; font-size: 0.7rem; }
.ix-src-tag { display: inline-block; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
              padding: 0 0.3rem; border-radius: 3px; border: 1px solid #cbd5e0; color: #4a5568; background: #fff;
              vertical-align: 1px; cursor: help; white-space: nowrap; }
.cd-threat-src { font-weight: 400; font-size: 0.62rem; opacity: 0.85; }
/* Links without a rule of their own take the site's blue instead of the browser default (zero specificity: any class rule wins) */
:where(.ix-card, .ix-table, .ix-sub, .ix-source, .cr-subtitle, .cr-empty) a { color: var(--color-secondary); }
