/* responsive.css — shared responsive shell for all content pages.
   Replaces the absolute-positioned layout in main.css with a flex shell,
   rem-based sizing off a 17px root, fluid media, and a hamburger nav on mobile.
   Fonts are intentionally left identical to the previous design. */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 106.25%; }            /* 1rem = 17px (16 * 1.0625) */

body {
	margin: 0;
	display: flex;
	min-height: 100vh;
	font-family: proxima-nova, sans-serif;
	font-weight: normal;
	line-height: 1.5;
	color: #4D4D4D;
}

img { max-width: 100%; height: auto; }   /* figures never overflow narrow screens */

a:link { color: navy; }
a:hover { color: blue; }

/* ===== Sidebar (desktop) ===== */
.sidebar {
	flex: 0 0 250px;
	border-right: 1px solid #E2E2E2;
	font-family: proxima-nova, Helvetica, sans-serif;
	position: sticky;
	top: 0;
	align-self: flex-start;
	height: 100vh;
	overflow-y: auto;
}

#logo { display: block; width: 144px; margin: 36px 0 -10px 30px; }

#name {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 2rem;
	font-weight: 900;
	line-height: 1.1;
	margin-left: 30px;
}

#nameLink { text-decoration: none; color: #000; }

.sidebar h2 {
	color: #585C60;
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.4;
	margin-top: 40px;
	padding: 0 35px 0 30px;
	max-width: 185px;
}

#sidebarLinks {
	list-style: none;
	font-size: 1.05rem;
	margin: 40px 0 0 30px;
	padding: 0;
}

#sidebarLinks li { padding: 14px 0; }

#sidebarLinks li a {
	color: #777;
	border: 3px solid #cecece;
	border-radius: 30px;
	padding: 7px 15px;
	text-decoration: none;
	white-space: nowrap;
}

#sidebarLinks li a:hover { color: #000; border-color: #777; }

p.copyright { color: #D9D9D9; margin: 30px 0 0 30px; }

/* Hamburger button — hidden on desktop, shown on mobile */
.navToggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 1.6rem;
	line-height: 1;
	color: #585C60;
	padding: 10px;
}

/* ===== Main content ===== */
.content {
	flex: 1 1 auto;
	min-width: 0;                 /* lets long URLs / wide lists shrink instead of scrolling */
	font-size: 1rem;
	line-height: 1.6;
	padding-bottom: 100px;
	overflow-wrap: break-word;    /* breaks long raw URLs / DOIs instead of overflowing */
}

.header {
	min-height: 105px;
	border-bottom: 1px solid #E2E2E2;
	padding: 50px 50px 0;
	font-family: 'ff-meta-web-pro', sans-serif;
}

.header h2 { font-size: 2.35rem; line-height: 1.25; margin: 0; }

.mainText { margin: 30px 50px; max-width: 42rem; }

blockquote { border-left: 5px solid #FF7800; padding-left: 20px; margin-left: 0; }

/* ===== Mobile ===== */
@media (max-width: 760px) {
	body { display: block; }

	.sidebar {
		position: static;
		height: auto;
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #E2E2E2;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		padding: 10px 16px;
		overflow: visible;
	}

	#logo { width: 60px; margin: 0 12px 0 0; }
	#name { font-size: 1.5rem; margin: 0; }
	.sidebar h2 { display: none; }
	p.copyright { display: none; }

	.navToggle { display: block; margin-left: auto; }

	#sidebarLinks { flex-basis: 100%; margin: 10px 0 0; display: none; }
	body.nav-open #sidebarLinks { display: block; }
	#sidebarLinks li { padding: 8px 0; }

	.header { padding: 20px 20px 0; min-height: 0; }
	.header h2 { font-size: 1.8rem; }
	.mainText { margin: 20px; max-width: none; }
}
