/* Kvant – «Nordlys». Fjordnatt der Kvant er nordlyset og OSEBX fjellryggen.
   Fonter er selv-hostet (OFL): Bricolage Grotesque (tekst), JetBrains Mono (grafakser). */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-opsz.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --night: #081830; --deep: #0f2547; --deep-2: #132d55; --ridge: #1d3a5f; --edge: #2c4a73;
  --aurora: #3df5c2; --veil: #9b8cff; --snow: #eaf2fb; --frost: #9fb3cc;
  --pos: #5ff0a3; --neg: #ff7a90; --warn: #ffc56b;
  --kvant: var(--aurora); --osebx: #c6d3e6;
  --sans: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px; --ease: .2s ease;
  --chart-kvant: #3df5c2; --chart-osebx: #c6d3e6; --chart-grid: rgba(159,179,204,.10); --chart-text: #9fb3cc;
  --chart-line: rgba(159,179,204,.18); --chart-cross: #4b6a93; --chart-label: #1d3a5f; --chart-zero: rgba(159,179,204,.35);
  --chart-font: "Bricolage", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--snow); font: 17px/1.6 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
a { color: var(--aurora); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--frost); }
.small { font-size: .85rem; }
.num, .pct { font-variant-numeric: tabular-nums; }
.pct.pos { color: var(--pos); } .pct.neg { color: var(--neg); } .pct.flat { color: var(--frost); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--sans); }

