/* SimonWagner.dk editorial article refresh · October 2026
   Light-first reading experience aligned with homepage and blog overview.
   Scoped to articles only; listing, site chrome, metadata and content are unchanged. */
body.blog-article {
  --article-ink:#18233b;
  --article-muted:#526079;
  --article-purple:#7454b6;
  --article-line:#e4e6f0;
  background:linear-gradient(180deg,#f7f8fd 0%,#fff 480px,#fff 100%);
  color:var(--article-ink);
}
.blog-article .blog-site-nav {
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(211,215,232,.77);
  box-shadow:0 3px 24px rgba(25,34,62,.04);
}
.blog-article .blog-site-nav .logo {color:#172239;letter-spacing:-.047em}
.blog-article .blog-site-nav .nav-links a {color:#3c4660}
.blog-article .blog-site-nav .nav-links a:hover {color:var(--article-purple)}
.blog-article .blog-menu-toggle {color:#202d46;background:#fff}
.blog-article .post-progress {
  position:fixed;top:0;left:0;width:100%;height:3px;
  pointer-events:none;z-index:210;
  background:transparent;
}
.blog-article .post-progress-fill {
  display:block;width:100%;height:100%;transform:scaleX(0);
  transform-origin:left center;will-change:transform;
  background:linear-gradient(90deg,#7965c9,#ab85e4 58%,#8dafe4);
}
.blog-article .post-layout {
  width:min(100%,1240px);
  max-width:1240px;
  margin:0 auto;
  padding:clamp(126px,11vw,164px) clamp(24px,4vw,56px) 95px;
  gap:clamp(30px,4.8vw,67px);
  align-items:flex-start;
}
.blog-article .post-container {flex:1 1 0;max-width:790px;min-width:0}
.blog-article .post-header {
  position:relative;text-align:left;
  overflow:hidden;isolation:isolate;
  margin:0 0 clamp(2.3rem,4vw,3.5rem);
  border:1px solid #e2e2f1;
  border-radius:28px;
  padding:clamp(1.7rem,3.4vw,3.2rem);
  background:
    radial-gradient(ellipse at 96% 0%,rgba(176,145,231,.24),transparent 60%),
    radial-gradient(ellipse at 5% 100%,rgba(192,208,242,.2),transparent 50%),
    linear-gradient(135deg,#fff,#f7f6fd 72%,#f1f3fc);
  box-shadow:0 26px 54px rgba(28,37,76,.065);
}
.blog-article .post-header::after {
  content:'';position:absolute;z-index:-1;pointer-events:none;
  width:190px;height:190px;top:-125px;right:-35px;
  border:1px solid rgba(151,129,211,.21);border-radius:50%;
  box-shadow:0 0 0 39px rgba(159,132,218,.025),0 0 0 78px rgba(159,132,218,.018);
}
.blog-article .post-breadcrumbs {
  display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
  font-size:.78rem;color:#68758d;font-weight:700;margin-bottom:1.8rem;
}
.blog-article .post-breadcrumbs a {
  color:#66528f;text-decoration:none;
}
.blog-article .post-breadcrumbs a:hover {text-decoration:underline}
.blog-article .post-breadcrumbs span[aria-hidden] {color:#aab1c2}
.blog-article .post-header .blog-tags {justify-content:flex-start!important;margin:0 0 1.35rem!important}
.blog-article .post-header .blog-cluster {
  background:#eee7fc;color:#614791;font-weight:800;letter-spacing:.035em;
  padding:.45rem .9rem;font-size:.72rem
}
.blog-article .post-header .blog-tag {background:rgba(255,255,255,.78);color:#5b6580;border:1px solid #e4e3ed}
.blog-article .post-title {
  font-size:clamp(2.3rem,4vw,3.65rem);
  line-height:1.11;letter-spacing:-.057em;font-weight:800;
  color:#141e35;max-width:18ch;margin:0 0 1.35rem;
  text-wrap:balance;overflow-wrap:break-word;
}
.blog-article .post-deck {
  font-size:clamp(1.04rem,1.38vw,1.17rem);
  color:#475571;line-height:1.7;
  margin:0 0 1.65rem;max-width:63ch
}
.blog-article .post-meta {
  display:flex;justify-content:flex-start;flex-wrap:wrap;
  gap:.55rem .9rem;align-items:center;
  margin:0;padding-top:1.18rem;border-top:1px solid #e2e4ee;
  color:#66718a;font-size:.84rem;font-weight:600;
}
.blog-article .post-meta .post-meta-dot {opacity:.58}
.blog-article .post-meta time {white-space:nowrap}
.blog-article .post-content {
  max-width:100%;font-size:clamp(1.05rem,1.18vw,1.135rem);
  line-height:1.86;color:#36445e;overflow-wrap:anywhere;
}
.blog-article .post-content >p:first-child {font-size:1.1em;color:#35435b;line-height:1.75}
.blog-article .post-content p {margin:0 0 1.55rem}
.blog-article .post-content :is(h2,h3,h4) {
  color:#17233a;font-weight:800;letter-spacing:-.037em;
}
.blog-article .post-content h2 {
  font-size:clamp(1.65rem,2.2vw,2.1rem);
  margin:3.65rem 0 1.3rem;line-height:1.26;scroll-margin-top:110px
}
.blog-article .post-content h3 {
  font-size:clamp(1.28rem,1.5vw,1.5rem);
  line-height:1.33;margin:2.5rem 0 1rem;scroll-margin-top:110px
}
.blog-article .post-content a {color:#6948ac;text-decoration-thickness:1px;text-underline-offset:3px}
.blog-article .post-content a:hover {color:#493080}
.blog-article .post-content :is(ul,ol) {margin:0 0 1.7rem;padding-left:1.65rem}
.blog-article .post-content li {padding-left:.15rem;margin-bottom:.63rem}
.blog-article .post-content li::marker {color:#8467c6}
.blog-article .post-content strong {color:#1b2942}
.blog-article .post-content img {height:auto;max-width:100%;border-radius:17px}
.blog-article .post-content :not(pre)>code {
  color:#614890;background:#f4f0fb;border-radius:5px;padding:.12em .38em;
  font-size:.91em;
}
.blog-article .post-content pre {
  padding:1.45rem;overflow-x:auto;max-width:100%;
  color:#e5eafa;background:#10182a;border:1px solid #273452;border-radius:17px;
  line-height:1.55;font-size:.88rem;margin:2rem 0
}
.blog-article .post-content pre code {color:inherit;background:transparent;padding:0}
.blog-article .post-content blockquote {
  margin:2rem 0;padding:1.3rem 1.6rem;
  border-left:3px solid #a184db;border-radius:0 17px 17px 0;
  font-style:normal;background:#f6f5fc;color:#43516b;
}
.blog-article .post-content blockquote p:last-child {margin-bottom:0}
.blog-article .post-content .kort-svar,
.blog-article .post-content .post-takeaway {
  position:relative;overflow:hidden;
  padding:clamp(1.35rem,2.5vw,1.9rem)!important;
  margin:2.2rem 0 2.6rem;color:#29344f;
  background:linear-gradient(120deg,#f3effd,#f7f9fe);
  border:1px solid #ddd5f3;border-left:4px solid #9b7bd7;
  border-radius:17px;
  box-shadow:0 11px 28px rgba(40,37,85,.035);
}
.blog-article .post-content .kort-svar::before,
.blog-article .post-content .post-takeaway::before {
  content:'HURTIGT OVERBLIK';display:block;
  margin-bottom:.8rem;color:#7959b6;font-size:.7rem;
  line-height:1.5;font-weight:800;letter-spacing:.14em;
}
.blog-article .post-content .kort-svar strong,
.blog-article .post-content .post-takeaway strong {
  color:#2e2851;display:inline;font-weight:800
}
.blog-article .post-content .kort-svar a,
.blog-article .post-content .post-takeaway a {color:#60439c}
.blog-article .post-content .blog-table-wrapper {
  max-width:100%;overflow-x:auto;border:1px solid #e0e3ed;
  border-radius:17px;margin:2rem 0 2.5rem;box-shadow:0 8px 28px rgba(21,33,60,.035)
}
.blog-article .post-content .blog-table-wrapper th {background:#f0edf9;color:#28334b}
.blog-article .post-content .blog-table-wrapper td {color:#425068}
.blog-article .post-content .faq-item {
  padding:1.45rem 1.2rem;border:1px solid #e5e5f0;
  border-radius:14px;background:#fafafe;margin-bottom:.75rem
}
.blog-article .post-content .faq-item h3 {font-size:1.15rem;letter-spacing:-.02em}
.blog-article .toc-container {display:none;width:270px;flex:0 0 270px;align-self:stretch}
.blog-article .toc-card {
  position:sticky;top:113px;
  border:1px solid #e5e5f0;background:#fff;border-radius:20px;
  padding:1.55rem 1.3rem;box-shadow:0 16px 40px rgba(20,32,58,.045);
  max-height:calc(100vh - 142px);overflow-y:auto
}
.blog-article .toc-card h3 {
  font-size:.78rem;font-weight:800;letter-spacing:.12em;
  color:#63708a;margin:0 0 1.15rem
}
.blog-article .toc-list {list-style:none;margin:0;padding:0}
.blog-article .toc-list li {margin:0 0 .3rem}
.blog-article .toc-link {
  display:block;text-decoration:none;color:#5b6881;
  line-height:1.43;font-size:.84rem;font-weight:650;
  padding:.64rem .7rem .64rem .85rem;border-radius:10px;
  border-left:2px solid transparent;transition:background .2s,color .2s,border-color .2s
}
.blog-article .toc-link:hover {background:#f5f1fc;color:#593b9a}
.blog-article .toc-link.active,
.blog-article .toc-link[aria-current="location"] {
  color:#6343a9;background:#f4effc;border-left-color:#9270ce;font-weight:800
}
.blog-article .post-toc-mobile {
  display:none;background:#fff;border:1px solid #e1e4ef;border-radius:17px;
  padding:.5rem 1rem;margin:0 0 2rem;
  box-shadow:0 10px 25px rgba(26,38,68,.035)
}
.blog-article .post-toc-mobile summary {
  display:flex;align-items:center;justify-content:space-between;
  padding:.75rem .25rem;cursor:pointer;list-style:none;
  color:#33415e;font-weight:800
}
.blog-article .post-toc-mobile summary::-webkit-details-marker {display:none}
.blog-article .post-toc-mobile summary::after {content:'+';font-size:1.35rem;color:#7355ac}
.blog-article .post-toc-mobile[open] summary::after {content:'−'}
.blog-article .post-toc-mobile .toc-list {padding:.3rem 0 .65rem;max-height:48vh;overflow-y:auto}
.blog-article .post-cta {
  position:relative;text-align:left;
  padding:clamp(1.65rem,3vw,2.65rem);margin-top:4rem;
  border:1px solid #d9d3ed;border-radius:24px;
  background:radial-gradient(circle at 100% 0,rgba(190,164,236,.28),transparent 50%),linear-gradient(130deg,#f8f6ff,#f2f5fc);
}
.blog-article .post-cta .post-cta-kicker {
  font-size:.72rem;font-weight:800;letter-spacing:.13em;color:#7755b6;margin-bottom:.95rem
}
.blog-article .post-cta h3 {
  color:#1b2840;font-size:clamp(1.45rem,2.25vw,2rem);
  letter-spacing:-.044em;line-height:1.18;max-width:25ch;margin:0 0 1rem
}
.blog-article .post-cta p {color:#4b5872;line-height:1.7;margin:0 0 1.5rem;max-width:60ch}
.blog-article .post-cta .btn-primary {
  display:inline-flex;align-items:center;gap:.65rem;
  min-height:48px;padding:.86rem 1.4rem;border-radius:999px;
  text-decoration:none;background:#202540;color:#fff;border:1px solid #202540;
  font-size:.9rem;font-weight:800
}
.blog-article .post-cta .btn-primary:hover {background:#59418a;border-color:#59418a;color:#fff}
.blog-article .post-author {
  display:flex;gap:1.5rem;align-items:center;margin-top:3.4rem;padding:1.75rem;
  border:1px solid #e3e6f0;border-radius:20px;background:#fbfbfe
}
.blog-article .post-author img {
  width:96px;height:96px;flex:0 0 96px;object-fit:cover;object-position:center 32%;
  border-radius:18px
}
.blog-article .post-author-eyebrow {font-size:.69rem;font-weight:800;letter-spacing:.11em;color:#7a5cb2}
.blog-article .post-author h4 {font-size:1.3rem;letter-spacing:-.03em;margin:.38rem 0 .6rem;color:#202c44}
.blog-article .post-author p {color:#55617a;line-height:1.6;font-size:.91rem}
.blog-article .post-author-link {
  color:#65489d;font-size:.86rem;font-weight:800;text-decoration:none;display:inline-block;margin-top:.65rem
}
.blog-article .post-author-link:hover {text-decoration:underline}
.blog-article .post-service-links {
  margin:2.5rem 0 0;padding:1.4rem 1.65rem;
  border-radius:17px;border:1px solid #e0e6ef;background:#fafbfd
}
.blog-article .post-service-links h3 {font-size:1.12rem;color:#29364f;margin:0 0 .7rem}
.blog-article .post-service-links p {font-size:.96rem;margin:0 0 .7rem;color:#596780}
.blog-article .post-service-links a {color:#65489d;font-weight:750;text-decoration:underline}
.blog-article .post-related {
  /* Reset global section padding: related articles should not leave a 120px gap. */
  margin-top:3.8rem;border-top:1px solid #e0e4ee;
  padding:2rem 0 0;
}
.blog-article .post-related h3 {font-size:clamp(1.55rem,2.3vw,2rem);color:#1e2b43;margin-bottom:1.5rem;letter-spacing:-.04em}
.blog-article .post-related-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem
}
.blog-article .post-related-card {
  position:relative;display:flex;flex-direction:column;gap:1rem;
  min-width:0;min-height:185px;padding:1.5rem;
  border:1px solid #e1e4ee;border-radius:18px;background:#fff;
  box-shadow:0 12px 24px rgba(31,42,73,.035);
  color:#26344f;text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.blog-article .post-related-card:hover {
  transform:translateY(-3px);border-color:#bca6dd;
  box-shadow:0 18px 30px rgba(39,35,78,.09)
}
.blog-article .post-related-card .blog-cluster {align-self:flex-start;color:#684a9d;background:#f0eafb;padding:.36rem .7rem}
.blog-article .post-related-card h4 {font-size:1.06rem;line-height:1.36;color:#26314a;letter-spacing:-.025em;margin:0}
.blog-article .post-related-card .post-related-bottom {
  margin-top:auto;display:flex;align-items:center;justify-content:space-between;
  color:#747e96;font-size:.77rem;font-weight:700
}
.blog-article .post-related-card .post-related-arrow {
  display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  border:1px solid #ddd5ed;color:#7b58ad;font-size:1.1rem
}
.blog-article :is(.toc-link,.post-cta a,.post-author a,.post-related-card,.post-breadcrumbs a):focus-visible {
  outline:3px solid #a58adc;outline-offset:3px
}
@media(min-width:1100px) {
  .blog-article .toc-container {display:block}
}
@media(max-width:1099px) {
  .blog-article .post-layout {display:block;max-width:860px}
  .blog-article .post-container {max-width:100%}
  .blog-article .toc-container {display:none}
  .blog-article .post-toc-mobile {display:block}
}
@media(max-width:767px) {
  .blog-article .post-layout {padding:112px 20px 60px}
  .blog-article .post-header {padding:1.45rem;border-radius:21px;margin-bottom:2rem}
  .blog-article .post-breadcrumbs {margin-bottom:1.25rem;font-size:.74rem}
  .blog-article .post-title {
    font-size:clamp(2rem,8.1vw,2.65rem);letter-spacing:-.05em;
    max-width:none;line-height:1.16
  }
  .blog-article .post-deck {font-size:1rem;line-height:1.65;margin-bottom:1.2rem}
  .blog-article .post-meta {gap:.4rem .6rem;font-size:.76rem}
  .blog-article .post-meta-dot {display:none}
  .blog-article .post-content {font-size:1.01rem;line-height:1.8}
  .blog-article .post-content h2 {font-size:clamp(1.52rem,6.6vw,1.85rem);margin-top:2.85rem}
  .blog-article .post-content h3 {font-size:clamp(1.25rem,5.4vw,1.48rem)}
  .blog-article .post-content :is(.kort-svar,.post-takeaway) {padding:1.25rem!important}
  .blog-article .post-cta {padding:1.4rem;border-radius:19px}
  .blog-article .post-author {align-items:flex-start;gap:1rem;padding:1.2rem}
  .blog-article .post-author img {width:72px;height:80px;flex-basis:72px;border-radius:13px}
  .blog-article .post-related-grid {grid-template-columns:1fr}
}
@media(max-width:390px) {
  .blog-article .post-author {flex-direction:column}
  .blog-article .post-header {padding:1.2rem}
}
@media(prefers-reduced-motion:reduce) {
  .blog-article .post-progress-fill {transition:none;will-change:auto}
  .blog-article .post-related-card {transition:none}
  .blog-article .post-related-card:hover {transform:none}
}


/* Final mobile editorial QA: compact first fold and reliable narrow screens.
   Only blog-article scope. Keep the main site and blog index untouched. */
.blog-article .post-content .kort-svar::before,
.blog-article .post-content .post-takeaway::before {
  /* Each original callout already contains its authored "Kort svar"/"Vigtigt" label. */
  content:none;
  display:none;
}
.blog-article .post-content :is(.kort-svar,.post-takeaway) > p:last-child {margin-bottom:0}
.blog-article .post-content :is(pre,.blog-table-wrapper) {
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.blog-article .post-cta .btn-primary {max-width:100%;white-space:normal;text-align:center}
.blog-article .post-related {min-width:0}
@media(max-width:1099px) {
  .blog-article .post-toc-mobile {min-width:0}
  .blog-article .post-toc-mobile summary {min-height:46px}
  .blog-article .post-toc-mobile .toc-link {min-height:44px;display:flex;align-items:center}
}
@media(max-width:767px) {
  body.blog-article .post-layout {
    /* Override older mobile-ux spacing with the newer editorial layout. */
    padding:clamp(98px,26vw,112px) 20px 56px;
  }
  body.blog-article .post-header {
    margin-bottom:1.55rem;
    padding:clamp(1.15rem,4.5vw,1.45rem);
  }
  body.blog-article .post-title {
    font-size:clamp(1.9rem,7.7vw,2.55rem);
    line-height:1.16;
    margin-bottom:1rem;
    overflow-wrap:anywhere;
  }
  body.blog-article .post-header .blog-tags {
    gap:.35rem;
    margin-bottom:1rem!important;
  }
  body.blog-article .post-header .blog-tag:nth-child(n+4) {display:none}
  body.blog-article .post-meta {gap:.35rem .65rem}
  body.blog-article .post-toc-mobile {margin-bottom:1.7rem}
  body.blog-article .post-content h2 {scroll-margin-top:98px}
  body.blog-article .post-content h3 {scroll-margin-top:98px}
  body.blog-article .post-content :is(pre,.blog-table-wrapper) {max-width:100%;overflow-x:auto}
  body.blog-article .post-content .blog-table-wrapper table {min-width:600px}
  body.blog-article .post-cta .btn-primary {
    display:inline-flex;max-width:100%;min-height:48px;
    justify-content:center;white-space:normal;line-height:1.4;
  }
  body.blog-article .post-related {margin-top:2.7rem;padding-top:1.6rem}
  body.blog-article .post-related-card {min-height:140px;padding:1.3rem}
  body.blog-article .post-author {margin-top:2.4rem}
}
@media(max-width:370px) {
  body.blog-article .post-layout {padding-inline:16px}
  body.blog-article .post-header {padding:1.05rem}
  body.blog-article .post-title {font-size:clamp(1.77rem,8.2vw,2rem)}
  body.blog-article .post-breadcrumbs {gap:.4rem}
  body.blog-article .post-author {gap:.75rem}
}
