/* Reading surface extras on top of knowledge.css: information pages, articles, substance pages.
   Uses only the design tokens from system.css. */
.pv-doc .pv-knowledge__title{max-width:none}
.pv-doc .pv-knowledge__section ul,.pv-doc .pv-knowledge__section ol,.pv-fact__body ul,.pv-fact__body ol{
  max-width:68ch;
  margin:0 0 var(--anchor-air);
  padding-left:calc(var(--anchor-air) + var(--section-gap) / 2);
  font-size:var(--body);
  line-height:var(--body-lh);
}
.pv-doc .pv-knowledge__section h3,.pv-fact__body h3{margin:var(--anchor-air) 0 calc(var(--section-gap) / 2);font-size:var(--h3)}
.pv-doc .pv-knowledge__section details,.pv-doc details{border-bottom:1px solid var(--line)}
.pv-doc .pv-knowledge__section details:first-of-type{border-top:1px solid var(--line)}
.pv-doc summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--section-gap);
  padding:var(--section-gap) 0;
  cursor:pointer;
  list-style:none;
  font-size:var(--body);
  font-weight:var(--heading-weight);
  line-height:var(--body-lh);
}
.pv-doc summary::-webkit-details-marker{display:none}
.pv-doc summary::after{content:"+";flex:none;color:var(--muted);font-weight:400}
.pv-doc details[open]>summary::after{content:"\2212"}
.pv-doc summary:hover{color:var(--muted)}
.pv-doc summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.pv-doc details>p{margin:0 0 var(--section-gap)}
.pv-doc__body{padding-bottom:var(--section-gap)}
.pv-doc__field{margin:0 0 var(--section-gap)}
.pv-doc__label{display:block;color:var(--muted);font-size:var(--secondary)}
.pv-doc__value{font-size:var(--body);line-height:var(--body-lh)}
.pv-doc__facts{max-width:68ch;margin:0 0 var(--anchor-air)}
.pv-doc__facts>div{display:flex;flex-wrap:wrap;gap:var(--section-gap);padding:calc(var(--section-gap) / 2) 0;border-bottom:1px solid var(--line)}
.pv-doc__facts dt{flex:0 0 9rem;color:var(--muted);font-size:var(--secondary)}
.pv-doc__facts dd{margin:0;font-size:var(--body)}
.pv-doc__seal{display:inline-block;border-radius:var(--control-radius)}
.pv-doc__seal:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.pv-doc__seal img{display:block;height:auto}

/* Article and substance pages */
.pv-fact__keypoints{
  margin-top:calc(var(--section-gap) * 2);
  padding:calc(var(--section-gap) * 1.5);
  border:1px solid var(--line);
  border-radius:var(--control-radius);
  background:var(--paper);
}
.pv-fact__keypoints h2{margin:0 0 var(--section-gap);font-size:var(--h3)}
.pv-fact__keypoints ul{margin:0;padding-left:calc(var(--anchor-air) + var(--section-gap) / 2);font-size:var(--body);line-height:var(--body-lh)}
.pv-fact__byline{margin:var(--section-gap) 0 0;color:var(--muted);font-size:var(--secondary)}
.pv-fact__body{margin-top:calc(var(--section-gap) * 3)}
.pv-fact__body h2{
  margin:calc(var(--section-gap) * 3) 0 var(--anchor-air);
  font-size:32px;
  line-height:var(--display-lh);
  letter-spacing:var(--h2-tracking);
  scroll-margin-top:calc(var(--announce-stick,0px) + var(--header-h) + var(--anchor-air)); /* the sticky campaign row on phones, see css/in-topp.css (issue #68) */
}
.pv-fact__body p{max-width:none;margin:0 0 var(--anchor-air);font-size:inherit;line-height:inherit}
.pv-fact__empty{max-width:62ch;color:var(--muted);font-size:var(--body);line-height:var(--body-lh)}
.pv-fact__areas{display:flex;flex-wrap:wrap;gap:var(--section-gap);margin:var(--anchor-air) 0 0;padding:0;list-style:none}
.pv-fact__areas a{
  display:inline-block;
  padding:calc(var(--section-gap) / 2) var(--section-gap);
  border:1px solid var(--line);
  border-radius:var(--control-radius);
  font-size:var(--secondary);
}
.pv-fact__areas a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.pv-knowledge__hero .pv-fact__areas{margin-top:28px}
.pv-knowledge__hero .pv-fact__areas a{border-color:var(--hero-btn2-border);background:var(--hero-btn2-bg);color:var(--hero-btn2-fg)}
.pv-knowledge__hero .pv-fact__areas a[aria-current="page"]{background:var(--hero-btn-bg);color:var(--hero-btn-fg)}
.pv-fact__areas a:hover{transform:translateY(-2px)}
.pv-fact__areas a:active{transform:scale(.97)}
.pv-fact__areas a:focus-visible{outline:2px solid var(--hero-text,var(--ink));outline-offset:3px}
@media(prefers-reduced-motion:reduce){.pv-fact__areas a{transition:none}.pv-fact__areas a:hover{transform:none}}
.pv-fact__pager{display:flex;gap:calc(var(--section-gap) * 1.5);margin-top:calc(var(--section-gap) * 3);font-size:var(--body)}
.pv-fact__pager .current{font-weight:var(--heading-weight)}
@media(max-width:650px){
  .pv-doc__facts dt{flex-basis:100%}
  .pv-fact__body h2{font-size:26px}
}
.pv-fact--article .pv-knowledge__title{overflow-wrap:break-word;hyphens:auto;-webkit-hyphenate-limit-before:6;-webkit-hyphenate-limit-after:6;hyphenate-limit-chars:14 6 6} /* only inside long words, six letters each side: no "sömnpro-blem?" (Kajal 2026-10-28) */

/* Råd list: on a phone all articles stand as a plain list (the swipe row from system.css showed one card and left empty space). */
@media(max-width:650px){
  .pv-fact--archive .areas__grid{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;padding-bottom:0}
  .pv-fact--archive .area{flex:none;min-height:0}
  .pv-fact--archive .area>a{min-height:0}
}
/* Page not found (404.php; Kajal 2026-10-27, look A): the knowledge index column (1100 px, centred) with air above and below.
   The hook is p3-notfound, not p3-404: inc/facts.php puts the document key p3-404 on <body>, so that name would pad the whole page. */
.p3-notfound{padding:56px 24px 96px}
.p3-notfound .pv-knowledge__lede{margin-top:16px;max-width:52ch}
.p3-notfound .actions{margin-top:28px}
@media(max-width:650px){
  .p3-notfound{padding:40px 24px 72px}
}
