/* Local typography trial. Important declarations in this named layer take
   precedence over the legacy, unlayered font overrides without changing colors. */
@font-face{font-family:'Libre Franklin';src:url('/LibreFranklin-Variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'Libre Franklin';src:url('/LibreFranklin-Italic-Variable.ttf') format('truetype');font-style:italic;font-weight:100 900;font-display:swap}
/* A digit-only alias of the installed Georgia Bold face. This also covers
   numbers embedded in paragraphs, dates, buttons and dynamically rendered text,
   without splitting text nodes or interfering with the counting controllers. */
@font-face{font-family:'Georgia Numerals';src:local('Georgia Bold'),local('Georgia-Bold');font-style:normal;font-weight:100 900;unicode-range:U+0030-0039;font-display:swap}
@font-face{font-family:'Georgia Numerals';src:local('Georgia Bold Italic'),local('Georgia-BoldItalic');font-style:italic;font-weight:100 900;unicode-range:U+0030-0039;font-display:swap}
@layer local-type {
 :root{--type-serif:Georgia,serif;--type-readable:'Georgia Numerals','Libre Franklin',sans-serif;--site-font:var(--type-readable);--heading-font:var(--type-serif);--ui-font:var(--type-readable)}
 html{font-size:100%}
 body{font-size:1rem;line-height:1.6}
 body,body *,body *::before,body *::after,body *::placeholder,body *::file-selector-button {
  font-family:var(--type-readable)!important;
  font-weight:700!important;
 }
 :is(h1,h2,h3,h4,h5,h6),:is(h1,h2,h3,h4,h5,h6) * {
  font-family:var(--type-serif)!important;
  font-weight:700!important;
 }
 :is(h1,h2,h3,h4,h5,h6){line-height:1.25!important;letter-spacing:-.02em!important;text-wrap:balance}
 h1{font-size:clamp(2rem,3.2vw,3rem)!important;line-height:1.12!important}
 h2{font-size:clamp(1.5rem,2vw,1.85rem)!important}
 h3{font-size:1.25rem!important}
 h4{font-size:1.125rem!important}
 h5{font-size:1rem!important}
 h6{font-size:.9375rem!important}
 #front-title,#upload-title{font-size:clamp(2.25rem,4.5vw,3.65rem)!important;line-height:1.1!important}
 #project-title{font-size:clamp(2rem,2.7vw,2.75rem)!important}
 .upload-card h2{font-size:1.65rem!important}
 :is(.product-card,.market-price-card,.capex-category,.library-card) h3{font-size:1.2rem!important}
 p{font-size:1rem!important;line-height:1.65!important;letter-spacing:normal!important}
 :is(.hero-lead,.front-lead){font-size:clamp(1.0625rem,1rem + .2vw,1.1875rem)!important;line-height:1.65!important}
 :is(.eyebrow,.front-eyebrow,.processing-eyebrow,.upload-kicker,.project-actions-label){font-size:.75rem!important;line-height:1.5!important;font-weight:700!important;letter-spacing:.1em!important}
 :is(.disclosure,.hero-detail,.intro-subtitle,.market-privacy-note,.privacy-line,.subtle,.metric-note,.document-label){font-size:.9375rem!important;line-height:1.65!important}
 .project-actions-label{letter-spacing:0!important}
 :is(button,.button,nav,.site-page-links,.front-action,.official-link,summary),:is(button,.button,nav,.site-page-links,.front-action,.official-link,summary) * {
  font-family:var(--type-readable)!important;
  font-weight:700!important;
  letter-spacing:normal!important;
 }
 :is(button,.button,.front-action,.official-link){line-height:1.35!important}
 :is(button,.button,.front-action,.official-link):not(.result-explanation-trigger,.icon-button){font-size:.9375rem!important}
 :is(label,legend,dt,thead th),:is(label,legend,dt,thead th) *{font-weight:700!important}
 :is(b,strong),:is(b,strong) *{font-weight:700!important}
 :is(em,i):not([aria-hidden]):not([class]){font-style:italic}
 :is(input,select,textarea,output),:is(input,select,textarea,output) * {
  font-family:var(--type-readable)!important;
  letter-spacing:normal!important;
  font-variant-numeric:tabular-nums!important;
 }
 input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{line-height:1.4!important}
 :is(input[type=number],output){font-weight:700!important}
 :is(table,.data-table,.chart,.chart-tooltip,[role=tooltip]),:is(table,.data-table,.chart,.chart-tooltip,[role=tooltip]) * {
  font-family:var(--type-readable)!important;
  letter-spacing:normal!important;
 }
 :is(svg text,svg tspan,[data-financial-key],[data-financial-key] *,[data-front-count],[data-front-count] *,[data-motion-count],[data-motion-count] *,.financial-value-visual,.financial-value-accessible,.project-readout,.metric>strong,.results-dock-item>strong,.price-effect-ledger b,.driver-share) {
  font-family:var(--type-readable)!important;
  letter-spacing:normal!important;
  font-variant-numeric:tabular-nums!important;
 }
 .metric>strong,.metric>strong *,.price-effect-ledger b,.price-effect-ledger b *,.results-dock-item>strong,.results-dock-item>strong *{font-weight:700!important}
 /* Numerical readouts retain Georgia's original digit forms. */
 :is(input[type=number],input[type=range],output,[data-financial-key],[data-front-count],[data-motion-count],.financial-value-visual,.financial-value-accessible,.project-readout,.metric>strong,.results-dock-item>strong,.price-effect-ledger b,.price-entry,.range-labels,.price-meta b,.driver-share,.nav-index,.workflow-number,.front-step-number,.number-badge-art,.capex-control-value,.capex-amount-entry,.capex-category-values dd,[data-georgia-number]),
 :is(output,[data-financial-key],[data-front-count],[data-motion-count],.project-readout,.metric>strong,.results-dock-item>strong,.price-effect-ledger b,.price-entry,.range-labels,.price-meta b,.driver-share,.workflow-number,.front-step-number,.number-badge-art,.capex-control-value,.capex-amount-entry,.capex-category-values dd,[data-georgia-number]) * {
  font-family:var(--type-serif)!important;
  font-weight:700!important;
  font-variant-numeric:normal!important;
  font-feature-settings:normal!important;
 }
 :is(.brand,.brand-copy,.brand-symbol,.brand-lockup,.footer-brand,.front-brand,.processing-brand),:is(.brand,.brand-copy,.brand-symbol,.brand-lockup,.footer-brand,.front-brand,.processing-brand) * {
  font-family:var(--type-serif)!important;
  font-weight:700!important;
 }
 .footer-brand span{font-family:var(--type-readable)!important;font-weight:700!important}
 :is(.site-footer,.front-footer){line-height:1.6!important}
 small,.tag,.source-tag,.metric-rate,.export-format-tag{line-height:1.5!important}
 @media(max-width:600px){
  h1{font-size:2rem!important}
  #front-title,#upload-title{font-size:2.35rem!important}
  #project-title{font-size:2rem!important}
  :is(button,.button,.front-action,.official-link):not(.result-explanation-trigger,.icon-button){font-size:.875rem!important}
  .ktm-header .masthead-tabs a{font-size:.875rem!important}
 }
 @media(max-width:370px){.ktm-header .masthead-tabs a{font-size:.8125rem!important}}
}


/* Map the original calculator markup to KnowTheMine's typography roles. */
@layer local-type {
 #page-title{font-size:clamp(2rem,2.7vw,2.75rem)!important}
 .project-summary .metric>span{line-height:1.35!important}
 .project-summary .metric>small{font-size:.875rem!important;line-height:1.35!important}
 .project-summary .metric>.metric-state-label{font-size:.75rem!important;line-height:1.25!important;letter-spacing:normal!important}
 .project-summary .metric.primary>span{font-size:1.25rem!important;line-height:1.35!important}
 .project-summary .metric>strong{margin-block:.9rem .65rem;letter-spacing:normal!important}
 .project-summary #driver-weight{line-height:1.55!important}
 .site-page-links a{font-size:.9375rem!important;line-height:1.35!important}
 @media(max-width:600px){#page-title{font-size:2rem!important}.site-page-links a{font-size:.875rem!important}}
}

/* Mixed sensitivity labels use interface text, with Georgia digits from the shared numeral face. */
@layer local-type {
 #driver-weight,#driver-weight *,.driver-share,.driver-share *{font-family:var(--type-readable)!important;font-weight:700!important}
}
