/*
 * Overskrifter som har fått riktig nivå (ph-hN = opprinnelig hN), men skal se ut som før.
 * Generert av lag-overskrift-css.mjs fra temaets egne regler – ikke rediger for hånd.
 */
@media (min-width: 480px) { #sb_instagram .sb_instagram_header.sbi_medium .sbi_header_text :where(.ph-h3):is(h1,h2,h3,h4,h5,h6), .sb_instagram_header.sbi_medium .sbi_header_text :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 20px; } }
@media (min-width: 480px) { #sb_instagram .sb_instagram_header.sbi_medium .sbi_header_text :where(.ph-h3):is(h1,h2,h3,h4,h5,h6), .sb_instagram_header.sbi_medium .sbi_header_text :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { line-height: 1.4; } }
@media (min-width: 480px) { #sb_instagram .sb_instagram_header.sbi_large .sbi_header_text :where(.ph-h3):is(h1,h2,h3,h4,h5,h6), .sb_instagram_header.sbi_large .sbi_header_text :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 28px; } }
#sb_instagram .sb_instagram_header :where(.ph-h3):is(h1,h2,h3,h4,h5,h6), .sb_instagram_header :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 16px; line-height: 1.3; margin: 0px; padding: 0px; }
:root :where(.wp-block-cover :where(.ph-h3):is(h1,h2,h3,h4,h5,h6):not(.has-text-color)), :root :where(.wp-block-cover :where(.ph-h4):is(h1,h2,h3,h4,h5,h6):not(.has-text-color)), :root :where(.wp-block-cover :where(.ph-h5):is(h1,h2,h3,h4,h5,h6):not(.has-text-color)) { color: inherit; }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6):where(.wp-block-heading).has-background, :where(.ph-h4):is(h1,h2,h3,h4,h5,h6):where(.wp-block-heading).has-background, :where(.ph-h5):is(h1,h2,h3,h4,h5,h6):where(.wp-block-heading).has-background { padding: 1.25em 2.375em; }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6).has-text-align-left[style*="writing-mode"]:where([style*="vertical-lr"]), :where(.ph-h3):is(h1,h2,h3,h4,h5,h6).has-text-align-right[style*="writing-mode"]:where([style*="vertical-rl"]), :where(.ph-h4):is(h1,h2,h3,h4,h5,h6).has-text-align-left[style*="writing-mode"]:where([style*="vertical-lr"]), :where(.ph-h4):is(h1,h2,h3,h4,h5,h6).has-text-align-right[style*="writing-mode"]:where([style*="vertical-rl"]), :where(.ph-h5):is(h1,h2,h3,h4,h5,h6).has-text-align-left[style*="writing-mode"]:where([style*="vertical-lr"]), :where(.ph-h5):is(h1,h2,h3,h4,h5,h6).has-text-align-right[style*="writing-mode"]:where([style*="vertical-rl"]) { rotate: 180deg; }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6), :where(.ph-h4):is(h1,h2,h3,h4,h5,h6), :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { margin: 0px; padding: 0px; }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6), :where(.ph-h4):is(h1,h2,h3,h4,h5,h6), :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { font-family: Calibre, Helvetica, Roboto, Arial, sans-serif; font-style: normal; font-weight: normal; color: inherit; text-rendering: optimizelegibility; }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6) small, :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) small, :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) small { line-height: 0; color: rgb(202, 202, 202); }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 1.03261rem; line-height: 1.4; margin-top: 0px; margin-bottom: 0.5rem; }
:where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { font-size: 0.978261rem; line-height: 1.4; margin-top: 0px; margin-bottom: 0.5rem; }
:where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { font-size: 0.923913rem; line-height: 1.4; margin-top: 0px; margin-bottom: 0.5rem; }
@media print, screen and (min-width: 40em) { :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 1.68478rem; } }
@media print, screen and (min-width: 40em) { :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { font-size: 1.3587rem; } }
@media print, screen and (min-width: 40em) { :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { font-size: 1.08696rem; } }
@media print { :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { orphans: 3; widows: 3; } }
@media print { :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { break-after: avoid; } }
.wp-block-media-text :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 1.5rem; padding-left: 3px; }
@media print, screen and (max-width: 48.8738em) { .wp-block-media-text :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 0.75rem; } }
.bodypage .content .wp-block-media-text :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 1.5rem; padding-left: 3px; }
@media print, screen and (max-width: 48.8738em) { .bodypage .content .wp-block-media-text :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 0.75rem; } }
.bodypage .ansatte .wp-block-columns .wp-block-column :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 1rem; }
.error404 :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { color: rgb(244, 142, 171); font-weight: bold; }
#prosjekter-wrap .project:hover :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { visibility: visible; opacity: 1; }
#prosjekter-wrap .project :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { position: absolute; top: 50%; transform: translateY(-50%); left: 0px; right: 0px; text-align: center; margin: 0px auto; z-index: 2; text-transform: uppercase; color: rgb(254, 254, 254); font-weight: 600; opacity: 0; transition: 0.2s; visibility: hidden; }
.footer :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { line-height: 1; color: rgb(244, 142, 171); margin-bottom: 1.25rem; font-weight: 600 !important; font-size: 24px !important; }
@media print, screen and (max-width: 48.8738em) { .footer :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 0.75rem; } }
.footer :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) a { padding: 0px; color: rgb(244, 142, 171) !important; font-weight: 600 !important; }
@media print, screen and (max-width: 48.8738em) { .footer .cell:nth-child(3) :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { margin-top: 1.5rem; } }
.produkter :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { margin-bottom: 1rem; }
.page-template-template-whitebg .footer :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { color: rgb(254, 254, 254) !important; }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 26px; line-height: 1.2; }
@media print, screen and (max-width: 48.8738em) { :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-size: 24px; line-height: 1; } }
:where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { font-size: 20px; line-height: 1.2; }
@media print, screen and (max-width: 48.8738em) { :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { font-size: 18px; line-height: 1; } }
:where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { font-size: 16px; line-height: 1.2; }
@media print, screen and (max-width: 48.8738em) { :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { font-size: 16px; line-height: 1; } }
:where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { font-family: Calibre; }
@media (max-width: 1023px) { .footer :where(.ph-h4):is(h1,h2,h3,h4,h5,h6) { color: rgb(255, 255, 255); } }
div.ph-takk :where(.ph-h3):is(h1,h2,h3,h4,h5,h6) { margin: 0px 0px 10px; font-size: 26px; font-weight: 700; color: var(--ph-rosa); }
.wp-block-uagb-advanced-heading :where(.ph-h3):is(h1,h2,h3,h4,h5,h6), .wp-block-uagb-advanced-heading :where(.ph-h4):is(h1,h2,h3,h4,h5,h6), .wp-block-uagb-advanced-heading :where(.ph-h5):is(h1,h2,h3,h4,h5,h6) { word-break: break-word; }

/*
 * Håndskrevet: temaets «.bodypage .content h2/h3» (margin-bottom) er sterkere
 * enn h3/h4-reglene som gjaldt før, så de må overstyres eksplisitt.
 * Verdiene er målt på den publiserte siden (mal-overskrifter.mjs).
 */
.bodypage .content :where(.ph-h3, .ph-h4):is(h2, h3) { margin-bottom: 0.5rem; }
.bodypage .content .produkter :where(.ph-h4):is(h2, h3) { margin-bottom: 1rem; }