/* Header: ligger oppå himmelen */
.site-header { position: relative; z-index: 10; }
.home .site-header { position: absolute; inset: 0 0 auto; }
/* Undersidene får en dempet himmel øverst, så de henger sammen med forsiden. */
body.page { background: radial-gradient(90% 520px at 70% -120px, #17386b 0%, rgba(12,35,70,.55) 45%, transparent 75%) no-repeat, var(--night); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--snow); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--aurora); filter: drop-shadow(0 0 8px rgba(61,245,194,.7)); }
.brand-name { font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { color: var(--frost); font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--snow); text-decoration: none; }

/* Hero: himmel, nordlys og fjell */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-start; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 70% 0%, #17386b 0%, #0c2346 45%, var(--night) 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8,24,48,0), var(--night)); }
.sky { position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #dfe9ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 28%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 88% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 38%, #cfe0ff 50%, transparent 51%), radial-gradient(1px 1px at 36% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 4%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 40%, #dfe9ff 50%, transparent 51%);
  background-size: 640px 420px; opacity: .7; }
.far-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: -1; }
.far-ridge path { fill: #0f2a52; stroke: rgba(159,179,204,.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* Nordlyset starter til høyre for teksten og stiger mot høyre kant. */
.hero { --aurora-left: max(38%, calc((100% - 1200px) / 2 + 520px)); }
.aurora { position: absolute; left: var(--aurora-left); bottom: 0; width: calc(100% - var(--aurora-left)); height: 78%; z-index: -1; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.aurora polyline, .aurora polygon { vector-effect: non-scaling-stroke; }
.aurora .ribbon { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: draw 2.6s cubic-bezier(.6,.1,.2,1) .2s forwards; }
.aurora .ribbon-glow { fill: none; stroke-width: 26; stroke-linejoin: round; opacity: .45; filter: blur(14px); animation: breathe 9s ease-in-out infinite; }
.aurora .curtain { opacity: 0; animation: rise 2.4s ease 1.2s forwards; }
.aurora .ridge-edge { fill: none; stroke: rgba(198,211,230,.55); stroke-width: 1.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; } }
@keyframes breathe { 50% { opacity: .75; } }
/* Bunnluften er større enn porteføljepanelets overlapp (64 px), så panelet aldri dekker knappene. */
.hero-text { position: relative; padding-top: 150px; padding-bottom: 120px; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 14ch; margin: 0 0 28px;
  text-shadow: 0 2px 30px rgba(8,24,48,.6); }
.hero h1 .accent { color: var(--aurora); text-shadow: 0 0 34px rgba(61,245,194,.45); }
.hero-figures { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 22px; }
.hero-figures div { display: grid; gap: 2px; }
.hero-figures dt { color: var(--frost); font-size: .9rem; display: flex; align-items: center; }
.hero-figures dd { margin: 0; font-size: 1.7rem; font-weight: 600; letter-spacing: -.01em; }
.hero-figures .since dd { color: var(--snow); font-weight: 500; }
.hero-figures .fig-kvant dd.pos { color: var(--aurora); text-shadow: 0 0 24px rgba(61,245,194,.45); }
.hero-figures .fig-osebx dd { color: var(--osebx); }
.hero .lede { max-width: 46ch; color: #c8d6e8; margin: 0 0 26px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600;
  background: var(--aurora); color: #062a22; box-shadow: 0 0 0 0 rgba(61,245,194,.5), 0 10px 30px -10px rgba(61,245,194,.6); transition: transform var(--ease), box-shadow var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(61,245,194,.18), 0 14px 36px -10px rgba(61,245,194,.7); }
.btn.ghost { background: rgba(234,242,251,.06); color: var(--snow); box-shadow: inset 0 0 0 1px rgba(234,242,251,.25); backdrop-filter: blur(6px); }

/* Seksjoner */
main.wrap { position: relative; padding-top: 8px; padding-bottom: 40px; }
.panel { margin: 0 0 28px; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--deep) 0%, rgba(15,37,71,.6) 100%);
  border: 1px solid rgba(159,179,204,.12); min-width: 0; }
.panel h2, .disclaimer-block h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-foot { font-size: .85rem; margin: 14px 0 0; }
.card { background: var(--deep); border: 1px solid rgba(159,179,204,.12); border-radius: var(--radius); padding: 24px; margin: 0 0 24px; min-width: 0; }
.card.narrow, .narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.card h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-foot { font-size: .85rem; margin: 12px 0 0; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin: 24px 0 .8rem; }
.article { max-width: 760px; margin: 0 auto 32px; }
.article > .muted:first-of-type { font-size: 1.1rem; margin: 0 0 28px; }
#archive .report-item { padding: 22px 0; }
#archive .report-title { font-size: 1.35rem; }
#archive ol.report-list li { border-top-color: rgba(159,179,204,.16); }
.status-pill { font-size: .8rem; color: var(--frost); border: 1px solid rgba(159,179,204,.25); border-radius: 999px; padding: .3rem .7rem; }
.status-pill.is-live { color: var(--pos); border-color: rgba(95,240,163,.4); }
.status-pill.is-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); margin-right: .45rem; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Porteføljen: fire stjerner */
.holdings-panel { margin-top: -64px; position: relative; z-index: 2; background: rgba(15,37,71,.82); backdrop-filter: blur(14px); }
ul.holdings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
ul.holdings li { padding: 4px 22px; border-left: 1px solid rgba(159,179,204,.14); min-width: 0; }
ul.holdings li:first-child { border-left: 0; padding-left: 0; }
.h-card { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; position: relative; min-width: 0; }
/* Aksjens farge som en strek over kolonnen; samme farge som i grafen og ukestabellen. */
.h-card::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.h-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-main { display: flex; flex-direction: column; min-width: 0; }
.ticker { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.ticker .day { font-size: .75rem; font-weight: 400; margin-left: .35rem; opacity: .8; }
.name { color: var(--frost); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-side { display: grid; gap: 2px; }
.h-side .pct[data-field="utvikling"] { font-size: 2.3rem; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.h-date { color: var(--frost); font-size: .8rem; }
.waiting { color: var(--warn); font-size: .8rem; }
.mono-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; font-weight: 700; font-size: .7rem;
  background: color-mix(in srgb, var(--c, #4ea3f5) 18%, var(--night)); color: var(--c, #4ea3f5);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #4ea3f5) 80%, transparent), 0 0 18px -2px var(--c, #4ea3f5); }
.mono-badge.has-logo { background: #fff; padding: 7px; }
.mono-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mono-badge.sm { width: 32px; height: 32px; font-size: .6rem; }
.mono-badge.sm.has-logo { padding: 5px; }
.mono-dot { --c: #4ea3f5; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-right: 6px; }

/* Grafen */
.chart-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.chart-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--veil) 25%, var(--aurora) 60%, transparent); opacity: .8; }
.chart-card::after { content: ""; position: absolute; left: 10%; right: 10%; top: -80px; height: 140px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(61,245,194,.14), transparent 70%); }
.legend { display: flex; gap: 1.2rem; font-size: .95rem; color: var(--frost); }
.legend strong { color: var(--snow); font-weight: 600; margin-left: .35rem; }
.swatch { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: .45rem; vertical-align: middle; }
.sw-kvant { background: var(--kvant); height: 4px; box-shadow: 0 0 8px var(--kvant); } .sw-osebx { background: var(--osebx); }
.periods { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; padding: 4px; background: rgba(8,24,48,.55); border-radius: 14px; width: max-content; max-width: 100%; }
.periods[hidden] { display: none; }
.period { appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 78px; min-height: 44px; padding: 6px 12px; border-radius: 10px;
  background: transparent; border: 0; color: var(--frost); font: 600 .85rem/1.2 var(--sans); cursor: pointer; transition: background var(--ease), color var(--ease); }
.period:hover { color: var(--snow); background: rgba(234,242,251,.05); }
.period.is-active { background: var(--deep-2); color: var(--snow); box-shadow: inset 0 0 0 1px rgba(61,245,194,.45); }
.period-change { font-size: .75rem; font-weight: 500; }
.stock-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.stock-toggles[hidden] { display: none; }
.stock-toggle { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--frost);
  background: rgba(8,24,48,.5); border: 1px solid rgba(159,179,204,.18); cursor: pointer; user-select: none; transition: border-color var(--ease), color var(--ease); }
.stock-toggle:hover { color: var(--snow); }
.stock-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stock-toggle .box { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--c); }
.stock-toggle .pct { font-weight: 500; }
.stock-toggle:has(input:checked) { color: var(--snow); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.stock-toggle:has(input:checked) .box { background: var(--c); box-shadow: 0 0 8px var(--c); }
.stock-toggle:has(input:focus-visible) { outline: 2px solid var(--aurora); outline-offset: 2px; }
.chart { position: relative; flex: 1; min-height: 380px; }
.chart:not(.is-live) > .tv-lightweight-charts { position: absolute !important; inset: 0; visibility: hidden; }
.chart.is-loading .chart-fallback { opacity: .45; transition: opacity .3s; }
.chart.is-live .chart-fallback { display: none; }
.static-plot { position: relative; height: 320px; padding-right: 72px; }
.chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-svg polyline, .chart-svg line { fill: none; vector-effect: non-scaling-stroke; }
.chart-svg polyline { stroke-width: 2; stroke-linejoin: round; }
.chart-svg .line-kvant { stroke: var(--kvant); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(61,245,194,.6)); } .chart-svg .line-osebx { stroke: var(--osebx); }
.chart-svg .grid { stroke: rgba(159,179,204,.1); stroke-width: 1; }
.chart-svg .zero { stroke: rgba(159,179,204,.35); stroke-width: 1; stroke-dasharray: 3 3; }
.static-axis span { position: absolute; right: 0; transform: translateY(-50%); font-size: 12px; line-height: 1; color: var(--frost); }
.static-dates { display: flex; justify-content: space-between; padding: 8px 72px 0 0; font-size: 12px; color: var(--frost); }
.chart-tooltip { position: absolute; left: 0; top: 0; z-index: 5; max-width: calc(100% - 8px); pointer-events: none; min-width: 180px; padding: 10px 12px; border-radius: 12px;
  background: rgba(8,24,48,.92); border: 1px solid rgba(159,179,204,.2); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: .85rem; backdrop-filter: blur(8px); }
.chart-tooltip .tt-time { color: var(--frost); margin-bottom: 4px; }
.chart-tooltip .tt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.chart-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--frost); }

