/* =========================================================================
   Förskolepedagogiska föreningen — stilmall
   Färgerna är hämtade direkt ur föreningens logotyp.
   ========================================================================= */

/* ---------- 1. Typsnitt (självhostade — inga anrop till Google) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../typsnitt/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../typsnitt/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../typsnitt/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../typsnitt/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Färger och mått ---------- */
:root {
  /* Ytor */
  --papper:      #FDFBF8;
  --papper-2:    #FFFFFF;
  --papper-3:    #F5F0EA;
  --papper-djup: #2A1E28;

  /* Text */
  --black:    #23191F;
  --black-2:  #5C4F58;
  --black-3:  #857781;

  /* Linjer */
  --linje:      #E7DDD5;
  --linje-stark:#D6C8BE;

  /* Profilfärg */
  --profil:       #A61E7E;
  --profil-mork:  #7E1660;
  --profil-ljus:  #FBEEF7;

  /* Logotypens regnbåge — dekorativ, aldrig som textfärg mot papper */
  --f1: #E64CB8;  /* rosa   */
  --f2: #A855D8;  /* lila   */
  --f3: #3B8FE0;  /* blå    */
  --f4: #16A8BC;  /* cyan   */
  --f5: #6FA82E;  /* grön   */
  --f6: #E8730F;  /* orange */
  --f7: #D4A106;  /* gul    */

  /* Mått */
  --bredd:      72rem;
  --bredd-text: 40rem;
  --radie:      14px;
  --radie-s:    9px;
  --skugga:     0 1px 2px rgba(35,25,31,.05), 0 8px 24px -12px rgba(35,25,31,.14);
  --skugga-2:   0 2px 4px rgba(35,25,31,.06), 0 18px 44px -18px rgba(35,25,31,.22);

  --typ-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --typ-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="ljust"]) {
    --papper:      #191317;
    --papper-2:    #221A20;
    --papper-3:    #241C22;
    --papper-djup: #120D11;
    --black:       #F4EDF1;
    --black-2:     #BFB0B9;
    --black-3:     #97878F;
    --linje:       #372B33;
    --linje-stark: #4A3B44;
    --profil:      #F5A8DC;
    --profil-mork: #FBC8E8;
    --profil-ljus: #2E1F2A;
    --skugga:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --skugga-2:    0 2px 4px rgba(0,0,0,.35), 0 18px 44px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-tema="morkt"] {
  --papper:      #191317;
  --papper-2:    #221A20;
  --papper-3:    #241C22;
  --papper-djup: #120D11;
  --black:       #F4EDF1;
  --black-2:     #BFB0B9;
  --black-3:     #97878F;
  --linje:       #372B33;
  --linje-stark: #4A3B44;
  --profil:      #F5A8DC;
  --profil-mork: #FBC8E8;
  --profil-ljus: #2E1F2A;
  --skugga:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --skugga-2:    0 2px 4px rgba(0,0,0,.35), 0 18px 44px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- 3. Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  background: var(--papper);
  color: var(--black);
  font-family: var(--typ-text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
:where(h1,h2,h3,h4,h5,h6) {
  font-family: var(--typ-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.9vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.35vw, 2.25rem); }
h3 { font-size: clamp(1.22rem, 1.08rem + 0.62vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.15em; text-wrap: pretty; }
a  { color: var(--profil); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--profil-mork); }
strong { font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--linje); margin: 3rem 0; }
:focus-visible {
  outline: 3px solid var(--profil);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: color-mix(in srgb, var(--f1) 30%, var(--papper)); color: var(--black); }

/* ---------- 4. Layout ---------- */
.omslag { width: 100%; max-width: var(--bredd); margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 2.5rem); }
.text-kolumn { max-width: var(--bredd-text); }
.sektion { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sektion--tat { padding-block: clamp(2rem, 4vw, 3rem); }
main { display: block; }

.hoppa-till {
  position: absolute; left: .75rem; top: .75rem;
  transform: translateY(-160%);
  z-index: 200;
  background: var(--profil); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radie-s);
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: transform .18s ease;
}
.hoppa-till:focus { transform: translateY(0); color: #fff; }

/* ---------- 5. Sidhuvud ---------- */
.sidhuvud {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--papper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sidhuvud[data-scrollad="ja"] { border-bottom-color: var(--linje); box-shadow: 0 1px 14px -6px rgba(35,25,31,.14); }
.sidhuvud__inre {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem;
}
.marke { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; flex: 0 0 auto; }
.marke img { width: 2.5rem; height: 2.5rem; }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__namn {
  font-family: var(--typ-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.marke__ort { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--black-3); font-weight: 500; }

.meny { margin-left: auto; }
.meny__lista { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.meny__lank {
  display: block; padding: .55rem .72rem; border-radius: var(--radie-s);
  text-decoration: none; color: var(--black-2);
  font-size: .925rem; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.meny__lank:hover { background: var(--papper-3); color: var(--black); }
.meny__lank[aria-current="page"] { color: var(--profil); background: var(--profil-ljus); font-weight: 600; }

.meny__grupp { position: relative; }
.meny__knapp {
  display: inline-flex; align-items: center; gap: .3rem;
  font: inherit; font-size: .925rem; font-weight: 500;
  padding: .55rem .72rem; border-radius: var(--radie-s);
  background: none; border: 0; cursor: pointer; color: var(--black-2);
}
.meny__knapp:hover { background: var(--papper-3); color: var(--black); }
.meny__knapp svg { width: .7rem; height: .7rem; transition: transform .18s ease; }
.meny__knapp[aria-expanded="true"] svg { transform: rotate(180deg); }
.meny__undermeny {
  position: absolute; top: calc(100% + .4rem); right: 0;
  min-width: 12rem; padding: .45rem;
  background: var(--papper-2); border: 1px solid var(--linje);
  border-radius: var(--radie); box-shadow: var(--skugga-2);
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem;
}
.meny__undermeny[hidden] { display: none; }
.meny__undermeny a {
  display: block; padding: .45rem .6rem; border-radius: 7px;
  text-decoration: none; color: var(--black-2); font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.meny__undermeny a:hover { background: var(--papper-3); color: var(--black); }
.meny__undermeny a[aria-current="page"] { color: var(--profil); background: var(--profil-ljus); font-weight: 600; }

.hamburgare {
  display: none; margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--linje); border-radius: var(--radie-s);
  cursor: pointer; color: var(--black);
}
.hamburgare span, .hamburgare span::before, .hamburgare span::after {
  content: ''; display: block; position: absolute;
  width: 1.15rem; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
.hamburgare span { position: relative; }
.hamburgare span::before { top: -.38rem; }
.hamburgare span::after  { top:  .38rem; }
.hamburgare[aria-expanded="true"] span { background: transparent; }
.hamburgare[aria-expanded="true"] span::before { transform: translateY(.38rem) rotate(45deg); }
.hamburgare[aria-expanded="true"] span::after  { transform: translateY(-.38rem) rotate(-45deg); }

@media (max-width: 62rem) {
  .hamburgare { display: inline-flex; }
  .meny {
    position: fixed; inset: 4.5rem 0 auto 0;
    background: var(--papper);
    border-bottom: 1px solid var(--linje);
    box-shadow: var(--skugga-2);
    padding: .75rem clamp(1.15rem, 5vw, 2.5rem) 1.5rem;
    max-height: calc(100dvh - 4.5rem); overflow-y: auto;
  }
  .meny[hidden] { display: none; }
  .meny__lista { flex-direction: column; align-items: stretch; gap: .1rem; }
  .meny__lank, .meny__knapp { width: 100%; padding: .8rem .75rem; font-size: 1rem; }
  .meny__knapp { justify-content: space-between; }
  .meny__grupp { position: static; }
  .meny__undermeny {
    position: static; box-shadow: none; border: 0;
    background: var(--papper-3); margin: .2rem 0 .4rem;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  }
  .meny__undermeny a { text-align: center; }
}

/* ---------- 6. Dekorativa blobbar (logotypens motiv) ---------- */
.blobbar { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blobb {
  position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: .5;
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="ljust"]) .blobb { mix-blend-mode: screen; opacity: .3; filter: blur(58px); }
}
:root[data-tema="morkt"] .blobb { mix-blend-mode: screen; opacity: .3; filter: blur(58px); }

/* ---------- 7. Hjältesektion ---------- */
.hjalte { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem); }
.hjalte__inre { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .hjalte__inre { grid-template-columns: 1.35fr .65fr; } }
.hjalte__ogonbryn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--black-2); margin-bottom: 1.25rem;
}
.hjalte__ogonbryn::before {
  content: ''; width: 1.9rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--f1), var(--f6));
}
.hjalte h1 { margin-bottom: .6rem; }
.hjalte__ingress {
  font-size: clamp(1.08rem, 1rem + 0.42vw, 1.3rem);
  color: var(--black-2); max-width: 34rem; line-height: 1.55;
}
.hjalte__logga { justify-self: center; width: min(15rem, 60vw); }
.hjalte__logga img { width: 100%; }
@media (max-width: 56rem) { .hjalte__logga { display: none; } }

