:root {
  --site-bg: #f7f9fb;
  --text-body: #34495a;
  --text-heading: #163b5c;
  --link-color: #186db6;
}

/* Base page */
body {
  background: var(--site-bg);
  color: var(--text-body);
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title {
  font-family: "Frutiger", "Frutiger LT Std", "Frutiger Next", Arial, sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* H1 */
h1,
.entry-title,
.page-title {
  color: #163b5c;
  font-size: clamp(2rem, 4vw, 2.625rem);
  line-height: 1.12;
  margin-bottom: 0.65em;
}

/* Other headings */
h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-top: 1.6em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.55rem);
  margin-top: 1.4em;
}

h4,
h5,
h6 {
  font-size: 1.15rem;
  margin-top: 1.25em;
}

/* Body text */
p,
li,
td,
th {
  color: var(--text-body);
}

/* Links */
a {
  color: var(--link-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: #155a96;
}

/* =========================================================
   Academic content typography pass
   Scope: #content only
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  /*--site-bg: #f7f9fb;
  --site-bg: #F8FAFC;*/
  --site-bg: #FAFBFC;
  --text-body: #34495a;
  --text-heading: #163b5c;
  --link-color: #186db6;
  --link-hover: #155a96;
  --border-soft: #dce4ea;
  --surface-white: #ffffff;
  --surface-soft: #eef4f8;
}

/* Page base */
body {
  background: var(--site-bg);
  color: var(--text-body);
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

/* Content area */
body #content {
  color: var(--text-body);
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
}

/* Headings */
body #content h1,
body #content h2,
body #content h3,
body #content h4,
body #content h5,
body #content h6 {
  font-family: "Frutiger", "Frutiger LT Std", "Frutiger Next", Arial, sans-serif !important;
  color: var(--text-heading) !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-transform: none;
}

/* Main article title */
body #content h1 {
  font-size: clamp(2rem, 4vw, 2.625rem);
  line-height: 1.12;
  margin-top: 0.35em;
  margin-bottom: 0.75em;
}

/* Section headings */
body #content h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-top: 1.75em;
  margin-bottom: 0.55em;
}

body #content h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.55rem);
  margin-top: 1.5em;
  margin-bottom: 0.45em;
}

body #content h4 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-top: 1.35em;
  margin-bottom: 0.45em;
}

/* Paragraph rhythm */
body #content p {
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.72;
  margin: 1.15em 0;
}

/* Lists */
body #content ul,
body #content ol {
  margin-top: 0.75em;
  margin-bottom: 1.35em;
  padding-left: 1.35em;
}

body #content li {
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.65;
  margin-top: 0.45em;
  margin-bottom: 0.45em;
}

/* Links */
body #content a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

body #content a:hover,
body #content a:focus {
  color: var(--link-hover);
}

/* Strong text */
body #content strong,
body #content b {
  color: #243f55;
  font-weight: 700;
}

/* Horizontal rules */
body #content hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 2rem 0;
}

/* Blockquotes */
body #content blockquote {
  margin: 1.75em 0;
  padding: 0.85em 1.25em;
  border-left: 4px solid var(--border-soft);
  background: var(--surface-soft);
  color: var(--text-body);
  font-size: 17px;
  font-style: normal;
  line-height: 1.65;
}

/* Tables */
body #content table {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
}

body #content table th,
body #content table td {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
  border-color: var(--border-soft);
}

/* Alerts / callouts */
body #content .alert {
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  background: #eef5fa;
  color: var(--text-body);
  box-shadow: none;
}

body #content .alert h1,
body #content .alert h2,
body #content .alert h3,
body #content .alert h4,
body #content .alert h5,
body #content .alert h6 {
  color: var(--text-heading) !important;
  margin-top: 0;
}

body #content .alert p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Header + navigation modernization pass
   Scope: #navigation only
   ========================================================= */

