/* Published reference: Digital Scotland typography, verified 2026-10-28.
   https://designsystem.gov.scot/styles/typography
   Font sizes/line heights in rem retain the browser's user-selected base size.
   Existing estate font families, content, media and touch-target dimensions remain. */
@media screen {
 html body:not(.is-viewer){
  --ae-body:1rem;--ae-body-leading:1.5rem;--ae-small:.875rem;
  --ae-h1:1.875rem;--ae-h1-leading:2.5rem;
  --ae-h2:1.375rem;--ae-h2-leading:2rem;
  --ae-h3:1.1875rem;--ae-h3-leading:1.5rem;
  --estate-copy:var(--ae-body)!important;--estate-small:var(--ae-small)!important;
  --estate-h1:var(--ae-h1)!important;--estate-h2:var(--ae-h2)!important;--estate-h3:var(--ae-h3)!important;
  --detail-body:var(--ae-body)!important;--detail-small:var(--ae-small)!important;
  --detail-h1:var(--ae-h1)!important;--detail-h2:var(--ae-h2)!important;--detail-h3:var(--ae-h3)!important;
  --partner-copy:var(--ae-body)!important;--partner-detail:var(--ae-small)!important;
  --partner-h1:var(--ae-h1)!important;--partner-h2:var(--ae-h2)!important;--partner-h3:var(--ae-h3)!important;
  --estate-form-copy:var(--ae-body)!important;--estate-form-detail:var(--ae-small)!important;
  font-size:var(--ae-body)!important;line-height:var(--ae-body-leading);
 }
 html body:is(.estate-readable,[data-design],.planner-resource-page):not(.is-viewer) :is(p,li,dt,dd,blockquote){font-size:var(--ae-body)!important;line-height:var(--ae-body-leading)!important}
 html body:is(.estate-readable,[data-design],.planner-resource-page):not(.is-viewer) :is(h1,.opening h1,.directory-intro h1){font-size:var(--ae-h1)!important;line-height:var(--ae-h1-leading)!important}
 html body:is(.estate-readable,[data-design],.planner-resource-page):not(.is-viewer) :is(h2,.inline-booking h2,.text-panel h2,.section-heading h2,.gallery-tour-intro h2,.panel-label h2,.tour-overview h2){font-size:var(--ae-h2)!important;line-height:var(--ae-h2-leading)!important}
 html body:is(.estate-readable,[data-design],.planner-resource-page):not(.is-viewer) :is(h3,.tour-card h3,.tour-overview .tour-card h3){font-size:var(--ae-h3)!important;line-height:var(--ae-h3-leading)!important}
 html body:is(.estate-readable,[data-design],.planner-resource-page):not(.is-viewer) h4{font-size:var(--ae-body)!important;line-height:var(--ae-body-leading)!important}
 html body[data-mobile-page="vendor-sign"] #title{font-size:var(--ae-h1)!important;line-height:var(--ae-h1-leading)!important}
 html body[data-mobile-page="vendor-portal"] #authTitle{font-size:var(--ae-h1)!important;line-height:var(--ae-h1-leading)!important}
 html body:not(.is-viewer) .approval-shell h1{font-size:var(--ae-h1)!important;line-height:var(--ae-h1-leading)!important}
 html body:not(.is-viewer) .approval-shell h2{font-size:var(--ae-h2)!important;line-height:var(--ae-h2-leading)!important}
 html body[data-design] :is(.opening-intro,.media-caption,.questions details p,.tour-card p,.scene-controls p){font-size:var(--ae-body)!important;line-height:var(--ae-body-leading)!important}
 html body[data-design] :is(.fineprint,.request-note,.inquiry-status,.scene-status,.site-footer,.viewer-bottom,.viewer-count){font-size:var(--ae-small)!important;line-height:1.5rem!important}
 html body:is(.estate-readable,[data-design],.planner-resource-page):not(.is-viewer) :is(.guide-wrap,.request-page,.renewal-terms,.questions,.text-panel) p{max-width:66ch}
 html body.estate-readable.estate-home .panel-label p.sub{font-size:var(--ae-body)!important;line-height:var(--ae-body-leading)!important}
 @media(min-width:48rem){
  html body:not(.is-viewer){
   --ae-body:1.1875rem;--ae-body-leading:2rem;--ae-small:1rem;
   --ae-h1:2.75rem;--ae-h1-leading:3.5rem;
   --ae-h2:1.875rem;--ae-h2-leading:2.5rem;
   --ae-h3:1.375rem;--ae-h3-leading:2rem;
  }
 }
}
