:root {
	--sf-blue: #2563eb;
	--sf-bg: #f8fafc;
	--sf-accent: #f59e0b;
	--sf-success: #22c55e;
	--sf-error: #ef4444;
	--sf-text: #0f172a;
	--sf-muted: #475569;
	--sf-card: #ffffff;
	--sf-border: #dbe7fb;
	--sf-radius: 16px;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--sf-text);
	background: var(--sf-bg);
	line-height: 1.6;
}
.sf-container { width: min(1120px, 92vw); margin: 0 auto; }
.sf-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #e2e8f0; }
.sf-header__inner { display: grid; grid-template-columns: 180px 1fr auto auto; gap: 1rem; align-items: center; min-height: 74px; }
.sf-logo { font-weight: 800; color: var(--sf-blue); text-decoration: none; }
.sf-search { display: flex; gap: .5rem; }
.sf-search input { width: 100%; border: 1px solid #cbd5e1; border-radius: 999px; padding: .65rem .95rem; }
.sf-search button { border: 0; background: var(--sf-blue); color: #fff; border-radius: 999px; padding: .65rem 1rem; }
.sf-menu-toggle { display: none; }
.sf-nav__list, .sf-footer__menu { list-style: none; display: flex; gap: .8rem; margin: 0; padding: 0; flex-wrap: wrap; }
.sf-nav__list a, .sf-footer__menu a { text-decoration: none; color: var(--sf-text); font-weight: 600; }
.sf-main { padding-bottom: 3rem; }
.sf-hero {
	margin-top: 1.2rem;
	background: linear-gradient(145deg, #e9f2ff, #fef8e8);
	padding: 2rem;
	border-radius: var(--sf-radius);
	box-shadow: 0 8px 20px rgba(37, 99, 235, .07);
}
.sf-kicker { color: var(--sf-blue); font-weight: 700; margin: 0; }
.sf-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin: .4rem 0; }
.sf-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.sf-btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: .7rem 1rem; font-weight: 700; }
.sf-btn--primary { background: var(--sf-blue); color: #fff; }
.sf-btn--ghost { border: 2px solid var(--sf-blue); color: var(--sf-blue); }
.sf-section { margin-top: 1.5rem; }
.sf-grid { display: grid; gap: .9rem; }
.sf-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sf-section__title { margin: 0 0 0.35rem; font-size: 1.45rem; }
.sf-section__lede { margin: 0 0 1rem; color: var(--sf-muted); max-width: 52ch; }
.sf-hero--home { padding: 2.2rem 2rem; }
.sf-hero__lead { max-width: 55ch; font-size: 1.05rem; line-height: 1.7; }
.sf-home-steps { margin-top: 0.5rem; }
.sf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) {
	.sf-steps { grid-template-columns: repeat(3, 1fr); }
}
.sf-step { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1rem 1.1rem; }
.sf-step__n { flex: 0 0 2.25rem; height: 2.25rem; border-radius: 12px; background: var(--sf-blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sf-step__h { margin: 0 0 0.35rem; font-size: 1.05rem; }
.sf-step p { margin: 0; color: #334155; font-size: 0.95rem; }
.sf-box--point { border-left-color: #7c3aed; background: linear-gradient(135deg, #f5f3ff, #eff6ff); border: 1px solid #c4b5fd; }
.sf-box__h { margin: 0 0 0.6rem; font-size: 1.3rem; }
.sf-point-lede { margin: 0 0 0.75rem; }
.sf-point-list { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.sf-point-list li { margin: 0.4rem 0; }
.sf-point-foot { margin: 1rem 0 0; }
.sf-card--rich { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-height: 7rem; padding: 1.1rem; }
.sf-card--rich .sf-card__label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #2563eb; margin-bottom: 0.3rem; }
.sf-card--rich .sf-card__title { font-size: 1.1rem; font-weight: 800; color: var(--sf-text); margin-bottom: 0.35rem; }
.sf-card--rich .sf-card__hint { font-size: 0.9rem; color: var(--sf-muted); }
.sf-card--fag { min-height: 5.2rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem; }
.sf-card--fag__name { font-size: 1.15rem; font-weight: 800; }
.sf-card--fag__cta { font-size: 0.9rem; color: #2563eb; font-weight: 600; }
.sf-card--panel h3 { margin-top: 0; }
.sf-home-cta__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.sf-oevelser-intro { margin-bottom: 0.5rem; }
.sf-exercise-card__title { margin: 0 0 0.5rem; font-size: 1.05rem; }
.sf-exercise-card__title a { color: #1e40af; text-decoration: none; }
.sf-exercise-card__title a:hover { text-decoration: underline; }
.sf-exercise-card__excerpt { margin: 0 0 0.6rem; color: #475569; font-size: 0.95rem; }
.sf-exercise-card__action { margin: 0 0 0.4rem; }
.sf-exercise-card__facit { font-size: 0.9rem; color: var(--sf-muted); }
.sf-exercise-card__facit summary { cursor: pointer; }
.sf-exercise-card__facit-inner p { margin: 0.4rem 0 0; }
.sf-exercise-single { padding-bottom: 2rem; }
.sf-exercise-single__kicker { text-transform: uppercase; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; color: #2563eb; margin: 0 0 0.25rem; }
.sf-exercise-single__head h1 { margin: 0 0 0.5rem; }
.sf-exercise-single__body { margin-top: 0.5rem; }
.sf-exercise-facit summary { cursor: pointer; }
.sf-exercise-facit__inner { margin-top: 0.5rem; }
.sf-exercise-single__back { margin-top: 1.2rem; }
.sf-pill { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; background: #dbeafe; font-size: 0.8rem; font-weight: 700; color: #1e3a8a; }
.sf-pill--muted { background: #f1f5f9; color: #475569; }
.sf-exercise-single__meta { margin: 0.25rem 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sf-fag-oversigt { margin-top: 0.5rem; }
.sf-home-cta { margin-top: 0.5rem; }
.sf-card {
	background: var(--sf-card);
	border: 1px solid #dbeafe;
	border-radius: var(--sf-radius);
	padding: 1rem;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sf-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .1); }
.sf-section--split { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sf-page { margin-top: 1rem; }
.sf-breadcrumb { color: var(--sf-muted); font-size: .9rem; margin-bottom: .5rem; }
.sf-breadcrumb a { color: var(--sf-blue); text-decoration: none; }
.sf-intro { font-size: 1.1rem; color: #1e293b; }
.sf-box { border-radius: 14px; padding: .9rem 1rem; margin: 1rem 0; border-left: 6px solid transparent; background: #fff; }
.sf-box--blue { border-left-color: var(--sf-blue); background: #eff6ff; }
.sf-box--green { border-left-color: var(--sf-success); background: #ecfdf5; }
.sf-box--tip { border-left-color: var(--sf-accent); background: #fff7ed; }
.sf-box--error { border-left-color: var(--sf-error); background: #fef2f2; }
.sf-box--skoleabc {
	border-left-color: #0d9488;
	background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
	border: 1px solid #99f6e4;
}
.sf-skoleabc-resources { margin-top: 1.25rem; }
.sf-skoleabc-resources__kicker { margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #0f766e; }
.sf-skoleabc-resources__h { margin: 0 0 0.5rem; font-size: 1.2rem; line-height: 1.3; }
.sf-skoleabc-resources__lede { margin: 0 0 0.75rem; color: var(--sf-muted); font-size: 0.95rem; }
.sf-skoleabc-resources__list { margin: 0.35rem 0 0.75rem; padding-left: 1.1rem; }
.sf-skoleabc-resources__list a { color: #0e7490; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sf-skoleabc-resources__list a:hover { color: #0f766e; }
.sf-skoleabc-resources__meta { margin: 0; font-size: 0.85rem; color: var(--sf-muted); }
.sf-skoleabc-resources__host { color: #0d9488; font-weight: 700; text-decoration: none; }
.sf-skoleabc-resources__host:hover { text-decoration: underline; }
.sf-topic-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.sf-toc { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: .8rem; }
.sf-next { background: #fff; border: 1px solid #dbeafe; border-radius: var(--sf-radius); padding: 1rem; margin-top: 1.2rem; }
.sf-next ul { margin: 0.4rem 0 1rem; padding-left: 1.1rem; }
.sf-next li { margin-bottom: 0.35rem; }
.sf-table-wrap { overflow-x: auto; margin-top: 1rem; }
.sf-search-results { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .8rem; }
.sf-footer { margin-top: 2rem; padding: 2rem 0; background: #eaf1ff; border-top: 1px solid #cfdefd; }
.sf-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.sf-filter label { display: grid; gap: .2rem; font-weight: 600; }
.sf-filter input, .sf-filter select { border: 1px solid #cbd5e1; border-radius: 10px; padding: .55rem .65rem; min-width: 180px; }
.sf-quiz, .sf-progress { background: #fff; border: 1px solid #dbeafe; border-radius: 14px; padding: 1rem; margin-top: 1rem; }
.sf-progress__help { color: #334155; font-size: 0.95rem; line-height: 1.5; margin: 0 0 1rem; max-width: 60ch; }
.sf-quiz__item { margin: .8rem 0; }
.sf-quiz__result, .sf-progress__status { font-weight: 700; color: var(--sf-blue); }
.sf-badge { display: inline-block; padding: .2rem .5rem; margin: .1rem .25rem 0 0; border-radius: 999px; background: #dbeafe; color: #1e3a8a; font-size: .8rem; font-weight: 700; }
.sf-route { display: grid; gap: .7rem; }
.sf-route__week { background: #fff; border: 1px solid #dbeafe; border-radius: 12px; padding: .6rem .8rem; }
.sf-route__week h4 { margin: 0 0 .35rem; font-size: .95rem; color: #1d4ed8; }
.sf-badge-card--earned { border-color: #86efac; background: #f0fdf4; }
.sf-badge-card--locked { border-color: #e2e8f0; background: #f8fafc; opacity: .78; }
.sf-badge-card--bronze { box-shadow: inset 0 0 0 2px #cd7f32; }
.sf-badge-card--silver { box-shadow: inset 0 0 0 2px #94a3b8; }
.sf-badge-card--gold { box-shadow: inset 0 0 0 2px #f59e0b; }
.sf-rarity { display: inline-block; padding: .12rem .45rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.sf-rarity--bronze { background: #f5dfc8; color: #7c2d12; }
.sf-rarity--silver { background: #e2e8f0; color: #334155; }
.sf-rarity--gold { background: #fef3c7; color: #92400e; }
.sf-leaderboard { margin: 1rem 0; padding-left: 1.3rem; }
.sf-leaderboard li { margin: .45rem 0; background: #fff; border: 1px solid #dbeafe; border-radius: 10px; padding: .45rem .65rem; display: flex; justify-content: space-between; gap: .6rem; }
.sf-coach-prefs { display: grid; gap: .55rem; margin-top: .7rem; }
.sf-coach-prefs select { border: 1px solid #cbd5e1; border-radius: 10px; padding: .4rem .55rem; width: 140px; }
.sf-log-status { display: inline-block; padding: .18rem .5rem; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sf-log-status--sent { background: #dcfce7; color: #166534; }
.sf-log-status--failed { background: #fee2e2; color: #991b1b; }
.sf-log-status--other { background: #e2e8f0; color: #334155; }

/* Forside: hurtig menu (WP: Forside – hurtig menu) */
.sf-front-nav-wrap { margin-top: 0.5rem; margin-bottom: 0.25rem; }
.sf-front-nav__list, .sf-front-nav__list > li { list-style: none; margin: 0; padding: 0; }
.sf-front-nav__list {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem;
	background: #fff; border: 1px solid var(--sf-border); border-radius: 14px; padding: 0.7rem 1rem;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.sf-front-nav__list a {
	display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
	color: #1e40af; text-decoration: none; background: #eff6ff; border: 1px solid transparent;
}
.sf-front-nav__list a:hover { background: #dbeafe; }
.sf-front-nav__list .is-current-menu-item a,
.sf-front-nav__list .is-current-menu-item a:hover {
	background: var(--sf-blue); color: #fff; border-color: #1d4ed8;
}
.sf-front-nav__note { font-size: 0.8rem; color: #94a3b8; margin: 0.35rem 0 0; }

/* Header: aktiv side i fallback-menu */
.sf-nav__list .is-current-menu-item a,
.sf-nav__list .is-current-menu-item a:hover { color: var(--sf-blue); text-decoration: underline; text-underline-offset: 4px; }

/* Fag-landing: du er her */
.sf-where--landing { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; background: linear-gradient(120deg, #eff6ff, #f0fdfa);
	border: 1px solid #93c5fd; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 0.5rem; }
.sf-where__kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; color: #1d4ed8; margin: 0; }
.sf-where__dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; margin-top: 0.4rem; flex: 0 0 auto; box-shadow: 0 0 0 3px #bbf7d0; }
.sf-where__line { margin: 0; font-size: 1.05rem; }
.sf-where__fag { color: #1e3a8a; }
.sf-where__hint { width: 100%; margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--sf-muted); padding-left: 1.4rem; }

/* Emne under fag: kontekststribe */
.sf-fag-ctx { margin: 0.25rem 0 0.9rem; }
.sf-fag-ctx__inner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; font-size: 0.95rem;
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.5rem 0.9rem;
}
.sf-fag-ctx__back { text-decoration: none; color: #0f172a; }
.sf-fag-ctx__back:hover { text-decoration: underline; }
.sf-fag-ctx__back strong { color: #1d4ed8; }
.sf-fag-ctx__sep { color: #cbd5e1; }
.sf-fag-ctx__here { color: #334155; font-weight: 600; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Emne-dæk på fag-landing */
.sf-subject-deck { margin: 1rem 0 1.5rem; }
.sf-subject-deck__head { margin-bottom: 1rem; }
.sf-subject-deck__intro { margin: 0.3rem 0 0; color: var(--sf-muted); max-width: 58ch; }
.sf-subject-deck__group { margin-bottom: 1.1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0.9rem 1rem; }
.sf-subject-deck__group-h { margin: 0 0 0.6rem; font-size: 1.02rem; color: #0f172a; }
.sf-subject-deck__topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sf-subject-pill {
	display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; background: #f1f5f9; color: #0f172a;
	font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 1px solid #e2e8f0; transition: background .15s, border-color .15s;
}
.sf-subject-pill:hover { background: #e0e7ff; border-color: #a5b4fc; color: #1e1b4b; }
.sf-subject-deck__foot { margin: 0.5rem 0 0; font-size: 0.9rem; }
.sf-page--fag-landing h1 { margin-top: 0.2rem; }

@media (min-width: 980px) {
	.sf-topic-layout { grid-template-columns: 240px 1fr; }
	.sf-toc { position: sticky; top: 90px; height: fit-content; }
}

@media (max-width: 880px) {
	.sf-header__inner { grid-template-columns: 1fr auto; }
	.sf-search { grid-column: 1 / -1; order: 3; }
	.sf-menu-toggle { display: inline-block; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; padding: .5rem .8rem; }
	.sf-nav { display: none; grid-column: 1 / -1; }
	.sf-nav.is-open { display: block; }
	.sf-nav__list { flex-direction: column; padding-bottom: .8rem; }
}