/* Header shell */
body #navigation,
body #navigation .navbar-static-top {
  background: var(--site-bg);
}

body #navigation .header {
  background: #ffffff !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: none;
}

@media (min-width: 768px) {
  body #navigation .header {
    height: auto !important;
    min-height: 78px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* Brand/logo area */
body #navigation .navbar-brand {
  color: var(--text-heading) !important;
  height: auto;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

body #navigation .navbar-brand h1 {
  font-family: "Frutiger", "Frutiger LT Std", "Frutiger Next", Arial, sans-serif !important;
  color: var(--text-heading) !important;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: none;
}

body #navigation .navbar-brand h1 .dotnet {
  color: var(--link-color) !important;
  font-weight: 600;
}

/* Social icons */
body #navigation .social-media {
  padding-top: 6px;
}

body #navigation .social-media a {
  background: transparent !important;
  color: #6b7f8f !important;
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

body #navigation .social-media a:hover,
body #navigation .social-media a:focus {
  background: #eef4f8 !important;
  color: var(--link-color) !important;
  text-decoration: none;
}

/* Main nav bar */
body #navigation .navbar,
body #navigation .js-clingify-locked {
  background: #ffffff !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-soft) !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Nav list separators */
body #navigation .navbar-nav > li,
body #navigation .navbar-nav .divider-vertical {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Main nav links */
body #navigation .navbar-nav > li > a,
body #navigation #main-menu > li > a {
  color: #24465f !important;
  background: transparent !important;
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: none;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Hover and active nav states */
body #navigation .navbar-nav > li > a:hover,
body #navigation .navbar-nav > li > a:focus,
body #navigation .navbar-nav > li.active > a,
body #navigation #main-menu > li > a:hover,
body #navigation #main-menu > li > a:focus,
body #navigation #main-menu > li.active > a {
  color: var(--link-color) !important;
  background: #f3f7fa !important;
  text-decoration: none;
}

/* Home icon */
body #navigation .navbar-nav > li.home-link a i,
body #navigation #main-menu > li.home-link a i,
body #navigation .navbar-nav > li.home-link a:link i,
body #navigation #main-menu > li.home-link a:link i,
body #navigation .navbar-nav > li.home-link a:focus i,
body #navigation #main-menu > li.home-link a:focus i {
  color: var(--link-color) !important;
}

/* Dropdown menu */
body #navigation .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(22, 59, 92, 0.08);
  padding: 6px 0;
}

body #navigation .dropdown-menu > li > a {
  color: #24465f !important;
  background: transparent !important;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  text-shadow: none;
}

body #navigation .dropdown-menu > li > a:hover,
body #navigation .dropdown-menu > li > a:focus {
  color: var(--link-color) !important;
  background: #f3f7fa !important;
  text-decoration: none;
}

/* Remove old dropdown arrows/icons where theme injects them */
body #navigation .dropdown-menu li a:before,
body #navigation .dropdown-menu li a.menu-item:before {
  content: none !important;
}

/* Mobile nav button */
body #navigation .navbar-btn,
body #navigation .btn-navbar {
  background: #eef4f8 !important;
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

body #navigation .navbar-btn .bar,
body #navigation .btn-navbar .bar {
  background-color: var(--text-heading) !important;
}

body #navigation .navbar-btn:hover,
body #navigation .navbar-btn.open,
body #navigation .btn-navbar:hover,
body #navigation .btn-navbar.open {
  background: #e4edf4 !important;
}

/* Mobile off-canvas menu */
body #jPanelMenu-menu {
  background: #ffffff !important;
}

body #jPanelMenu-menu a {
  color: #24465f !important;
  text-shadow: none;
}

body #jPanelMenu-menu a:hover,
body #jPanelMenu-menu a:focus {
  color: var(--link-color) !important;
  background: #f3f7fa !important;
}









/* =========================================================
   Header/nav refinement patch
   Fixes home icon height, dropdown bottom space, mobile menu
   ========================================================= */

