/* otimoinvest.com — Light futuristic biotech intelligence
   Identitet: Klinisk-rent datarom. Hvit base, teal signatur (liv/molekyl),
   dyp blå for finansdata. Mye luft, presist, rolig — Stripe-docs møter
   farmasøytisk forskningsdashboard.
   IKKE: dark trader-platform, neon, cream/serif-default, broadsheet.
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bg:           #ffffff;
    --bg2:          #f7fafc;
    --bg3:          #eef2f7;
    --aksent:       #2a5135;   /* skoggrønn — merke */
    --aksent-deep:  #1d3a26;
    --aksent2:      #011e41;   /* marineblå — merke */
    --lilla:        #7c3aed;   /* M&A/regulatorisk */
    --rav:          #f59e0b;   /* hendelse/varsel */
    --font:         'IBM Plex Sans', system-ui, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
    --text:         #0f1e2e;   /* nesten-svart blekk */
    --text2:        #3d4f61;
    --text3:        #64748b;
    --border:       #e2e8f0;
    --border2:      #eef2f7;
    --card-bg:      #ffffff;
    --ticker-up:    #2a5135;
    --ticker-down:  #e11d48;
    --nav-bg:       rgba(255,255,255,0.85);
    --nav-border:   #e2e8f0;
    --nav-text:     #3d4f61;
    --shadow-sm:    0 1px 2px rgba(15,30,46,0.04), 0 1px 3px rgba(15,30,46,0.06);
    --shadow-md:    0 4px 12px rgba(15,30,46,0.06), 0 2px 4px rgba(15,30,46,0.04);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(42,81,53,0.06), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(1,30,65,0.04), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Ticker-bånd ── */
.ticker-band {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text2);
    overflow: hidden;
    white-space: nowrap;
}
.ticker-up   { color: var(--ticker-up); font-weight: 600; }
.ticker-down { color: var(--ticker-down); font-weight: 600; }

/* ── Navbar ── */
nav {
    position: sticky; top: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--nav-border);
    padding: 0.85rem 2rem;
    display: flex; flex-wrap: wrap; gap: 0 1.4rem;
    align-items: center;
}
nav .brand {
    margin-right: auto; display: flex; align-items: center;
    text-decoration: none; gap: 0.6rem;
}
nav .brand img { height: 30px; width: auto; display: block; }
nav .brand .tag {
    font-family: var(--font-mono); font-size: 0.6rem;
    font-weight: 500; color: var(--aksent-deep);
    text-transform: uppercase; letter-spacing: 0.12em;
    border-left: 1px solid var(--border); padding-left: 0.6rem;
}
@media (max-width: 560px) { nav .brand .tag { display: none; } nav .brand img { height: 26px; } }
nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s, color 0.18s;
}
nav a:hover { color: var(--aksent-deep); border-bottom-color: var(--aksent); }
nav a.aktiv { color: var(--aksent-deep); border-bottom-color: var(--aksent); }

/* ── Layout ── */
main { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ── Typografi ── */
h1 {
    font-family: var(--font);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700; color: var(--text);
    line-height: 1.12; margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
h2 {
    font-family: var(--font);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 600; color: var(--text);
    margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em;
}
h3 {
    font-size: 0.82rem; font-weight: 600;
    color: var(--aksent-deep); margin: 1.75rem 0 0.5rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-family: var(--font-mono);
}
p { color: var(--text2); margin-bottom: 1.1rem; }
a { color: var(--aksent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }

/* ── Artikkel ── */
article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 2.25rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
}
article::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, var(--aksent2), var(--aksent));
}
article header { margin-bottom: 1.25rem; }
article time {
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--text3);
    text-transform: uppercase; letter-spacing: 0.08em;
    display: block; margin-bottom: 0.4rem;
}
article .kategori {
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--aksent2); display: inline-block;
    background: rgba(37,99,235,0.08);
    padding: 0.2rem 0.6rem; border-radius: 999px;
    margin-bottom: 0.75rem;
}
article h2 { margin-top: 0.5rem; font-size: 1.6rem; }
article p { color: var(--text2); }
article .byline {
    font-size: 0.78rem; color: var(--text3);
    margin-bottom: 1rem; display: block;
    font-family: var(--font-mono);
}

/* ── News-kort ── */
.news-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
.news-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm); display: flex; gap: 1rem;
    transition: box-shadow 0.18s, transform 0.18s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.news-card .thumb {
    flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px;
    object-fit: cover; background: var(--bg2);
}
.news-card .body { flex: 1; min-width: 0; }
.news-card .meta {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--text3); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 0.35rem;
}
.news-card h3 {
    font-family: var(--font); text-transform: none; letter-spacing: -0.01em;
    color: var(--text); font-size: 1.02rem; margin: 0 0 0.35rem;
}
.news-card p { font-size: 0.9rem; color: var(--text2); margin: 0 0 0.5rem; }
.news-card .src { font-size: 0.78rem; color: var(--aksent-deep); font-weight: 500; }
.kat-pill {
    display: inline-block; font-family: var(--font-mono);
    font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 0.15rem 0.5rem;
    border-radius: 999px; margin-right: 0.4rem;
}

/* ── Disclaimer ── */
.disclaimer {
    font-size: 0.82rem; color: var(--text3);
    border-left: 3px solid var(--rav);
    padding: 0.6rem 0.85rem;
    background: rgba(245,158,11,0.06);
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

/* ── Datavisualisering ── */
figure.otimo-chart, figure { margin: 1.75rem 0; }
figure svg { max-width: 100%; height: auto; display: block; }
figcaption {
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--text3);
    margin-top: 0.5rem; text-align: center;
}

/* ── Kildehenvisninger ── */
cite { font-style: italic; color: var(--text3); font-size: 0.88rem; }
aside.kilder {
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem; color: var(--text3);
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem; text-align: center;
    color: var(--text3); margin-top: 4rem;
    font-size: 0.8rem; background: var(--bg2);
}
footer a { color: var(--text3); margin: 0 0.75rem; }
footer a:hover { color: var(--aksent-deep); }

/* ── AdSense ── */
.adsbygoogle { display: block; margin: 2rem auto; }

/* ── Responsiv ── */
@media (max-width: 768px) {
    nav { padding: 0.6rem 1rem; gap: 0 1rem; }
    nav a { font-size: 0.72rem; }
    nav .brand { font-size: 0.95rem; }
    main { padding: 1.5rem 1rem; }
    article { padding: 1.4rem 1.25rem; border-radius: 12px; }
    article h2 { font-size: 1.35rem; }
    h1 { font-size: 1.7rem; }
    .news-card { flex-direction: column; }
    .news-card .thumb { width: 100%; height: 160px; flex-basis: auto; }
}
