/* Round 5 (tools/in_r5_sidor.py): Så fungerar det, Priser, Tillgänglighet in the hubs' template.
   Scene top without a portrait, then cards in a 1100 px column that follow the scene's line. Only transform and opacity animate. */
.p3-in-sida__top{background:linear-gradient(180deg,var(--theme-dark) 0%,color-mix(in srgb,var(--theme-dark) 78%,#fff) 100%)}
.p3-in-sida__hero{display:block;min-height:0}
.p3-in-sida__hero .hero__copy{max-width:1100px;margin:0 auto;padding:96px 32px 112px}
.p3-in-sida__hero .lede{max-width:46ch;margin:0}
.p3-in-sida{--sp:cubic-bezier(.34,1.56,.64,1);box-sizing:border-box;max-width:1164px;margin:0 auto;padding:48px 32px 80px}
.p3-in-sida__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.p3-in-sida__card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;box-sizing:border-box;padding:32px;border-radius:24px;
  background:#fff;box-shadow:0 8px 24px rgba(48,48,46,.09);color:#30302e} /* white with a soft shadow in the site's ink tint (reads gray; the canon keeps shadows tinted), no bone tint (Kajal 2026-10-28, her pick of four drawn looks) */
.p3-in-sida__card h2{margin:0;font-size:clamp(26px,2.6vw,34px);line-height:1.08;letter-spacing:-.04em;font-weight:500;text-wrap:balance}
.p3-in-sida__card p{margin:0;font-size:17px;line-height:1.6;color:#514d47;max-width:52ch}
.p3-in-sida__btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;margin-top:8px;padding:0 20px;border-radius:999px;background:#30302e;color:#fff;
  font-size:15px;text-decoration:none;transition:transform .3s var(--sp)}
.p3-in-sida__btn svg{width:14px;height:14px}
.p3-in-sida__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.p3-in-sida__link{position:relative;display:flex;align-items:center;min-height:88px;box-sizing:border-box;padding:24px 76px 24px 32px;border-radius:24px;
  background:#fff;box-shadow:0 8px 24px rgba(48,48,46,.09);
  color:#30302e;font-size:22px;line-height:1.15;letter-spacing:-.03em;font-weight:500;text-decoration:none;transition:transform .3s var(--sp)}
.p3-in-sida__go{position:absolute;right:20px;top:50%;margin-top:-18px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#30302e;color:#fff;transition:transform .3s var(--sp)}
.p3-in-sida__go svg{width:14px;height:14px}
.p3-in-sida__btn:hover,.p3-in-sida__link:hover{transform:translateY(-2px)}
.p3-in-sida__link:hover .p3-in-sida__go{transform:translateX(2px)}
.p3-in-sida__btn:active,.p3-in-sida__link:active{transform:scale(.985)}
.p3-in-sida__btn:focus-visible,.p3-in-sida__link:focus-visible{outline:3px solid #30302e;outline-offset:3px}
/* One left edge (Kajal 2026-10-23): the scene top's title started 32 px right of the cards (copy 1100 px wide with its own
   32 px padding, cards 1100 px inside a 1164 px box); the copy box now matches the cards' box on all three pages. */
.p3-in-sida__hero .hero__copy{max-width:1164px;box-sizing:border-box}
/* Priser (Kajal 2026-10-23: "exactly the same text, a bit more like the rest of the website, organized"): the three cards
   share one row at the same height instead of two plus one alone, and the price sentence reads first. Scoped by the
   page's own card id, so it works wherever the page is rendered. */
@media (min-width:901px){
  .p3-in-sida__grid:has(> #priser-1){grid-template-columns:repeat(3,minmax(0,1fr))}
  .p3-in-sida__grid:has(> #priser-1) .p3-in-sida__card{padding:28px}
  .p3-in-sida__grid:has(> #priser-1) .p3-in-sida__card h2{font-size:clamp(24px,2.2vw,30px)}
}
#priser-1.p3-in-sida__card p:first-of-type{font-size:20px;line-height:1.4;font-weight:500;letter-spacing:-.02em;color:#30302e;text-wrap:balance} /* balance: no lone "kr." line */
@media (max-width:900px){
  .p3-in-sida__hero .hero__copy{padding:40px 25px 64px}
  .p3-in-sida{padding:24px 25px 56px} /* cards on the title's 25 px line (Kajal 2026-10-23: one left edge) */
  .p3-in-sida__grid,.p3-in-sida__links{grid-template-columns:1fr}
  .p3-in-sida__card{padding:24px;border-radius:20px}
  .p3-in-sida__link{border-radius:20px;padding:20px 72px 20px 24px}
}
/* Priser in the treatment pages' pieces (Kajal 2026-10-27, pick B): the price card with the dark tab beside the title, the steps
   card and two warm cards in a light sheet. The pieces' own rules come from the template stylesheets (p3-template-sheets);
   this block only places them and gives the page the variables the pieces read. */
.p3-in-sida__hero--pris .hero__copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:56px;align-items:end}
.p3-in-sida__copy{min-width:0}
.p3-in-sida__pris{position:relative;align-self:end;margin-bottom:-40px}
.p3-in-sida__offer{margin:0}
.p3-in-sida__offer :is(p.p3-in-sida__prisrad:not(:empty),p.p3-in-sida__prisrad:empty+p){padding-right:164px} /* room for the 147 px tab at every card width (the first visible line sits beside it) */
.p3-in-sida__offer p:not(.p3-offer__tab){margin:0 0 10px;font-size:16px;line-height:1.5;color:#2c2a27} /* not the tab: it keeps its own colours */
.p3-in-sida__offer p.p3-in-sida__prisrad{font-size:17px;font-weight:600}
.p3-in-sida__offer p:empty{display:none} /* without live prices the ED/PE line is empty (inc/pricing.php) */
/* Så fungerar det sits in the sheets wrapper (p3-sheets) but has a plain hero like the other information pages: the sheets' frame
   (16 px bottom padding, 8 or 24 px under the hero) was room for a card that overlapped the hero; without it the hero keeps the height
   and spacing of Om oss. The weight beats p3-overrides.css, which loads after this sheet. */
html body .p3-sheets .layer--scene.p3-in-sida__top--plain{padding:0;margin-bottom:14px}
html body .p3-sheets .layer--scene.p3-in-sida__top--plain>.hero{margin:0}
.p3-in-sida--pris{--ink:#2c2a27;--paper:#f1eee8;--soft:#e5dfd7;--card-fg:#2c2a27;--r4-bonea:#f7f4ef;--r4-boneb:#eeeae3;--r4-ink:#2c2a27;
  --p3-tint:color-mix(in srgb,var(--theme-dark) 82%,transparent)} /* the steps card in the page's own dark tone, as in the drawn option */
.p3-in-sida__sheet{margin-top:12px}
.p3-in-sida__sheet>.p3-ways{padding-top:0}
@media (min-width:701px){.p3-in-sida__ways .p3-ways__row{grid-template-columns:1fr 1fr}}
@media (min-width:901px) and (max-width:1100px){html body .p3-sheets .p3-in-sida__ways .p3-warm p{min-height:4lh}} /* the longer card text takes four lines here; both headings on one line (review) */
@media (min-width:701px) and (max-width:900px){html body .p3-sheets .p3-in-sida__ways .p3-warm{justify-content:flex-start;padding-top:150px;min-height:0}} /* two columns with the picture box over the card: both headings start at the same height under it */
html body .p3-sheets .p3-in-sida__ways .p3-warm:hover,html body .p3-sheets .p3-in-sida__ways .p3-warm:hover .p3-warm__img img{transform:none} /* the cards are not links here: no lift on hover */
@media (max-width:900px){
  .p3-in-sida__hero--pris .hero__copy{grid-template-columns:minmax(0,1fr);gap:28px}
  .p3-in-sida__pris{margin-bottom:-24px}
  html body .p3-sheets .p3-in-sida__ways .p3-warm{padding-top:150px;min-height:0} /* the text starts under the picture; the weight beats p3-overrides' padding, which loads later */
}
@media (max-width:430px){
  .p3-in-sida__pris .p3-in-sida__offer{padding-top:60px} /* narrow phones: the heading starts under the tab instead of beside it (review: at 320 the longest word ran under the tab); the weight beats p3-overrides' padding */
  .p3-in-sida__pris .p3-in-sida__offer :is(p.p3-in-sida__prisrad:not(:empty),p.p3-in-sida__prisrad:empty+p){padding-right:0}
  html body .p3-sheets .p3-in-sida__ways .p3-warm h3{margin-top:0}
}
@media (prefers-reduced-motion:reduce){
  .p3-in-sida__btn,.p3-in-sida__link,.p3-in-sida__go{transition:none}
  .p3-in-sida__btn:hover,.p3-in-sida__link:hover,.p3-in-sida__link:hover .p3-in-sida__go{transform:none}
}

/* B14: the area cards of the start page, Hud & hår and Alla behandlingar keep their own markup but share the hub cards' surface,
   radius and dark arrow, and sit in the same 1100 px column as the scenes. */
.pvt-directory-grid .pvt-card,
#valj-omrade .area,
#omraden .area{border-radius:24px;border:0;background:linear-gradient(180deg,#fbf9f5 0%,#f1ede5 100%);color:#30302e;
  box-shadow:0 18px 28px -22px rgba(48,48,46,.5),inset 0 0 0 1px rgba(48,48,46,.07);-webkit-backdrop-filter:none;backdrop-filter:none}
.pvt-directory-grid .pvt-card :is(h3,p,span),#valj-omrade .area :is(h3,p),#omraden .area :is(h3,p,.area__group){color:#30302e}
.pvt-directory-grid .pvt-card p,#valj-omrade .area p,#omraden .area p{color:#514d47}
.pvt-directory-grid .pvt-card .pvt-round{background:#30302e;color:#fff}
.pvt-directory-grid .pvt-card .pvt-round svg{color:#fff;stroke:#fff}
/* Area colour codes on Alla behandlingar (Kajal 2026-10-27, her pick C of four drawn options): every card's area label and arrow
   circle take the area's colour, the same six values the start page's area cards use (css/in-start.css: the second stop of each
   area page's hero gradient). Keyed on the card's data-group, no markup change; tests/alla-smoke.php pins the six values to in-start.css. */
.pvt-directory-grid .pvt-card[data-group="Vikt och hälsa"]{--pvt-area:#795137}
.pvt-directory-grid .pvt-card[data-group="Kvinnohälsa"]{--pvt-area:#674145}
.pvt-directory-grid .pvt-card[data-group="Hud och hår"]{--pvt-area:#706252}
.pvt-directory-grid .pvt-card[data-group="Sexuell hälsa"]{--pvt-area:#2a447c}
.pvt-directory-grid .pvt-card[data-group="Mage och tarm"]{--pvt-area:#366b55}
.pvt-directory-grid .pvt-card[data-group="Vardag och välmående"]{--pvt-area:#5a4da6}
.pvt-directory-grid .pvt-card .pvt-card-group{color:var(--pvt-area,var(--pvt-muted));font-weight:500}
.pvt-directory-grid .pvt-card .pvt-round{background:var(--pvt-area,#30302e)}
/* On hover the card tints per treatment tone and two of the six label colours fell under 4.5:1 there (review 2026-10-27): the label
   darkens to 70% of its area colour on hover and keyboard focus, same hue. */
.pvt-directory-grid .pvt-card>a:hover .pvt-card-group,.pvt-directory-grid .pvt-card>a:focus-visible .pvt-card-group{color:color-mix(in srgb,var(--pvt-area) 70%,#000)}
@media (min-width:901px){
  #valj-omrade{box-sizing:border-box;max-width:1164px;margin-inline:auto;padding-inline:32px}
  #valj-omrade .areas__grid{gap:8px}
  #valj-omrade .area>a{min-height:0}
  #valj-omrade .area p{margin-bottom:24px}
}

/* B15: one left edge on Behandlingsformer (heading, tabs, panels and note start at the same line). */
.pvx-forms .pvx-forms-panels{margin-inline:16px}
@media (max-width:650px){.pvx-forms .pvx-forms-panels{margin-inline:12px}}

/* Så fungerar det (Kajal 2026-10-27, her pick Q1b): its three texts as a numbered steps card in three equal columns; one column up to 900 px. The html body weight beats the treatment
   stylesheets (in-ark.css four columns, in-r2sida.css two by two), which load after this sheet. */
html body .p3-sheets .p3-in-steps--three .p3-in-steps__cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
html body .p3-sheets .p3-in-steps--three .p3-in-steps__col p{max-width:30ch}
@media (max-width:900px){
  html body .p3-sheets .p3-in-steps--three .p3-in-steps__cols{grid-template-columns:minmax(0,1fr);gap:28px} /* the box keeps the steps card's own padding (in-r5-kort.css: 20 px sides on phones) */
  html body .p3-sheets .p3-in-steps--three .p3-in-steps__col:not(:last-child)::after{display:none}
  html body .p3-sheets .p3-in-steps--three .p3-in-steps__no{width:40px;height:40px;font-size:18px;margin-bottom:14px}
  html body .p3-sheets .p3-in-steps--three .p3-in-steps__col p{max-width:none}
}
/* One coloured part (Kajal 2026-11-09, her pick B of the drawn looks: "the hero section looks as a background for the whole part … like
   the sexual hälsa in the home page"): the hero's colour runs on behind everything under it, to the end of the page's own content, as one
   rounded part like the start page's area sheets (.p3-in-k06, css/in-start.css). The cards stay white. No markup change: the hero layer
   loses its bottom corners, its gap and its edge line, and the block right after it (the card column, or the text column of Vanliga frågor
   and the legal texts) is painted in the colour the hero ends in and closes the part with the bottom corners, 36 px above the footer. The
   block overlaps the hero by 2 px and is positioned, so it paints OVER the hero's soft bottom edge (the hero layer is positioned too and would otherwise paint on top of the overlap); with 1 px and no position, WebKit left a half-covered light row at screen scale 1.25 (review 2026-11-09) and at phone scale 3. The glow is sized by the hero's own height
   (27% + 70% of 100% stays under 100%), so it always ends inside the hero. Every rule hangs on the hero's class: the start page, Alla
   behandlingar and the Hud hub load this sheet too. The weight of the hero rule beats the sheets rules of css/in-r4-gradient.css and
   css/p3-overrides.css on Så fungerar det and Priser. */
.p3-in-sida__top,.p3-in-sida__top+.p3-in-sida,.p3-in-sida__top+.pv-knowledge__wrap{--pn-bg:var(--theme-dark);--pn-top:color-mix(in srgb,var(--theme-dark) 86%,#fff);--pn-glow:color-mix(in srgb,var(--theme-dark) 58%,#fff)}
.scene-salvia :is(.p3-in-sida__top,.p3-in-sida__top+.p3-in-sida,.p3-in-sida__top+.pv-knowledge__wrap){--pn-top:#3a4740;--pn-glow:#607466} /* the scene's own greens instead of a grey mix */
html body .site .layer--scene.p3-in-sida__top{margin-bottom:0;padding:0;border-radius:24px 24px 0 0;box-shadow:none;background:radial-gradient(ellipse 820px 100% at 82% 27%,var(--pn-glow) 0,transparent 70%),linear-gradient(180deg,var(--pn-top) 0,var(--pn-bg) 100%)}
html body .site .layer--scene.p3-in-sida__top>.hero{margin:0}
.p3-in-sida__top .p3-in-sida__hero .hero__copy{padding-bottom:56px}
.p3-in-sida__top .p3-in-sida__pris{margin-bottom:0} /* the price card no longer hangs over the hero's bottom edge: there is no edge */
.p3-in-sida__top+.p3-in-sida{position:relative;max-width:none;margin:-2px 0 36px;padding:2px max(32px,calc(50% - 550px)) 64px;border-radius:0 0 24px 24px;background:var(--pn-bg)}
.p3-in-sida__top+.p3-in-sida :is(.p3-in-sida__h2,.p3-in-sida__toc,.p3-in-sida__toc h2,.p3-in-sida__toc a){color:#fff}
.p3-in-sida__top+.p3-in-sida .p3-in-sida__link:focus-visible{outline-color:#fff}
.p3-in-sida__top+.p3-in-sida .p3-in-sida__toc a:focus-visible{outline-color:#fff}
.p3-in-sida__top+.pv-knowledge__wrap{position:relative;max-width:none;margin:-2px 0 36px;padding:2px 24px 64px;border-radius:0 0 24px 24px;background:var(--pn-bg)}
.pv-knowledge:has(>.p3-in-sida__top){padding-bottom:0} /* the knowledge look's own 72 px (48 on phones) under the text would add to the 36: every part closes the same distance above the footer */
.p3-in-sida__top+.pv-knowledge__wrap>.pv-knowledge__article{box-sizing:border-box;max-width:1100px;padding:56px max(32px,calc((min(100%,1100px) - 58ch) / 2)) 64px;border-radius:24px;background:#fff}
@media (max-width:900px){
  html body .site .layer--scene.p3-in-sida__top{border-radius:16px 16px 0 0}
  .p3-in-sida__top .p3-in-sida__hero .hero__copy{padding-bottom:36px}
  .p3-in-sida__top+.p3-in-sida{margin-bottom:24px;padding:2px 25px 40px;border-radius:0 0 16px 16px}
  .p3-in-sida__top+.pv-knowledge__wrap{margin-bottom:24px;padding:2px 12px 40px;border-radius:0 0 16px 16px}
  .p3-in-sida__top+.pv-knowledge__wrap>.pv-knowledge__article{padding:28px 20px 36px;border-radius:20px}
}

/* Så fungerar det: the closing card (Kajal 2026-11-20, her pick 2 from drawn options). It sits under the steps card in the same
   column (above 900 px the sheet's grid would otherwise put it beside the card); heading, line and button are centred. */
.p3-sheets .p3-in-sida__avslut{text-align:center}
@media (min-width:901px){html body .p3-sheets .p3-sheet > .p3-in-sida__avslut{grid-column:2 / 4}} /* up to 900 px the sheet is one column (in-r2sida.css) */
html body .p3-sheets .p3-in-sida__avslut > h2,
html body .p3-sheets .p3-in-sida__avslut > .p3-k__lede{margin-inline:auto;text-align:center}
html body .p3-sheets .p3-in-sida__avslut .button{padding-inline:24px} /* no arrow in this button: the same room on both sides of the words */
html body .p3-sheets .p3-in-sida__avslut > .p3-k__foot{justify-content:center}
/* one link left in the row under it: the full width, not half */
.p3-in-sida__links:has(> :only-child){grid-template-columns:minmax(0,1fr)}

/* Priser without the price tab (Kajal 2026-11-20, her pick A from drawn options): two price lines. No room is kept for a tab. */
.p3-in-sida__offer--rader :is(p.p3-in-sida__prisrad:not(:empty),p.p3-in-sida__prisrad:empty+p){padding-right:0}
html body .p3-sheets .p3-in-sida__pris .p3-in-sida__offer--rader{padding-top:18px} /* room above the first line now that no tab sits there (8 px before); also replaces the 60 px kept for the tab on narrow phones */
