/* Om oss, Kontakt, Trygghet och säkerhet (tools/in_r5_doc.py, Kajal 2026-10-27): the information-page look of in-r5-sidor.css plus
   a group heading between card groups and the step number on the "Så går det till" cards. */
.p3-in-sida__h2{margin:40px 0 16px;font-size:clamp(26px,2.6vw,34px);line-height:1.08;letter-spacing:-.04em;font-weight:500;color:#30302e}
.p3-in-sida__no{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#30302e;color:#fff;font-size:15px;font-weight:500;letter-spacing:0}
@media (max-width:900px){.p3-in-sida__h2{margin:32px 0 12px}}
/* The extra pages in the information look (tools/build_extra_pages.py --look, Kajal 2026-10-27): the plain "På sidan" list keeps a gap to the
   first card; inside a card (a flex column) the fold-outs stretch to the card's width and keep the document rules of css/facts.css that
   hung on the old section class (first fold-out's top line, lists, small headings). */
.p3-in-sida__toc{margin:0 0 24px}
.pv-doc .p3-in-sida__card details{align-self:stretch;width:100%}
.pv-doc .p3-in-sida__card details:first-of-type{border-top:1px solid var(--line)}
.pv-doc .p3-in-sida__card ul,.pv-doc .p3-in-sida__card 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 .p3-in-sida__card h3{margin:var(--anchor-air) 0 calc(var(--section-gap) / 2);font-size:var(--h3)}
/* The lone last card (Kajal 2026-10-27, her pick after the drawn options): on computers a card group holds two columns, so a group with
   an odd number of cards used to end with one card beside an empty slot. The groups that can be even are even (tools/in_r5_doc.py: Om oss
   four and four). Where a group must stay odd (Trygghet och säkerhet: three), the last card spans both columns as a band: title and text
   on the left, its button on the right, centred in the height. A band with no button simply keeps its text on the left. Three link cards
   sit three across. A group with fold-outs (Vanliga frågor) is left alone: that page has its own package. Phones keep one column
   (in-r5-sidor.css). */
@media (min-width:901px){
  .p3-in-sida__grid:not(:has(details))>.p3-in-sida__card:nth-child(odd):last-child:not(:first-child){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:40px;row-gap:0;align-items:center} /* no row gap: the button spans rows that may be empty, and an empty row must take no space */
  .p3-in-sida__grid:not(:has(details))>.p3-in-sida__card:nth-child(odd):last-child:not(:first-child)>h2,.p3-in-sida__grid:not(:has(details))>.p3-in-sida__card:nth-child(odd):last-child:not(:first-child)>p{grid-column:1}
  .p3-in-sida__grid:not(:has(details))>.p3-in-sida__card:nth-child(odd):last-child:not(:first-child)>p{max-width:60ch;margin-top:12px}
  .p3-in-sida__grid:not(:has(details))>.p3-in-sida__card:nth-child(odd):last-child:not(:first-child)>.p3-in-sida__btn{grid-column:2;grid-row:1/span 4;align-self:center;margin:0} /* the card button's top margin would pull it off centre */
  .p3-in-sida__links:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* Tillstånd och registreringar (Kajal 2026-10-27, her pick A): the page's four cards are even, but the NMI card is three times as long as
   the LegitScript card beside it, which was stretched by 440 px at 951 px. On computers the NMI card takes the full width with its text
   flowing in two columns (the facts list keeps together), and the LegitScript card is a band with its seal on the right, centred. The
   order on the page and in the "På sidan" list is unchanged. Scoped to this page's body class and the cards' own ids. */
@media (min-width:901px){
  .p3-tillstand-och-registreringar #nmi.p3-in-sida__card{grid-column:1/-1;display:block;columns:2;column-gap:40px}
  .p3-tillstand-och-registreringar #nmi.p3-in-sida__card>h2{column-span:all;margin:0 0 12px}
  .p3-tillstand-och-registreringar #nmi.p3-in-sida__card>p,.p3-tillstand-och-registreringar #nmi.p3-in-sida__card>dl{margin:0;padding-bottom:12px;max-width:none;break-inside:avoid} /* padding, not margin: WebKit carried a trailing margin into the next column (12 px low at 901 to 940 px) */
  .p3-tillstand-och-registreringar #nmi.p3-in-sida__card>:last-child{padding-bottom:0}
  .p3-tillstand-och-registreringar #legitscript.p3-in-sida__card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:40px;row-gap:0;align-items:center}
  .p3-tillstand-och-registreringar #legitscript.p3-in-sida__card>h2,.p3-tillstand-och-registreringar #legitscript.p3-in-sida__card>p:first-of-type{grid-column:1}
  .p3-tillstand-och-registreringar #legitscript.p3-in-sida__card>p:first-of-type{margin-top:12px;max-width:60ch}
  .p3-tillstand-och-registreringar #legitscript.p3-in-sida__card>p:last-of-type{grid-column:2;grid-row:1/span 4;align-self:center;margin:0}
  .p3-tillstand-och-registreringar #legitscript.p3-in-sida__card .pv-doc__seal{display:block;line-height:0} /* an inline link keeps line space under the seal and sat it 4 px above centre (review) */
}
