html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, em, img, strong, ol, ul, li, table, tr, th, td, form { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; background: transparent; }
html { font-size: 20.592px; }

/* Design tokens */
:root {
	--header-offset: 100px; /* default, updated by JS */
	--font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--color-bg: #f6f6f6;
	--color-text: #1a1d21;
	--color-muted: #5c6573;
}

/* Ensure in-page scrolling and anchors leave space for the fixed header */
html {
	scroll-padding-top: var(--header-offset);
}

section[id] {
	scroll-margin-top: var(--header-offset);
}

:target::before {
	content: '';
	display: block;
	height: var(--header-offset);
	margin-top: calc(-1 * var(--header-offset));
}

/* Use left alignment for informative pages */
.page-profile,
.page-experience,
.page-teaching,
.page-portfolio,
.page-publications,
#page-publications-full {
	text-align: left;
}

/* Push document flow below fixed header */
body {
	padding-top: var(--header-offset);
}

/* Skip link: hidden off-screen until focused (accessibility) */
.skip-link {
	position: fixed;
	top: -100px;
	left: 10px;
	z-index: 1040;
	background: #1f4b99;
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	text-decoration: none;
	transition: top 0.2s ease;
}
.skip-link:focus {
	top: 10px;
}

/* Ensure header logos stack vertically even on pages that only load style.css */
.navbar-logos,
.navbar-logos.stacked{
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 6px !important;
	padding: 6px 0 !important;
}
.navbar-logos.stacked a{ display: block !important; }
.navbar-logos.stacked .brand-left{ order: 1 !important; }
.navbar-logos.stacked .brand-right{ order: 2 !important; margin-top: 6px !important; }
.navbar-logos.stacked .brand-right img{ max-height: 44px !important; display: block !important; }
table { border-collapse: collapse; border-spacing: 0; }