/* Normalize home icon height so it behaves like other nav items */
body #navigation .navbar-nav > li.home-link > a,
body #navigation #main-menu > li.home-link > a {
  padding: 15px 16px !important;
  line-height: 20px;
}

body #navigation .navbar-nav > li.home-link > a i,
body #navigation #main-menu > li.home-link > a i,
body #navigation .navbar-nav > li.home-link > a:link i,
body #navigation #main-menu > li.home-link > a:link i,
body #navigation .navbar-nav > li.home-link > a:focus i,
body #navigation #main-menu > li.home-link > a:focus i {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px;
  line-height: 20px;
  vertical-align: middle;
}

/* Remove phantom-looking extra space at bottom of dropdowns */
body #navigation .dropdown-menu {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  margin-top: 0;
  border-bottom-color: var(--border-soft) !important;
}

body #navigation .dropdown-menu > li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

body #navigation .dropdown-menu > li:last-child > a {
  border-bottom: 0 !important;
}

/* Fully neutralize old dark mobile/off-canvas menu styling */
body #jPanelMenu-menu,
body #jPanelMenu-menu.navbar-collapse,
body #jPanelMenu-menu.navbar-collapse.collapse,
body #jPanelMenu-menu.navbar-collapse.in {
  background: #ffffff !important;
  background-image: none !important;
  color: #24465f !important;
  border-right: 1px solid var(--border-soft);
}

body #jPanelMenu-menu .navbar-nav,
body #jPanelMenu-menu #main-menu {
  background: #ffffff !important;
}

body #jPanelMenu-menu .navbar-nav > li,
body #jPanelMenu-menu #main-menu > li {
  background: #ffffff !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--border-soft) !important;
}

body #jPanelMenu-menu .navbar-nav > li > a,
body #jPanelMenu-menu #main-menu > li > a {
  background: #ffffff !important;
  color: #24465f !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  padding: 12px 18px !important;
}

body #jPanelMenu-menu .navbar-nav > li > a:hover,
body #jPanelMenu-menu .navbar-nav > li > a:focus,
body #jPanelMenu-menu #main-menu > li > a:hover,
body #jPanelMenu-menu #main-menu > li > a:focus {
  background: #f3f7fa !important;
  color: var(--link-color) !important;
}

/* Mobile dropdowns */
body #jPanelMenu-menu .dropdown-menu {
  background: #f8fafc !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body #jPanelMenu-menu .dropdown-menu > li {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border-soft) !important;
}

body #jPanelMenu-menu .dropdown-menu > li > a {
  background: #f8fafc !important;
  color: #34495a !important;
  padding: 10px 18px 10px 32px !important;
  font-size: 14px;
  font-weight: 500;
}

body #jPanelMenu-menu .dropdown-menu > li > a:hover,
body #jPanelMenu-menu .dropdown-menu > li > a:focus {
  background: #eef4f8 !important;
  color: var(--link-color) !important;
}

/* Mobile home icon */
body #jPanelMenu-menu .navbar-nav li.home-link a,
body #jPanelMenu-menu #main-menu li.home-link a {
  padding: 12px 18px !important;
}

body #jPanelMenu-menu .navbar-nav li.home-link a i,
body #jPanelMenu-menu #main-menu li.home-link a i {
  display: inline-block !important;
  padding: 0 !important;
  font-size: 16px;
  line-height: 20px;
  color: var(--link-color) !important;
}

/* Desktop dropdown bottom-space cleanup */
@media (min-width: 768px) {
  body #navigation .navbar .dropdown-menu {
    padding: 0 !important;
    overflow: hidden;
  }

  body #navigation .navbar .dropdown-menu > li,
  body #navigation .navbar .dropdown-menu > li:last-child {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
  }

  body #navigation .navbar .dropdown-menu > li > a {
    margin: 0 !important;
    border-bottom: 0 !important;
  }

  body #navigation .navbar .dropdown-menu:before,
  body #navigation .navbar .dropdown-menu:after {
    display: none !important;
    content: none !important;
  }
}




