/* Modify Journal */
.mj {
	--mj-bg: #f2efe8;
	--mj-ink: #141414;
	--mj-accent: #a94a2f;
	--mj-muted: #4d493f;
	--mj-line: #141414;
	--mj-line-soft: #bdb7aa;
	--mj-placeholder: #d8d2c4;
	box-sizing: border-box;
	width: 100%;
	padding: 56px 32px;
	background: var(--mj-bg);
	color: var(--mj-ink);
}

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

.mj [hidden] {
	display: none !important;
}

.mj a {
	color: inherit;
	text-decoration: none;
}

.mj a:focus-visible,
.mj button:focus-visible,
.mj input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Every text element inherits the font from its parent, so the Typography controls
   (Base font and per element) always win over theme rules on links, buttons and inputs. */
.mj a,
.mj button,
.mj input,
.mj [class*="mj__"] {
	font-family: inherit;
}
.mj .mj__ftitle a,
.mj .mj__rtitle a,
.mj .mj__title a {
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

/* Text elements: margins/padding reset so theme heading rules cannot push the layout around.
   Fonts are NOT forced here: they come from the theme unless you set Typography in the widget. */
.mj .mj__kicker,
.mj .mj__title,
.mj .mj__intro,
.mj .mj__ftitle,
.mj .mj__fexcerpt,
.mj .mj__rtitle,
.mj .mj__rexcerpt,
.mj .mj__empty {
	margin: 0;
	padding: 0;
}

/* Masthead */
.mj__masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 32px;
	padding-bottom: 36px;
}

.mj .mj__kicker {
	margin-bottom: 12px;
	color: var(--mj-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mj .mj__title {
	color: var(--mj-ink);
	font-size: clamp(64px, 12vw, 180px);
	font-weight: 400;
	line-height: 0.85;
}

.mj .mj__intro {
	flex: 0 1 400px;
	color: var(--mj-muted);
	font-size: 19px;
	line-height: 1.5;
}

/* Controls */
.mj__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: 18px 0;
	border-top: 1px solid var(--mj-line);
	border-bottom: 1px solid var(--mj-line-soft);
}

.mj__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mj .mj__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--mj-line);
	border-radius: 0;
	background: transparent;
	color: var(--mj-ink);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.mj .mj__chip:hover {
	background: transparent;
	color: var(--mj-accent);
	border-color: var(--mj-accent);
}

.mj .mj__chip[aria-pressed="true"] {
	background: var(--mj-ink);
	color: var(--mj-bg);
	border-color: var(--mj-ink);
}

.mj__chip-n {
	opacity: 0.7;
}

.mj__search {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 1 360px;
	min-width: 220px;
	border-bottom: 1px solid var(--mj-line);
}

.mj .mj__search input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--mj-ink);
	font: inherit;
	font-size: 16px;
}

.mj .mj__search input::placeholder {
	color: var(--mj-muted);
	opacity: 1;
}

.mj__search svg {
	flex: none;
	stroke: currentColor;
}

.mj__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Featured */
.mj__feature {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 4vw;
	align-items: stretch;
	padding: 48px 0 16px;
}

.mj__fmedia {
	flex: 1 1 420px;
	min-height: 380px;
	position: relative;
	overflow: hidden;
	background: var(--mj-placeholder);
}

.mj .mj__fmedia img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mj__fmedia--empty {
	background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 14px);
}

.mj__fbody {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: 8px 0;
}

.mj__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	color: var(--mj-muted);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mj__badge {
	color: var(--mj-accent);
	font-weight: 600;
}

.mj .mj__ftitle {
	color: var(--mj-ink);
	font-size: clamp(32px, 4vw, 60px);
	font-weight: 500;
	line-height: 1.1;
}

.mj .mj__fexcerpt {
	max-width: 540px;
	color: var(--mj-muted);
	font-size: 18px;
	line-height: 1.55;
}

.mj__more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mj__arrow {
	display: inline-block;
	transition: transform 0.2s;
}

.mj__post:hover .mj__arrow {
	transform: translateX(8px);
}

.mj__post:hover .mj__ftitle,
.mj__post:hover .mj__rtitle {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

/* Index */
.mj__index {
	padding-top: 32px;
}

.mj__group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 4vw;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--mj-line);
}

.mj .mj__year {
	flex: 0 0 150px;
	color: var(--mj-accent);
	font-size: 52px;
	line-height: 1;
}

.mj__rows {
	flex: 1 1 520px;
	min-width: 0;
}

.mj__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 3vw;
	padding: 26px 0;
	border-bottom: 1px solid var(--mj-line-soft);
}

.mj__rmeta {
	flex: 0 0 150px;
	color: var(--mj-muted);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mj__rmeta span {
	display: block;
	opacity: 0.8;
}

.mj__rthumb {
	flex: 0 0 120px;
	width: 120px;
	align-self: center;
}

.mj .mj__rthumb img {
	display: block;
	width: 100%;
	max-width: none;
	height: 80px;
	object-fit: cover;
}

.mj__rthumb--empty {
	display: block;
	height: 80px;
	background: var(--mj-placeholder);
	background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 14px);
}

@media (max-width: 767px) {
	.mj__rthumb { flex-basis: 88px; width: 88px; }
	.mj .mj__rthumb img { width: 100%; height: 60px; }
	.mj__rthumb--empty { height: 60px; }
}

.mj__rbody {
	flex: 1 1 340px;
	min-width: 0;
}

.mj .mj__rtitle {
	color: var(--mj-ink);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
}

.mj .mj__rexcerpt {
	max-width: 620px;
	margin-top: 8px;
	color: var(--mj-muted);
	font-size: 15px;
	line-height: 1.55;
}

.mj__rarrow {
	flex: none;
	font-size: 22px;
}

.mj .mj__empty {
	margin: 40px 0;
	font-size: 22px;
}

@media (max-width: 767px) {
	.mj .mj__chips {
		gap: 6px;
	}

	.mj .mj__chip {
		min-height: 34px;
		padding: 0 12px;
		font-size: 11px;
		letter-spacing: 0.06em;
	}

	.mj__search {
		flex-basis: 100%;
	}

	.mj-chipscroll-yes .mj__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		width: 100%;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.mj-chipscroll-yes .mj__chip {
		flex: none;
		white-space: nowrap;
	}

	.mj {
		padding: 40px 20px;
	}

	.mj__year {
		flex-basis: 100%;
	}

	.mj__rmeta {
		flex-basis: 100%;
	}

	.mj__rarrow {
		display: none;
	}

	.mj__fmedia {
		min-height: 260px;
	}
}