/* Footer (ensure consistent styling on pages that only load style.css) */
.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.footer-social { display:flex; gap:10px; align-items:center; margin-bottom:1rem; flex-wrap:wrap; }
.footer-social a{ display:inline-flex; align-items:center; justify-content:center; color:inherit; opacity:0.85; transition: opacity 0.2s ease; }
.footer-social a:hover{ opacity:1; }
.footer-social a.footer-scholar{ padding:0 10px 0 6px; overflow:visible; }
.footer-social a.footer-scholar img{ flex-shrink:0; }
.footer-social img{ height:28px; width:auto; display:block; }
.footer-meta{ margin:0; font-size:0.875rem; color: var(--color-muted); }
input, button{ overflow: visible; }
html, body { height: 100%; min-height: 100%; }
body { font: normal 1rem/1.5 var(--font-sans); text-align: left; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
p { padding: 0 0 10px; }
ul { padding: 0 0 0 16px; }
li { padding: 0 0 8px; }
a  { text-decoration: none; }
a:link, a:visited { color: #1d64c1; }
a:hover, a:active { color: #6687dd; text-decoration: underline; }
.clear, .box .content { display: inline-block; }
.clear:after, .box .content:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
* html .clear, * html .box .content { height: 1%; }
.clear, .box .content { display: block; }
.none, .hidden { display: none; }
.page { position: relative; width: 100%; min-width: 750px; min-height: 100%; }
* html .page { height: 100%; }
.page .header { width: 100%; height: 69px; text-align: left; background: #363b47 url('../img/common/top_bg.png') 0 0 repeat-x; }
.page .header .company-logo { float: right; display: block; margin: 11px 20px 0 10px; width: 100px; height: 40px; overflow: hidden; text-indent: -9999px; background: url(../img/common/top-company-logo.gif) no-repeat; }
.page .header .header-area { height: 69px; }
.page .header h1 { float: left; width: 210px; height: 65px; text-align: left; }
.page .header h1 a { display: block; margin: 0 0 0 10px; width: 210px; height: 65px; overflow: hidden; text-indent: -9999px; background: url(../img/common/def_plesk_logo.gif) no-repeat; }
.page .header .header-text { float: right; font-size: 14.3px; }
.page .header .header-text a { float: left; margin: 11px 13px 0 0; color: #506cc6; text-decoration: none; font-size: 14.3px; }
.page .header .header-text a.txt-banner { margin-right: 10px; }
.page .header .header-text a strong { font-weight: normal; }
.page .header .header-text a.top-copyright { text-align: right; }
.wrapper { margin: 0 auto; padding: 24px 0 50px; width: 734px; text-align: left; }
#body { margin: 0 auto; padding: 24px 0 57px 0; width: 734px; text-align:left; }
.box { position: relative; background: #fff; border: 1px solid #c0c0c0; width:100%; }
.box .content { padding: 10px; position: relative; }
.box em { display: block; width: 11px; height: 11px; position: absolute; background: url('../img/common/box-corners.png') no-repeat; overflow: hidden; }
.box em.tl { background-position: 0 0; left:-1px; top:-1px;}
.box em.tr { background-position: -29px 0; right:-1px; top:-1px;}
.box em.bl { background-position: 0 -29px; left:-1px; bottom:-1px;}
.box em.br { background-position: -29px -29px; right:-1px; bottom:-1px;}
.globe { float: left; background: url('../img/common/globe.png') 0 0 no-repeat; width: 167px; height: 198px; margin: 0; }
.welcome { padding: 0 0 0 187px; }
h2 { margin: 5px 0 10px; padding: 10px 0 3px; font-size: 1.26rem; font-weight: normal; color: #000; }
h3 { margin: 10px 0 5px 0; }
.hr { border-top: 1px solid #e0e0e0; margin-top: 5px; padding: 10px 0 0; overflow:hidden; }
.center { text-align: center; }
.products { width: 390px; float: right; }
.new-to-parallels { width: 330px; float: left; }
.column { width: 180px; }
.column.left { float: left; }
.column.right { float: right; }
.column strong { display: block; margin-bottom: 11px; }
.column p { display: block; margin-top: 15px; font-size: 0.91rem; }
.column img { float:left; margin-right: 15px; width: 69px; }
.page .footer { position: absolute; left: 0; bottom: 0; border-top: 1px solid #c0c7fc; width: 100%; min-width: 300px; height: 49px; background: #d9e9ff url('../img/common/footer_bg.png') 0 0 repeat-x; }
.page .footer-area { height: 49px; font-size: 1rem; text-align: left; color: #000; }
.page .footer .description { margin: 0; padding: 12px 10px 0; }
.icons-area { padding: 5px 10px 10px; text-align: center; background: url('../img/common/blocks_bg.png') 0 100% no-repeat; }
.icon { display: -moz-inline-box; display: inline-block; margin: 0 3px 12px 0; padding: 0; min-height: 41px; font: normal 1rem/1.18 tahoma, arial, helvetica, sans-serif; text-decoration: none; text-align: left; vertical-align: top; color: #000; cursor: pointer; background-position: 50% 0; background-repeat: no-repeat; }
a.icon:link, a.icon:visited, a.icon:hover, a.icon:active { color: #000; text-decoration: none; }
.icon span { display: block; padding: 34px 0 0; width: 80px; text-align: center; cursor: pointer; }
#asp { background-image: url('../img/glyph/btn_asp_bg.gif'); }
#aspnet { background-image: url('../img/glyph/btn_aspdotnet_bg.gif'); }
#coldfusion { background-image: url('../img/glyph/btn_coldfusion_bg.gif'); }
#perl { background-image: url('../img/glyph/btn_perl_bg.gif'); }
#php { background-image: url('../img/glyph/btn_php_bg.gif'); }
#python { background-image: url('../img/glyph/btn_python_bg.gif'); }
#ssi { background-image: url('../img/glyph/btn_ssi_bg.gif'); }
#fcgi { background-image: url('../img/glyph/btn_fast_cgi_bg.gif'); }
#miva { background-image: url('../img/glyph/btn_miva_bg.gif'); }
.test { width: 680px; }
.test .pathbar { color: #7b7b7b; }
.test .pathbar a { text-decoration: underline; color: #7b7b7b; }
.test .pathbar a:hover { color: #39f; }
.test h2 { margin: 10px 0; font-size: 1.55rem; font-weight: normal; }
.test .tab-content { border: 1px solid #a0b0e9; padding: 10px; background: #fff; }
iframe { border: 1px solid #a0b0e9; }
fieldset { border: 1px solid #e0e0e0; margin: 0; padding: 0 10px 10px; }
legend { margin: 0; padding: 0 2px 5px; vertical-align: middle; font-weight: bold; color: #000; }
.form-fields { padding-top: 6px; }
.formFields { margin: 5px 0; }
.formFields, .formFields input, .formFields select, .formFields textarea { font: normal 1rem 'Segoe UI', Tahoma, Verdana, Arial, Helvetica, sans-serif; }
.formFields td.name { padding: 0 10px 10px 0; width: 200px; vertical-align: top; font-weight: bold; }
.buttonsContainer { margin-top: 10px; text-align: right; }
.buttonsContainer .commonButton { display: inline; margin-left: 14px; }
.buttonsContainer .commonButton span { display: none; }
.buttonsContainer .commonButton button { border: 0; width: 91px; height: 27px; text-align: center; white-space: nowrap; cursor: pointer; font: normal 1rem 'Segoe UI', Tahoma, Verdana, Arial, Helvetica, sans-serif; background: transparent url('../img/glyph/btn_bg.gif') 0 0 no-repeat; }
.commonButton button[disabled] { color: #999; background-image: url('../img/glyph/btn_bg-disabled.gif'); }
#bid-ok button  { padding-left: 8px; background-image: url('../img/glyph/btn_ok_bg.gif'); }
.commonButton button:hover { background-position: 0 -21px; }
.commonButton button[disabled]:hover { background-position: 0 0; }
.testRelults#testFailed { border: 1px solid #ccc; margin: 0 0 10px; padding: 10px 10px 10px 32px; background: #fde9e5 url('../img/icons/fail.gif') 10px 11px no-repeat; }
.testRelults#testSuccessful { border: 1px solid #ccc; margin: 0 0 10px; padding: 10px 32px; background: #bff7b4 url('../img/icons/success.gif') 10px 11px no-repeat; }
.testResult { font-weight: bold; }
.test-data { text-align: left; background: #fff; }
.test-data table { border-collapse: collapse; margin-bottom: 10px; width: 100%; color: #000; background-color: white; }
.test-data table th, .test-data table td { padding: 4px 6px; }
.test-data tr.subhead { background-color: #e8f4fe; }
.test-data tr.subhead th { border-bottom: 1px solid #b1c1f9; background: #e8f4fe url('../img/common/th-na-bg.gif') 0 0 repeat-x; }
.test-data th.alt { border-top: 1px solid #b1c1f9; border-bottom: 1px solid #b1c1f9; color: #000; background-color: #dbebff; }
.test-data tr.alt { background-color: #ebf4ff; }

/* Research cards: visually separate each research line */
.page-experience .research-cards {
	display: block;
}
.page-experience .research-cards .row { margin-bottom: 0; }
.page-experience .row > [class*="col-"] { display: flex; }
.page-experience .experience {
	background: #ffffff;
	border: 1px solid #e6e6e6;
	padding: 1rem;
	margin: 0.5rem 0 1rem 0;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(16, 42, 94, 0.04);
	display: flex;
	flex-direction: column;
}
.page-experience .experience header { margin-bottom: 0.5rem; }
.page-experience .experience p { margin: 0; }

/* Blog cards: same visual style as research (.experience) */
.page-blog .blog-rows {
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 991px) {
  .page-blog .blog-rows > [class*="col-"] { display: flex; }
}
/* When odd number of cards, last card spans full width so the right column isn’t empty */
@media (min-width: 992px) {
  .page-blog .blog-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }
  /* Bootstrap .row uses ::before/::after for clearfix; as grid they'd take the first cell — hide them */
  .page-blog .blog-rows::before,
  .page-blog .blog-rows::after {
    display: none !important;
  }
  .page-blog .blog-rows > [class*="col-"] {
    display: flex;
    width: 100%;
    min-width: 0;
  }
  /* Last card when odd: span full width so there's no empty half-column */
  .page-blog .blog-rows > .col-md-6:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}
.page-blog .research-cards .row > [class*="col-"] { 
	display: flex; 
	padding-left: 7.5px;
	padding-right: 7.5px;
}
.page-blog .experience {
	background: #ffffff;
	border: 1px solid #e6e6e6;
	padding: 1rem;
	margin: 0.5rem 0 1rem 0;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(16, 42, 94, 0.04);
	display: flex;
	flex-direction: column;
	width: 100%;
}
.page-blog .experience header { margin-bottom: 0.5rem; }
.page-blog .experience p { margin: 0; }
.page-blog .post-card {
	background: #ffffff;
	border: 1px solid #e6e6e6;
	padding: 1rem;
	margin: 0.5rem 0 1rem 0;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(16, 42, 94, 0.04);
	display: flex;
	flex-direction: column;
	flex: 1;
}
.page-blog .post-card .post-title { margin-bottom: 0.25rem; }
.page-blog .post-card p { margin: 0 0 0.5rem 0; }
.page-blog .post-card p:last-of-type { margin-bottom: 0; }

/* Force left alignment for teaching page text */
.page-teaching,
.page-teaching .section-header,
.page-teaching p,
.page-teaching ul,
.page-teaching li {
	text-align: left !important;
}

/* Profile badge on home page */
.profile-badge {
	display: flex;
	gap: 1rem;
	align-items: center;
	background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
	border: 1px solid #d7e7fb;
	padding: 1.1rem;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(16,42,94,0.04);
}
.profile-badge .badge-photo img{ width:100%; max-width:140px; height:auto; border-radius:8px; display:block; box-shadow: 0 4px 10px rgba(16,42,94,0.06); }
.profile-badge .badge-body{ flex:1; }
.profile-badge .badge-name{ margin:0 0 0.25rem 0; font-size:1.1rem; }
.profile-badge .badge-aff{ margin:0 0 0.5rem 0; color:#444; font-size:0.95rem; }
.profile-badge .badge-hindex{ display:flex; align-items:center; gap:0.5rem; }
.profile-badge .h-label{ background:#f0f4ff; color:#0b3b8a; padding:0.2rem 0.5rem; border-radius:4px; font-weight:600; }
.profile-badge .h-value{ font-size:1.25rem; font-weight:700; color:#0b3b8a; }
.profile-badge .h-sources{ margin-left:0.5rem; color:#666; font-size:0.85rem; }

@media (max-width: 767px){
	.profile-badge{ flex-direction:row; gap:0.75rem; }
	.profile-badge .badge-photo img{ max-width:100px; }
}

/* container tweaks for the badge area */
.badge-container { padding: 1rem 0; }
.badge-container .profile-badge { max-width: 900px; margin: 0 auto; }

/* Homepage impact hero styles */
.hero-impact .lead { font-size: 1.12rem; margin-bottom: 0.75rem; }
.impact-metrics { margin: 0.5rem 0 0.8rem 0; }
.impact-metrics .metric { text-align: center; }
.impact-metrics .metric .metric-value { font-size: 1.35rem; font-weight:700; color: #0b3b8a; }
.impact-metrics .metric .metric-label { font-size: 0.85rem; color:#556; }
.cta-buttons { margin: 0.75rem 0 0.6rem 0; display:flex; gap:0.6rem; flex-wrap:wrap; }
.cta-buttons .btn { padding: 0.45rem 0.85rem; border-radius:6px; }
.cta-buttons .btn-primary { background: linear-gradient(180deg,#0b4db0,#083b86); border-color: #07346a; color: #fff; }
.cta-buttons .btn-default { background: #fff; border: 1px solid #cbdcec; color: #0b3b8a; }

@media (max-width: 767px){
	.impact-metrics .metric { margin-bottom:0.5rem; }
	.cta-buttons { justify-content:flex-start; }
}

/* --- Header styles (Neesu-inspired: light, pill-shaped sections) --- */
.site-header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  background: transparent;
}

/* When scrolling down: hide left/right pills, keep center nav only */
.site-header-sticky.header-pills-hidden .header-profile-wrap,
.site-header-sticky.header-pills-hidden .header-brand-wrap:not(.header-brand-wrap--mobile) {
  display: none !important;
}
.site-header-sticky.header-pills-hidden .main-navbar--light .navbar-flex {
  justify-content: center;
}

@media (max-width: 991px) {
  .site-header-sticky.header-pills-hidden .main-navbar--light .navbar-flex {
    justify-content: flex-end;
  }
}

.main-navbar--light {
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  padding: 10px 0 12px;
}

.main-navbar--light .navbar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hide hamburger on desktop; hide mobile brand (it lives in the collapse) on desktop */
@media (min-width: 992px) {
  .main-navbar--light .navbar-header { display: none; }
  .header-brand-wrap--mobile { display: none !important; }
}

/* Below 1200: hide universities, main menu moves right (profile left, nav right) */
@media (min-width: 992px) and (max-width: 1199px) {
  .main-navbar--light .navbar-flex > .header-brand-wrap { display: none !important; }
  .main-navbar--light .navbar-flex { justify-content: space-between; }
}

/* Left: profile photo pill (links to homepage) */
.header-profile-wrap {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.header-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 6px 10px 6px 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
}
.header-profile-pill:hover,
.header-profile-pill:active,
.header-profile-pill:focus {
  text-decoration: none;
  color: inherit;
}
.header-profile-pill:hover { opacity: 0.95; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.header-profile-pill img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.header-profile-pill:hover img,
.header-profile-pill:focus-visible img,
.header-profile-pill:active img { filter: grayscale(100%); -webkit-filter: grayscale(100%); transform: scale(1.02); }
.header-profile-pill:focus-visible { outline: 2px solid rgba(0,0,0,0.45); outline-offset: 2px; }
.header-profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.header-profile-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-profile-meta {
  font-size: 0.55rem;
  color: #6b7280;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-profile-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  flex-shrink: 0;
  margin-left: 2px;
}
.header-profile-badge svg { width: 14px; height: 14px; }

/* Right: UIB + UFABC logos (UIB on top, UFABC underneath) */
.header-brand-wrap {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.header-brand-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.header-brand-pill img { height: 32px; max-height: 32px; width: auto; display: block; object-fit: contain; transition: filter 0.2s ease, transform 0.2s ease; }
.header-brand-pill a:hover img,
.header-brand-pill:hover img,
.header-brand-pill a:focus-visible img,
.header-brand-pill a:active img { filter: grayscale(100%); -webkit-filter: grayscale(100%); transform: scale(1.02); }
.header-brand-pill a:focus-visible { outline: 2px solid rgba(0,0,0,0.45); outline-offset: 2px; }
.header-brand-pill a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
}
.header-brand-ext-icon { display: inline-flex; flex-shrink: 0; opacity: 0.7; line-height: 0; }
.header-brand-ext-icon svg { display: block; }
.header-brand-pill a:hover .header-brand-ext-icon,
.header-brand-pill:hover .header-brand-ext-icon { opacity: 0.9; }
.header-brand-pill a:hover,
.header-brand-pill a:active,
.header-brand-pill a:focus {
  text-decoration: none;
  color: inherit;
}
.header-brand-pill:hover {
  opacity: 0.95;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

@media (prefers-reduced-motion: reduce) {
  .header-profile-pill img,
  .header-brand-pill img { transition: none; }
  .header-profile-pill:hover img,
  .header-profile-pill:focus-visible img,
  .header-profile-pill:active img,
  .header-brand-pill a:hover img,
  .header-brand-pill:hover img,
  .header-brand-pill a:focus-visible img,
  .header-brand-pill a:active img { transform: none; }
}

/* Center: nav pill — always visible on desktop */
@media (min-width: 992px) {
  .main-navbar--light .navbar-collapse {
    display: flex !important;
  }
}

.main-navbar--light .navbar-collapse {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.header-nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 10px 10px 4px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.5);
}

.header-nav-pill .nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav-pill .nav > li { display: flex; align-items: center; }

.header-nav-pill .nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 9999px;
  transition: color 0.2s ease, background-color 0.2s ease;
  line-height: 1;
}

.header-nav-pill .nav > li > a:hover {
  color: var(--color-text);
  background: rgba(0,0,0,0.06);
}

.header-nav-pill .nav > li > a.active {
  background: #1a1a1a;
  color: #fff;
}

/* Hamburger: light style for light header */
.main-navbar--light .navbar-toggle {
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 10px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.main-navbar--light .navbar-toggle:hover { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.15); }
.main-navbar--light .navbar-toggle .icon-bar { border-radius: 1px; background: #333; }

/* Adjust inline fallback padding set by JS will still override this, but keep a CSS fallback */
body{ padding-top: calc(var(--header-offset, 0px) + 0px); }

@media(max-width:991px){
	.header-profile-pill{ gap: 8px; padding: 5px 8px 5px 5px; }
	.header-profile-pill img{ width: 36px; height: 36px; }
	.header-profile-name{ font-size: 0.625rem; }
	.header-profile-meta{ font-size: 0.525rem; }
	.header-profile-badge svg{ width: 12px; height: 12px; }
	.header-brand-pill img{ height: 32px; max-height: 32px; }
	.header-nav-pill .nav > li > a{ padding:6px 12px; font-size:0.6rem; }
}

@media (max-width: 991px) {
	.main-navbar--light .navbar-flex{ justify-content: space-between; gap: 0px; }
	.main-navbar--light .header-profile-wrap{ order: 1; flex: 0 0 auto; }
	.main-navbar--light .navbar-header{ order: 2; display: block !important; }
	.main-navbar--light .navbar-toggle{ display: block !important; }
	.main-navbar--light .navbar-flex > .header-brand-wrap{ display: none !important; }
	.header-brand-wrap--mobile{ margin-top: 8px; width: 100%; display: flex; justify-content: stretch; }
	.header-brand-wrap--mobile .header-brand-pill{ width: 100%; flex-direction: row; justify-content: center; gap: 1.5rem; padding: 12px 16px; }
	.header-brand-wrap--mobile .header-brand-pill img{ height: 32px; max-height: 32px; }
	.main-navbar--light .navbar-collapse{ order: 4; width: 100%; flex-basis: 100%; max-height: none; overflow: visible; }
	.main-navbar--light .navbar-collapse.collapse:not(.in):not(.show){ display: none !important; }
	.main-navbar--light .navbar-collapse.collapse.in,
	.main-navbar--light .navbar-collapse.collapse.show{ display: block !important; max-height: none; overflow: visible; }
	.header-profile-pill{ gap: 6px; padding: 5px 8px 5px 5px; }
	.header-profile-pill img{ width: 34px; height: 34px; }
	.header-profile-name{ font-size: 0.625rem; }
	.header-profile-meta{ font-size: 0.5rem; }
	.header-profile-badge{ display: none; }
	.header-nav-pill{ width: 100%; border-radius: 12px; padding: 12px 10px; margin-top: 8px; }
	.header-nav-pill .nav{ flex-direction: column; gap: 6px; width: 100%; }
	.header-nav-pill .nav > li > a{ padding: 16px 14px; font-size: 0.8rem; width: 100%; text-align: left; border-radius: 8px; }
}