/* Dermapedia guide pages (conditions, ingredients, medications, procedures): site type scale, 20 Nov 2026
   Same scale as reviews and compare: reading text 15 · tables, cards, FAQ 14 · small notes and
   card captions 13 · labels 11 minimum. The 17px intro under "What is it" stays as the lead.
   Built from 12 live guide pages (3 per type); each rule maps that text's old size onto the scale. */

/* Reading text: 15px (was 16px) */
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.w-richtext #if-you-stop p:not([class]),
.w-richtext #getting-it-and-cost p:not([class]),
.w-richtext #skin-tones p.dpt-d,
.w-richtext #before-your-visit p.dpp-d,
.w-richtext #before-your-visit span.dpp-lab,
.w-richtext #during-your-visit span.dpp-lab,
.w-richtext #during-your-visit p.dpp-d,
.w-richtext #recovery-timeline span.dpp-lab,
.w-richtext #recovery-timeline p.dpp-d,
.w-richtext #risks p.dpr-d){font-size:15px!important;line-height:1.6!important}

/* Tables, cards, FAQ answers: 14px (was 13-16px, mixed between pages) */
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.w-richtext #complications p:not([class]),
.w-richtext #questions p:not([class]),
.w-richtext #how-to-use-it p:not([class]),
.w-richtext #side-effects li:not([class]),
.w-richtext #side-effects p:not([class]),
.w-richtext #cautions p:not([class]),
.w-richtext #treatment-areas p:not([class])){font-size:14px!important;line-height:1.55!important}

/* Small notes and card captions: 13px (was 12-12.5px) */
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.w-richtext #appearance p.dpp-c,
.w-richtext #where-it-shows-up p.dpp-c,
.w-richtext #skin-tones p.dpp-c,
.w-richtext #treatments p.treatment-excerpt-text,
.w-richtext #lookalikes p:not([class]),
.w-richtext #often-used-for p.dpu-c,
.w-richtext #forms p.dps-cc,
.w-richtext #products p:not([class]),
.w-richtext #alternatives p.aqr-caption,
.w-richtext #forms p.dps-c,
.w-richtext #types p.dpt-c,
.w-richtext #types dd:not([class])){font-size:13px!important;line-height:1.5!important}

/* Nothing under 11px */
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.w-richtext #treatments span.dp-ev,
.w-richtext #products span.if-badge,
.w-richtext #alternatives span.aqr-pill){font-size:11px!important}

/* Cards: one corner size (10px) and one border grey (#E3E6F0) everywhere.
   Coloured cards (good/caution, the two sides of a comparison) keep their colours. */
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.dpc-col,
.dpu-care,
.dpu-comp,
.dpu-help,
.ingredient-strength-note,
.if-card,
.dp-vt-content,
.aqr-card,
.ig-item,
.dpx-card,
.cc-treatment-card,
.dp-r6-card,
.cleanser-spectrum-current){border-radius:10px!important}
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.dp-treatment,
.dpu-comp,
.if-card,
.aqr-card,
.dp-r6-card,
.rv26-alt){border-color:#E3E6F0!important}

/* Every section lines up (found by the guide checker on 20 guide pages, 20 Nov) */
/* Desktop: some lists stopped short of the right edge (820-860px vs 904px) */
html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.w-richtext .ig-grid,
.w-richtext .dpk-list,
.w-richtext .dpr-list){max-width:none!important}
/* Phones: every section starts 20px from the screen edge.
   Was 28px (How it works, procedure Treatment areas), 18px (several condition sections),
   16px (medication sections) and 0px (procedure Alternatives, Sources, Keep exploring). */
@media (max-width:767px){
  html:not(#dp):not(#dp):not(#dp):not(#dp) body :is(.w-richtext .hiw-inner,
.w-richtext .dpu-in,
.w-richtext .ms-inner,
.w-richtext .dp-section-inner,
.w-richtext .aqr-in){padding-left:20px!important;padding-right:20px!important}
}
/* CIMP section rhythm: the same title-to-content gap for every guide. */
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext h2[data-dpu]{margin-top:0!important;margin-bottom:20px!important}
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext :is(.dpu-kicker,.dpu-eyebrow,.dpp-eyebrow,.ms-label):has(+ h2){margin-bottom:8px!important}
/* Strength tables: readable cells and a visible scroll track. */
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-note{padding:14px!important}
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-note .dps-t{font-size:14px!important;line-height:1.55!important;font-weight:400!important}
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-scroll{scrollbar-color:#8a96b0 #eaf0f9;scrollbar-width:auto;padding-bottom:12px}
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-scroll::-webkit-scrollbar{height:8px}
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-scroll::-webkit-scrollbar-track{background:#eaf0f9;border-radius:4px}
html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-scroll::-webkit-scrollbar-thumb{background:#8a96b0;border-radius:4px}
@media(max-width:767px){
 html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-display:has(.ingredient-strength-note:nth-child(2))::before{content:"Swipe sideways to see all strengths →";display:block;margin:0 0 16px;font:500 13px/1.5 Inter,Arial,sans-serif;color:#526280}
 html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-content{min-width:calc(var(--spectrum-min-width)*1.2)}
 html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .ingredient-strength-note{min-width:0}
 html:not(#dp):not(#dp):not(#dp):not(#dp) body .w-richtext .dpq-compact{border-radius:10px!important}
}
