:root {
  --blue: #39568b;
  --ink: #2b2b2b;
  --muted: #565d68;
  --page: #f7f8fa;
  --tint: #edf1f8;
  --line: #d9dee7;
  --blue-line: #aebcd3;
  --surface: #fff;
  --on-blue: #fff;
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 112.5%;
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #a6bfee;
  --ink: #edf0f6;
  --muted: #b6c0d0;
  --page: #171b23;
  --surface: #202632;
  --tint: #28354b;
  --line: #3d485c;
  --blue-line: #617697;
  --on-blue: #17233a;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1200px, calc(100% - clamp(24px, 5vw, 64px))); margin-inline: auto; }
header { background: var(--surface); border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 12px; }
.top-actions { display: flex; align-items: center; gap: clamp(8px, 3vw, 24px); }
.settings { position: relative; }
.settings summary { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; }
.settings summary::-webkit-details-marker { display: none; }
.settings[open] summary, .settings summary:hover { background: var(--tint); }
.gear-icon {
  width: 1.2rem;
  height: 1.2rem;
  background: radial-gradient(circle, transparent 0 23%, currentColor 25%);
  clip-path: polygon(42% 0, 58% 0, 62% 14%, 70% 17%, 83% 10%, 94% 21%, 87% 34%, 90% 42%, 100% 44%, 100% 58%, 87% 62%, 84% 70%, 91% 82%, 80% 93%, 67% 86%, 59% 89%, 57% 100%, 42% 100%, 38% 86%, 30% 83%, 17% 90%, 6% 79%, 13% 66%, 10% 58%, 0 56%, 0 42%, 13% 38%, 16% 30%, 9% 18%, 20% 7%, 33% 14%, 41% 11%);
}
.settings-panel { position: absolute; z-index: 1; inset: calc(100% + 8px) 0 auto auto; min-width: 11rem; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.settings-panel label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .875rem; }
select { width: 100%; min-height: 2.5rem; padding: .35rem 2rem .35rem .6rem; border: 1px solid var(--blue-line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: .44rem; font-size: clamp(1.08rem, 2.4vw, 1.25rem); font-weight: 750; letter-spacing: -.035em; text-decoration: none; }
.brand-accent { color: var(--blue); }
.brand-mark {
  position: relative;
  display: block;
  flex: none;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: .43rem;
  overflow: hidden;
  background: #2b2b2b;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 18%;
  background: repeating-linear-gradient(0deg, #697786 0 1px, transparent 1px 5px);
  opacity: .65;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 23% 16%;
  background: #a6bfee;
  clip-path: polygon(0 78%, 25% 46%, 46% 59%, 73% 15%, 100% 0, 100% 13%, 80% 27%, 49% 77%, 26% 63%, 0 96%);
}
.hero { margin-top: 24px; border-bottom: 1px solid var(--line); padding: clamp(22px, 4vw, 42px) 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 60px); align-items: center; }
.hero.has-no-chart { grid-template-columns: minmax(0, 1fr); }
.course-back { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .65rem; margin-bottom: .85rem; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); font-size: .875rem; font-weight: 700; text-decoration: none; }
.course-back:hover { background: var(--tint); }
.welcome-hero { min-height: clamp(350px, 42vw, 520px); }
.welcome-art { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.welcome-art img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
[data-theme="dark"] .welcome-art img { filter: brightness(.8); }
.welcome-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(14px, 5vw, 60px); max-width: 56rem; margin: clamp(28px, 6vw, 70px) auto 0; }
.welcome-method ol { margin: 0; padding-inline-start: 1.65rem; }
.welcome-method li { padding: .1rem 0 .8rem .15rem; }
.welcome-method li::marker { color: var(--blue); font-weight: 700; }
.welcome-method li + li { border-top: 1px solid var(--line); padding-top: .8rem; }
.welcome-method h3 { margin-bottom: .25rem; }
.welcome-method p { margin: 0; color: var(--muted); }
.welcome-section { max-width: 56rem; margin: clamp(32px, 6vw, 70px) auto 0; }
.welcome-courses, .welcome-audience dl { display: grid; gap: clamp(12px, 2vw, 24px); }
.welcome-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.welcome-courses article { display: flex; flex-direction: column; align-items: flex-start; border-top: 3px solid var(--blue); padding: clamp(16px, 3vw, 28px); }
.welcome-courses p { margin: 0 0 1rem; color: var(--muted); }
.welcome-courses a { margin-top: auto; color: var(--blue); font-weight: 700; }
.welcome-audience dl { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.welcome-audience dl > div { border-top: 1px solid var(--line); padding-top: .65rem; }
.welcome-audience dt { font-weight: 700; }
.welcome-audience dd { margin: .3rem 0 0; color: var(--muted); }
.welcome-coaching { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: center; padding: clamp(16px, 4vw, 30px); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; background: var(--tint); }
.welcome-coaching p:last-child { margin-bottom: 0; }
.welcome-coaching ul { margin: 0; padding-inline-start: 1.2rem; }
.welcome-coaching li + li { margin-top: .4rem; }
.welcome-faq details { border-top: 1px solid var(--line); }
.welcome-faq details:last-child { border-bottom: 1px solid var(--line); }
.welcome-faq summary { padding: .7rem 0; font-weight: 650; cursor: pointer; }
.welcome-faq summary::marker { color: var(--blue); }
.welcome-faq p { max-width: 66ch; margin: 0 0 .8rem; color: var(--muted); }
.eyebrow { font-size: .875rem; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
h1 { text-wrap: balance; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-family: Georgia, serif; font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.6rem); letter-spacing: -.045em; margin: 0; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.2vw, 2.3rem); letter-spacing: -.035em; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 10px; }
.lead { max-width: 46ch; color: var(--muted); font-size: 1.08rem; margin: 16px 0 24px; }
.button, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 4px; font: inherit; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; text-decoration: none; }
.button { background: var(--blue); color: var(--on-blue); }
.secondary { border-color: var(--blue-line); background: var(--surface); color: var(--blue); }
.button:hover, .secondary:hover { filter: brightness(.9); }
#course-chart { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
#course-chart img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
[data-theme="dark"] #course-chart img { filter: brightness(.8); }
#catalog { padding-top: clamp(36px, 7vw, 84px); }
.course-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: 30px; }
.course-card { display: flex; flex-direction: column; align-items: flex-start; border-top: 4px solid var(--blue); }
.course-card > p { margin: 0 0 18px; }
.course-card .course-duration { margin-top: auto; padding-top: 10px; font-weight: 700; }
.course-card label { color: var(--blue); font-weight: 700; }
.course-card progress { margin: 0 0 20px; }
.saved-section { margin-top: 2rem; }
#saved-items { display: grid; gap: .45rem; padding: 0; margin: 0; list-style: none; }
#saved-items li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
#saved-items small { display: block; color: var(--muted); font-size: .875rem; }
#saved-items a { color: var(--blue); font-weight: 700; }
#saved-items button { min-height: 2rem; font-size: .875rem; }
#kurs { margin-top: 34px; }
#kurs:not(.is-focused) { max-width: 56rem; margin-inline: auto; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin: 0; color: var(--muted); }
.progress { display: grid; gap: 5px; font-size: .875rem; }
progress { accent-color: var(--blue); width: 100%; }
.contents { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.contents-head { padding: 17px; max-width: 28rem; }
.course-search { display: grid; gap: .28rem; max-width: 30rem; margin-top: .8rem; }
.course-search label { font-size: .875rem; font-weight: 700; }
.course-search input { min-height: 2.5rem; width: 100%; padding: .38rem .6rem; border: 1px solid var(--blue-line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.course-search p { margin: 0; color: var(--muted); font-size: .875rem; }
.course-search a { justify-self: start; color: var(--blue); font-size: .875rem; font-weight: 700; }
.is-focused .course-search { display: none; }
nav { display: grid; gap: 16px; padding: 0 16px 16px; }
.chapter { border: 1px solid var(--line); border-radius: 4px; padding: 0 8px 8px; }
#kurs:not(.is-focused) .contents { background: transparent; border: 0; }
#kurs:not(.is-focused) .contents-head { max-width: none; padding: .85rem 1rem; margin-bottom: .8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
#kurs:not(.is-focused) #contents-title { display: none; }
#kurs:not(.is-focused) nav { gap: .55rem; padding: 0; }
#kurs:not(.is-focused) .chapter { padding: 0; background: var(--surface); }
#kurs:not(.is-focused) .chapter-heading { padding: .8rem 1rem; }
.chapter-label { display: grid; gap: .14rem; }
.chapter-label small { font-weight: 500; }
#kurs:not(.is-focused) .topic { padding: .62rem 1rem .62rem clamp(1.1rem, 4vw, 2.45rem); }
#kurs:not(.is-focused) .topic-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topic-group + .topic-group { border-top: 1px solid var(--line); }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; line-height: 1.3; padding: .7rem .55rem; overflow-wrap: anywhere; text-decoration: none; }
.topic:hover { background: var(--tint); }
.topic:hover strong { text-decoration: underline; }
nav small { display: block; margin-top: .15rem; color: var(--muted); font-size: .875rem; }
.lesson-percentage { color: var(--blue); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lesson-index { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 2px; background: var(--tint); color: var(--blue); font-size: .9rem; font-weight: 700; }
.lesson-index.is-complete { border-radius: 50%; background: var(--blue); color: var(--on-blue); font-size: 1.12rem; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 4vw, 38px); }
.lesson-links { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; border-bottom: 1px solid var(--line); margin-top: 18px; padding-bottom: 12px; }
.lesson-links a { padding-block: .35rem; font-weight: 650; color: var(--blue); }
#step-label { color: var(--muted); font-size: .875rem; }
.lesson-title-row { display: flex; align-items: start; justify-content: space-between; gap: .65rem; }
.lesson-title-row h2 { margin-bottom: 0; }
.lesson-title-row .step-bookmark { flex: none; min-width: 2.35rem; min-height: 2.35rem; border: 1px solid var(--line); }
.video-placeholder { display: grid; width: 100%; align-content: center; gap: 10px; min-height: 180px; aspect-ratio: 16 / 7; margin-block: 18px; padding: clamp(16px, 4vw, 36px); border: 1px solid var(--blue-line); border-left: 6px solid var(--blue); border-radius: 4px; color: var(--ink); background: var(--tint); font: inherit; text-align: left; }
.video-placeholder span { color: var(--blue); font-size: .875rem; }
.video-placeholder strong { max-width: 24ch; font-size: clamp(1.4rem, 4vw, 2.6rem); line-height: 1.12; text-wrap: balance; }
.lesson-walkthrough { margin-block: 18px; }
.walkthrough-stage { display: grid; align-content: center; min-height: clamp(220px, 34vw, 355px); padding: clamp(18px, 4vw, 38px); border: 1px solid var(--blue-line); border-left: 6px solid var(--blue); border-radius: 4px; background: var(--tint); }
.walkthrough-stage h3 { font-size: clamp(1.3rem, 2.6vw, 2.1rem); }
.walkthrough-stage p:last-child { max-width: 62ch; margin: 0; }
.walkthrough-controls { margin-top: .6rem; }
.walkthrough-controls button { min-height: 2.3rem; }
.lesson-sections h4 { margin: .8rem 0 .25rem; }
.lesson-sections p { margin: 0 0 .9rem; }
#quiz { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.step-navigation { margin-top: 22px; justify-content: flex-end; }
.exercise-progress { margin: .6rem 0 1rem; }
.question-card { border: 1px solid var(--line); border-radius: 4px; padding: clamp(12px, 2vw, 20px); margin-bottom: 1rem; }
.drawing-shell { --price-axis: 3.35rem; --up-candle: #087d70; --down-candle: #c23c50; container-type: inline-size; display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 3px 14px color-mix(in srgb, var(--ink) 9%, transparent); }
[data-theme="dark"] .drawing-shell { --up-candle: #53c6ac; --down-candle: #f28190; }
.drawing-toolbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; padding: .38rem .55rem; border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; background: var(--page); font-size: .78rem; }
.drawing-controls { display: flex; gap: .2rem; margin-left: auto; }
.drawing-controls button { min-width: 1.75rem; min-height: 1.75rem; padding: 0 .32rem; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.drawing-controls button:hover:not(:disabled) { background: var(--tint); }
.chart-timeframes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.chart-timeframes button { min-width: 2.5rem; min-height: 2rem; padding: .2rem .45rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.chart-timeframes button:hover:not(:disabled), .chart-timeframes button[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); color: var(--blue); }
.drawing-tools { grid-column: 1; grid-row: 2 / 4; display: grid; align-content: start; gap: .26rem; padding: .32rem .25rem; border-right: 1px solid var(--line); }
.drawing-tools button { display: grid; place-items: center; width: 1.86rem; height: 1.86rem; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.drawing-tools button:hover:not(:disabled), .drawing-tools button[aria-pressed="true"] { border-color: var(--blue-line); background: var(--tint); color: var(--blue); }
.drawing-tools button::before { content: ''; display: block; box-sizing: border-box; }
.tool-line::before { width: 1rem; border-top: 2px solid currentColor; }
.tool-rectangle::before { width: .96rem; height: .68rem; border: 1.5px solid currentColor; border-radius: 2px; background: color-mix(in srgb, currentColor 14%, transparent); }
.tool-clear::before { width: .83rem; height: .53rem; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-42deg); background: linear-gradient(to right, transparent 58%, currentColor 58% 70%, transparent 70%); }
.drawing-quote { color: var(--muted); font-variant-numeric: tabular-nums; }
.drawing-chart { grid-column: 2; position: relative; isolation: isolate; height: clamp(310px, 45vw, 465px); overflow: hidden; user-select: none; touch-action: none; cursor: ns-resize; }
.drawing-grid, .drawing-candles { position: absolute; inset: 0 var(--price-axis) 0 0; pointer-events: none; }
.drawing-grid { border-right: 1px solid var(--line); }
.drawing-grid span { position: absolute; inset-inline: 0; border-top: 1px solid var(--line); opacity: .65; }
.drawing-grid .time-grid-line { inset: 0 auto 0; border: 0; border-left: 1px solid var(--line); opacity: .42; }
.drawing-candles { z-index: 1; }
.candle { position: absolute; top: var(--high); left: var(--x); width: 2px; height: var(--wick); border-radius: 2px; background: currentColor; color: var(--down-candle); }
.candle.rising { color: var(--up-candle); }
.candle::after { content: ''; position: absolute; left: 50%; top: var(--body); width: clamp(10px, 2.2vw, 23px); height: var(--body-height); min-height: 2px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(125deg, #ffffff43, transparent 62%), currentColor; box-shadow: inset 0 1px 0 #ffffff55, 0 0 5px color-mix(in srgb, currentColor 23%, transparent); }
.price-level { position: absolute; z-index: 2; inset-inline: 0; height: var(--price-row); transform: translateY(-50%); padding: 0 .4rem 0 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; cursor: crosshair; }
.price-level:hover:not(:disabled), .price-level[aria-pressed="true"] { background: linear-gradient(to left, var(--tint) 0 var(--price-axis), transparent var(--price-axis)); color: var(--blue); }
.price-level:focus-visible { outline-offset: -2px; }
.price-level[aria-pressed="true"] { font-weight: 700; }
.price-level:disabled { opacity: 1; pointer-events: none; }
.over-price .price-level { cursor: ns-resize; }
.drawing-markings { position: absolute; z-index: 3; inset: 0 var(--price-axis) 0 0; overflow: hidden; pointer-events: none; }
.drawing-zone { position: absolute; inset-inline: 0; border-top: 1px solid var(--blue); background: color-mix(in srgb, var(--blue) 20%, transparent); }
.drawing-zone.is-band { border-bottom: 1px solid var(--blue); }
.drawing-zone.is-rectangle { left: var(--left); right: auto; width: var(--width); min-width: 3px; border-inline: 1px solid var(--blue); border-radius: 2px; }
.drawing-last-price { position: absolute; z-index: 3; inset-inline: 0; display: flex; align-items: center; justify-content: flex-end; transform: translateY(-50%); pointer-events: none; }
.drawing-last-price::before { content: ''; flex: 1; border-top: 1px dashed var(--up-candle); opacity: .85; }
.drawing-last-price span { width: var(--price-axis); padding: .05rem .25rem; border-radius: 3px 0 0 3px; background: var(--up-candle); color: var(--surface); font-size: .76rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; }
.drawing-crosshair { position: absolute; z-index: 4; inset: 0 var(--price-axis) 0 0; pointer-events: none; }
.drawing-crosshair::before, .drawing-crosshair::after { content: ''; position: absolute; opacity: .8; }
.drawing-crosshair::before { inset: var(--y) 0 auto; border-top: 1px dashed var(--muted); }
.drawing-crosshair::after { inset: 0 auto 0 var(--x); border-left: 1px dashed var(--muted); }
.drawing-time { grid-column: 2; position: relative; height: 1.75rem; margin-right: var(--price-axis); overflow: hidden; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; cursor: ew-resize; touch-action: none; user-select: none; }
.drawing-time.has-markers { height: 2.55rem; }
.time-tick { position: absolute; bottom: .2rem; transform: translateX(-50%); }
.candle-marker { position: absolute; top: .13rem; min-width: .9rem; transform: translateX(-50%); border-radius: 2px; background: var(--tint); color: var(--blue); font-weight: 750; text-align: center; }
@container (max-width: 38rem) {
  .drawing-time { height: 2.35rem; }
  .drawing-time.has-markers { height: 3.2rem; }
  .time-tick { transform: translateX(-.2rem) rotate(-58deg); transform-origin: left center; }
}
@container (max-width: 23rem) {
  .time-tick { font-size: .63rem; transform: translateX(-.16rem) rotate(-72deg); }
}
.chart-instruction, .chart-selection { margin: .45rem 0; color: var(--muted); font-size: .9rem; }
.quiz-summary { padding: 1rem 0; }
.quiz-summary h4, .quiz-summary p { margin: 0 0 .35rem; }
.completion.is-complete { background: var(--tint); border-color: var(--blue); }
.is-focused .section-head { display: none; }
.is-focused .course-grid { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 2.25fr); gap: clamp(14px, 2.5vw, 32px); align-items: start; }
.is-focused #leksjon { grid-column: 2; grid-row: 1; }
.is-focused .contents { grid-column: 1; grid-row: 1; position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow: auto; }
.is-focused .chapter { padding: 0; }
summary.chapter-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .65rem .55rem; font-weight: 700; cursor: pointer; }
summary.chapter-heading::-webkit-details-marker { display: none; }
summary.chapter-heading::before { content: ''; width: .4rem; height: .4rem; margin-right: .15rem; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.chapter[open] > .chapter-heading::before { transform: rotate(45deg); }
.chapter[open] > .chapter-heading { border-bottom: 1px solid var(--line); background: var(--tint); }
.chapter-heading:hover { background: var(--page); }
.is-focused .topic { display: block; padding: .55rem .65rem .35rem; font-size: .9rem; }
.is-focused .current-topic > .topic { color: var(--blue); }
.is-focused #video-display { min-height: 220px; aspect-ratio: 16 / 9; }
.topic-sequence { list-style: none; padding: 0 .4rem .4rem .65rem; margin: 0; }
.topic-sequence li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.topic-sequence a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem .55rem; padding: .42rem .45rem; border-left: 3px solid transparent; color: var(--ink); font-size: .875rem; text-decoration: none; }
.topic-sequence a:hover { background: var(--page); }
.topic-sequence a[aria-current="step"] { border-left-color: var(--blue); background: var(--tint); font-weight: 700; }
.step-bookmark { --bookmark-bg: var(--surface); position: relative; display: grid; place-items: center; min-width: 2rem; min-height: 2rem; padding: 0; border: 0; border-radius: 4px; color: var(--muted); background: var(--bookmark-bg); cursor: pointer; }
.step-bookmark:hover, .step-bookmark[aria-pressed="true"] { --bookmark-bg: var(--tint); color: var(--blue); }
.step-bookmark::before, .step-bookmark::after { content: ''; grid-area: 1 / 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 73%, 0 100%); }
.step-bookmark::before { width: .66rem; height: .84rem; background: currentColor; }
.step-bookmark::after { width: .47rem; height: .57rem; margin-bottom: .07rem; background: var(--bookmark-bg); }
.step-bookmark[aria-pressed="true"]::after { display: none; }
.topic-sequence small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.step-icon { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1px solid var(--blue-line); border-radius: 50%; color: var(--blue); font-size: .72rem; }
.step-icon.is-complete { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.is-focused #quiz { border: 0; padding-top: 0; }
.is-focused #quiz legend { font-size: 1.25rem; }
.is-focused .answer { padding: .8rem 1rem; }
#forklaring { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
aside { background: var(--tint); border-left: 3px solid var(--blue); padding: 15px; margin-block: 24px; }
aside p { margin: 0; }
aside h4 { margin: 0 0 8px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
legend { font-weight: 750; padding: 0; margin-bottom: 8px; }
.answer { display: flex; gap: .65rem; align-items: baseline; min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 4px; margin-bottom: .4rem; cursor: pointer; }
.answer:has(:checked) { border-color: var(--blue); background: var(--tint); }
.quiz-hint { margin-top: .75rem; padding: .45rem .75rem; border: 1px solid var(--blue-line); background: var(--tint); }
.quiz-hint summary { color: var(--blue); font-weight: 700; cursor: pointer; }
.quiz-hint p { margin: .4rem 0 0; }
.quiz-result { padding: .55rem .75rem; border-left: 4px solid currentColor; margin: .6rem 0 0; font-size: .95rem; }
.quiz-result.correct, .answer.correct { color: #16603d; background: #eef8f1; border-color: #38865c; }
.quiz-result.incorrect, .answer.incorrect { color: #8d2933; background: #fff0f1; border-color: #b85059; }
[data-theme="dark"] :is(.quiz-result, .answer).correct { color: #a8e3bc; background: #253c33; border-color: #70b88d; }
[data-theme="dark"] :is(.quiz-result, .answer).incorrect { color: #ffc0c4; background: #452a33; border-color: #d07e89; }
.answer:has(:disabled) { cursor: default; }
button:disabled { opacity: .62; cursor: default; }
input { accent-color: var(--blue); }
.answer input { flex: none; width: .95rem; height: .95rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
footer { padding-block: 30px; color: var(--muted); font-size: .875rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
#lesson-title:focus { outline: none; }
[hidden] { display: none; }
@media (max-width: 48rem) { .hero, .course-cards, .welcome-method, .welcome-audience dl, .welcome-coaching { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 48rem) {
  .is-focused .course-grid { grid-template-columns: minmax(0, 1fr); }
  .is-focused #leksjon { grid-column: 1; }
  .is-focused .contents { grid-column: 1; grid-row: 2; position: static; max-height: none; }
}
@media (max-width: 30rem) { .welcome-courses { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 26rem) {
  .actions > * { width: 100%; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 1.65rem; height: 1.65rem; }
  .top-actions > a { font-size: .875rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  :is(.button, .secondary, .topic, .topic-sequence a, .step-bookmark, .chapter-heading, .answer, .settings summary) {
    transition: background-color 150ms ease, border-color 150ms ease, filter 150ms ease, transform 150ms ease;
  }
  :is(.button, .secondary):active:not(:disabled) { transform: translateY(1px); }
  .drawing-zone { transition: top 120ms ease-out, height 120ms ease-out; }
  :is(.is-scaling, .is-drawing, .is-zooming, .has-corner) .drawing-zone { transition: none; }
  .price-level { transition: background-color 120ms ease-out; }
  summary.chapter-heading::before { transition: transform 150ms ease; }
  .course-card, .welcome-hero, #course-intro:not([hidden]), #leksjon:not([hidden]), .quiz-question,
  .quiz-summary:not([hidden]), .chapter[open] > .chapter-topics, .settings[open] .settings-panel, .welcome-faq details[open] p {
    animation: appear 170ms ease-out both;
  }
}

@keyframes appear {
  from { opacity: .55; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
