﻿/* Locally hosted Nunito Sans, SIL Open Font License; see fonts/NunitoSans-OFL.txt. */
@font-face {
    font-family:"Nunito Sans"; font-style:normal; font-weight:200 1000;
    font-display:swap; src:url("../fonts/NunitoSans.ttf") format("truetype");
}
@font-face {
    font-family:"Nunito Sans"; font-style:italic; font-weight:200 1000;
    font-display:swap; src:url("../fonts/NunitoSans-Italic.ttf") format("truetype");
}
:root { --portal-font-family:"Nunito Sans","Segoe UI",Arial,sans-serif; }
html body {
    font-family:var(--portal-font-family) !important;
    font-weight:400; line-height:1.55; font-optical-sizing:auto;
}
html body :is(h1,h2,h3,h4,h5,h6,p,label,input,select,textarea,button,.btn) {
    font-family:var(--portal-font-family) !important;
}
html body :is(h1,h2,h3,h4,h5,h6) { font-weight:700; line-height:1.25; }
html body :is(input,select,textarea) { font-weight:400 !important; }
html body :is(table.table,table.GridView,table.gridview,table.registry-grid) > :is(thead,tbody) > tr > th {
    font-family:var(--portal-font-family) !important;
    font-weight:700 !important; line-height:1.4;
}
html body :is(table.table,table.GridView,table.gridview,table.registry-grid) > tbody > tr > td {
    font-family:var(--portal-font-family) !important;
    font-weight:400 !important; line-height:1.5;
}
html body :is(table.table,table.GridView,table.gridview,table.registry-grid) td a { font-weight:650 !important; }
/* Keep data grids and their controls tied to Settings > Font size. */
html body :is(table.table,table.GridView,table.gridview,table.registry-grid,table.licence-master-grid,table.licence-child-grid),
html body :is(table.table,table.GridView,table.gridview,table.registry-grid,table.licence-master-grid,table.licence-child-grid) :is(th,td,a,button,input,select,label,.btn,.badge) {
    font-size:var(--portal-font-size,14px) !important;
}
/* Match PortalHelp across navigation, shared chrome and content. Leave icon fonts alone. */
html body :is(.kcaa-brand,.kcaa-main-shell,.main-content,.kcaa-menu-shell,.kcaa-standard-footer) {
    font-family:var(--portal-font-family) !important;
}
html body :is(#menuBar,#kcaaAppSidebarNav) :is(a,span:not([class*="fa"]):not([class*="glyphicon"])) {
    font-family:var(--portal-font-family) !important;
}
html body :is(.panel-heading,.card-header,.panel-title,.form-control,.custom-select) {
    font-family:var(--portal-font-family) !important;
}

/* Inner pages need a readable baseline even with a previously saved compact size. */
:root { --portal-content-size:max(16px,var(--portal-font-size,16px)); }
html body .main-content {
    font-family:var(--portal-font-family,"Nunito Sans","Segoe UI",Arial,sans-serif) !important;
    font-size:var(--portal-content-size) !important; line-height:1.55;
}
/* ID specificity deliberately outranks legacy page-local font shorthand rules. */
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page)
:is(p,label,input,select,textarea,button,.btn,th,td,.form-control,.custom-select,.help-block,.form-text,.text-muted,.badge,.label) {
    font-family:var(--portal-font-family) !important;
    font-size:var(--portal-content-size) !important;
    line-height:1.5 !important;
}
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page)
:is(td,th) :is(a,span:not([class*="fa"]):not([class*="glyphicon"]),label,.btn) {
    font-family:var(--portal-font-family) !important;
    font-size:var(--portal-content-size) !important; line-height:1.5 !important;
}
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page)
:is(.form-control,.custom-select,select,input[type="text"],input[type="email"],input[type="password"]) {
    min-height:44px !important; height:auto; padding-top:9px; padding-bottom:9px;
}
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page) .btn {
    min-height:42px !important; height:auto !important; white-space:normal !important;
}
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page)
:is(.registry-subtitle,.registry-count,.registry-dashboard-link,.registry-live-status,.registry-code,.registry-ref,.registry-title-cell,.registry-status-badge,.application-terms-copy) {
    font-family:var(--portal-font-family) !important;
    font-size:var(--portal-content-size) !important; line-height:1.5 !important;
}
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page)
:is(.registry-live-status,.registry-subtitle) { color:var(--theme-ink,#243548) !important; }
html body :is(#applicationDocuments,.main-content,.registry-workspace,.application-manager-page)
:is(.application-header-field label + span,.registry-live-status span,.registry-live-status strong) {
    font-family:var(--portal-font-family) !important; font-size:var(--portal-content-size) !important; line-height:1.5 !important;
}