/* =========================================================
   Footer modernization pass
   Scope: footer + content-below only
   ========================================================= */

/* Pre-footer / content-below area */
body #content-below {
  background: #eef4f8 !important;
  border-top: 1px solid var(--border-soft);
  color: var(--text-body);
}

/* Main footer shell */
body #footer {
  background: #ffffff !important;
  color: #445c6f;
  border-top: 1px solid var(--border-soft) !important;
  box-shadow: none;
}

/* Footer typography */
body #footer,
body #footer p,
body #footer li,
body #footer td {
  color: #445c6f;
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* Footer headings */
body #footer h1,
body #footer h2,
body #footer h3,
body #footer h4,
body #footer h5,
body #footer h6 {
  color: var(--text-heading) !important;
  font-family: "Frutiger", "Frutiger LT Std", "Frutiger Next", Arial, sans-serif !important;
  font-weight: 700;
  text-shadow: none;
}

/* Footer links */
body #footer a {
  color: var(--link-color);
  text-decoration: none;
}

body #footer a:hover,
body #footer a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Footer separators / borders */
body #footer hr,
body #footer .bordered,
body #footer .block {
  border-color: var(--border-soft) !important;
}

/* Top link / back-to-top */
body #footer #toplink,
body #footer #toplink a {
  color: var(--link-color) !important;
}

body #footer #toplink i {
  color: var(--link-color) !important;
}

/* Footer social/media icons, if present */
body #footer .social-media a {
  background: transparent !important;
  color: #6b7f8f !important;
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

body #footer .social-media a:hover,
body #footer .social-media a:focus {
  background: #eef4f8 !important;
  color: var(--link-color) !important;
  text-decoration: none;
}

/* Copyright / lower footer */
body #footer .subfooter,
body #footer .footer-bottom,
body #footer .copyright {
  background: #f8fafc !important;
  color: #5f7384;
  border-top: 1px solid var(--border-soft);
}

/* Remove legacy text shadows/glows */
body #footer * {
  text-shadow: none !important;
}



/* =========================================================
   Footer subfooter refinement
   ========================================================= */

body #footer .subfooter,
body #footer .footer-bottom,
body #footer .copyright {
  background: transparent !important;
  border-top: 0 !important;
  color: #5f7384;
}



/* =========================================================
   H4 correction
   ========================================================= */

body #content h4 {
  font-family: "Frutiger", "Frutiger LT Std", "Frutiger Next", Arial, sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-heading) !important;
  margin-top: 1.4em;
  margin-bottom: 0.45em;
}




/* =========================================================
   Advertisement label refinement
   ========================================================= */

.advertisement,
.ad-label,
.sponsor-label,
.sidebar .advertisement,
.sidebar .ad-label {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;

  background: transparent !important;
  border: 1px solid #d7e0e7;

  color: #6f8291 !important;

  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  border-radius: 2px;
  box-shadow: none;
  text-shadow: none;
}





/* =========================================================
   Blockquote cleanup
   Removes legacy speech-bubble styling
   ========================================================= */

body #content blockquote,
body #content blockquote p {
  background: transparent !important;
  background-image: none !important;
}

/* Remove legacy speech-bubble triangle */
body #content blockquote p::before,
body #content blockquote p::after,
body #content blockquote::before,
body #content blockquote::after {
  content: none !important;
  display: none !important;
}

/* Ensure clean academic styling */
body #content blockquote {
  border-left: 4px solid var(--border-soft);
  background: #eef4f8 !important;
  padding: 1em 1.35em;
  margin: 1.8em 0;
  box-shadow: none !important;
}

body #content blockquote p:last-child {
  margin-bottom: 0;
}