/* ---------- 8. Knappar ---------- */
.knappar { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.knapp {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 100px;
  font-weight: 570; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.knapp:active { transform: translateY(1px); }
/* Texten tar sin färg från papperet: mörk text på ljus knapp i mörkt läge,
   ljus text på mörk knapp i ljust läge — en regel, rätt kontrast i båda. */
.knapp--fylld { background: var(--profil); color: var(--papper); box-shadow: 0 6px 18px -8px var(--profil); }
.knapp--fylld:hover { background: var(--profil-mork); color: var(--papper); }
.knapp--linje { border-color: var(--linje-stark); color: var(--black); background: transparent; }
.knapp--linje:hover { background: var(--papper-3); color: var(--black); border-color: var(--black-3); }
.knapp svg { width: .95em; height: .95em; flex: 0 0 auto; }

/* ---------- 9. Sidhuvud för undersidor ---------- */
.sidtopp { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem); }
.sidtopp__inre { position: relative; z-index: 1; }
.sidtopp h1 { margin-bottom: .35rem; }
.sidtopp__ingress { color: var(--black-2); font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); max-width: 42rem; }
.smulor { font-size: .82rem; color: var(--black-3); margin-bottom: .9rem; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.smulor a { color: var(--black-2); text-decoration: none; }
.smulor a:hover { color: var(--profil); text-decoration: underline; }
.smulor span[aria-hidden] { opacity: .5; }

/* ---------- 10. Brödtext ---------- */
.brodtext > :first-child { margin-top: 0; }
.brodtext > :last-child { margin-bottom: 0; }
.brodtext h2 { margin-top: 2.4em; }
.brodtext h3 { margin-top: 2em; }
.brodtext ul, .brodtext ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.brodtext li { margin-bottom: .45em; }
.brodtext li::marker { color: var(--f1); }
.brodtext ol li::marker { color: var(--black-3); font-variant-numeric: tabular-nums; }
.brodtext blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.3em;
  border-left: 3px solid var(--f2); color: var(--black-2); font-style: italic;
}

