/* Lloyd Journal of Law and Philosophy - shared styles for all pages */

:root {
	--maroon: #AD2A2A;
	--maroon-dark: #7E1C1C;
	--maroon-deep: #5A1212;
	--red: #B20601;
	--ink: #1F1A1A;
	--text: #3D3636;
	--muted: #6B6262;
	--line: #E8DEDE;
	--soft: #FFF7F7;
	--bg: #F7F4F2;
	--white: #FFFFFF;
	--serif: "Libre Baskerville", "Times New Roman", Times, serif;
	--sans: "Lato", Arial, Helvetica, sans-serif;
	--radius: 10px;
	--shadow: 0 6px 24px rgba(90, 18, 18, 0.08);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--maroon);
	text-decoration: none;
	transition: color .2s;
}

a:hover {
	color: var(--red);
}

h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	color: var(--ink);
	line-height: 1.3;
	margin: 0 0 14px;
}

p {
	margin: 0 0 14px;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	background: #B30000;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 76px;
	padding: 0 24px;
}

.brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.brand img {
	height: 64px;
	width: auto;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 6px;
	width: 44px;
	height: 40px;
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 22px;
	height: 2px;
	background: #FFFFFF;
	position: relative;
	transition: transform .25s, background .25s;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle span::before {
	top: -7px;
}

.nav-toggle span::after {
	top: 7px;
}

.nav-open .nav-toggle span {
	background: transparent;
}

.nav-open .nav-toggle span::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
	transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: clamp(4px, 1.2vw, 24px);
}

.main-nav a {
	display: block;
	position: relative;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(13.5px, 0.85vw, 16px);
	font-weight: 700;
	padding: 26px 6px;
	white-space: nowrap;
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 18px;
	height: 2px;
	background: #FFFFFF;
	transform: scaleX(0);
	transition: transform .25s;
}

.main-nav a:hover,
.main-nav a.active {
	color: #FFFFFF;
}

.main-nav a:hover::after,
.main-nav a.active::after {
	transform: scaleX(1);
}


/* Header placeholder (keeps space until inc/header.html loads) */
#header {
	min-height: 76px;
	background: #B30000;
}

/* Hidden but readable by screen readers / search engines */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
/* Home banner */
.hero img {
	width: 100%;
}

/* Inner page title band */
.page-head {
	background: linear-gradient(120deg, var(--maroon-deep) 0%, var(--maroon) 100%);
	color: #FFFFFF;
	padding: 46px 0 40px;
	position: relative;
	overflow: hidden;
}

.page-head::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 260px;
	height: 260px;
	border: 2px solid rgba(255, 255, 255, .15);
	transform: rotate(25deg);
}

.page-head h1 {
	color: #FFFFFF;
	font-size: 34px;
	margin: 0 0 8px;
}

.breadcrumb {
	font-size: 14px;
	color: #F3DADA;
}

.breadcrumb a {
	color: #FFFFFF;
}

/* Sections */
.section {
	padding: 56px 0;
}

.section-alt {
	background: var(--white);
}

.section-title {
	font-size: 28px;
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 22px;
}

.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 3px;
	background: var(--maroon);
}

.section-title.center {
	text-align: center;
}

.section-title.center::after {
	left: 50%;
	transform: translateX(-50%);
}

.card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 30px;
	margin-bottom: 26px;
	border-top: 3px solid var(--maroon);
}

.card h2 {
	font-size: 23px;
	color: var(--maroon-dark);
}

.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.grid-2>*,
.issue-card>*,
.info-grid>*,
.footer-main>* {
	min-width: 0;
}

.grid-2.top {
	align-items: start;
}

.img-frame {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.img-frame img {
	width: 100%;
}

.lead {
	font-size: 17px;
}

/* Bullet lists */
.list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.list li {
	position: relative;
	padding: 6px 0 6px 28px;
	border-bottom: 1px dashed var(--line);
}

.list li:last-child {
	border-bottom: 0;
}

.list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 15px;
	width: 9px;
	height: 9px;
	background: var(--maroon);
	transform: rotate(45deg);
}

.list.cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 30px;
}

