.custom-logo-link img,
.custom-logo,
.site-logo img {
	max-height: 70px !important;
	width: auto !important;
}

@media (max-width: 767px) {
	.custom-logo-link img,
	  .custom-logo,
	  .site-logo img {
		max-height: 50px !important;
	}
}

/* People bios: hide prev/next nav, related posts, and the Twitter widget */
.single-person .post-navigation,
.single-person .jp-relatedposts,
.single-person .widget_twitter_timeline {
	display: none !important;
}

/* Contact form submit button */
.jetpack-contact-form__form button.pushbutton-wide,
.contact-form button[type="submit"] {
	background-color: #10107b !important;
	border-color: #10107b !important;
	color: #ffffff !important;
}
.jetpack-contact-form__form button.pushbutton-wide:hover,
.contact-form button[type="submit"]:hover {
	background-color: #0b0b5c !important;
	border-color: #0b0b5c !important;
	color: #ffffff !important;
}

/* Custom post type singles (Research, People, Publications): hide empty "In ." category line, align content with the header text */
.single-research .cat-links,
.single-person .cat-links,
.single-publication .cat-links,
.single-patient-material .cat-links {
	display: none !important;
}
.single-research .main .content,
.single-person .main .content,
.single-publication .main .content, .single-patient-material .main .content,
.single-post.no-sidebar .main .content {
	margin-left: 0 !important;
}
@media (max-width: 767px) {
	.single-research .main .content,
	.single-person .main .content,
	.single-publication .main .content, .single-patient-material .main .content,
	.single-post.no-sidebar .main .content {
		margin-left: auto !important;
	}
}