/* Rapporter */
.reports { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 40px; }
.reports .panel-head { grid-column: 1 / -1; }
.reports > .muted { grid-column: 1 / -1; }
.report-featured { display: grid; gap: 12px; align-content: start; }
.report-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--frost); }
.chip { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .1rem .6rem; border: 1px solid rgba(159,179,204,.3); }
.chip-sell { color: var(--neg); border-color: rgba(255,122,144,.45); }
.chip-buy { color: var(--pos); border-color: rgba(95,240,163,.45); }
.report-title { margin: 0; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.01em; color: var(--snow); font-weight: 650; }
.report-title a { color: inherit; }
.report-title a:hover { color: var(--aurora); text-decoration: none; }
.report-title.lg { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; max-width: 22ch; }
.report-title.page { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 10px 0 18px; max-width: 20ch; }
#report.article .report-lead { font-size: 1.25rem; line-height: 1.55; color: var(--snow); margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(159,179,204,.16); }
#report.article h3 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
#report.article .report-text p { color: #d4e0ee; }
ul.report-swaps { padding-left: 1.1rem; }
.swap-tag { font-weight: 650; }
.report-lead { font-size: 1.1rem; color: #d4e0ee; margin: 0; max-width: 60ch; line-height: 1.6; }
.report-featured .report-lead::first-letter { font-size: 3.1em; float: left; line-height: .9; margin: .06em .1em 0 0; font-weight: 700; color: var(--aurora); }
.read-more { justify-self: start; display: inline-flex; align-items: center; min-height: 42px; font-weight: 600; padding: 0 18px; border-radius: 999px;
  color: var(--aurora); box-shadow: inset 0 0 0 1px rgba(61,245,194,.55); transition: background var(--ease), color var(--ease); }
.read-more:hover { background: var(--aurora); color: #062a22; text-decoration: none; }
.report-earlier { border-left: 1px solid rgba(159,179,204,.14); padding-left: 32px; }
.earlier-title { margin: 0 0 6px; font-size: .95rem; color: var(--frost); font-weight: 500; }
ol.report-list { list-style: none; padding: 0; margin: 0; }
ol.report-list li { border-top: 1px solid rgba(159,179,204,.12); }
ol.report-list li:first-child { border-top: 0; }
.report-item { display: grid; gap: 8px; padding: 14px 0; }
.report-excerpt { color: var(--frost); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.report-item .read-more { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.reports-more { margin: .6rem 0 0; }
.report-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.report-link { display: grid; gap: 6px; padding: 12px 10px; margin: 0 -10px; color: var(--snow); border-radius: 10px; }
.report-link:hover { background: var(--deep-2); text-decoration: none; }
.report-week { font-weight: 600; }
.prose { line-height: 1.7; }
.prose p, .prose li { max-width: 68ch; }
#info .label { margin-top: 28px; }
#info .lede { font-size: 1.15rem; color: #c8d6e8; }
.prose h2 { margin: 1.4rem 0 .5rem; }
.report-text p { margin: 0 0 .9rem; }
.report-text p.report-tldr { margin: 0 0 1.4rem; padding: 14px 16px; background: var(--deep); border: 1px solid var(--edge); border-radius: 12px; color: var(--snow); }
.report-tldr strong { margin-right: .4em; font: 600 .75rem var(--mono); letter-spacing: .08em; color: var(--aurora); }
ul.report-holdings { list-style: none; padding: 0; margin: 0; }
ul.report-holdings li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.crumbs { max-width: 760px; margin: 36px auto 18px; color: var(--frost); font-size: .9rem; }
.disclaimer { color: var(--frost); font-size: .92rem; }
.label { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--warn); border: 1px solid rgba(255,197,107,.4); border-radius: 999px; padding: .05rem .55rem; margin-right: .4rem; }
.toc ol { columns: 2; padding-left: 1.2rem; color: var(--frost); }
.step { color: var(--aurora); margin-right: .6rem; }
#info h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Ukestabell */
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(159,179,204,.14); scrollbar-color: var(--edge) transparent;
  background: linear-gradient(to left, var(--deep) 40%, rgba(15,37,71,0)) right / 48px 100% no-repeat local,
    linear-gradient(to left, rgba(61,245,194,.18), rgba(61,245,194,0)) right / 24px 100% no-repeat scroll; }
table.weekly { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .9rem; }
table.weekly th, table.weekly td { padding: 11px 16px; vertical-align: top; border-bottom: 1px solid rgba(159,179,204,.1); text-align: right; white-space: nowrap; }
table.weekly thead th { font-size: .8rem; font-weight: 600; color: var(--frost); background: rgba(8,24,48,.6); }
table.weekly tbody tr:last-child > * { border-bottom: 0; }
table.weekly .sticky { position: sticky; left: 0; z-index: 1; text-align: left; background: #0d2142; font-weight: 600; color: var(--frost); }
table.weekly td { min-width: 100px; }
table.weekly td .cell-ticker { display: block; font-size: .8rem; font-weight: 600; color: var(--snow); }
table.weekly tr.row-kvant > * { background: rgba(61,245,194,.08); font-size: 1.05rem; font-weight: 700; }
table.weekly tr.row-kvant .sticky { background: #10304a; color: var(--aurora); }
table.weekly tr.row-osebx > * { background: rgba(198,211,230,.07); font-size: 1.05rem; font-weight: 700; }
table.weekly tr.row-osebx .sticky { background: #12284b; color: var(--osebx); }
table.weekly tr.row-stock > * { font-size: .82rem; }
table.weekly tr.row-stock .pct { font-weight: 500; }
table.weekly tr.row-osebx + tr.row-stock > * { border-top: 2px solid rgba(159,179,204,.22); }

/* Påmelding: lysende bånd */
.subscribe-band { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: center; margin: 12px 0 28px; padding: 40px;
  border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 140% at 0% 100%, rgba(61,245,194,.28), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(155,140,255,.3), transparent 60%), var(--deep-2);
  border: 1px solid rgba(61,245,194,.25); }
.subscribe-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; }
.subscribe-band p { margin: 0; color: #c8d6e8; }
#subscribe form { display: flex; flex-wrap: wrap; gap: 10px; }
#subscribe label[for=email] { width: 100%; font-size: .85rem; color: var(--frost); }
#subscribe input[type=email] { flex: 1 1 14rem; min-width: 0; min-height: 50px; font: inherit; color: var(--snow); background: rgba(8,24,48,.7); padding: .6rem 1rem;
  border: 1px solid rgba(159,179,204,.3); border-radius: 999px; }
#subscribe input[type=email]:focus { border-color: var(--aurora); outline: none; box-shadow: 0 0 0 4px rgba(61,245,194,.15); }
#subscribe input::placeholder { color: #7f93ad; }
#subscribe button { min-height: 50px; font: 650 1rem var(--sans); padding: 0 24px; border: 0; border-radius: 999px; background: var(--aurora); color: #062a22; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(61,245,194,.7); }
#subscribe button:hover { filter: brightness(1.08); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { width: 100%; padding: .6rem .9rem; border-radius: 12px; background: rgba(95,240,163,.12); color: var(--pos); margin: 0 0 10px; }
.notice.error { background: rgba(255,197,107,.12); color: var(--warn); }
.disclaimer-block { max-width: 70ch; margin: 0 0 20px; }
.disclaimer-block h2 { font-size: 1rem; color: var(--frost); font-weight: 600; letter-spacing: 0; margin: 0 0 6px; }

.site-footer { border-top: 1px solid rgba(159,179,204,.12); padding: 20px 0 32px; font-size: .85rem; }
.site-footer p { margin: .2rem 0; }

@media (max-width: 960px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero-text { padding-top: 120px; padding-bottom: 8px; }
  .aurora { position: relative; left: 0; width: 100%; height: 240px; order: 2; margin-bottom: 64px; -webkit-mask-image: none; mask-image: none; }
  .far-ridge { height: 150px; }
  ul.holdings { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  ul.holdings li:nth-child(3) { border-left: 0; padding-left: 0; }
  .reports { grid-template-columns: 1fr; }
  .report-earlier { border-left: 0; padding-left: 0; margin-top: 24px; }
  .subscribe-band { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-text { padding-top: 104px; }
  .aurora { height: 190px; margin-bottom: 52px; }
  .far-ridge { height: 120px; }
  .hero-figures { gap: 10px 28px; }
  .hero-figures dd { font-size: 1.35rem; }
  .hero-figures .since { flex-basis: 100%; display: flex; gap: .35rem; align-items: baseline; }
  .hero-figures .since dt, .hero-figures .since dd { font-size: .95rem; color: var(--frost); font-weight: 400; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; white-space: nowrap; }
  .panel { padding: 20px 16px; border-radius: 16px; }
  .panel h2 { font-size: 1.3rem; }
  .holdings-panel { margin-top: -40px; }
  ul.holdings { grid-template-columns: 1fr; gap: 0; }
  ul.holdings li, ul.holdings li:nth-child(3) { padding: 14px 0; border-left: 0; border-top: 1px solid rgba(159,179,204,.12); }
  ul.holdings li:first-child { border-top: 0; padding-top: 2px; }
  .h-card { flex-direction: row; align-items: center; }
  .h-card::before { left: -12px; right: auto; top: 2px; bottom: 2px; width: 3px; height: auto; }
  .h-side { justify-items: end; text-align: right; }
  .h-side .pct[data-field="utvikling"] { font-size: clamp(1.2rem, 6vw, 1.5rem); white-space: nowrap; }
  .periods { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
  .period { min-width: 0; padding: 6px 4px; align-items: center; }
  .period-change { font-size: .66rem; white-space: nowrap; }
  .stock-toggles { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .stock-toggle { flex: none; }
  .chart { min-height: 340px; }
  .legend { flex-direction: column; gap: .1rem; }
  .static-plot { height: 240px; padding-right: 60px; }
  .static-dates { padding-right: 60px; }
  table.weekly th, table.weekly td { padding: 9px 11px; }
  table.weekly td { min-width: 86px; }
  .report-featured .report-lead { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .report-featured .report-lead::first-letter { font-size: inherit; float: none; margin: 0; color: inherit; }
  .subscribe-band { padding: 22px 18px; }
  #report.article .report-lead { font-size: 1.08rem; }
  #subscribe button { width: 100%; }
  .crumbs { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .aurora .ribbon { stroke-dashoffset: 0; }
  .aurora .curtain { opacity: 1; }
}