/* Tables */
.table-wrap {
	overflow-x: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

table.data {
	width: 100%;
	border-collapse: collapse;
	background: var(--white);
	font-size: 15.5px;
}

table.data th,
table.data td {
	text-align: left;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

table.data thead th {
	background: var(--maroon);
	color: #FFFFFF;
	font-family: var(--serif);
	font-weight: 700;
}

table.data tbody th {
	width: 40%;
	color: var(--maroon-dark);
	background: var(--soft);
	font-weight: 700;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
	border-bottom: 0;
}

/* Info boxes */
.info-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.info-box {
	background: var(--white);
	border-radius: var(--radius);
	padding: 24px 20px;
	box-shadow: var(--shadow);
	text-align: center;
	border-bottom: 3px solid var(--maroon);
}

.info-box .icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--soft);
	color: var(--maroon);
	display: flex;
	align-items: center;
	justify-content: center;
}

.info-box .icon svg {
	width: 24px;
	height: 24px;
}

.info-box h3 {
	font-size: 16px;
	margin-bottom: 6px;
	color: var(--maroon-dark);
}

.info-box p {
	margin: 0;
	font-size: 15px;
	word-break: break-word;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--maroon);
	color: #FFFFFF;
	padding: 11px 24px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	border: 2px solid var(--maroon);
	transition: background .2s, color .2s;
}

.btn:hover {
	background: var(--maroon-dark);
	border-color: var(--maroon-dark);
	color: #FFFFFF;
}

.btn.outline {
	background: transparent;
	color: var(--maroon);
}

.btn.outline:hover {
	background: var(--maroon);
	color: #FFFFFF;
}

.btn-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 10px;
}

/* People */
.people {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
	gap: 26px;
	justify-content: center;
	margin-bottom: 10px;
}

.person {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	text-align: center;
	transition: transform .25s;
}

.person:hover {
	transform: translateY(-4px);
}

.person .photo {
	background: var(--soft);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.person .photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.person .body {
	padding: 16px 16px 20px;
	border-top: 3px solid var(--maroon);
}

.person .role {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FFFFFF;
	background: var(--maroon);
	padding: 2px 10px;
	border-radius: 20px;
	margin-bottom: 8px;
}

.person .title {
	display: block;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 700;
	color: var(--maroon);
	margin-bottom: 4px;
}

.person h3 {
	font-size: 17px;
	margin-bottom: 4px;
}

.person p {
	font-size: 14px;
	color: var(--muted);
	margin: 0;
	line-height: 1.5;
}

.group-title {
	font-family: var(--serif);
	text-align: center;
	font-size: 22px;
	color: var(--maroon-dark);
	margin: 40px 0 22px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.group-title:first-child {
	margin-top: 0;
}

.board-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.board-list li {
	background: var(--white);
	border-left: 4px solid var(--maroon);
	border-radius: 6px;
	padding: 14px 18px;
	box-shadow: var(--shadow);
	line-height: 1.55;
}

.board-list strong {
	display: block;
	font-family: var(--serif);
	color: var(--ink);
	margin-bottom: 2px;
}

.board-list span {
	font-size: 14.5px;
	color: var(--muted);
}

/* Archives */
.issue-card {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 28px;
	align-items: center;
}

.issue-cover {
	background: linear-gradient(160deg, #FFFFFF 0%, var(--soft) 100%);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 26px 18px;
	text-align: center;
	font-family: var(--serif);
	color: #2E2A7A;
	box-shadow: var(--shadow);
}

.issue-cover b {
	display: block;
	font-size: 22px;
	line-height: 1.15;
	margin: 6px 0 10px;
}

.issue-cover small {
	display: block;
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
}

.articles {
	list-style: none;
	margin: 0;
	padding: 0;
}

.article {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px 22px;
	margin-bottom: 16px;
	border-left: 4px solid var(--maroon);
}

.article .num {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--soft);
	color: var(--maroon);
	font-family: var(--serif);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.article .meta {
	flex: 1;
}

.article h3 {
	font-size: 17px;
	margin-bottom: 4px;
}

.article h3 a {
	color: var(--ink);
}

.article h3 a:hover {
	color: var(--maroon);
}

.article p {
	margin: 0;
	font-size: 14.5px;
	color: var(--muted);
}

.article .btn {
	flex-shrink: 0;
	padding: 8px 16px;
	font-size: 14px;
}

/* Highlight band */
.note {
	background: var(--soft);
	border-left: 4px solid var(--maroon);
	border-radius: 6px;
	padding: 16px 20px;
	margin: 16px 0;
}

.note p:last-child {
	margin-bottom: 0;
}

.cta-band {
	background: linear-gradient(120deg, var(--maroon-deep), var(--maroon));
	color: #FFFFFF;
	border-radius: var(--radius);
	padding: 34px;
	text-align: center;
}

.cta-band h2 {
	color: #FFFFFF;
}

.cta-band .btn {
	background: #FFFFFF;
	color: var(--maroon);
	border-color: #FFFFFF;
}

.cta-band .btn:hover {
	background: transparent;
	color: #FFFFFF;
}

.cta-band .btn.outline {
	background: transparent;
	color: #FFFFFF;
}

.cta-band .btn.outline:hover {
	background: #FFFFFF;
	color: var(--maroon);
}

.cta-band .btn-row {
	justify-content: center;
}

/* Footer */
.site-footer {
	background: #2A0C0C;
	color: #E6CFCF;
	font-size: 15px;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding: 52px 20px 36px;
}

.site-footer h4 {
	color: #FFFFFF;
	font-size: 18px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--maroon);
	display: inline-block;
}

.site-footer img.f-logo {
	height: 62px;
	width: auto;
	margin-bottom: 16px;
}

.site-footer a {
	color: #E6CFCF;
}

.site-footer a:hover {
	color: #FFFFFF;
}

.f-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.f-links li {
	padding: 5px 0;
}

.f-links a::before {
	content: "\203A";
	margin-right: 8px;
	color: #E77;
}

.f-contact {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.f-contact svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 4px;
	fill: #E77;
}

.social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.social a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.social a:hover {
	background: var(--maroon);
}

.social svg {
	width: 17px;
	height: 17px;
	fill: #FFFFFF;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	text-align: center;
	padding: 16px 20px;
	font-size: 14px;
}

/* Back to top */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--maroon);
	color: #FFFFFF;
	border: 0;
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
	font-size: 20px;
	line-height: 44px;
	z-index: 60;
}