/* ===== Footer redesign ===== */
.site-footer { background: #14212E !important; color: #DCE3EA; padding: 72px 0 0 !important; }
.site-footer .footer-widgets { margin: 0 !important; padding: 0 !important; }
.site-footer .footer-widgets .widget { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.mk-footer { display: grid; grid-template-columns: 1.3fr 1.1fr 0.9fr; gap: 48px 56px; align-items: start; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.mk-footer a { color: #DCE3EA; text-decoration: none; }
.mk-footer a:hover { color: #FFFFFF; }
.mk-footer__logo { display: block; overflow: hidden; height: 46px; width: calc(46px * 1080 / 186); }
.mk-footer__logo img { height: 46px !important; width: auto !important; max-width: none !important; max-height: none !important; display: block; margin-left: calc(-46px * 220 / 186); }
.mk-footer__tagline { color: #B4C0CC; font-size: 1.05rem; line-height: 1.6; margin: 24px 0 28px; max-width: 420px; }
.mk-footer__social { display: flex; gap: 12px; }
.mk-footer__social a { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.28); display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; transition: border-color .15s, background .15s; }
.mk-footer__social a:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.08); }
.mk-footer__label { font-family: inherit; color: #9FB0C0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 22px; font-family: inherit; }
.mk-footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 14px; grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
.mk-footer__links li { margin: 0; }
.mk-footer__links a { font-size: 1.1rem; line-height: 1.3; white-space: nowrap; }
.mk-footer__place { color: #F2B872; font-weight: 700; font-size: 1.1rem; margin: 0 0 6px; }
.mk-footer__addr { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55; }
.mk-footer__addr a { text-decoration: none; }
.mk-footer__phone { margin: 0; }
.mk-footer__phone a { color: #9CC9F0; text-decoration: underline; text-underline-offset: 4px; font-size: 1.05rem; }
.mk-footer__bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 24px; padding: 26px 0 0; color: #9FB0C0; font-size: 0.95rem; }
/* WordPress.com credit sits on the bottom bar, right side */
.site-footer .site-info { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; padding: 0 0 28px !important; margin: -28px 0 0 !important; text-align: right !important; color: #9FB0C0; font-size: 0.95rem; border: 0 !important; }
.site-footer .site-info a { color: #9FB0C0; }
.site-footer .site-info::before { content: ""; display: inline-block; width: 24px; height: 24px; margin-right: 10px; vertical-align: middle; background: url(https://mckernanlab.com/wp-content/uploads/2026/10/cropped-mckernan-lab-favicon.png) center / contain no-repeat; }
@media (max-width: 900px) {
  .mk-footer { grid-template-columns: 1fr; gap: 44px; }
  .mk-footer__bottom { margin-top: 8px; }
  .site-footer .site-info { text-align: left !important; margin: 12px 0 0 !important; }
}

/* ===== Homepage hero redesign ===== */
.home .site-header { background-image: none !important; background-color: #14212E !important; }
.home .site-header::before, .home .site-header::after { display: none !important; }
.home .site-header .header-inner.container { max-width: 1100px !important; width: 100% !important; padding: 56px 0 96px !important; text-align: left !important; }
.mk-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.mk-hero__title { color: #FFFFFF !important; font-size: clamp(2.2rem, 3.9vw, 3.4rem); line-height: 1.12; margin: 0 0 28px !important; text-align: left; text-transform: none !important; letter-spacing: 0; font-weight: 400; }
.mk-hero__sub { color: #B4C0CC; font-size: 1.25rem; line-height: 1.5; margin: 0 0 28px; }
.mk-hero__pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); color: #F2B872; font-weight: 600; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; margin: 0 0 28px; }
.mk-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #F2B872; display: inline-block; }
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.mk-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 6px; font-weight: 600; font-size: 1.05rem; text-decoration: none !important; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.mk-btn--primary { background: #F2B872; color: #14212E !important; border: 1.5px solid #F2B872; }
.mk-btn--primary:hover { background: #F7C78F; border-color: #F7C78F; }
.mk-btn--ghost { background: transparent; color: #FFFFFF !important; border: 1.5px solid rgba(255,255,255,0.35); }
.mk-btn--ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.06); }
.mk-hero__media { aspect-ratio: 1.22 / 1; border-radius: 14px; overflow: hidden; }
.mk-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; transform: none; }
/* nav: Contact as an outlined button (site-wide) */
.site-navigation .nav-menu > li#menu-item-7 > a { border: 1.5px solid rgba(255,255,255,0.6); border-radius: 6px; padding: 10px 22px !important; margin-left: 14px; }
.site-navigation .nav-menu > li#menu-item-7 > a:hover { background: #FFFFFF; color: #14212E !important; }
@media (max-width: 900px) {
  .mk-hero { grid-template-columns: 1fr; gap: 40px; }
  .mk-hero__media { order: 2; aspect-ratio: 1.45 / 1; }
  .mk-hero__title { font-size: clamp(2.3rem, 9vw, 2.9rem); margin-bottom: 20px !important; }
  .mk-hero__sub { font-size: 1.2rem; margin-bottom: 24px; }
  .mk-hero__actions { flex-direction: column; gap: 14px; }
  .mk-btn { width: 100%; justify-content: center; padding: 18px 24px; }
  .home .site-header .header-inner.container { padding: 28px 0 56px !important; }
}

/* Footer: legal links + yellow social icons */
.mk-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; }
.mk-footer__bottom .mk-footer__legal { color: #9CC9F0 !important; }
.mk-footer__bottom .mk-footer__legal:hover { color: #FFFFFF !important; }
.mk-footer__bottom .mk-footer__copy::after { content: ""; margin-right: 24px; }
.mk-footer__bottom .mk-footer__legal + .mk-footer__legal::before { content: "|"; color: #9FB0C0; margin: 0 14px; display: inline-block; }
.mk-footer__social a { color: #F2B872 !important; border-color: rgba(242,184,114,0.45) !important; }
.mk-footer__social a:hover { border-color: #F2B872 !important; background: rgba(242,184,114,0.1) !important; }

/* ===== Category / tag archive grid (matches Media grid) ===== */
body.archive:not(.post-type-archive) #main #content {
  --w: min(1100px, calc(100vw - 48px));
  width: var(--w) !important; max-width: none !important; float: none !important;
  margin-left: calc(50% - var(--w)/2) !important; margin-right: 0 !important;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: stretch;
}
body.archive:not(.post-type-archive) #content > article {
  position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important;
  background: #fff; border-radius: 4px; box-shadow: 0 0 12px rgba(0,0,0,.08);
  display: flex; flex-direction: column; overflow: hidden;
}
body.archive:not(.post-type-archive) #content > article::before,
body.archive:not(.post-type-archive) #content > article::after { display: none !important; }
body.archive:not(.post-type-archive) #content .entry-media { margin: 0 !important; }
body.archive:not(.post-type-archive) #content .entry-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; margin: 0;
}
body.archive:not(.post-type-archive) #content .entry-text {
  padding: 24px 24px 20px !important; margin: 0 !important; width: auto !important; max-width: none !important;
  display: flex; flex-direction: column; flex: 1; text-align: left;
}
body.archive:not(.post-type-archive) #content .entry-text::after {
  content: "Read \2192"; margin-top: auto; padding-top: 14px; font-size: .95rem; font-weight: 600; color: #10107B;
}
body.archive:not(.post-type-archive) #content .entry-header { margin: 0 !important; padding: 0 !important; text-align: left; }
body.archive:not(.post-type-archive) #content .entry-meta { margin: 0 0 6px !important; font-size: .8rem; color: #444; text-align: left; }
body.archive:not(.post-type-archive) #content .entry-meta a { color: #444 !important; }
body.archive:not(.post-type-archive) #content .entry-title {
  font-family: "PT Serif", serif; font-size: 1.15rem !important; font-weight: 700; line-height: 1.3; margin: 0 0 12px !important; text-align: left;
}
body.archive:not(.post-type-archive) #content .entry-title a { color: #000 !important; }
body.archive:not(.post-type-archive) #content .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.archive:not(.post-type-archive) #content .entry-summary { margin: 0 !important; padding: 0 !important; font-size: .95rem; line-height: 1.6; color: #444; text-align: left; }
body.archive:not(.post-type-archive) #content .entry-summary p { margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
body.archive:not(.post-type-archive) #content .entry-summary .edit-link { display: none; }
body.archive:not(.post-type-archive) #content > :not(article) { grid-column: 1 / -1; }
@media (max-width: 900px) { body.archive:not(.post-type-archive) #main #content { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { body.archive:not(.post-type-archive) #main #content { grid-template-columns: 1fr; } }


/* ===== File download blocks (PDFs): navy link + navy button ===== */
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.wp-block-file a:not(.wp-block-file__button) { color: #10107B !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wp-block-file a:not(.wp-block-file__button):hover { color: #14212E !important; }
.wp-block-file .wp-block-file__button {
  background: #10107B !important; color: #fff !important; border-radius: 4px; margin-left: 0 !important;
  padding: 8px 18px !important; font-weight: 600; font-size: .9rem; text-decoration: none !important; line-height: 1.4;
}
.wp-block-file .wp-block-file__button:hover { background: #14212E !important; color: #fff !important; }


/* ===== Header: smaller logo + sticky nav (navy on scroll) ===== */
.site-header .custom-logo { max-height: 52px !important; width: auto !important; }
body.mk-sticky #masthead { padding-top: 105px; }
body.mk-sticky #masthead .navbar {
  position: fixed; top: 0; left: 0; right: 0; width: auto !important; z-index: 1000;
  padding-top: 25px; padding-bottom: 0;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
body.mk-sticky.mk-scrolled #masthead .navbar {
  background-color: #14212E; box-shadow: 0 2px 14px rgba(0,0,0,.25);
  padding-top: 10px; padding-bottom: 10px;
}
body.mk-sticky.mk-scrolled #masthead .custom-logo { max-height: 44px !important; }

/* ===== Contact page redesign (page 2) ===== */
body.page-id-2 #masthead { background-image: none !important; background-color: #14212E !important; padding-bottom: 0 !important; }
body.page-id-2 #masthead::before, body.page-id-2 #masthead::after { display: none !important; }
body.page-id-2 #masthead .header-inner { display: none !important; }
body.page-id-2 #main { padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; }
body.page-id-2 #main #content, body.page-id-2 #main article, body.page-id-2 #main .entry-content { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; float: none !important; }
body.page-id-2 { overflow-x: hidden; background: #F4F6F9; }
.mk-contact-wrap { width: min(1100px, calc(100vw - 48px)); margin: 0 auto; }
.mk-contact-hero, .mk-contact-body { width: 100vw; margin-left: calc(50% - 50vw); }
.mk-contact-hero { background: #14212E; color: #fff; padding: 40px 0 80px; }
.mk-contact-hero__title { font-family: "PT Serif", serif; color: #fff !important; font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1.1; margin: 0 0 16px !important; text-transform: none !important; letter-spacing: 0 !important; text-align: left; font-weight: 400; }
.mk-contact-hero__sub { color: #C9D3DE; font-size: 1.2rem; line-height: 1.6; max-width: 640px; margin: 0 !important; }
.mk-contact-body { background: #F4F6F9; padding: 64px 0 96px; }
.mk-contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.mk-contact-h2 { font-family: "PT Serif", serif; font-size: 1.9rem !important; color: #14212E !important; margin: 0 0 20px !important; font-weight: 700; text-align: left; }
.mk-contact-main form.contact-form, .mk-contact-main .wp-block-jetpack-contact-form { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.mk-contact-main label { display: block; font-weight: 700; color: #14212E; font-size: 1.05rem; margin: 0 0 10px; }
.mk-contact-main label span { font-weight: 400; color: #5B6B7B; }
.mk-contact-main input[type=text], .mk-contact-main input[type=email], .mk-contact-main textarea {
  width: 100% !important; max-width: none !important; background: #fff !important; border: 1px solid #9FB0C0 !important; border-radius: 6px !important;
  padding: 14px 16px !important; font-size: 1rem; color: #14212E; box-shadow: none !important; margin: 0 0 22px !important; box-sizing: border-box;
}
.mk-contact-main input:focus, .mk-contact-main textarea:focus { outline: 2px solid #10107B; outline-offset: 1px; border-color: #10107B !important; }
.mk-contact-main textarea { min-height: 220px; }
.mk-contact-main button[type=submit], .mk-contact-main input[type=submit], .mk-contact-main .wp-block-button__link {
  background: #14212E !important; color: #fff !important; border: 0 !important; border-radius: 6px !important;
  padding: 16px 36px !important; font-size: 1.05rem !important; font-weight: 700 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important;
}
.mk-contact-main button[type=submit]:hover, .mk-contact-main .wp-block-button__link:hover { background: #10107B !important; }
.mk-contact-side { display: flex; flex-direction: column; gap: 28px; }
.mk-card { background: #fff; border: 1px solid #DCE3EA; border-radius: 14px; padding: 36px 34px; }
.mk-card--study { background: #14212E; border-color: #14212E; }
.mk-eyebrow { font-size: .78rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #4A5A6A; margin: 0 0 18px !important; }
.mk-eyebrow--yellow { color: #F2B872; }
.mk-card__title { font-family: "PT Serif", serif; color: #fff !important; font-size: 1.6rem !important; line-height: 1.3; margin: 0 0 16px !important; font-weight: 700; text-align: left; }
.mk-card__text { color: #DCE3EA; font-size: 1.05rem; line-height: 1.65; margin: 0 0 26px !important; }
.mk-contact-btn { display: inline-flex; align-items: center; gap: 10px; background: #F2B872; color: #14212E !important; font-weight: 700; padding: 14px 26px; border-radius: 6px; text-decoration: none !important; font-size: 1.05rem; }
.mk-contact-btn:hover { background: #F5C88E; }
.mk-linklist { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mk-linklist li { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #DCE3EA; list-style: none !important; }
.mk-linklist li:last-child { border-bottom: 0; }
.mk-linklist li::before { display: none !important; }
.mk-linklist a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; color: #10107B !important; font-weight: 600; font-size: 1.1rem; text-decoration: none !important; }
.mk-linklist li:first-child a { padding-top: 4px; }
.mk-linklist a:hover { color: #14212E !important; }
.mk-visit { margin: 0 0 16px !important; font-size: 1.1rem; line-height: 1.6; color: #14212E; }
.mk-visit a { color: #10107B !important; text-decoration: none !important; }
.mk-visit a:hover { text-decoration: underline !important; }
.mk-contact__social { display: flex; gap: 16px; margin-top: 22px; }
.mk-contact__social a { width: 52px; height: 52px; border: 1px solid #B4C0CC; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #14212E !important; text-decoration: none !important; }
.mk-contact__social a:hover { border-color: #10107B; color: #10107B !important; }
@media (max-width: 900px) {
  .mk-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-contact-hero { padding: 24px 0 48px; }
  .mk-contact-hero__sub { font-size: 1.1rem; }
  .mk-contact-body { padding: 32px 0 64px; }
  .mk-contact-main button[type=submit], .mk-contact-main .wp-block-button__link, .mk-contact-main .wp-block-button { width: 100% !important; }
  .mk-card { padding: 28px 24px; }
  .mk-contact-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}

.mk-contact-main .contact-form button.pushbutton-wide { width: auto !important; margin-top: 0 !important; }
.mk-contact-main .contact-form .grunion-field-textarea-wrap, .mk-contact-main .contact-form .grunion-field-wrap { margin-bottom: 0 !important; }
@media (max-width: 900px) { .mk-contact-main .contact-form button.pushbutton-wide { width: 100% !important; } }

@media (max-width: 782px) { .home .mk-hero { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; } }

@media (min-width: 1024px) { #masthead .navbar, body.mk-sticky #masthead .navbar { padding-left: 60px !important; padding-right: 60px !important; } }


/* ===== Topic pills (Media + Projects "Browse by topic") ===== */
.media-cats .wp-block-categories { list-style: none !important; padding: 0 !important; margin: 0 0 8px !important; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.media-cats .wp-block-categories li { margin: 0 !important; list-style: none !important; }
.media-cats .wp-block-categories li::before { display: none !important; }
.media-cats .wp-block-categories a { display: inline-block; padding: 5px 12px; border: 1px solid #10107B; border-radius: 999px; color: #10107B !important; text-decoration: none !important; font-size: .85rem; line-height: 1.2; }
.media-cats .wp-block-categories a:hover { background: #10107B; color: #fff !important; }

body.archive:not(.post-type-archive) #content .more-link { display: none !important; }
body.archive.tax-research-topic:not(.post-type-archive) #content .entry-text::after { content: "View \2192"; }


/* ===== Projects page: research area cards, topic pills, study grid ===== */
.mk-research__h2 { font-family: "PT Serif", serif; color: #14212E !important; font-size: 2rem !important; font-weight: 700; text-align: left; }
.mk-areas { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.mk-area { background: #fff; border: 1px solid #DCE3EA; border-top: 4px solid #F2B872; border-radius: 10px; padding: 32px 30px 30px; display: flex; flex-direction: column; }
.mk-area__eyebrow, .mk-research__eyebrow { font-size: .75rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4A5A6A; margin: 0 0 14px !important; }
.mk-area__title { font-family: "PT Serif", serif; font-size: 1.6rem !important; line-height: 1.25; color: #14212E !important; font-weight: 700; margin: 0 0 16px !important; text-align: left; }
.mk-area__text { color: #3B4A59; font-size: 1rem; line-height: 1.65; margin: 0 0 24px !important; }
.mk-area__link { margin-top: auto; color: #10107B !important; font-weight: 700; text-decoration: none !important; }
.mk-area__link:hover { text-decoration: underline !important; }

.research-cats .mk-pillrow, .research-cats .mk-pillrow > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.research-cats .mk-pillrow .wp-block-categories { margin: 0 !important; gap: 10px 12px; }
.research-cats .mk-pillrow a, .mk-pill-all { display: inline-block; padding: 10px 20px !important; border: 1px solid #14212E !important; border-radius: 999px !important; color: #14212E !important; background: transparent; font-size: 1rem !important; font-weight: 600; line-height: 1.2; text-decoration: none !important; }
.research-cats .mk-pillrow a:hover { background: #14212E !important; color: #fff !important; }
.research-cats .mk-pillrow a.is-active { background: #14212E !important; color: #fff !important; }

.research-grid .wp-block-post-template > li { background: #fff; border: 1px solid #DCE3EA !important; border-radius: 10px !important; box-shadow: none !important; overflow: hidden; display: flex; flex-direction: column; padding: 0 !important; }
.research-grid .wp-block-post-featured-image { margin: 0 !important; }
.research-grid .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; border-radius: 0 !important; }
.research-grid .mk-rcard__body { padding: 24px 28px 26px !important; display: flex; flex-direction: column; flex: 1; margin: 0 !important; }
.research-grid .mk-rcard__body > .wp-block-group__inner-container { display: flex; flex-direction: column; flex: 1; }
.research-grid .mk-rcard__terms { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 14px !important; font-size: .8rem; }
.research-grid .mk-rcard__terms a { background: #EEF1F5; color: #14212E !important; padding: 4px 10px; border-radius: 999px; text-decoration: none !important; font-weight: 500; line-height: 1.3; }
.research-grid .mk-rcard__terms a:hover { background: #DCE3EA; }
.research-grid .mk-rcard__terms .wp-block-post-terms__separator { display: none; }
.research-grid .mk-rcard__title { font-family: "PT Serif", serif; font-size: 1.45rem !important; line-height: 1.25 !important; font-weight: 700 !important; margin: 0 0 12px !important; text-align: left; }
.research-grid .mk-rcard__title a { color: #14212E !important; text-decoration: none !important; }
.research-grid .mk-rcard__excerpt { margin: 0 0 18px !important; color: #3B4A59; font-size: 1rem; line-height: 1.65; }
.research-grid .mk-rcard__excerpt p { margin: 0 !important; }
.research-grid .mk-rcard__excerpt .wp-block-post-excerpt__more-text { display: none; }
.research-grid .mk-rcard__more { margin-top: auto !important; color: #10107B !important; font-weight: 700; text-decoration: none !important; font-size: 1rem; }
@media (max-width: 900px) { .mk-areas, .research-grid .wp-block-post-template { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .mk-areas, .research-grid .wp-block-post-template { grid-template-columns: 1fr !important; } }


/* ===== Unified card grid (matches Projects) for every Query Loop grid ===== */
.wp-block-post-template.is-layout-grid > li { background: #fff !important; border: 1px solid #DCE3EA !important; border-radius: 10px !important; box-shadow: none !important; overflow: hidden; }
.wp-block-post-template.is-layout-grid .wp-block-post-featured-image img { border-radius: 0 !important; }
.wp-block-post-template.is-layout-grid .wp-block-post-title { font-family: "PT Serif", serif !important; font-weight: 700 !important; line-height: 1.25 !important; }
.wp-block-post-template.is-layout-grid .wp-block-post-title a { color: #14212E !important; text-decoration: none !important; }
.wp-block-post-template.is-layout-grid .wp-block-post-excerpt__excerpt { color: #3B4A59 !important; line-height: 1.65; }
.wp-block-post-template.is-layout-grid .wp-block-read-more { color: #10107B !important; font-weight: 700 !important; text-decoration: none !important; }
.research-grid .mk-rcard__meta { font-size: .85rem; color: #5B6B7B; margin: -4px 0 12px !important; }
.media-grid .mk-rcard__terms a[href$="/category/media/"], .media-grid .mk-rcard__terms a[href$="/category/news/"] { display: none !important; }

/* Topic pills: same design on Media and Projects */
.media-cats .mk-pillrow, .media-cats .mk-pillrow > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.media-cats .mk-pillrow .wp-block-categories { margin: 0 !important; gap: 10px 12px; }
.media-cats .mk-pillrow a, .media-cats .mk-pill-all { display: inline-block; padding: 10px 20px !important; border: 1px solid #14212E !important; border-radius: 999px !important; color: #14212E !important; background: transparent; font-size: 1rem !important; font-weight: 600; line-height: 1.2; text-decoration: none !important; }
.media-cats .mk-pillrow a:hover, .media-cats .mk-pillrow a.is-active { background: #14212E !important; color: #fff !important; }
.media-cats > p, .media-cats .wp-block-group__inner-container > p:first-child { font-size: .75rem !important; font-weight: 700 !important; letter-spacing: .14em !important; color: #4A5A6A; }

/* Theme archive grids (category + research topic pages) */
body.archive:not(.post-type-archive) #content > article { border: 1px solid #DCE3EA !important; border-radius: 10px !important; box-shadow: none !important; }
body.archive:not(.post-type-archive) #content .entry-title a { color: #14212E !important; }
body.archive:not(.post-type-archive) #content .entry-text::after { font-weight: 700; }

.media-cats .mk-pillrow .wp-block-categories { display: contents !important; }


/* ===== Page headers: short banner, left-aligned title (matches /contact) ===== */
:is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703) #masthead { background-image: url(/wp-content/uploads/2026/11/mckernan-banner-dandelion.jpg) !important; background-size: cover !important; background-position: center !important; }
:is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703) #masthead::after { background: transparent !important; }
:is(.page-id-961,.page-id-1571) #masthead::after { background: rgba(20,33,46,.78) !important; }
:is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead { padding-bottom: 0 !important; }
:is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner {
  position: relative; z-index: 2; box-sizing: border-box;
  width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin: 0 auto !important;
  padding: 40px 0 0 !important; min-height: var(--mk-hdr, 272px); text-align: left !important;
}
:is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner h1, :is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner .page-title, :is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner .entry-title {
  font-family: "PT Serif", serif; color: #fff !important; font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1.1 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 400; text-align: left !important; margin: 0 !important;
}
/* Single posts / CPT items: same banner height, existing image, centered title */
body.single #masthead { padding-bottom: 0 !important; }
body.single #masthead .header-inner { position: relative; z-index: 2; padding: 40px 0 0 !important; min-height: var(--mk-hdr, 272px); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
body.single #masthead .header-inner { padding: 24px 0 !important; }

/* Contact: banner image behind the nav, same as the other pages */
body.page-id-2 #masthead { position: absolute !important; top: 0; left: 0; right: 0; background: transparent !important; padding: 0 !important; z-index: 20; }
body.page-id-2 .mk-contact-hero { background: #14212E url(/wp-content/uploads/2026/11/mckernan-banner-dandelion.jpg) center / cover no-repeat; padding-top: calc(var(--mk-nav, 87px) + 40px); }
@media (max-width: 900px) {
  body.page-id-2 .mk-contact-hero { padding-top: calc(var(--mk-nav, 70px) + 24px); }
  :is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner { padding-top: 24px !important; min-height: var(--mk-hdr-m, 200px); }
  body.single #masthead .header-inner { min-height: var(--mk-hdr-m, 200px); }
}

:root { --mk-hdr: 261px; }

/* Header titles: vertically centered in the banner */
:is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner { display: flex !important; flex-direction: column; justify-content: center; padding: 0 !important; }
body.page-id-2 .mk-contact-hero { box-sizing: border-box; display: flex; align-items: center; padding: var(--mk-nav, 87px) 0 0 !important; min-height: calc(var(--mk-nav, 87px) + var(--mk-hdr, 261px)); }
@media (max-width: 900px) {
  :is(.page-id-73,.page-id-14,.page-id-434,.page-id-779,.page-id-621,.page-id-703,.page-id-961,.page-id-1571) #masthead .header-inner { padding: 0 !important; }
  body.page-id-2 .mk-contact-hero { min-height: calc(var(--mk-nav, 70px) + var(--mk-hdr-m, 200px)); }
}


/* Nav Contact button: solid white at the top, outlined once the nav is sticky/navy */
body:not(.mk-scrolled) #site-navigation .menu-item-7 > a { background: #fff !important; color: #14212E !important; border-color: #fff !important; }
body:not(.mk-scrolled) #site-navigation .menu-item-7 > a:hover { background: #F2B872 !important; border-color: #F2B872 !important; color: #14212E !important; }

/* Less space between the banner and the page content (-40%) */
#main { margin-top: 66px !important; }
.entry-content > :first-child, .entry-content > .wp-block-group:first-child > :first-child, .entry-content > .wp-block-group:first-child > .wp-block-group__inner-container > :first-child { margin-top: 0 !important; }
@media (max-width: 782px) { #main { margin-top: 42px !important; } }
body.page-id-2 #main { margin-top: 0 !important; }

.entry-content > div.wp-block-group:first-of-type > .wp-block-group__inner-container > :first-child, .entry-content > div.wp-block-group:first-of-type > :first-child { margin-top: 0 !important; }


/* ===== Homepage: Recent Publications index list ===== */
.mk-pubteaser { margin-top: 110px !important; }
.mk-pubteaser > .wp-block-group__inner-container, .mk-pubteaser.is-layout-constrained { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 64px; align-items: start; }
.mk-pubteaser > .wp-block-group__inner-container > *, .mk-pubteaser > * { max-width: none !important; margin: 0 !important; }
.mk-pubteaser__h2 { font-family: "PT Serif", serif; font-size: 2.4rem !important; line-height: 1.15; color: #14212E !important; font-weight: 400; margin: 0 0 16px !important; text-align: left; }
.mk-pubteaser__sub { color: #4A5A6A; font-size: 1.05rem; line-height: 1.6; margin: 0 0 28px !important; }
.mk-pubteaser__all { display: block; color: #10107B !important; font-weight: 700; font-size: 1.05rem; text-decoration: none !important; margin-bottom: 14px; }
.mk-pubteaser__ncbi { display: block; color: #4A5A6A !important; font-size: .95rem; text-decoration: none !important; }
.mk-pubteaser__all:hover, .mk-pubteaser__ncbi:hover { text-decoration: underline !important; }
.mk-publist .wp-block-post-template { list-style: none !important; margin: 0 !important; padding: 0 !important; border-top: 2px solid #10107B; }
.mk-publist .wp-block-post-template > li { display: grid !important; grid-template-columns: 120px minmax(0,1fr) 28px; gap: 4px 28px; align-items: start; padding: 26px 0 !important; margin: 0 !important; border-bottom: 1px solid #DCE3EA; position: relative; list-style: none !important; }
.mk-publist .wp-block-post-template > li::before { display: none !important; }
.mk-publist .mk-publist__date { font-size: .8rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4A5A6A; margin: 4px 0 0 !important; }
.mk-publist .wp-block-post-template > li:first-child .mk-publist__date::after { content: "NEW"; display: block; width: max-content; margin-top: 12px; background: #10107B; color: #fff; font-size: .72rem; letter-spacing: .1em; padding: 4px 8px; border-radius: 4px; }
.mk-publist .mk-publist__title { font-family: "PT Serif", serif; font-size: 1.15rem !important; line-height: 1.4 !important; font-weight: 700 !important; margin: 0 !important; }
.mk-publist .mk-publist__title a { color: #14212E !important; text-decoration: none !important; }
.mk-publist .mk-publist__title a::after { content: ""; position: absolute; inset: 0; }
.mk-publist .wp-block-post-template > li::after { content: "\2192"; color: #10107B; font-size: 1.3rem; line-height: 1; grid-column: 3; grid-row: 1; justify-self: end; margin-top: 2px; }
.mk-publist .wp-block-post-template > li:hover .mk-publist__title a { color: #10107B !important; }
@media (max-width: 900px) {
  .mk-pubteaser > .wp-block-group__inner-container, .mk-pubteaser.is-layout-constrained { grid-template-columns: 1fr; gap: 28px; }
  .mk-publist .wp-block-post-template > li { grid-template-columns: minmax(0,1fr) 24px; }
  .mk-publist .mk-publist__date { grid-column: 1; }
  .mk-publist .mk-publist__title { grid-column: 1; }
  .mk-publist .wp-block-post-template > li::after { grid-column: 2; }
}

/* Topic pills: hide the structural Media / News categories everywhere */
.media-cats .cat-item-697360006, .media-cats .cat-item-697360007 { display: none !important; }

.mk-pubteaser, .mk-pubteaser * { text-align: left !important; }
.mk-publist .wp-block-post-template > li { background: transparent !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid #DCE3EA !important; border-radius: 0 !important; overflow: visible !important; }

body.page-id-621 .entry-content > .media-cats { --w: min(1100px, calc(100vw - 48px)); width: var(--w) !important; max-width: none !important; margin-left: calc(50% - var(--w)/2) !important; }


/* ===== Topic / category archive headers: dandelion banner, left title, same height ===== */
body.archive #masthead { background-image: url(/wp-content/uploads/2026/11/mckernan-banner-dandelion.jpg) !important; background-size: cover !important; background-position: center !important; padding-bottom: 0 !important; }
body.archive #masthead::after { background: transparent !important; }
body.archive #masthead .header-inner {
  position: relative; z-index: 2; box-sizing: border-box; display: flex !important; flex-direction: column; justify-content: center;
  width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin: 0 auto !important;
  padding: 0 !important; min-height: var(--mk-hdr, 261px); text-align: left !important;
}
body.archive #masthead .header-inner h1, body.archive #masthead .header-inner .page-title {
  font-family: "PT Serif", serif; color: #fff !important; font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1.1 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 400; text-align: left !important; margin: 0 !important;
}
@media (max-width: 900px) { body.archive #masthead .header-inner { min-height: var(--mk-hdr-m, 200px); } }

/* ===== Publications pagination ===== */
.mk-pagination { margin-top: 40px !important; gap: 8px; align-items: center; }
.mk-pagination a, .mk-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #DCE3EA; border-radius: 999px; color: #14212E !important; text-decoration: none !important; font-weight: 600; background: #fff; }
.mk-pagination .page-numbers.current { background: #14212E; border-color: #14212E; color: #fff !important; }
.mk-pagination a:hover { border-color: #14212E; }
.mk-pagination .page-numbers.dots { border: 0; background: transparent; }

/* ===== Homepage: light grey background after the hero (matches Contact) ===== */
body.home { background: #F4F6F9 !important; }
body.home #page, body.home #main, body.home .site-content, body.home #content, body.home article { background: transparent !important; }

/* ===== Nav: equal top and bottom padding (normal + sticky) ===== */
#masthead .site-branding { height: auto !important; gap: 0 !important; justify-content: center; }
#masthead .site-branding .site-name { display: none !important; }
#masthead .custom-logo-link { line-height: 0 !important; }
body.mk-sticky #masthead .navbar { padding-top: 20px !important; padding-bottom: 20px !important; align-items: center !important; }
body.mk-sticky.mk-scrolled #masthead .navbar { padding-top: 12px !important; padding-bottom: 12px !important; }

/* Standard content column: 1100px, lined up with the banner title (Publications uses the theme's wider "grid page" template) */
body.page-template-templatesgrid-page-php #main #content { width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }

#masthead .custom-logo-link { margin: 0 !important; }

@media (min-width: 1024px) { #site-navigation, #site-navigation .main-menu, #site-navigation .nav-menu { display: flex !important; align-items: center !important; } }
body.archive #masthead .header-inner h2 {
  font-family: "PT Serif", serif; color: #fff !important; font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1.1 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 400; text-align: left !important; margin: 0 !important;
}


/* ===== About: lab focus box (matches research area cards) ===== */
.mk-aboutbox { background: #fff; border: 1px solid #DCE3EA; border-top: 4px solid #F2B872; border-radius: 10px; padding: 32px 32px 28px !important; margin: 36px 0 !important; box-sizing: border-box; }
.mk-aboutbox > .wp-block-group__inner-container > *, .mk-aboutbox > * { max-width: none !important; }
.mk-aboutbox h3 { margin-top: 0 !important; margin-bottom: 16px !important; color: #14212E !important; }
.mk-aboutbox ul { margin: 0 0 22px !important; }
.mk-aboutbox ul li { color: #3B4A59; line-height: 1.65; margin-bottom: 6px; }
.mk-aboutbox__cta { margin: 0 !important; }
.mk-aboutbox__cta a { color: #10107B !important; font-weight: 700; text-decoration: none !important; font-size: 1.05rem; }
.mk-aboutbox__cta a:hover { text-decoration: underline !important; }
@media (max-width: 600px) { .mk-aboutbox { padding: 24px 22px 22px !important; } }

.mk-contact-main .wp-block-jetpack-button button[type=submit] { line-height: 1.4 !important; margin-top: 0 !important; }
.mk-contact-main .wp-block-jetpack-button { margin-top: 0 !important; }


/* Homepage team carousel: arrows left, "Meet the full team" text link right, one line */
.team-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(1100px, calc(100vw - 48px)); margin: 20px auto 0; }
.team-bar .team-nav { margin: 0 !important; justify-content: flex-start !important; }
.team-bar .team-all { color: #10107B !important; font-weight: 700; font-size: 1.05rem; text-decoration: none !important; white-space: nowrap; }
.team-bar .team-all:hover { text-decoration: underline !important; }


/* ===== Featured person (People Type: Featured): always first, pale yellow card ===== */
.wp-block-post-template > li.person-type-featured { order: -1; background: #FCF1DE !important; border-color: #F2B872 !important; }
.wp-block-post-template > li.person-type-featured .wp-block-group { background: transparent !important; }


/* ===== People profiles: basic banner + two-column layout with photo card on the right ===== */
body.single-person #masthead { background-image: url(/wp-content/uploads/2026/11/mckernan-banner-dandelion.jpg) !important; background-size: cover !important; background-position: center !important; padding-bottom: 0 !important; }
body.single-person #masthead::after { background: transparent !important; }
body.single-person #masthead .header-inner {
  position: relative; z-index: 2; box-sizing: border-box; display: flex !important; flex-direction: column; justify-content: center;
  width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin: 0 auto !important;
  padding: 0 !important; min-height: var(--mk-hdr, 261px); text-align: left !important;
}
body.single-person #masthead .header-inner .entry-date-wrapper, body.single-person #masthead .header-inner .entry-meta { display: none !important; }
body.single-person #masthead .header-inner .entry-title {
  font-family: "PT Serif", serif; color: #fff !important; font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1.1 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 400; text-align: left !important; margin: 0 !important;
}
body.single-person:not(.mk-person-ready) #content .entry-content { visibility: hidden; }
body.single-person #main #content { width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }
body.single-person #content article, body.single-person #content .entry-content { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.mk-person { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.mk-person__main > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.mk-person__name { font-family: "PT Serif", serif; font-size: 2rem !important; line-height: 1.2 !important; color: #14212E !important; font-weight: 700; margin: 0 0 22px !important; text-align: left; }
.mk-person__main p { color: #3B4A59; line-height: 1.75; font-size: 1.02rem; }
.mk-person__main h3 { font-family: "PT Serif", serif; color: #14212E !important; font-size: 1.5rem !important; margin: 36px 0 14px !important; text-align: left; }
.mk-person__side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--mk-nav, 92px) + 32px); }
.mk-person__card { background: #fff; border: 1px solid #DCE3EA; border-top: 4px solid #F2B872; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(20,33,46,.06); }
.mk-person__card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.mk-person__card img + img { border-top: 1px solid #DCE3EA; }
.mk-person__cap { padding: 18px 22px 20px; }
.mk-person__cap strong { display: block; font-size: 1.05rem; color: #14212E; font-weight: 700; margin-bottom: 4px; }
.mk-person__cap span { display: block; color: #4A5A6A; font-size: .95rem; line-height: 1.5; }
.mk-person__cta { background: #14212E; border-radius: 10px; padding: 26px 26px 28px; }
.mk-person__eyebrow { color: #F2B872 !important; font-size: .75rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px !important; }
.mk-person__cta h3 { font-family: "PT Serif", serif; color: #fff !important; font-size: 1.4rem !important; line-height: 1.25; margin: 0 0 10px !important; text-align: left; font-weight: 700; }
.mk-person__cta p:not(.mk-person__eyebrow) { color: #DCE3EA; font-size: .98rem; line-height: 1.6; margin: 0 0 20px !important; }
.mk-person__btn { display: flex; justify-content: center; align-items: center; gap: 8px; background: #F2B872; color: #14212E !important; font-weight: 700; padding: 13px 20px; border-radius: 6px; text-decoration: none !important; }
.mk-person__btn:hover { background: #F5C88E; }
@media (max-width: 900px) {
  .mk-person { grid-template-columns: 1fr; gap: 32px; }
  .mk-person__side { position: static; order: -1; }
  .mk-person__card img { aspect-ratio: 4 / 3; }
  body.single-person #masthead .header-inner { min-height: var(--mk-hdr-m, 200px); }
}

.mk-person__pics.is-multi { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #DCE3EA; }
.mk-person__pics.is-multi img { aspect-ratio: 4 / 5; border-top: 0 !important; }
.mk-person__pics.is-multi img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.mk-person__main .wp-block-button__link { background: #9CC9F0 !important; color: #14212E !important; border-radius: 6px !important; padding: 10px 22px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .98rem !important; line-height: 1.4 !important; }
.mk-person__main .wp-block-button__link:hover { background: #B9D9F5 !important; }


/* ===== All single posts + custom post types: standard dandelion banner ===== */
body.single #masthead { background-image: url(/wp-content/uploads/2026/11/mckernan-banner-dandelion.jpg) !important; background-size: cover !important; background-position: center !important; padding-bottom: 0 !important; }
body.single #masthead::after { background: transparent !important; }
body.single #masthead .header-inner {
  position: relative; z-index: 2; box-sizing: border-box; display: flex !important; flex-direction: column; justify-content: center;
  width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin: 0 auto !important;
  padding: 24px 0 !important; min-height: var(--mk-hdr, 261px); text-align: left !important;
}
body.single #masthead .header-inner .entry-title {
  font-family: "PT Serif", serif; color: #fff !important; font-size: clamp(1.9rem, 3.6vw, 2.7rem) !important; line-height: 1.18 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 400; text-align: left !important; margin: 0 !important; max-width: 900px;
}
body.single-person #masthead .header-inner .entry-title { font-size: clamp(2.4rem, 5vw, 3.6rem) !important; }
body.single #masthead .header-inner .entry-date-wrapper { order: -1; color: #F2B872 !important; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px !important; text-decoration: none !important; }
body.single #masthead .header-inner .entry-date-wrapper * { color: #F2B872 !important; }
body.single #masthead .header-inner .entry-meta { display: none !important; }
body.single-publication #masthead .header-inner .entry-date-wrapper, body.single-research #masthead .header-inner .entry-date-wrapper, body.single-patient-material #masthead .header-inner .entry-date-wrapper { display: none !important; }
@media (max-width: 900px) { body.single #masthead .header-inner { min-height: var(--mk-hdr-m, 200px); } }

/* Singles: content column starts where the banner title starts */
body.single:not(.single-person) #main #content { width: min(1100px, calc(100vw - 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }
body.single:not(.single-person) #content article { width: auto !important; max-width: 780px !important; margin: 0 !important; padding: 0 !important; }
body.single:not(.single-person) #content .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
body.single .entry-content a:not(.wp-block-button__link):not(.wp-block-file__button) { color: #10107B !important; }

/* No Share / Like buttons on blog posts (matches pages) */
body.single .sharedaddy, body.single #jp-post-flair, body.single .sd-sharing-enabled, body.single .sd-like, body.single .jetpack-likes-widget-wrapper { display: none !important; }

/* Projects intro: text left, publications box right */
.mk-proj-intro { align-items: flex-start !important; }
.mk-proj-intro .pub-teaser--side { flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 22px !important; margin-top: 6px !important; padding: 30px 30px 32px !important; }
.mk-proj-intro .pub-teaser--side > * { max-width: none !important; margin: 0 !important; }
.mk-proj-intro .pub-teaser--side .wp-block-buttons { margin: 0 !important; }
@media (max-width: 781px) { .mk-proj-intro .pub-teaser--side { margin-top: 8px !important; } }

.mk-proj-intro { margin-top: 36px !important; }
@media (max-width: 781px) { .mk-proj-intro { margin-top: 24px !important; } }