/* ---------- 11. Kort ---------- */
.kort {
  background: var(--papper-2);
  border: 1px solid var(--linje);
  border-radius: var(--radie);
  box-shadow: var(--skugga);
}

/* Föreläsningskort */
.forelasningar { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.forelasning {
  position: relative;
  display: grid; gap: 0;
  background: var(--papper-2);
  border: 1px solid var(--linje);
  border-radius: var(--radie);
  overflow: hidden;
  box-shadow: var(--skugga);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.forelasning:hover { box-shadow: var(--skugga-2); border-color: var(--linje-stark); }
/* Affischer (liggande) går i full bredd överst — texten i dem måste gå att läsa.
   Porträtt (stående) hamnar i en smal sidokolumn. Ingen bild beskärs någonsin. */
.forelasning--portratt { align-items: start; }
@media (min-width: 46rem) {
  .forelasning--portratt { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
}
.forelasning--affisch { grid-template-columns: minmax(0, 1fr); }
.forelasning__bild { position: relative; background: var(--papper-3); display: grid; gap: 1px; }
.forelasning__bild img { width: 100%; height: auto; }
.forelasning--affisch .forelasning__bild { border-bottom: 1px solid var(--linje); }
@media (min-width: 46rem) {
  .forelasning--portratt .forelasning__bild { border-right: 1px solid var(--linje); }
}
@media (max-width: 46rem) {
  .forelasning--portratt .forelasning__bild { border-bottom: 1px solid var(--linje); }
}
.forelasning__kropp { padding: clamp(1.35rem, 3vw, 2rem); min-width: 0; }
.forelasning__titel { margin-bottom: .3rem; }
.forelasning__titel a { color: inherit; text-decoration: none; }
.forelasning__forelasare {
  font-size: .95rem; color: var(--black-2); font-weight: 550; margin-bottom: 1rem;
}
.forelasning__text { font-size: .96rem; color: var(--black-2); }
.forelasning__text > :last-child { margin-bottom: 0; }
.forelasning__underrubrik {
  font-family: var(--typ-display); font-size: 1.02rem; font-weight: 400;
  font-style: italic; color: var(--black-2); margin: -.05rem 0 .55rem;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

/* Metarad */
.meta { display: flex; flex-wrap: wrap; gap: .45rem .5rem; margin-bottom: 1.1rem; list-style: none; padding: 0; }
.meta li {
  display: inline-flex; align-items: center; gap: .38rem;
  font-size: .83rem; font-weight: 520; color: var(--black-2);
  background: var(--papper-3); border: 1px solid var(--linje);
  padding: .3rem .65rem; border-radius: 100px;
}
.meta svg { width: .88em; height: .88em; opacity: .65; flex: 0 0 auto; }
.meta li.meta--datum { background: var(--profil-ljus); border-color: color-mix(in srgb, var(--profil) 22%, transparent); color: var(--profil); font-weight: 620; }
.meta li.meta--stopp { background: color-mix(in srgb, var(--f6) 10%, var(--papper-2)); border-color: color-mix(in srgb, var(--f6) 32%, transparent); }

.markor {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 4px; z-index: 2;
  background: var(--markor-farg, var(--f1));
}

/* Etikett "Kommande"/"Genomförd" */
.etikett {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 100px; margin-bottom: .85rem;
}
.etikett--kommande { background: color-mix(in srgb, var(--f5) 16%, var(--papper-2)); color: color-mix(in srgb, var(--f5) 50%, var(--black)); }
.etikett--kommande::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: var(--f5); }
.etikett--genomford { background: var(--papper-3); color: var(--black-3); }

/* ---------- 12. Årsrutnät ---------- */
.ar-rutnat {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.ar-kort {
  position: relative; display: block; overflow: hidden;
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--papper-2); border: 1px solid var(--linje);
  border-radius: var(--radie); text-decoration: none; color: inherit;
  box-shadow: var(--skugga);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ar-kort:hover { transform: translateY(-3px); box-shadow: var(--skugga-2); border-color: var(--linje-stark); color: inherit; }
.ar-kort__ar {
  font-family: var(--typ-display); font-size: 2rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; display: block;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.ar-kort__antal { font-size: .82rem; color: var(--black-3); margin-top: .35rem; display: block; }
.ar-kort::after {
  content: ''; position: absolute; right: -1.6rem; top: -1.6rem;
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--markor-farg, var(--f1)); opacity: .14;
  transition: transform .3s ease, opacity .3s ease;
}
.ar-kort:hover::after { transform: scale(1.35); opacity: .22; }

/* ---------- 13. Rutnät (allmänt) ---------- */
.rutnat { display: grid; gap: 1.25rem; }
.rutnat--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Länkkort (t.ex. anmälningsformulär) */
.lankkort {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.35rem 1.4rem;
  background: var(--papper-2); border: 1px solid var(--linje);
  border-radius: var(--radie); text-decoration: none; color: inherit;
  box-shadow: var(--skugga);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lankkort:hover { transform: translateY(-2px); box-shadow: var(--skugga-2); border-color: var(--profil); color: inherit; }
.lankkort__titel { font-weight: 620; font-size: 1.03rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lankkort__titel svg { width: 1rem; height: 1rem; color: var(--profil); flex: 0 0 auto; }
.lankkort__text { font-size: .9rem; color: var(--black-2); }

/* Faktaruta */
.faktaruta {
  padding: 1.4rem 1.5rem; border-radius: var(--radie);
  background: var(--profil-ljus);
  border: 1px solid color-mix(in srgb, var(--profil) 18%, transparent);
  font-size: .95rem;
}
.faktaruta > :last-child { margin-bottom: 0; }
.faktaruta h2, .faktaruta h3 { margin-top: 0; }

/* Prislista */
.priser { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin: 1.75rem 0; padding: 0; list-style: none; }
.pris {
  padding: 1.35rem 1.4rem; border-radius: var(--radie);
  background: var(--papper-2); border: 1px solid var(--linje); box-shadow: var(--skugga);
}
.pris__belopp {
  font-family: var(--typ-display); font-size: 2rem; font-weight: 600;
  letter-spacing: -.03em; display: block; line-height: 1.1;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.pris__vem { font-size: .9rem; color: var(--black-2); margin-top: .2rem; display: block; }
.pris__not { font-size: .8rem; color: var(--black-3); margin-top: .5rem; display: block; }

/* Personlista */
.personer { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.personer li { padding: .7rem 0; border-bottom: 1px solid var(--linje); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.personer li:last-child { border-bottom: 0; }
.personer .roll { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--black-3); font-weight: 600; flex: 0 0 14rem; }
@media (max-width: 40rem) { .personer .roll { flex-basis: 100%; } }
.personer .namn { font-weight: 500; }

/* Bild med bildtext */
.figur { margin: 0 0 1.5rem; }
.figur img { border-radius: var(--radie); border: 1px solid var(--linje); }
.figur figcaption { font-size: .84rem; color: var(--black-3); margin-top: .6rem; }

/* Sektionsrubrik */
.sektionsrubrik { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.sektionsrubrik h2 { margin-bottom: 0; }
.sektionsrubrik__lank { font-size: .92rem; font-weight: 550; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.sektionsrubrik__lank:hover { text-decoration: underline; }
.sektionsrubrik__lank svg { width: .85em; height: .85em; }

.tom-notis { color: var(--black-2); background: var(--papper-3); border: 1px dashed var(--linje-stark); border-radius: var(--radie); padding: 1.5rem; text-align: center; }

/* Band med annan bakgrund */
.band { background: var(--papper-3); border-block: 1px solid var(--linje); }

/* ---------- 14. Sidfot ---------- */
.sidfot {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--papper-djup);
  color: #EFE4EC;
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.75rem;
}
.sidfot a { color: #F5C4E4; }
.sidfot a:hover { color: #fff; }
.sidfot__rutnat { display: grid; gap: 2.25rem; }
@media (min-width: 48rem) { .sidfot__rutnat { grid-template-columns: 1.4fr 1fr 1fr; } }
.sidfot h2 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--typ-text); font-weight: 640; color: #C9AEC0; margin-bottom: .9rem; }
.sidfot__marke { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.sidfot__marke img { width: 2.75rem; height: 2.75rem; }
.sidfot__marke strong { font-family: var(--typ-display); font-size: 1.1rem; font-weight: 600; font-variation-settings: "SOFT" 40, "WONK" 1; }
.sidfot__text { color: #C4B3BE; font-size: .93rem; max-width: 26rem; }
.sidfot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.sidfot ul a { text-decoration: none; font-size: .95rem; }
.sidfot ul a:hover { text-decoration: underline; }
.sidfot__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.sidfot__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid rgba(245,196,228,.28); color: #F5C4E4;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.sidfot__social a:hover { background: rgba(245,196,228,.14); border-color: #F5C4E4; color: #fff; }
.sidfot__social svg { width: 1.05rem; height: 1.05rem; }
.sidfot__botten {
  margin-top: 2.75rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(245,196,228,.16);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #A9959F;
}

/* ---------- 15. Diverse ---------- */
.endast-skarmlasare {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media print {
  .sidhuvud, .sidfot, .hoppa-till, .blobbar { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}

/* ---------- 16. Verktygsklasser ---------- */
/* Finns för att slippa inline-style= i HTML:en. Sajtens Content-Security-Policy
   tillåter bara stilar från egna filer (style-src 'self'), vilket är säkrare —
   men då måste allt ligga här i stället för i style-attribut. */

.mt-m   { margin-top: 1.25rem; }
.mt-l   { margin-top: 1.6rem; }
.mt-xl  { margin-top: 3rem; }
.mb-0   { margin-bottom: 0; }
.liten  { font-size: .9rem; }

.sektion--anslut { padding-top: 0; }
.sektion--nara   { padding-top: 1rem; }

.ledtext { color: var(--black-2); max-width: var(--bredd-text); }

.rutnat--enkel  { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); }
.rutnat--stapel { grid-template-columns: minmax(0, 1fr); align-items: start; }

.hjalte__inre--enkel { grid-template-columns: minmax(0, 1fr); }

.faktaruta--efter { margin-top: 2.5rem; max-width: var(--bredd-text); }
.faktaruta h2 { font-size: 1.2rem; }

.figur--stor  { max-width: 22rem; }
.figur--liten { max-width: 14rem; }

.knappar--efter { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.sektionsrubrik--avstand { margin-top: clamp(3rem, 6vw, 4.5rem); }

.meny__undermeny .full-rad { grid-column: 1 / -1; }
.meny__knapp--aktiv { color: var(--profil); }

.sidfot__rubrik--sekundar { margin-top: 1.6rem; }
.sidfot__text--liten { font-size: .9rem; }

/* Årsfärger — markörremsan överst på föreläsningskort och årskort. */
.ar-f1 { --markor-farg: var(--f1); }
.ar-f2 { --markor-farg: var(--f2); }
.ar-f3 { --markor-farg: var(--f3); }
.ar-f4 { --markor-farg: var(--f4); }
.ar-f5 { --markor-farg: var(--f5); }
.ar-f6 { --markor-farg: var(--f6); }
.ar-f7 { --markor-farg: var(--f7); }

/* Dekorativa blobbar — fasta positioner, två uppsättningar. */
.blobb--a1 { background: var(--f1); width: 34rem; height: 34rem; top: -14rem; left: -8rem; }
.blobb--a2 { background: var(--f3); width: 26rem; height: 26rem; top: -6rem;  left: 30%;   }
.blobb--a3 { background: var(--f7); width: 22rem; height: 22rem; top: 4rem;   left: 68%;   }
.blobb--a4 { background: var(--f5); width: 20rem; height: 20rem; top: 52%;    left: -4rem; }
.blobb--b1 { background: var(--f2); width: 26rem; height: 26rem; top: -13rem; left: -6rem; }
.blobb--b2 { background: var(--f4); width: 20rem; height: 20rem; top: -9rem;  left: 58%;   }
.blobb--b3 { background: var(--f6); width: 16rem; height: 16rem; top: 30%;    left: 86%;   }
