/* BK Kurser – använder designsystemets variabler (--bk-*) från Elementor-kitet, med reservvärden. */
.bk-num { font-family: var(--bk-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-up { color: var(--bk-up, #3ddc97); }
.bk-down { color: var(--bk-down, #ff7a7a); }
.bk-muted { color: var(--bk-muted, #9aa8bd); }
.bk-missing { color: var(--bk-muted, #9aa8bd); }

/* Pris */
.bk-price p { margin: 0; }
.bk-price__sek { font-family: var(--bk-mono, monospace); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.bk-price__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px !important; font-size: 17px; }
.bk-chg { white-space: nowrap; }
.bk-chg .bk-num { font-weight: 600; }

.bk-updated { font-size: 14px; color: var(--bk-muted, #9aa8bd); margin: 0; }
.bk-src { white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bk-src:hover { color: var(--bk-ink, #e6edf7); }

/* Graf */
.bk-chart { margin: 0; background: var(--bk-surface, #111a2e); border: 1px solid var(--bk-line, #1e2a42); border-radius: var(--bk-radius-lg, 8px); padding: 16px 16px 12px; }
.bk-chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.bk-chart figcaption { font-size: 14px; color: var(--bk-muted, #9aa8bd); }
.bk-chart__range { display: inline-flex; gap: 4px; background: var(--bk-bg, #0b1220); border-radius: 6px; padding: 3px; }
.bk-chart__range button { font: 600 13px/1 var(--bk-mono, monospace); color: var(--bk-muted, #9aa8bd); background: transparent; border: 0; border-radius: 4px; padding: 8px 10px; cursor: pointer; min-height: 32px; }
.bk-chart__range button[aria-pressed="true"] { background: var(--bk-line-strong, #33425f); color: var(--bk-ink, #e6edf7); }
.bk-chart__range button:hover { color: var(--bk-ink, #e6edf7); }
.bk-chart__body { height: 200px; }
.bk-chart[aria-busy="true"] .bk-chart__body { opacity: .5; }
.bk-chart__svg { width: 100%; height: 100%; display: block; }
.bk-chart__line { fill: none; stroke: var(--bk-up, #3ddc97); stroke-width: 2.5; }
.bk-chart__area { fill: var(--bk-up, #3ddc97); opacity: .1; }
.bk-chart__empty { height: 100%; display: grid; place-items: center; color: var(--bk-muted, #9aa8bd); font-size: 14px; }
.bk-chart__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 14px; color: var(--bk-muted, #9aa8bd); }
.bk-chart__meta b { color: var(--bk-ink, #e6edf7); font-weight: 600; margin-left: 4px; }
.bk-chart__meta b.bk-up { color: var(--bk-up, #3ddc97); }
.bk-chart__meta b.bk-down { color: var(--bk-down, #ff7a7a); }
@media (max-width: 600px) { .bk-chart__body { height: 160px; } }

/* Tabell */
.bk-table-wrap { overflow-x: auto; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bk-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--bk-muted, #9aa8bd); border-bottom: 1px solid var(--bk-line-strong, #33425f); padding: 0; }
.bk-table th > span { display: block; padding: 10px 12px; }
.bk-table th button { all: unset; cursor: pointer; display: block; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.bk-table th.bk-n button { text-align: right; }
.bk-table th button:focus-visible { outline: 2px solid var(--bk-accent, #f5a524); outline-offset: -2px; }
.bk-table th[aria-sort] button { color: var(--bk-ink, #e6edf7); }
.bk-table th[aria-sort="ascending"] button::after { content: " ↑"; }
.bk-table th[aria-sort="descending"] button::after { content: " ↓"; }
.bk-table td { padding: 14px 12px; border-bottom: 1px solid var(--bk-line, #1e2a42); vertical-align: middle; }
.bk-table .bk-n { text-align: right; }
.bk-coin { font-weight: 600; }
.bk-coin a { color: var(--bk-ink, #e6edf7); text-decoration: none; }
.bk-coin a:hover { color: var(--bk-accent, #f5a524); text-decoration: underline; }
.bk-sym { color: var(--bk-muted, #9aa8bd); font-size: 13px; margin-left: 4px; }
.bk-table + .bk-updated, .bk-table-wrap + .bk-updated { margin-top: 10px; }
@media (max-width: 600px) {
	.bk-table { font-size: 15px; }
	.bk-table th button, .bk-table td { padding-left: 6px; padding-right: 6px; }
	.bk-sym { display: block; margin-left: 0; }
	/* Mobil: dölj 7 d och marknadsvärde i fulla tabellen, så att den ryms utan sidoscroll */
	.bk-table:not(.bk-table--kort) th:nth-child(5), .bk-table:not(.bk-table--kort) td:nth-child(5),
	.bk-table:not(.bk-table--kort) th:nth-child(6), .bk-table:not(.bk-table--kort) td:nth-child(6),
	.bk-table:not(.bk-table--kort) th:nth-child(1), .bk-table:not(.bk-table--kort) td:nth-child(1) { display: none; }
	.bk-sym { overflow-wrap: anywhere; }
}

/* Nyckeltal */
.bk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--bk-line, #1e2a42); border: 1px solid var(--bk-line, #1e2a42); border-radius: var(--bk-radius-lg, 8px); overflow: hidden; margin: 0; }
.bk-stats > div { background: var(--bk-surface, #111a2e); padding: 14px 16px; }
.bk-stats dt { font-size: 13px; color: var(--bk-muted, #9aa8bd); }
.bk-stats dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
@media (max-width: 900px) { .bk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .bk-stats dd { font-size: 15px; } .bk-stats > div { padding: 12px; } }

/* Kalkylator */
.bk-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; background: var(--bk-surface, #111a2e); border: 1px solid var(--bk-line, #1e2a42); border-radius: var(--bk-radius-lg, 8px); padding: 24px; }
.bk-calc__inputs { display: grid; gap: 24px; align-content: start; }
.bk-calc__field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 8px; }
.bk-calc__field output { font-size: 22px; color: var(--bk-accent, #f5a524); }
.bk-calc__amount { display: flex; align-items: center; background: var(--bk-bg, #0b1220); border: 1px solid var(--bk-line-strong, #33425f); border-radius: 6px; padding: 0 14px; }
.bk-calc__amount:focus-within { outline: 2px solid var(--bk-accent, #f5a524); outline-offset: 2px; }
.bk-calc.bk-calc .bk-calc__amount input[type=text] { flex: 1; width: 100%; min-width: 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--bk-ink, #e6edf7); font: 600 22px/1 var(--bk-mono, monospace); padding: 14px 0; outline: none; }
.bk-calc__amount span { color: var(--bk-muted, #9aa8bd); font-weight: 600; }
/* Återställ formulärstil från tema och Elementor-kit (kitets regel .elementor-kit-5 input:not(...) har specificitet 0,3,1,
   därför dubblerad klass här). Fältets ram ligger på .bk-calc__amount i stället. */
.bk-calc.bk-calc .bk-calc__field input[type=range] { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; accent-color: var(--bk-accent, #f5a524); height: 28px; cursor: pointer; }
/* Eget spår och ratt: temat sätter appearance: none på alla input, så webbläsarens standardreglage försvinner */
.bk-calc.bk-calc .bk-calc__field input[type=range] { -webkit-appearance: none; appearance: none; }
.bk-calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--bk-line-strong, #33425f); }
.bk-calc input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--bk-line-strong, #33425f); }
.bk-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--bk-accent, #f5a524); border: 3px solid var(--bk-bg, #0b1220); box-shadow: 0 0 0 1px var(--bk-accent, #f5a524); }
.bk-calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bk-accent, #f5a524); border: 3px solid var(--bk-bg, #0b1220); box-shadow: 0 0 0 1px var(--bk-accent, #f5a524); }
.bk-calc input[type=range]:focus-visible { outline: 2px solid var(--bk-accent, #f5a524); outline-offset: 4px; }
.bk-calc__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--bk-muted, #9aa8bd); }
.bk-calc__result { background: var(--bk-bg, #0b1220); border-radius: 6px; padding: 20px; }
.bk-calc__result p { margin: 0; }
.bk-calc__label { font-size: 14px; color: var(--bk-muted, #9aa8bd); }
.bk-calc__value { font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin-top: 4px !important; }
.bk-calc__change { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px !important; font-weight: 600; }
.bk-calc__times { color: var(--bk-muted, #9aa8bd); font-weight: 400; white-space: nowrap; }
.bk-calc__how { margin-top: 14px !important; font-size: 15px; color: var(--bk-muted, #9aa8bd); text-wrap: pretty; }
.bk-calc__note { grid-column: 1 / -1; font-size: 13px; color: var(--bk-muted, #9aa8bd); margin: 0; text-wrap: pretty; }
@media (max-width: 760px) { .bk-calc { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* Fear & Greed-index (variant B). Zonfärger följer Alternative.me:s indelning, färgen kompletteras alltid med text. */
.bk-fng { --fng-xfear: #ff7a7a; --fng-fear: #ffa36b; --fng-neutral: #9aa8bd; --fng-greed: #7fd8a8; --fng-xgreed: #3ddc97;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; background: var(--bk-surface, #111a2e); border: 1px solid var(--bk-line, #1e2a42); border-radius: var(--bk-radius-lg, 8px); padding: 24px; }
.bk-fng p { margin: 0; }
.bk-fng__now { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px !important; }
.bk-fng__value { font-size: 44px; font-weight: 700; line-height: 1; }
.bk-fng__zone { font-size: 18px; font-weight: 600; }
.bk-fng--xfear { color: var(--fng-xfear); } .bk-fng--fear { color: var(--fng-fear); } .bk-fng--neutral { color: var(--fng-neutral); }
.bk-fng--greed { color: var(--fng-greed); } .bk-fng--xgreed { color: var(--fng-xgreed); }
.bk-fng__bar { position: relative; margin: 4px 0 6px; }
.bk-fng__zones { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.bk-fng__zones span:nth-child(1) { flex: 25; background: var(--fng-xfear); } .bk-fng__zones span:nth-child(2) { flex: 20; background: var(--fng-fear); }
.bk-fng__zones span:nth-child(3) { flex: 10; background: var(--fng-neutral); } .bk-fng__zones span:nth-child(4) { flex: 20; background: var(--fng-greed); }
.bk-fng__zones span:nth-child(5) { flex: 25; background: var(--fng-xgreed); }
.bk-fng__marker { position: absolute; top: -6px; width: 4px; height: 22px; background: var(--bk-ink, #e6edf7); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--bk-surface, #111a2e); }
.bk-fng__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--bk-muted, #9aa8bd); margin-bottom: 16px; }
.bk-fng__cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-fng__item { display: flex; flex-direction: column; background: var(--bk-bg, #0b1220); border-radius: 6px; padding: 12px 14px; }
.bk-fng__label { font-size: 13px; line-height: 1.3; color: var(--bk-muted, #9aa8bd); }
.bk-fng__v { font-size: 22px; font-weight: 600; }
.bk-fng__z { font-size: 14px; font-weight: 600; }
.bk-fng__trend { display: flex; flex-direction: column; }
.bk-fng__trend .bk-fng__label { margin-bottom: 8px !important; }
.bk-fng__chart { display: block; width: 100%; flex: 1; min-height: 160px; border-radius: 6px; }
.bk-fng__band { opacity: .1; } .bk-fng__band--xfear { fill: var(--fng-xfear); } .bk-fng__band--fear { fill: var(--fng-fear); }
.bk-fng__band--neutral { fill: var(--fng-neutral); } .bk-fng__band--greed { fill: var(--fng-greed); } .bk-fng__band--xgreed { fill: var(--fng-xgreed); }
.bk-fng__mid { stroke: var(--bk-line-strong, #33425f); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.bk-fng__line { fill: none; stroke: var(--fng-xgreed); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.bk-fng__about { grid-column: 1 / -1; font-size: 15px; color: var(--bk-muted, #9aa8bd); max-width: 75ch; text-wrap: pretty; }
.bk-fng__src { grid-column: 1 / -1; font-size: 13px; color: var(--bk-muted, #9aa8bd); margin-top: -10px !important; }
.bk-fng__src a { color: var(--bk-ink, #e6edf7); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
	.bk-fng { grid-template-columns: minmax(0, 1fr); padding: 18px; }
	.bk-fng__item { padding: 10px; }
	.bk-fng__label { font-size: 12px; }
	.bk-fng__v { font-size: 20px; }
	.bk-fng__z { font-size: 12px; }
	.bk-fng__chart { min-height: 120px; }
}
