/* Alle hjemmelekser – arbeidsbok-oversikt */
body{background:var(--bg-base);color:var(--text-primary);}
html{scroll-behavior:smooth;}
[id^="hl-"]{scroll-margin-top:120px;}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

.hl-rw{max-width:1400px;margin:0 auto;padding-left:40px;padding-right:40px;}
.hl-c-blue{--c:var(--sgl-blue);--c-ink:#1D52A8;--c-tint:rgba(29,82,168,.08);}
.hl-c-red{--c:var(--sgl-red);--c-ink:#9E1F2D;--c-tint:rgba(193,48,64,.07);}
.hl-c-yellow{--c:var(--sgl-yellow);--c-ink:#8A5A0F;--c-tint:rgba(201,128,24,.09);}
.hl-c-purple{--c:var(--sgl-purple);--c-ink:#6D2E93;--c-tint:rgba(109,46,147,.08);}

.hl-eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:12px;}

/* Hero */
.hl-hero{background:var(--bg-elevated);border-bottom:1px solid var(--border-default);}
.hl-hero .hl-rw{padding-top:64px;padding-bottom:52px;}
.hl-h1{font-family:var(--serif);font-size:clamp(2.4rem,4.8vw,3.6rem);font-weight:600;color:var(--site-green);letter-spacing:-.015em;line-height:1.06;margin-bottom:20px;}
.hl-h1 em{font-style:italic;}
.hl-lead{font-size:1.0625rem;line-height:1.75;color:var(--text-secondary);max-width:64ch;text-wrap:pretty;}

/* To-kolonne: klistret sidepanel + listen */
.hl-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:56px;align-items:start;padding-top:48px;padding-bottom:80px;}
.hl-aside{position:sticky;top:120px;}
.hl-aside-in{padding:24px;border-radius:var(--r-lg);background:var(--bg-surface);border:1px solid var(--border-subtle);}
.hl-count{font-family:var(--serif);font-size:3rem;font-weight:600;color:var(--site-green);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;}
.hl-of{font-size:1.25rem;color:var(--text-muted);}
.hl-bar{height:5px;border-radius:9999px;background:var(--border-subtle);overflow:hidden;margin-top:14px;}
.hl-bar div{height:100%;width:0;background:var(--site-green);transition:width .4s cubic-bezier(.22,1,.36,1);}
.hl-next{font-size:.875rem;color:var(--text-muted);margin-top:12px;line-height:1.5;}
.hl-next a{color:var(--site-green);font-weight:700;text-decoration:underline;text-underline-offset:3px;}

.hl-filter{display:flex;gap:6px;flex-wrap:wrap;}
.hl-filter button{appearance:none;font:inherit;font-size:.8125rem;font-weight:700;padding:7px 14px;border-radius:var(--r-full);border:1px solid var(--border-default);background:var(--bg-elevated);color:var(--text-secondary);cursor:pointer;transition:background-color .18s ease,color .18s ease,border-color .18s ease;}
.hl-filter button[aria-pressed="true"]{background:var(--bg-dark);border-color:var(--bg-dark);color:#FAF8F4;}

.hl-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
.hl-tile{position:relative;aspect-ratio:1;border-radius:7px;overflow:hidden;background:var(--border-subtle);display:flex;align-items:flex-end;padding:5px 6px;font-size:.75rem;font-weight:800;color:var(--text-secondary);line-height:1;}
.hl-tile i{position:absolute;left:0;right:0;bottom:0;height:var(--fill,0%);background:var(--c);opacity:.9;transition:height .3s ease;}
.hl-tile span{position:relative;z-index:1;}
.hl-tile.is-full{color:#fff;}
.hl-tile:hover,.hl-tile:focus-visible{outline:2px solid var(--c);outline-offset:1px;}

.hl-print{appearance:none;margin-top:24px;width:100%;font:inherit;font-size:.875rem;font-weight:700;padding:10px 16px;border-radius:var(--r-full);border:1px solid var(--bg-dark);background:transparent;color:var(--bg-dark);cursor:pointer;}
.hl-print:hover{background:var(--bg-dark);color:#FAF8F4;}

/* Grupper og secrets */
.hl-list{min-width:0;display:flex;flex-direction:column;gap:56px;}
.hl-group{display:flex;flex-direction:column;gap:40px;}
.hl-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--border-default);}
.hl-group-head h2{font-family:var(--serif);font-size:clamp(1.7rem,3vw,2.3rem);font-weight:600;color:var(--site-green);letter-spacing:-.015em;line-height:1.12;}
.hl-group-head a{font-size:.8125rem;font-weight:700;color:var(--text-muted);white-space:nowrap;}
.hl-group-head a:hover{color:var(--site-green);}

.hl-secret{display:flex;flex-direction:column;gap:14px;}
.hl-secret-head{display:flex;align-items:center;gap:14px;}
.hl-num{width:36px;height:36px;flex-shrink:0;border-radius:50%;background:var(--c);color:#fff;font-size:.9375rem;font-weight:800;display:flex;align-items:center;justify-content:center;}
.hl-secret-head h3{flex:1;min-width:0;font-size:1.125rem;font-weight:800;color:var(--text-primary);line-height:1.3;}
.hl-secret-head h3 a:hover{color:var(--c-ink);}
.hl-secret-count{font-size:.75rem;font-weight:700;color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums;}

/* Kortet */
.hl-card{background:var(--bg-elevated);border:1px solid var(--border-subtle);border-left:4px solid var(--c);border-radius:var(--r-lg);padding:26px 28px;display:flex;flex-direction:column;gap:16px;transition:background-color .2s ease,border-color .2s ease;}
.hl-card.is-done{background:var(--bg-surface);}
.hl-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 24px;}
.hl-card-eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--c-ink);margin-bottom:6px;}
.hl-card h4{font-family:var(--serif);font-size:clamp(1.35rem,2.2vw,1.65rem);font-weight:600;color:var(--site-green);line-height:1.2;letter-spacing:-.01em;}
.hl-sub{font-style:italic;color:var(--text-secondary);}
.hl-card .hl-done{flex-shrink:0;}

.hl-body{max-width:70ch;display:flex;flex-direction:column;gap:12px;font-size:1.0625rem;line-height:1.75;color:var(--text-secondary);text-wrap:pretty;}
.hl-body > div{display:flex;flex-direction:column;gap:12px;}
.hl-body ul,.hl-body ol{display:flex;flex-direction:column;gap:6px;padding-left:1.4em;}
.hl-body ul{list-style:disc;}
.hl-body ol{list-style:decimal;}
.hl-body li::marker{color:var(--c-ink);font-weight:700;}
.hl-body strong{color:var(--text-primary);font-weight:700;}
.hl-body a{color:var(--c-ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.hl-body blockquote{margin:4px 0;padding:4px 0 4px 18px;border-left:3px solid var(--c);font-family:var(--serif);font-style:italic;font-size:1.125rem;color:var(--text-primary);}
.hl-body h4{font-family:inherit;font-size:1rem;font-weight:800;color:var(--text-primary);}
.hl-widget-note{font-size:.875rem!important;line-height:1.6;color:var(--text-muted);padding:10px 14px;border-radius:var(--r-md);background:var(--c-tint);}

.hl-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding-top:14px;border-top:1px solid var(--border-subtle);}
.hl-open{font-size:.9375rem;font-weight:700;color:var(--site-green);}
.hl-open:hover{text-decoration:underline;text-underline-offset:3px;}
.hl-coach{font-size:.875rem;font-weight:600;color:var(--text-muted);text-decoration:underline;text-underline-offset:3px;}
.hl-coach:hover{color:var(--site-green);}
/* Lesson video: låst video i SGL Coach-appen (samme mål som videoblokken på leksjonssiden) */
.hl-video{display:inline-flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border:1px solid var(--border-default);border-radius:var(--r-full);background:var(--bg-elevated);font-size:.875rem;font-weight:700;color:var(--text-primary);transition:border-color .2s ease,background .2s ease;}
.hl-video-play{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--c);color:#fff;padding-left:2px;}
.hl-video-lock{color:var(--text-muted);}
.hl-video:hover{border-color:var(--c);background:var(--c-tint);}

.hl-empty{font-size:1.0625rem;color:var(--text-secondary);padding:24px;border-radius:var(--r-lg);background:var(--bg-surface);border:1px dashed var(--border-default);}
[hidden]{display:none!important;}

/* Nettbrett: sidepanelet legger seg over listen */
.hl-aside-in{display:flex;flex-direction:column;gap:26px;}
@media(max-width:1000px){
  .hl-layout{grid-template-columns:1fr;gap:36px;}
  .hl-aside{position:static;}
  .hl-aside-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:24px 36px;}
  .hl-a-tiles{grid-column:2;grid-row:1 / span 2;}
  .hl-tiles{grid-template-columns:repeat(8,minmax(0,1fr));}
}
@media(max-width:767px){
  .hl-rw{padding-left:20px;padding-right:20px;}
  .hl-hero .hl-rw{padding-top:40px;padding-bottom:36px;}
  .hl-layout{padding-top:28px;padding-bottom:56px;}
  .hl-aside-in{display:flex;padding:20px;gap:22px;}
  .hl-a-tiles{grid-column:auto;grid-row:auto;}
  .hl-tiles{grid-template-columns:repeat(8,minmax(0,1fr));}
  .hl-card{padding:20px 18px;}
  .hl-card-head{flex-direction:column;}
  .hl-body{font-size:1rem;}
  .hl-group-head{flex-wrap:wrap;}
}

/* Utskrift: en ren arbeidsbok med alle 45 */
@media print{
  .site-top,footer,.jp-wrap,.hl-aside,.hl-actions,.hl-card .hl-done{display:none!important;}
  body{background:#fff;}
  .hl-hero{background:#fff;border:0;}
  .hl-layout{display:block;padding:0;}
  .hl-rw{padding:0 12mm;}
  .hl-card{break-inside:avoid;background:#fff!important;border-color:#ccc;}
  .hl-secret{break-inside:avoid-page;}
}
