/* Layout and responsive rules shared by the front end and block editor. */
:root, .editor-styles-wrapper {
 --msi-bg: var(--wp--preset--color--background, #121212);
 --msi-panel: var(--wp--preset--color--panel, #1e1e1e);
 --msi-panel-soft: #181a1e;
 --msi-text: var(--wp--preset--color--text, #e4e7eb);
 --msi-muted: var(--wp--preset--color--muted, #a7adb6);
 --msi-link: var(--wp--preset--color--link, #8fb4e8);
 --msi-border: var(--wp--preset--color--border, #343b46);
}
.msi-site-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; max-width:1360px; margin:auto; padding:24px 28px 0; }
.msi-standard-page { max-width:1360px; margin:auto; padding:32px 28px; }
.msi-standard-page:has(.msi-page) { padding:0; }
.msi-page > *, .msi-main > *, .msi-cv-grid > *, .msi-cv-row > * { min-width:0; }
.msi-main, .msi-section { overflow-wrap:anywhere; }
.msi-main > .wp-block-post-content { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; min-width:0; }
.msi-main > .wp-block-post-content > * { min-width:0; }
.msi-profile__photo { margin:0; }
.msi-profile__icon { margin:0; flex:0 0 46px; }
.msi-profile__bio a { color:var(--msi-link); }
.msi-cv-button { margin:0; padding:0; border:0; }
.msi-cv-button a { display:inline-block; padding:6px 10px; border:1px solid #4a5360; border-radius:6px; font-size:.86rem; text-decoration:none; }
.msi-section__heading .msi-cv-button { padding:0; border:0; }
.msi-paper__resources, .msi-cv__links { white-space:normal; }
.msi-paper__resources { margin-bottom:0; }
.msi-cv-row .msi-cv-detail { margin-top:3px; font-size:smaller; }
.msi-cv-description .msi-cv__links { margin-top:10px; }
.msi-page :is(a:hover, a:focus-visible) { color:#fff; }
a:focus-visible { outline:2px solid var(--msi-link); outline-offset:4px; }
.wp-block-navigation__submenu-container { background:var(--msi-panel-soft); border:1px solid var(--msi-border); padding:8px; border-radius:8px; }
body.admin-bar .msi-sidebar { top:60px; }
@media(max-width:600px) { .msi-site-header { padding-inline:10px; } }
.msi-page,
.msi-page * {
	box-sizing: border-box;
}

.msi-page {
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 4vw, 44px);
	width: min(100%, 1360px);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 28px) 36px;
	background: var(--msi-bg);
	color: var(--msi-text);
	font: 16px/1.65 Inter, Arial, sans-serif;
}

.msi-sidebar {
	position: sticky;
	top: 28px;
}

.msi-profile {
	align-self: start;
	max-height: calc(100vh - 56px);
	overflow-y: auto;
	padding: 22px;
	border-radius: 12px;
	background: #151515;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
}

.msi-profile__photo img, img.msi-profile__photo {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 9;
	margin: 0 auto;
	border-radius: 8px;
	object-fit: cover;
}

.msi-profile__bio {
	margin: 20px 0 0;
	color: #c8cbd0;

	text-align: center;

	font-size: 15px;
	line-height: 1.65;
	hyphens: none;
}

.msi-profile__icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: 24px;
}

.msi-profile__icons img {
	display: block;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.msi-main {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.msi-section {
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid rgba(255, 255, 255, .035);
	border-radius: 12px;
	background: var(--msi-panel);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}

.msi-section > h2,
.msi-section__heading h2 {
	margin: 0;
	color: var(--msi-link);
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	font-weight: 500;
	line-height: 1.2;
}

.msi-section__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.msi-paper {
	padding: 20px 0;
	border-bottom: 1px solid var(--msi-border);
}

.msi-paper:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.msi-paper h3 {
	margin: 0 0 7px;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 600;
	line-height: 1.45;
}

.msi-paper__meta {
	margin: 4px 0;
	color: var(--msi-muted);
}

.msi-paper__resources,
.msi-cv__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 10px;
	font-size: .9rem;
}

.msi-paper__resources a,
.msi-cv__links a {
	text-decoration: none;
}

.msi-cv-button {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid #4a5360;
	border-radius: 6px;
	font-size: .86rem;
	text-decoration: none;
}

.msi-cv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.msi-cv-group h3 {
	margin: 0 0 10px;
	color: #b8d1f2;
	font-size: 1.15rem;
	font-weight: 500;
}

.msi-cv-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.msi-cv-row:last-child {
	border-bottom: 0;
}

.msi-cv-date {
	color: var(--msi-muted);
	font-size: .88rem;
}

.msi-cv-row p {
	margin: 0;
}

.msi-cv-detail {
	display: block;
	margin-top: 3px;
	color: var(--msi-muted);
	line-height: 1.45;
}

@media (max-width: 900px) {
	.msi-page {
		grid-template-columns: 1fr;
	}

	.msi-sidebar {
		position: static;
	}

	.msi-profile {
		max-height: none;
		overflow: visible;
	}

	.msi-profile__photo img, img.msi-profile__photo {
		width: 100%;
	}

	.msi-cv-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.msi-page {
		padding-inline: 10px;
	}

	.msi-section,
	.msi-profile {
		padding: 18px;
	}

	.msi-cv-row {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px;
		background: var(--msi-panel-soft);
	}
}


/* Native teaching lists: align markers and keep wrapped links within the card. */
.msi-teaching > p { margin:0 0 1em; }
.msi-teaching > h2 { margin:1em 0 .4em; font-size:1.5rem; font-weight:400; line-height:1.35; color:#a6c8ff; }
.msi-teaching > ul { margin:.4em 0 1em; padding-left:1.5em; line-height:1.7; }
.msi-teaching li + li { margin-top:.35em; }
.msi-teaching li a { text-decoration:none; }

/* Small decorative institution icons beside the profile links. */
.msi-profile__bio a::before { content:""; display:inline-block; width:16px; height:16px; margin-right:4px; vertical-align:-2px; border-radius:50%; background:center / contain no-repeat; }
.msi-profile__bio a[href="http://econ.bilkent.edu.tr/"]::before { background-image:url("https://mahmutsipek.com/wp-content/uploads/2026/11/bilkent-university-emblem.png"); }
.msi-profile__bio a[href="https://www.crest.fr/"]::before { background-image:url("https://i0.wp.com/crest.science/wp-content/uploads/2016/09/Favicon.png?ssl=1"); }
.msi-profile__bio a[href="https://eabcn.org/dbc/about/members"]::before { background-image:url("https://eabcn.org/themes/custom/eabcn2/assets/favicon/favicon-16x16.png"); }

/* Shared title typography, including teaching headings and editor previews. */
.msi-page :is(h1,h2,h3,h4,h5,h6), .editor-styles-wrapper :is(h1,h2,h3,h4,h5,h6), .wp-block-site-title { font-family:var(--wp--preset--font-family--abyssinica-sil, "Abyssinica SIL", serif); }

/* Link presentation shared by all public pages and editor previews. */
.wp-site-blocks a, .editor-styles-wrapper a { text-decoration:none !important; }

/* Keep the CV download at the top left without a section title. */
#cv > .msi-section__heading { justify-content:flex-start; }

/* Poster-inspired site design: pale paper, copper outlines and sage accents. */
:root, .editor-styles-wrapper {
 --msi-bg:#FCFBF8; --msi-panel:#FCFBF8; --msi-panel-soft:#E3EDE8;
 --msi-text:#132019; --msi-muted:#45665D; --msi-link:#37694E; --msi-border:#D98719;
}
body, .editor-styles-wrapper, .msi-page { background:#FCFBF8; color:#132019; font-family:Figtree, sans-serif; }
h1, h2, h3, h4, h5, h6, .wp-block-site-title, .msi-section h2, .msi-paper h3, .msi-cv-group h3, .msi-teaching h2 { font-family:"Geist Serif", Georgia, serif; color:#132019; font-weight:400; }
a, .msi-profile__bio a { color:#37694E; }
a:hover, .msi-page :is(a:hover,a:focus-visible) { color:#9E471E; }
.msi-site-header { max-width:1304px; margin:24px auto 0; padding:24px 28px; background:#E3EDE8; border:1px solid #D98719; border-radius:8px; }
.msi-site-header .wp-block-site-title a { color:#132019; }
.msi-site-header .wp-block-navigation, .wp-block-navigation__responsive-container.is-menu-open { color:#132019; background:#E3EDE8; }
.wp-block-navigation__submenu-container { background:#FCFBF8; border-color:#D98719; }
.msi-profile, .msi-section { background:#FCFBF8; border:1px solid #D98719; border-radius:8px; box-shadow:none; }
.msi-profile { background:#E3EDE8; }
.msi-profile__bio { color:#132019; }
.msi-section > h2, .msi-section__heading h2, .msi-cv-group h3, .msi-teaching > h2 { color:#132019; }
.msi-paper, .msi-cv-row { border-color:#D9C4B7; }
.msi-cv-button a { border-color:#D98719; border-radius:5px; }
.msi-eagd { --eagd-bg:#FCFBF8; --eagd-panel:#FCFBF8; --eagd-chart:#FCFBF8; --eagd-text:#132019; --eagd-muted:#45665D; --eagd-link:#37694E; --eagd-link-hover:#9E471E; --eagd-border:#D98719; --eagd-grid:rgba(145,81,54,.18); font-family:Figtree,sans-serif; }
.msi-eagd__header h1 { color:#132019; font-family:"Geist Serif",Georgia,serif; }
@media(max-width:600px) { .msi-site-header { margin:10px 10px 0; padding:18px; } }

/* Navigation menus follow the poster palette, including WordPress's overlay. */
.msi-site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
 background:#FCFBF8; border:1px solid #D98719; border-radius:8px; padding:7px;
 box-shadow:0 5px 16px rgba(19,32,25,.10); color:#132019;
}
.msi-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
 display:block; padding:10px 12px; border-radius:4px; color:#132019; font-family:Figtree,sans-serif; font-size:1rem;
}
.msi-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:is(:hover,:focus-visible) { background:#E3EDE8; color:#9E471E; }
.msi-site-header .wp-block-navigation__responsive-container.is-menu-open { background:#E3EDE8; color:#132019; }
.msi-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background:transparent; border:0; box-shadow:none; padding:0 0 0 16px; }
.msi-site-header .wp-block-navigation__responsive-container.is-menu-open a { color:#132019; }
.msi-site-header .wp-block-navigation__responsive-container.is-menu-open a:is(:hover,:focus-visible) { color:#9E471E; }
.msi-site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) { background:#E3EDE8; color:#132019; }

/* Use the poster's Figtree family, including its light and italic faces. */
@font-face { font-family:Figtree; src:url('../fonts/Figtree-variable.ttf') format('truetype'); font-style:normal; font-weight:300 900; font-display:swap; }
@font-face { font-family:Figtree; src:url('../fonts/Figtree-Italic-variable.ttf') format('truetype'); font-style:italic; font-weight:300 900; font-display:swap; }
body, .editor-styles-wrapper, .msi-page { font-family:Figtree,sans-serif; font-weight:300; }
.msi-eagd, .msi-site-header .wp-block-navigation { font-family:Figtree,sans-serif; }

/* Keep the profile panel visible down to the viewport edge on wide screens. */
@media (min-width:901px) {
 .msi-profile { min-height:calc(100vh - 28px); min-height:calc(100dvh - 28px); max-height:calc(100vh - 28px); max-height:calc(100dvh - 28px); }
 body.admin-bar .msi-profile { min-height:calc(100vh - 60px); min-height:calc(100dvh - 60px); max-height:calc(100vh - 60px); max-height:calc(100dvh - 60px); }
}
@media (min-width:901px) { .msi-page { padding-bottom:0; } }
/* Match the space below the header to the gap between the columns. */
@media (min-width:901px) { .msi-page { padding-top:clamp(24px, 4vw, 44px); } }
.msi-profile__bio { text-align:justify; }

/* Use the Research-to-CV spacing throughout the panel layout. */
.msi-page { gap:24px; padding-top:24px; }
@media (min-width:901px) { .msi-page { padding-top:24px; } }
#research > h2 { font-size:clamp(1.05rem, 2vw, 1.25rem); line-height:1.45; }


/* Compact interactive event figure alongside the first research paper. */
.msi-paper--event { display:grid; grid-template-columns:minmax(230px, 42%) minmax(0, 1fr); column-gap:24px; align-items:start; }
.msi-paper--event > :not(.msi-event-figure) { grid-column:2; }
.msi-event-figure { grid-column:1; grid-row:1 / span 10; margin:0; min-width:0; }
.msi-event-figure figcaption { display:flex; flex-direction:column; gap:2px; color:#132019; font:300 .85rem/1.35 Figtree,sans-serif; }
.msi-event-figure figcaption strong { font-weight:700; font-size:.95rem; }
.msi-event-plot { position:relative; margin-top:6px; }
.msi-event-plot svg { display:block; width:100%; height:auto; overflow:visible; touch-action:pan-y; }
.msi-event-plot svg:focus-visible { outline:2px solid #37694E; outline-offset:3px; }
.msi-event-tooltip { position:absolute; transform:translate(-50%,calc(-100% - 9px)); background:#132019; color:#FCFBF8; border-radius:4px; padding:3px 7px; font:500 .8rem/1.3 Figtree,sans-serif; pointer-events:none; white-space:nowrap; }
.msi-event-note { margin:2px 0 4px; font:300 .75rem/1.35 Figtree,sans-serif; color:#45665D; }
.msi-event-source { font:400 .8rem/1.4 Figtree,sans-serif; }
@media (max-width:600px) { .msi-paper--event { display:flex; flex-direction:column; gap:0; } .msi-event-figure { width:100%; max-width:440px; margin-bottom:16px; } }
.msi-event-figure figcaption { flex-direction:row; align-items:baseline; gap:8px; color:#132019; font-size:.75rem; line-height:1.25; }
.msi-event-date { color:#527F76; font-weight:300; white-space:nowrap; }
.msi-event-plot { margin-top:3px; }
.msi-event-footer { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.msi-event-note, .msi-event-source { margin:0; font-size:.75rem; line-height:1.3; }
@media (min-width:601px) {
 .msi-event-figure { align-self:stretch; display:flex; flex-direction:column; }
 .msi-event-plot { flex:1 1 0; min-height:0; }
 .msi-event-plot svg { height:100%; }
}
@media (min-width:601px) { .msi-event-plot svg { width:auto; max-width:100%; aspect-ratio:16 / 9; } }
@media (min-width:601px) {
 .msi-paper--event { grid-template-columns:minmax(0, 1fr) minmax(230px, 42%); }
 .msi-paper--event > :not(.msi-event-figure) { grid-column:1; }
 .msi-event-figure { grid-column:2; }
}
.msi-event-figure figcaption { display:block; text-align:left; }
.msi-event-figure { display:grid; grid-template-columns:minmax(80px, 34%) minmax(0, 1fr); grid-template-rows:1fr auto; column-gap:10px; }
.msi-event-figure figcaption { grid-column:1; grid-row:1; align-self:center; }
.msi-event-plot { grid-column:2; grid-row:1; align-self:center; margin:0; }
.msi-event-plot svg { width:100%; max-width:100%; height:auto; aspect-ratio:16 / 9; }
.msi-event-footer { grid-column:1 / -1; grid-row:2; }
.msi-event-figure { grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) auto; }
.msi-event-plot { grid-column:1; grid-row:1; justify-self:start; height:100%; max-width:100%; }
.msi-event-plot svg { display:block; width:auto; max-width:100%; height:100%; aspect-ratio:16 / 9; }
.msi-event-footer { grid-column:1; grid-row:2; }
@media(max-width:600px) { .msi-event-plot { height:auto; width:100%; } .msi-event-plot svg { width:100%; height:auto; } }
.msi-event-note { font-size:.67rem; }
@media(min-width:601px) { .msi-event-plot { margin-left:1cm; width:calc(100% - 1cm); height:auto; } .msi-event-plot svg { width:100%; height:auto; } }
@media(min-width:601px) { .msi-event-footer { margin-left:calc(1cm + (100% - 1cm) * .055); } }
@media(max-width:600px) { .msi-event-footer { margin-left:5.5%; } }
@media(min-width:601px) {
 .msi-event-plot { width:calc(100% - 1.75cm); height:100%; min-height:0; }
 .msi-event-plot svg { width:100%; height:100%; }
 .msi-event-footer { margin-right:.75cm; }
}
@media(min-width:601px) { .msi-event-figure { min-height:0; } }
@media(min-width:601px) { .msi-event-note { font-size:.625rem; line-height:1.05; } }
@media(min-width:601px) {
 .msi-paper--event { padding-bottom:44px; }
 .msi-event-figure { position:relative; height:100%; min-height:0; grid-template-rows:minmax(0, 1fr); }
 .msi-event-footer { position:absolute; top:100%; left:0; right:0; margin-top:6px; }
 .msi-event-plot svg { aspect-ratio:400 / 256; }
}
@media(max-width:600px) { .msi-event-plot svg { aspect-ratio:400 / 256; } }
@media(min-width:601px) {
 .msi-event-figure { grid-template-rows:auto auto; align-content:start; }
 .msi-event-plot { height:auto; }
 .msi-event-plot svg { height:auto; aspect-ratio:400 / 210; }
 .msi-event-footer { position:static; margin-top:6px; }
}
@media(max-width:600px) { .msi-event-plot svg { aspect-ratio:400 / 210; } }
.msi-paper h3 { font-weight:600; }
.msi-paper h3 { font-weight:500; }
.msi-event-plot svg { aspect-ratio:400 / 195; }
@media(min-width:601px) { .msi-event-plot svg { aspect-ratio:400 / 195; } .msi-event-footer { margin-top:1px; } }
@media(max-width:600px) { .msi-event-plot svg { aspect-ratio:400 / 195; } .msi-event-footer { margin-top:1px; } }
@media(min-width:601px) { .msi-paper--event { padding-bottom:20px; } }
.msi-event-footer { transform:translateY(-1mm); }

.msi-event-note { font-size:calc(.67rem + 1pt); }
@media(min-width:601px) { .msi-event-note { font-size:calc(.625rem + 1pt); } }
@media(min-width:601px) { .msi-event-plot { margin-left:.5cm; width:calc(100% - 1.25cm); } .msi-event-footer { margin-left:calc(.5cm + (100% - 1.25cm) * .055); margin-right:0; } }
.msi-profile__bio.has-text-align-justify { text-align:left; }
.msi-profile__bio.has-text-align-justify { text-align:justify !important; text-align-last:left; hyphens:auto; overflow-wrap:normal; }
.msi-profile__bio.has-text-align-justify { hyphens:none; }
.msi-profile__bio a[href="https://www.polytechnique.edu/"]::before { content:none; }
@media(min-width:901px) {
 .msi-paper--event { grid-template-columns:minmax(0, 62%) minmax(0, 1fr); column-gap:16px; }
 .msi-event-plot { margin-left:0; width:calc(100% - .2cm); }
 .msi-event-footer { margin-left:calc((100% - .2cm) * .055); margin-right:0; }
 .msi-event-note { white-space:nowrap; font-size:.625rem; }
}
@media(min-width:901px) {
 .msi-paper--event { grid-template-columns:minmax(0, 66%) minmax(0, 1fr); }
 .msi-paper--event:has(.msi-gap-figure) h3 { font-size:1.15rem; }
}
@media(min-width:901px) { .msi-event-note { font-size:calc(.625rem + .5pt); } }
@media(min-width:901px) { .msi-event-figure { left:-.5cm; } }
@media(min-width:901px) { .msi-paper--event:not(:has(.msi-gap-figure)) .msi-event-footer { margin-left:0; margin-right:0; position:relative; left:0; transform:translateY(-1mm); display:block; width:calc(100% - .2cm); text-align:center; } }
.msi-paper--event:not(:has(.msi-gap-figure)) .msi-event-footer { transform:translateY(-2mm); }
/* Keep both paper rows and figures compact and consistently aligned. */
@media(min-width:901px) {
 .msi-paper--event { align-items:start; padding:20px 0; }
 .msi-paper--event:last-child { padding-bottom:0; }
 .msi-event-figure { height:auto; align-self:start; grid-template-rows:auto auto; }
 .msi-event-plot { height:auto; }
 .msi-event-plot svg { height:auto; }
 .msi-paper--event:not(:has(.msi-gap-figure)) .msi-event-footer { margin-top:0; transform:none; }
}
@media(min-width:901px) { .msi-event-figure { display:block; } }
/* Keep the Research panel aligned with the end of the profile biography. */
@media(min-width:901px) { #research { min-height:var(--msi-research-min-height, 0px); } }
@media(min-width:901px) {
 #research { display:flex; flex-direction:column; }
 #research > .msi-papers { flex:1; display:flex; flex-direction:column; }
 #research .msi-paper--event { grid-template-columns:minmax(0, 60%) minmax(0, 1fr); column-gap:20px; align-items:start; padding:24px 0; }
 #research .msi-paper--event:last-child { flex:1; padding-bottom:0; }
 #research .msi-event-figure { left:0; }
 #research .msi-event-plot { width:100%; margin-left:0; }
 #research .msi-event-plot svg { width:100%; height:auto; }
 #research .msi-event-footer { width:100%; margin-left:0; }
 #research .msi-paper h3 { margin-bottom:10px; }
}
@media(min-width:901px) { .msi-gap-figure .msi-event-plot svg { aspect-ratio:auto; height:calc((100vw - 0px) * 0 + 155px); } }
@media(min-width:901px) { .msi-gap-figure .msi-event-plot svg { aspect-ratio:400 / 220; height:auto; } }
#research { --research-heading-size:calc(clamp(1.05rem, 2vw, 1.25rem) + 2pt); --paper-text-inset:1.2rem; }
#research > h2 { font-size:var(--research-heading-size); padding-bottom:14px; border-bottom:1px solid #D9C4B7; }
.home #cv { display:none; }
.msi-site-header .msi-nav-cv > a { display:inline-block; border:1px solid #D98719; border-radius:5px; padding:7px 14px; color:#132019; }
.msi-site-header .msi-nav-cv > a:hover, .msi-site-header .msi-nav-cv > a:focus-visible { background:#FCFBF8; color:#9E471E; }
@media(min-width:901px) {
 .home .msi-sidebar { position:static; align-self:stretch; height:100%; }
 .home .msi-profile, body.home.admin-bar .msi-profile { height:100%; min-height:0; max-height:none; overflow:visible; }
}
@media(min-width:901px) { .home #research { padding-bottom:clamp(56px, 6vh, 80px); } }
@media(min-width:901px) {
 .home #research { min-height:max(var(--msi-research-min-height, 0px), calc(100dvh - 180px)); }
 .home #research > .msi-papers { justify-content:space-evenly; }
 .home #research .msi-paper--event:last-child { flex:0 0 auto; }
 .home .msi-profile { display:flex; flex-direction:column; justify-content:center; }
}
@media(min-width:901px) {
 .home .msi-page { padding-bottom:24px; }
 .home .msi-profile { justify-content:flex-start; }
}
@media(min-width:901px) {
 .home .msi-page { padding-bottom:80px; }
 .home #research { min-height:max(var(--msi-research-min-height, 0px), calc(100dvh - 260px)); }
}
@media(min-width:901px) { .msi-site-header .wp-block-site-title { width:min(340px, 28%); text-align:center; } }
#research .msi-paper h3 { margin-bottom:2px; }
#research .msi-paper h3 + .msi-paper__meta { margin-top:0; }
#research .msi-paper__resources a::before {
 content:""; display:inline-block; width:14px; height:14px; margin-right:5px; vertical-align:-2px;
 background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1.1l2.2-2.2a5 5 0 0 0-7.1-7.1L11 5'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.1-.1l-2.2 2.2a5 5 0 0 0 7.1 7.1L13 19'/%3E%3C/svg%3E");
}
#research .msi-paper__resources a[href*="Chinese_MP_Athens"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='13' rx='1'/%3E%3Cpath d='M12 16v5m-4 0h8M8 11l3-3 3 2 3-4'/%3E%3C/svg%3E"); }
#research .msi-paper__resources a[href*="sciencedirect"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
#research .msi-paper__resources a[href*="spreadsheets"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M9 4v16M15 10v10'/%3E%3C/svg%3E"); }
#research .msi-paper__resources a[href*="1wukNj07"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h6l2 2h8v10H4zM12 11v5m-2-2 2 2 2-2'/%3E%3C/svg%3E"); }
#research .msi-paper__resources a[href*="AWMD_gretl"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 3 3-3 3m5 0h4'/%3E%3C/svg%3E"); }
#research .msi-paper__resources a[href*="1vx_Ne"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='2'/%3E%3Cpath d='M9 8V5h6v3M3 13h18M10 12v2h4v-2'/%3E%3C/svg%3E"); }
@media(min-width:901px) { .msi-site-header .wp-block-site-title { width:340px; position:relative; left:-28px; } }
@media(min-width:901px) {
 #research > .msi-papers { justify-content:stretch; }
 #research .msi-paper--event, #research .msi-paper--event:last-child { flex:1 1 0; align-content:center; padding:16px 0; }
 #research .msi-paper--event:last-child { padding-bottom:0; }
}
@media(min-width:901px) {
 #research > .msi-papers { display:grid; grid-template-rows:repeat(2, minmax(0, 1fr)); }
 #research .msi-paper--event, #research .msi-paper--event:last-child { min-height:0; padding:16px 0; align-content:center; }
}
#research > .msi-papers { width:100%; }
#research .msi-paper--event:first-child { border-bottom:0; position:relative; }
#research .msi-paper--event:first-child::after { content:""; position:absolute; left:0; right:0; bottom:0; border-bottom:1px solid #D9C4B7; }
#research .msi-paper--event:first-child::after { left:var(--separator-offset, 0px); }

#research .msi-paper--event h3 {
 position:relative;
 padding-left:var(--paper-text-inset);
}
#research .msi-paper--event > :not(.msi-event-figure):not(h3) {
 margin-left:var(--paper-text-inset);
}
#research .msi-paper--event h3::before {
 position:absolute;
 left:var(--symbol-offset, 0px);
 font-family:Figtree, sans-serif;
 font-size:var(--research-heading-size);
 font-weight:400;
 line-height:inherit;
}
#research .msi-paper--event:not(:has(.msi-gap-figure)) h3::before {
 content:"\00a5";
 color:#C56A39;
}
#research .msi-paper--event:has(.msi-gap-figure) h3::before {
 content:"\20ac";
 color:#003399;
 font-size:calc(var(--research-heading-size) * .981);
}
@media (min-width:901px) {
 #research > .msi-papers { grid-template-columns:minmax(0, 1fr); }
 #research .msi-paper--event {
  grid-template-columns:min(60%, 29rem) minmax(0, 1fr);
  column-gap:.375rem;
 }
 #research .msi-paper--event h3, #research .msi-paper--event:has(.msi-gap-figure) h3 {
  font-size:1.1rem;
 }
 #research .msi-event-figure { margin-right:-.75rem; }
}

/* The axes start at x=22 in each 400-unit SVG. */
#research .msi-event-plot > .msi-event-footer {
 position:static;
 width:auto;
 margin-inline:0;
 padding-inline:5.5% 3%;
 text-align:center;
}
#research .msi-event-figure:not(.msi-gap-figure) { container-type:inline-size; }
#research .msi-event-note { font-size:calc(min(3.52cqw, 14px) - .5pt); white-space:nowrap; }

#research { --paper-text-inset:calc(1.2rem + .25cm); }
#research .msi-paper--event h3::before {
 top:0;
 height:1lh;
 display:flex;
 align-items:center;
 line-height:1;
}
@media (min-width:901px) {
 #research .msi-paper--event { grid-template-columns:min(calc(60% + .25cm), calc(29rem + .25cm)) minmax(0, 1fr); }
 #research .msi-paper--event h3::before { height:1.595rem; }
 #research .msi-event-figure { margin-left:.25cm; }
}

.wp-site-blocks a:hover, .wp-site-blocks a:focus-visible { text-decoration:underline !important; text-underline-offset:.18em; }
.msi-cv-page > h2 { font-size:calc(clamp(1.05rem, 2vw, 1.25rem) + 2pt); line-height:1.45; padding-bottom:14px; border-bottom:1px solid #D9C4B7; margin-bottom:24px; }
.msi-cv-page .wp-block-file__embed { display:block; margin-bottom:16px; }
.msi-cv-page .wp-block-file__button { background:#37694E; color:#fff; }
.msi-cv-page .wp-block-image { margin:20px 0; }
.msi-cv-page .wp-block-image img { display:block; width:100%; height:auto; border:1px solid #D9C4B7; }
html[data-theme="dark"] .msi-cv-page > h2 { border-color:#6c796c; }
@media(max-width:600px) { .msi-cv-page > h2 { text-align:center; } .msi-cv-page .wp-block-file__embed { height:70vh !important; } }

/* Use the homepage panel treatment for the resource pages. */
.page-id-16 .content-section {
 background:#FCFBF8 !important;
 border:1px solid #D98719;
 border-radius:8px !important;
 box-shadow:none !important;
 padding:clamp(22px, 3vw, 32px) !important;
 color:#132019;
}
.page-id-16 .content-section h2,
.msi-teaching > h2 {
 color:#132019 !important;
 font-family:"Geist Serif", Georgia, serif;
 font-size:calc(clamp(1.05rem, 2vw, 1.25rem) + 2pt);
 font-weight:400;
 line-height:1.45;
 padding-bottom:10px;
 border-bottom:1px solid #D9C4B7;
}
.page-id-16 .content-section a { color:#37694E !important; }
.page-id-16 .content-section a:hover,
.page-id-16 .content-section a:focus-visible { color:#9E471E !important; }
.page-id-16 .content-section ul { margin:.4em 0 1em !important; padding-left:1.5em; line-height:1.7 !important; }
.page-id-16 .content-section li + li { margin-top:.35em; }
.page-id-18 .msi-eagd {
 border:1px solid #D98719;
 border-radius:8px;
 padding:clamp(22px, 3vw, 32px);
}
@media (min-width:901px) {
 body:not(.home) .msi-page { padding-bottom:80px; }
 body:not(.home) .msi-profile { min-height:0; max-height:none; overflow:visible; }
}

@media (max-width:600px) {
 .msi-site-header { display:block; padding:16px 18px; }
 .msi-site-header .wp-block-site-title { margin:0 0 12px; text-align:center; }
 .msi-site-header .wp-block-navigation { display:block; }
 .msi-site-header .wp-block-navigation__responsive-container-open,
 .msi-site-header .wp-block-navigation__responsive-container-close { display:none !important; }
 .msi-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
  display:block;
  position:static;
  width:auto;
  height:auto;
  overflow:visible;
  background:transparent;
 }
 .msi-site-header .wp-block-navigation__container {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 16px;
 }
 .msi-site-header .wp-block-navigation-item__content { font-size:.9rem; }
 .msi-site-header .msi-nav-cv > a { padding:3px 10px; }
 .msi-page { gap:16px; padding:16px 10px 32px; }
 .msi-profile__photo img, img.msi-profile__photo { width:100%; }
 #research > h2 { text-align:center; }
 #research .msi-paper--event { display:flex; flex-direction:column; align-items:stretch; padding:20px 0; }
 #research .msi-paper--event h3 { line-height:1.45; }
 #research .msi-paper--event h3::before { height:1.5225rem; }
 #research .msi-gap-figure ~ h3 br { display:none; }
 #research .msi-paper--event > :not(.msi-event-figure) { text-align:left !important; }
 #research .msi-event-figure { order:1; width:100%; margin:16px 0 0; }
 #research .msi-event-plot { width:100%; height:auto; margin:0; }
 #research .msi-event-plot svg { width:100%; height:auto; aspect-ratio:400 / 195; }
 #research .msi-gap-figure .msi-event-plot svg { aspect-ratio:400 / 220; }
 #research .msi-event-plot > .msi-event-footer { transform:none; margin-top:3px; }
 #research .msi-paper__resources { line-height:1.8; }
 .page-id-18 .msi-eagd { padding:18px; }
 .page-id-18 .msi-eagd__table-wrap { overflow-x:auto; }
}

.msi-theme-toggle { font:inherit; color:#132019; background:transparent; border:1px solid #D98719; border-radius:5px; padding:7px 12px; cursor:pointer; white-space:nowrap; }
.msi-theme-toggle:hover, .msi-theme-toggle:focus-visible { background:#FCFBF8; color:#9E471E; }
html[data-theme="dark"] { color-scheme:dark; --msi-bg:#101915; --msi-panel:#18221e; --msi-panel-soft:#22342b; --msi-text:#e4ede6; --msi-muted:#b5cbbd; --msi-link:#b7d8be; --msi-border:#c88b48; }
html[data-theme="dark"] body, html[data-theme="dark"] .msi-page { background:#101915; color:#e4ede6; }
html[data-theme="dark"] .msi-site-header, html[data-theme="dark"] .msi-profile, html[data-theme="dark"] .msi-site-header .wp-block-navigation { background:#22342b; color:#e4ede6; }
html[data-theme="dark"] .msi-section, html[data-theme="dark"] .page-id-16 .content-section { background:#18221e !important; color:#e4ede6; }
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6), html[data-theme="dark"] .msi-profile__bio, html[data-theme="dark"] .msi-site-header .wp-block-site-title a, html[data-theme="dark"] .msi-site-header .msi-nav-cv > a, html[data-theme="dark"] .msi-theme-toggle { color:#e4ede6 !important; }
html[data-theme="dark"] .page-id-16 .content-section h2, html[data-theme="dark"] .msi-teaching > h2 { color:#e4ede6 !important; }
html[data-theme="dark"] .wp-site-blocks a, html[data-theme="dark"] .page-id-16 .content-section a { color:#b7d8be !important; }
html[data-theme="dark"] .wp-site-blocks a:hover, html[data-theme="dark"] .wp-site-blocks a:focus-visible { color:#efba80 !important; }
html[data-theme="dark"] .msi-theme-toggle:hover, html[data-theme="dark"] .msi-theme-toggle:focus-visible, html[data-theme="dark"] .msi-site-header .msi-nav-cv > a:hover { background:#344b3d; }
html[data-theme="dark"] .msi-paper, html[data-theme="dark"] #research > h2, html[data-theme="dark"] #research .msi-paper--event:first-child::after, html[data-theme="dark"] .msi-teaching > h2, html[data-theme="dark"] .page-id-16 .content-section h2 { border-color:#6c796c; }
html[data-theme="dark"] .msi-event-note { color:#b5cbbd; }
html[data-theme="dark"] #research .msi-paper__resources a::before { filter:brightness(0) saturate(100%) invert(82%) sepia(10%) saturate(550%) hue-rotate(78deg); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a::before { filter:brightness(0) saturate(100%) invert(83%) sepia(83%) saturate(2430%) hue-rotate(359deg) brightness(102%) contrast(106%); }
html[data-theme="dark"] .msi-event-plot svg text { fill:#c2d6c8; }
html[data-theme="dark"] .msi-event-plot svg rect[fill="#E3EDE8"] { fill:#31473a; }
html[data-theme="dark"] .msi-gap-figure polyline[stroke="#003399"] { stroke:#8ab0ff; }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) h3::before { color:#ffcc00; }
html[data-theme="dark"] .msi-eagd { --eagd-bg:#18221e; --eagd-panel:#18221e; --eagd-chart:#18221e; --eagd-text:#e4ede6; --eagd-muted:#b5cbbd; --eagd-link:#b7d8be; --eagd-link-hover:#efba80; --eagd-border:#c88b48; --eagd-grid:rgba(220,230,220,.16); }
@media (max-width:600px) { .msi-theme-toggle { padding:3px 10px; font-size:.9rem; } }

@media (min-width:901px) {
 .home .msi-sidebar { align-self:start; height:auto; }
 .msi-page .msi-profile, body:not(.home) .msi-page .msi-profile, body.home.admin-bar .msi-page .msi-profile {
  height:auto;
  min-height:max(37rem, calc(100dvh - 260px));
  max-height:none;
  overflow:visible;
 }
 .home #research { min-height:max(37rem, var(--msi-research-min-height, 0px), calc(100dvh - 260px)); }
}

html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a::before { filter:none; background:#ffcc00; mask:center / contain no-repeat; }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="Chinese_MP_Athens"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='13' rx='1'/%3E%3Cpath d='M12 16v5m-4 0h8M8 11l3-3 3 2 3-4'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="sciencedirect"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="spreadsheets"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M9 4v16M15 10v10'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="1wukNj07"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h6l2 2h8v10H4zM12 11v5m-2-2 2 2 2-2'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="AWMD_gretl"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 3 3-3 3m5 0h4'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="1vx_Ne"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='2'/%3E%3Cpath d='M9 8V5h6v3M3 13h18M10 12v2h4v-2'/%3E%3C/svg%3E"); }

#research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a::before { filter:none; background:#003399; mask:center / contain no-repeat; }
#research .msi-paper__resources a[href*="Chinese_MP_Athens"]::before { filter:none; background:#C56A39; mask:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='13' rx='1'/%3E%3Cpath d='M12 16v5m-4 0h8M8 11l3-3 3 2 3-4'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper__resources a[href*="Chinese_MP_Athens"]::before { filter:none; background:#C56A39; }
#research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="sciencedirect"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
#research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="spreadsheets"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M9 4v16M15 10v10'/%3E%3C/svg%3E"); }
#research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="1wukNj07"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h6l2 2h8v10H4zM12 11v5m-2-2 2 2 2-2'/%3E%3C/svg%3E"); }
#research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="AWMD_gretl"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 3 3-3 3m5 0h4'/%3E%3C/svg%3E"); }
#research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a[href*="1vx_Ne"]::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337694E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='2'/%3E%3Cpath d='M9 8V5h6v3M3 13h18M10 12v2h4v-2'/%3E%3C/svg%3E"); }
html[data-theme="dark"] #research .msi-paper--event:has(.msi-gap-figure) .msi-paper__resources a::before { background:#ffcc00; filter:none; }
#research .msi-paper__resources a[href*="MahmutPoster_CEPR_2026"]::before,
html[data-theme="dark"] #research .msi-paper__resources a[href*="MahmutPoster_CEPR_2026"]::before {
 filter:none;
 background:#C56A39;
 mask:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='1'/%3E%3Cpath d='M7 6h10M7 9h10M7 18h10M8 15l2-3 2 2 3-4'/%3E%3C/svg%3E");
}

/* Keep both GDP series and the range selector legible in either theme. */
.msi-eagd__chart path.js-line[style*="rgb(214, 185, 119)"] { stroke:#c76f5b !important; stroke-dasharray:none !important; stroke-width:2.4px !important; }
.msi-eagd__chart .legend text { fill:#132019 !important; }
.msi-eagd__chart .nsewdrag.cursor-ew-resize { cursor:grab !important; }
.msi-eagd__chart .nsewdrag.cursor-ew-resize:active { cursor:grabbing !important; }
.msi-eagd__chart .rangeselector .selector-rect { fill:#FCFBF8 !important; stroke:#45665D !important; }
.msi-eagd__chart .rangeselector .selector-rect[style*="rgb(48, 73, 110)"] { fill:#bbd7c4 !important; stroke:#37694e !important; }
.msi-eagd__chart .rangeselector .selector-text { fill:#132019 !important; font-family:Figtree,sans-serif !important; }
html[data-theme="dark"] .msi-eagd__chart path.js-line[style*="rgb(55, 105, 78)"] { stroke:#a9d7b5 !important; }
html[data-theme="dark"] .msi-eagd__chart path.js-line[style*="rgb(214, 185, 119)"] { stroke:#f4aa78 !important; }
html[data-theme="dark"] .msi-eagd__chart .legend text { fill:#e4ede6 !important; }
html[data-theme="dark"] .msi-eagd__chart .rangeselector .selector-rect { fill:#22342b !important; stroke:#b5cbbd !important; }
html[data-theme="dark"] .msi-eagd__chart .rangeselector .selector-rect[style*="rgb(48, 73, 110)"] { fill:#a9d7b5 !important; stroke:#a9d7b5 !important; }
html[data-theme="dark"] .msi-eagd__chart .rangeselector .selector-text { fill:#e4ede6 !important; }
html[data-theme="dark"] .msi-eagd__chart .rangeselector .button:has(.selector-rect[style*="rgb(48, 73, 110)"]) .selector-text { fill:#132019 !important; }