.to-top.show {
	opacity: 1;
	visibility: visible;
}

/* Reveal on scroll */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Responsive */
@media (max-width: 1440px) and (min-width: 1280px) {
	.site-header .header-inner {
		padding: 0 16px;
	}

	.brand img {
		height: 54px;
	}

	.main-nav ul {
		gap: 2px;
	}
}

@media (max-width: 1279px) {
	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #8F0000;
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}

	.nav-open .main-nav {
		max-height: 80vh;
		overflow-y: auto;
	}

	.main-nav ul {
		flex-direction: column;
		padding: 8px 20px 16px;
	}

	.main-nav a {
		font-size: 15px;
		padding: 12px 6px;
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}

	.main-nav a::after {
		display: none;
	}

	.main-nav a.active {
		background: rgba(255, 255, 255, .12);
		padding-left: 12px;
	}
}

@media (max-width: 900px) {

	.grid-2,
	.issue-card {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.info-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-main {
		grid-template-columns: 1fr 1fr;
	}

	.footer-main>div:first-child {
		grid-column: 1 / -1;
	}

	.issue-cover {
		max-width: 240px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 15px;
	}

	.site-header .header-inner {
		min-height: 66px;
		padding: 0 14px;
	}

	.brand img {
		height: 50px;
	}

	.page-head {
		padding: 34px 0 30px;
	}

	.page-head h1 {
		font-size: 26px;
	}

	.section {
		padding: 40px 0;
	}

	.section-title {
		font-size: 23px;
	}

	.card {
		padding: 22px 18px;
	}

	.list.cols,
	.board-list,
	.info-grid,
	.footer-main {
		grid-template-columns: 1fr;
	}

	.article {
		flex-wrap: wrap;
		padding: 18px 16px;
	}

	.article .meta {
		flex: 1 1 calc(100% - 56px);
		min-width: 0;
	}

	.article .btn {
		margin-left: 56px;
	}

	table.data th,
	table.data td {
		padding: 11px 12px;
	}
}

/* Page-specific helpers */
.light-link {
	color: #FFFFFF;
	text-decoration: underline;
}

.light-link:hover {
	color: #FFD5D5;
}

.cert-frame {
	max-width: 460px;
	justify-self: center;
}

.info-grid.auto {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
