/* Organisationssimulering's own free cards (prefix .sm-), on top of kort.css / forside3.css / moduler.css. Before and
   after, in kroner: green is the only accent, red only with a word ("Tabt", "Forlader firmaet"). */
.vc.sm-w{width:340px}
.ms-panel .vc.sm-w,.ms-stop .vc.sm-w,.ms-hero-row .vc.sm-w{width:340px}
.ms-panel .vc.sm-w{width:380px}
.v-chip.sm-n{background:#F1F3F0;color:#4F596B}

/* hero: the centred headline keeps the size it had as a "simple" hero (the builder drops that class) */
.hero.ms-hero--center .ms-hero-copy h1{font-size:clamp(28px,5vw,76px);max-width:20ch;margin-inline:auto}
/* hero: before · saving · after, on one line */
.ms-hero-row[data-ms-cards^="simulation_before"]{align-items:center;grid-template-columns:260px 280px 260px}
.ms-hero-row[data-ms-cards^="simulation_before"] .vc{margin-top:0!important}
.sm-ba{display:grid;justify-items:start;text-align:left}
.sm-k{margin:0 0 6px;font:600 11.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#7A857F}
.sm-dep{font:500 22px/1.1 var(--serif);letter-spacing:-.01em}
.sm-ba>small{margin-top:3px;font-size:13px;color:#5B6660;font-variant-numeric:tabular-nums}
.sm-avs{display:flex;margin-top:12px}
.sm-avs .v-av{width:32px;height:32px}
.sm-avs>*+*{margin-left:-8px}
.sm-ghost{width:32px;height:32px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.5px #D6DBD5;border:2px solid #fff;box-sizing:border-box;background-clip:padding-box;outline:1.5px dashed #CFD6CF;outline-offset:-4px}
.sm-cnt{list-style:none;margin:12px 0 0;padding:0;width:100%}
.sm-cnt li{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #F0EEE9;font-size:13px}
.sm-cnt li span{flex:1;font-weight:550}
.sm-cnt li b{font:600 15px/1 var(--sans);font-variant-numeric:tabular-nums}
.sm-cnt li b small{font-size:12px;font-weight:500;color:#5B6660}
.sm-delta{display:grid;justify-items:center;text-align:center;padding:6px 4px}
.sm-arr{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#E3F2E9;color:#00693E;font-size:18px}
.sm-delta>b{margin-top:12px;font:500 34px/1 var(--serif);letter-spacing:-.02em;color:#00693E;white-space:nowrap;font-variant-numeric:tabular-nums}
.sm-per{margin-top:4px;font-size:13px;color:#5B6660}
.sm-delta small{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:6px 11px;border-radius:99px;background:#E3F2E9;color:#00693E;font-size:12.5px;font-weight:600;white-space:nowrap}
.sm-delta small .hi{font-size:15px}

/* the pick */
.sm-pick{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:5px}
.sm-pick li{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:12px;font-size:13px}
.sm-pick li>.hi{font-size:19px;color:#C9CFC9;flex:none}
.sm-pick li.d{background:#F1F8F4}
.sm-pick li.d>.hi{color:#00693E}
.sm-pick .v-av{width:30px;height:30px}
.sm-pick span{display:grid;min-width:0}
.sm-pick b{font-weight:600;white-space:nowrap}
.sm-pick small{font-size:11.5px;color:#5B6660;white-space:nowrap}
.sm-acts{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}
.sm-acts .v-b{flex:none;padding:0 16px}
.sm-req{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.sm-req li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:12px;background:#FDF3E3;font-size:13px}
.sm-req li span{font-weight:550}
.sm-req li b{color:#9A5B00;font-variant-numeric:tabular-nums;white-space:nowrap}
.sm-note{display:flex;align-items:center;gap:7px;margin:10px 0 0;font-size:12.5px;color:#5B6660}
.sm-note .hi{font-size:15px;color:#7A857F}

/* the point */
.sm-who{position:relative;display:flex;align-items:center;gap:11px;padding:10px;border-radius:16px;background:#fff;box-shadow:0 0 0 1.5px #00A550}
.sm-who .v-av{width:42px;height:42px}
.sm-who span{display:grid;min-width:0}
.sm-who b{font:500 18px/1.15 var(--serif)}
.sm-who small{font-size:12px;color:#5B6660;white-space:nowrap}
.sm-cur{position:absolute;right:-6px;top:-8px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#00693E;color:#fff;font-size:15px;box-shadow:0 0 0 2px #fff}
.sm-reveal.v-save{display:block;margin-top:0}
.sm-risk{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:9px 11px;border-radius:12px;background:#FDF1F2;color:#B42330;font-size:13px;font-weight:600;line-height:1.3}
.sm-risk .hi{flex:none;font-size:17px}
.sm-reveal .sm-risk span{margin:0;font-size:13px;color:#B42330}
.sm-per-p{margin:14px 0 6px;font:600 11.5px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#7A857F}
.sm-kpi b{font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
.sm-reveal .sm-kpi span{margin-top:4px;font-size:11px;color:#5B6660}

/* the bill */
.sm-big{display:block;margin-top:16px;font:500 44px/1 var(--serif);letter-spacing:-.02em;color:#00693E;white-space:nowrap;font-variant-numeric:tabular-nums}
.sm-incl{margin:8px 0 0;font-size:12.5px;color:#5B6660}
.sm-ok{display:flex;align-items:center;gap:8px;margin-top:14px;padding:9px 12px;border-radius:12px;background:#E3F2E9;color:#00693E;font-size:13px;font-weight:600}
.sm-ok .hi{font-size:17px}
.sm-gaps{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:5px}
.sm-gaps li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 2px;font-size:13px;font-weight:550}
.sm-gaps li.am{justify-content:flex-start;padding:8px 10px;border-radius:12px;background:#FDF3E3;color:#7A4A00;font-weight:500}
.sm-gaps li.am .hi{flex:none;font-size:16px;color:#9A5B00}
.sm-off.v-b{color:#A0A8A3;background:#F4F5F3;border-color:#ECEDEA}
.sm-off .hi{font-size:15px}

/* the matrix */
.sm-mx{margin-top:12px;font-size:13.5px}
.sm-mx .sm-tr{display:grid;grid-template-columns:minmax(0,1.6fr) 56px 56px minmax(0,1.3fr);align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid #F3F1EC}
.sm-mx .sm-th{padding-top:2px;font-size:11px;font-weight:600;color:#7A818C;border-bottom-color:#ECEAE4}
.sm-mx .sm-tr>b,.sm-mx .sm-th>span:nth-child(2),.sm-mx .sm-th>span:nth-child(3){text-align:center;font-variant-numeric:tabular-nums}
.sm-mx .sm-tr>span:first-child{font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-mx .sm-tr .v-chip{justify-self:start;white-space:nowrap}
.sm-e{font-style:normal;font-weight:700}
.sm-e.r{color:#B42330}.sm-e.a{color:#9A5B00}
.sm-dep2{margin:12px 0 2px;padding:0 4px;font:600 11px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#7A857F}
.sm-foot{display:flex;align-items:center;gap:8px;margin-top:14px;padding:9px 12px;border-radius:12px;background:#FDF1F2;color:#B42330;font-size:13px;font-weight:600}
.sm-foot .hi{font-size:17px}

/* the job profile */
.sm-prof{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.sm-prof li{display:grid;grid-template-columns:minmax(0,1fr) auto 76px;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:#F6F8F5;font-size:13px;font-weight:550}
.sm-prof .v-chip{justify-self:end}
.sm-karma{display:flex;align-items:baseline;gap:8px;margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#F1F8F4;font-size:13px;line-height:1.4;color:#1F4D36}
.sm-karma b{flex:none;font-weight:600;color:#00693E}
.sm-kd{flex:none;align-self:center;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle,#fff 0 2px,#00693E 3px);box-shadow:0 0 0 3px #DCEFE3}

@media (max-width:1040px){
  .hero.ms-hero--center .ms-hero-row[data-ms-cards^="simulation_before"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:600px}
  .ms-hero-row[data-ms-cards^="simulation_before"] .vc:nth-child(3){display:block}
  .ms-hero-row[data-ms-cards^="simulation_before"] .vc:nth-child(2){grid-column:1/-1;order:3}
}
@media (max-width:720px){
  .hero.ms-hero--center .ms-hero-row[data-ms-cards^="simulation_before"]{grid-template-columns:1fr}
  .ms-hero-row[data-ms-cards^="simulation_before"] .vc:nth-child(2){order:0}
  .sm-mx .sm-tr{grid-template-columns:minmax(0,1fr) 34px 34px;gap:4px 6px}
  .sm-mx .sm-tr .v-chip{grid-column:1/-1}.sm-mx .sm-th>span:nth-child(4){display:none}
  .sm-big{font-size:38px}
}

/* the centred hero must not centre the text inside the cards (the saving keeps its own centre) */
.vc[data-ms-card^="simulation_"] .in{text-align:left}
.vc[data-ms-card="simulation_delta"] .in{text-align:center}

/* a little colour where it carries meaning: "Før" is blue (dot in the hero, the matrix's before column) */
.sm-k .ks-dot{margin-right:6px;vertical-align:1px}
.sm-mx .sm-b4{min-width:28px;justify-content:center;font-variant-numeric:tabular-nums}
.sm-th .ks-dot{width:7px;height:7px}

/* 22-10 round 3: one story (Henrik and Laura carry both skills; 2 + 1 = 3 laid off). "Efter" is green, "Før" blue. */
.sm-k .ks-dot:not(.b){background:var(--ks-green)}
.sm-delta .sm-k{margin:0 0 10px}
.sm-cnt li b.sm-ft{font-size:13.5px;color:#B42330;white-space:nowrap}
.sm-cnt li .v-chip{flex:none}
@media (max-width:720px){
  .sm-prof li{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:8px 9px}
  .sm-prof li>span{white-space:nowrap}
  .sm-prof li>i:last-child{display:none}
}
/* the story's two-card stops get room for the thread's label */
#story .ms-stop.ms-threaded{column-gap:104px}
@media (max-width:720px){#story .annot.ms-stop.ms-threaded{row-gap:68px}}
/* Mark 23-10: the top is Økonomi in scenario 2 (simulation_overview) between two pills */
@media (min-width:1041px){.hero.ms-hero--center .ms-hero-row:has([data-ms-card="simulation_overview"]){grid-template-columns:270px 460px 270px}.ms-hero-row .vc[data-ms-card^="simulation_pill"]{margin-top:40px}}
