/* Sajtens fyra utseenden (steg 24x): Standard (förslag D), Special (D3: D med svart logga), Classic (E) och Mörkt (F).
   Markupen är densamma för alla; här finns bara variabler per tema och de få regler som är unika för ett tema.
   Temat sätts på <html data-theme="…"> av servern (kakan derank-utseende). Utan attribut gäller Standard. */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url(../fonts/plus-jakarta-sans-latin-wght.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url(../fonts/plus-jakarta-sans-latin-ext-wght.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 100 700;
    src: url(../fonts/ibm-plex-sans-latin-wght.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 100 700;
    src: url(../fonts/ibm-plex-sans-latin-ext-wght.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/ibm-plex-mono-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/ibm-plex-mono-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/ibm-plex-mono-latin-600.woff2) format('woff2'); }

/* ---- Standard och Special (D, D3) ---- */
:root, html[data-theme="standard"], html[data-theme="special"] {
    color-scheme: light;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-num: var(--font);
    --fs: 15px;
    --fs-table: 14px;
    --fs-sm: 13px;
    --fs-xs: 12px;
    --lh: 1.5;

    --page-bg: #F4F5F7;
    --frame-bg: transparent;
    --header-bg: #FFFFFF;
    --header-border: #E3E6EA;
    --footer-bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-alt: #F1F3F6;
    --text: #14171F;
    --text-soft: #3D4450;
    --text-muted: #5B6270;
    --border: #E3E6EA;
    --border-strong: #D4D8DE;
    --input-bg: #FFFFFF;
    --input-border: #C4C9D1;

    --accent: #FFC814;
    --on-accent: #14171F;
    --accent-soft: #FFF1BF;
    --on-accent-soft: #4A3A00;
    --strong: #14171F;
    --on-strong: #FFFFFF;
    --zebra: #FFFBEA;
    --row-hover: #FFF3C4;
    --reply-border: #E3D58A;
    /* Valda aktier och reserven på Anmälan (Marcus 2026-11-16) */
    --pick-bg: #FFF1BF;
    --pick-text: #4A3A00;
    --pick-border: #E3D58A;
    --pick-res-bg: #F1F3F6;

    --link: #1D4FB8;
    --link-hover: #123A8C;
    --up: #1D4FB8;
    --down: #B4380A;
    --focus: #1D4FB8;

    --nav-text: #3D4450;
    --nav-active-bg: #F1F3F6;
    --nav-active-text: #14171F;

    --signup-bg: #FFC814;
    --signup-border: #FFC814;
    --signup-text: #2A2410;
    --signup-kicker: #4A3A00;

    --news-bg: #14171F;
    --news-text: #FFFFFF;
    --news-soft: #C9CED6;

    --danger-bg: #FDECEA;
    --danger-border: #E8A39A;
    --danger-text: #8E1F12;
    --flag-bg: #FFE0B3;
    --missing-bg: #FFD6D6;

    --radius: 14px;
    --radius-sm: 8px;
    --title-size: 17px;
    --title-weight: 800;
    --page-title-size: 26px;

    --chart-1: #14171F;
    --chart-2: #B08400;
    --chart-grid: #D4D8DE;
    --chart-text: #5B6270;
}

/* ---- Mörkt (F) ---- */
html[data-theme="morkt"] {
    color-scheme: dark;
    --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-num: 'IBM Plex Mono', ui-monospace, monospace;

    --page-bg: #0B0F16;
    --header-bg: #07090E;
    --header-border: #1B2433;
    --footer-bg: #07090E;
    --surface: #121925;
    --surface-alt: #0F1520;
    --text: #E8ECF2;
    --text-soft: #B7C1CF;
    --text-muted: #8C98A9;
    --border: #232D3D;
    --border-strong: #2B3647;
    --input-bg: #0F1520;
    --input-border: #3A4659;

    --accent: #F7C948;
    --on-accent: #0B0F16;
    --accent-soft: #0F1520;
    --on-accent-soft: #8C98A9;
    --strong: #F7C948;
    --on-strong: #0B0F16;
    --zebra: #151E2C;
    --row-hover: #1B2638;
    --reply-border: #4A3F12;
    --pick-bg: #2E2710;
    --pick-text: #F7C948;
    --pick-border: #4A3F12;
    --pick-res-bg: #1F2A3D;

    --link: #9CC8FF;
    --link-hover: #FFFFFF;
    --up: #6CB4FF;
    --down: #FF9A5C;
    --focus: #F7C948;

    --nav-text: #B7C1CF;
    --nav-active-bg: #1B2433;
    --nav-active-text: #FFFFFF;

    --signup-bg: #1A1708;
    --signup-border: #4A3F12;
    --signup-text: #D9D2B4;
    --signup-kicker: #F7C948;

    --news-bg: #1A1708;
    --news-text: #E8ECF2;
    --news-soft: #D9D2B4;

    --danger-bg: #2A1414;
    --danger-border: #6B2B2B;
    --danger-text: #FFB4A8;
    --flag-bg: #3A2A0E;
    --missing-bg: #3A1616;

    --radius: 10px;
    --radius-sm: 6px;
    --title-weight: 600;

    --chart-1: #6CB4FF;
    --chart-2: #F7C948;
    --chart-grid: #2B3647;
    --chart-text: #8C98A9;
}
html[data-theme="morkt"] .card_title,
html[data-theme="morkt"] .bar_small { text-transform: uppercase; letter-spacing: 1.4px; font-size: 12px; color: var(--text-muted); }
html[data-theme="morkt"] .newsletter .card_title { color: var(--accent); }
html[data-theme="morkt"] .signup .card_title { font-size: 30px; font-weight: 700; letter-spacing: -.4px; text-transform: none; color: var(--text); }
html[data-theme="morkt"] .forum_tools .card_title { font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
html[data-theme="morkt"] .tog:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Classic (E): D:s uppbyggnad i dagens utseende ---- */
html[data-theme="classic"] {
    color-scheme: light;
    --font: Tahoma, Verdana, 'DejaVu Sans', sans-serif;
    --font-num: var(--font);
    --fs: 13px;
    --fs-table: 12px;
    --fs-sm: 12px;
    --fs-xs: 11px;
    --lh: 1.45;

    --page-bg: #F7F3A0;
    --frame-bg: #FFFFFF;
    --header-bg: #FFFFFF;
    --header-border: #FFFFFF;
    --footer-bg: transparent;
    --surface: #FFFFFF;
    --surface-alt: #F3F3F3;
    --text: #222222;
    --text-soft: #555555;
    --text-muted: #666666;
    --border: #CCCCCC;
    --border-strong: #AAAAAA;
    --input-bg: #FFFFFF;
    --input-border: #9D9D9D;

    --accent: #F0C000;
    --on-accent: #222222;
    --accent-soft: #FFC72C;
    --on-accent-soft: #222222;
    --strong: #1A75B5; /* E:s blå #33A9E0 mörkad för kontrast 4,9:1 mot vit text (24x, fynd 2) */
    --on-strong: #FFFFFF;
    --zebra: #FFF59A;
    --row-hover: #FFEB70;
    --reply-border: #E2C03A;

    --link: #2B5E9E;
    --link-hover: #123A6E;
    --up: #1A3FCC;
    --down: #D0151B;
    --focus: #2B5E9E;

    --nav-text: #666666;
    --nav-active-bg: transparent;
    --nav-active-text: #222222;

    --signup-bg: #FFF6BF;
    --signup-border: #EFC73A;
    --signup-text: #222222;
    --signup-kicker: #6B5300;

    --news-bg: #FFFFFF;
    --news-text: #222222;
    --news-soft: #555555;

    --radius: 0;
    --radius-sm: 3px;
    --title-size: 15px;
    --title-weight: 400;
    --page-title-size: 15px;

    --chart-1: #1A3FCC;
    --chart-2: #AE9548;
    --chart-grid: #CCCCCC;
    --chart-text: #666666;
}
/* Rubrikerna som gula band med kursiv text, som på dagens sajt. */
html[data-theme="classic"] .card_title,
html[data-theme="classic"] .bar_medium,
html[data-theme="classic"] .bar_small {
    margin: 0; padding: 7px 12px; background: linear-gradient(#FFE88A, #FFD34A); border: 1px solid #EFC73A;
    color: #3D5A80; font-size: 15px; font-weight: 400; font-style: italic; letter-spacing: .5px; text-transform: uppercase;
}
html[data-theme="classic"] .bar_medium, html[data-theme="classic"] .bar_small { margin-bottom: 10px; }
html[data-theme="classic"] .card { border-color: #CCCCCC; background: linear-gradient(#FFFFFF, #F3F3F3); }
html[data-theme="classic"] .card > .card_title, html[data-theme="classic"] .card > .card_head { margin: -1px -1px 0; }
html[data-theme="classic"] .card_head .card_title { margin: 0; border: 0; padding: 0; background: none; }
html[data-theme="classic"] .card_head { background: linear-gradient(#FFE88A, #FFD34A); border: 1px solid #EFC73A; }
html[data-theme="classic"] .signup { background: #FFF6BF; }
html[data-theme="classic"] .signup .card_title { background: none; border: 0; padding: 0; color: var(--text); font-style: normal; text-transform: none; font-size: 24px; font-weight: 700; letter-spacing: 0; }
html[data-theme="classic"] .kpi_value { font-size: 18px; font-weight: 700; }
html[data-theme="classic"] .kpi_big { font-size: 30px; font-weight: 700; }
html[data-theme="classic"] .mainnav a { text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; }
html[data-theme="classic"] .site { max-width: 1240px; margin: 10px auto; background: var(--frame-bg); }
html[data-theme="classic"] .site_header { border-bottom: 0; }
html[data-theme="classic"] .header_tools .btn_line,
html[data-theme="classic"] .header_tools .btn_solid { padding: 6px 4px; border: 0; background: none; color: #555555; font-weight: 400; font-size: 12px; }
html[data-theme="classic"] .header_tools .btn_line:hover,
html[data-theme="classic"] .header_tools .btn_solid:hover { color: #222222; text-decoration: underline; }
html[data-theme="classic"] .forum th { font-weight: 700; text-transform: none; letter-spacing: 0; }
html[data-theme="classic"] .sv, html[data-theme="classic"] a.sv { border: 0; border-radius: 3px; background: #1A75B5; color: #FFFFFF; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
html[data-theme="classic"] .sv:hover { background: #135A8C; color: #FFFFFF; }
html[data-theme="classic"] .tog { width: 18px; height: 18px; border-color: #555555; border-radius: 0; font-size: 13px; }
html[data-theme="classic"] .newsletter { background: linear-gradient(#FFFFFF, #F3F3F3); color: var(--text); }
html[data-theme="classic"] .site_footer { background: linear-gradient(#FFFFFF, #EDEDED); }
/* Classic: utseendet och inloggningen bredvid menyn som i D, i Classics små textlänkar (Marcus 2026-11-08, fynd 4). */
html[data-theme="classic"] .mainnav { justify-content: flex-end; }
html[data-theme="classic"] .mainnav a { padding: 8px 8px; }
html[data-theme="classic"] .header_tools { gap: 4px 10px; font-size: 12px; }
html[data-theme="classic"] .themepick select { height: 30px; min-height: 30px; border-radius: 0; font-size: 12px; font-weight: 400; }
/* På smal skärm rullar menyn i sidled; högerställd skulle början hamna utanför. */
@media (max-width: 760px) {
    html[data-theme="classic"] .mainnav { justify-content: flex-start; }
    html[data-theme="classic"] .header_tools .btn_line, html[data-theme="classic"] .header_tools .btn_solid { height: auto; min-height: 0; line-height: 1.4; }
}
html[data-theme="classic"] .card_head .card_meta { color: #4A4A4A; }
