/*
Theme Name: Polymer Journals Science
Theme URI: https://polymerjournals.com
Author: Polymer Journals
Author URI: https://polymerjournals.com/
Description: A modern science-news theme for Polymer Journals.
Version: 1.0.0
Text Domain: polymerjournals-science
*/

:root {
	--pj-bg: #f4efe6;
	--pj-surface: #fffdf9;
	--pj-surface-strong: #f5f7fb;
	--pj-ink: #102133;
	--pj-muted: #5d6b7a;
	--pj-border: rgba(16, 33, 51, 0.11);
	--pj-navy: #0d2031;
	--pj-teal: #0f6e73;
	--pj-cyan: #1aa8a5;
	--pj-gold: #f0a33a;
	--pj-coral: #ec7a5c;
	--pj-shadow: 0 24px 60px rgba(13, 32, 49, 0.12);
	--pj-radius: 28px;
	--pj-radius-sm: 18px;
	--pj-content: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(circle at top left, rgba(26, 168, 165, 0.18), transparent 32%),
		radial-gradient(circle at top right, rgba(240, 163, 58, 0.14), transparent 26%),
		linear-gradient(180deg, #f8f4ec 0%, #eef5f6 38%, #f8f7f3 100%);
	color: var(--pj-ink);
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
	margin: 0;
}

a {
	color: inherit;
	text-decoration-color: rgba(15, 110, 115, 0.35);
	text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
	text-decoration-color: currentColor;
}

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

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

.site-shell {
	overflow: hidden;
}

.site-width {
	margin: 0 auto;
	max-width: var(--pj-content);
	padding: 0 24px;
}

.site-header {
	padding: 24px 0 18px;
	position: relative;
	z-index: 5;
}

.site-header::before {
	background: linear-gradient(120deg, rgba(13, 32, 49, 0.96), rgba(15, 110, 115, 0.92));
	border-bottom-left-radius: 42px;
	border-bottom-right-radius: 42px;
	content: "";
	inset: 0 14px auto;
	position: absolute;
	top: 0;
	height: 108px;
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	position: relative;
}

.brand-lockup {
	align-items: center;
	color: #fff;
	display: inline-flex;
	gap: 16px;
	text-decoration: none;
}

.brand-lockup__mark {
	background: rgba(255, 255, 255, 0.11);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	padding: 10px;
	backdrop-filter: blur(14px);
}

.brand-lockup__mark img {
	height: 34px;
	width: 34px;
}

.brand-lockup__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.brand-lockup__name {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}

.brand-lockup__tag {
	color: rgba(255, 255, 255, 0.78);
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.76rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.site-nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.site-nav a {
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: #fff;
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 16px;
	text-decoration: none;
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-1px);
}

.hero-shell,
.section-shell,
.entry-shell,
.search-shell,
.not-found-shell {
	padding: 28px 0 64px;
}

.hero-grid {
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
}

.hero-story,
.story-card,
.feature-panel,
.info-card,
.journal-card,
.search-card,
.result-card {
	background: rgba(255, 253, 249, 0.88);
	border: 1px solid var(--pj-border);
	border-radius: var(--pj-radius);
	box-shadow: var(--pj-shadow);
	position: relative;
}

.hero-story {
	background:
		linear-gradient(135deg, rgba(13, 32, 49, 0.95), rgba(15, 110, 115, 0.86)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
	color: #fff;
	overflow: hidden;
	padding: 34px;
}

.hero-story::after {
	background:
		radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.24), transparent 25%),
		radial-gradient(circle at 72% 60%, rgba(240, 163, 58, 0.32), transparent 20%),
		linear-gradient(130deg, transparent 36%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0.04) 40%, transparent 40%);
	content: "";
	inset: 0;
	position: absolute;
}

.hero-story > * {
	position: relative;
	z-index: 1;
}

.eyebrow,
.topic-pill {
	align-items: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	display: inline-flex;
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	gap: 8px;
	letter-spacing: 0.12em;
	padding: 8px 13px;
	text-transform: uppercase;
}

.topic-pill {
	background: rgba(15, 110, 115, 0.08);
	border-color: rgba(15, 110, 115, 0.12);
	color: var(--pj-teal);
}

.hero-story__title,
.story-card__title,
.entry-hero__title,
.section-title {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	letter-spacing: -0.03em;
	line-height: 0.96;
	margin: 0;
}

.hero-story__title {
	font-size: clamp(2.45rem, 6vw, 5rem);
	margin-top: 22px;
	max-width: 12ch;
}

.hero-story__lead {
	color: rgba(255, 255, 255, 0.84);
	font-size: 1.15rem;
	line-height: 1.65;
	margin: 22px 0 26px;
	max-width: 56ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button-link {
	background: #fff;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--pj-navy);
	display: inline-flex;
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	padding: 13px 18px;
	text-decoration: none;
}

.button-link--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.feature-panel {
	display: grid;
	gap: 18px;
	padding: 24px;
}

.feature-panel__section + .feature-panel__section {
	border-top: 1px solid var(--pj-border);
	padding-top: 18px;
}

.feature-panel__label {
	color: var(--pj-muted);
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.feature-panel__headline {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.16;
	margin: 0 0 10px;
}

.feature-panel__copy,
.story-card__excerpt,
.entry-hero__summary,
.journal-card__copy,
.search-card__copy,
.result-card__excerpt {
	color: var(--pj-muted);
	line-height: 1.65;
}

.meta-row {
	color: var(--pj-muted);
	display: flex;
	flex-wrap: wrap;
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.84rem;
	gap: 10px 18px;
	margin-top: 16px;
}

.meta-row strong {
	color: var(--pj-ink);
}

.section-head {
	align-items: end;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.section-title {
	font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-copy {
	color: var(--pj-muted);
	margin: 6px 0 0;
	max-width: 60ch;
}

.story-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid--wide {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.story-card__media,
.entry-hero__visual {
	background:
		linear-gradient(135deg, rgba(15, 110, 115, 0.95), rgba(26, 168, 165, 0.82) 46%, rgba(240, 163, 58, 0.9)),
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 24%);
	min-height: 200px;
	position: relative;
}

.story-card__media img,
.entry-hero__visual img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.story-card__media::after,
.entry-hero__visual::after {
	background:
		linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.12) 100%),
		radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.18), transparent 20%);
	content: "";
	inset: 0;
	position: absolute;
}

.story-card__body,
.search-card,
.result-card,
.journal-card {
	padding: 20px;
}

.story-card__title {
	font-size: clamp(1.28rem, 1.9vw, 1.7rem);
	margin-top: 12px;
}

.story-card__link,
.journal-card__title a,
.feature-panel__headline a,
.result-card__title a {
	text-decoration: none;
}

.story-card__link:hover,
.journal-card__title a:hover,
.feature-panel__headline a:hover,
.result-card__title a:hover {
	color: var(--pj-teal);
}

.feature-split {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.journal-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.journal-card__title {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.16;
	margin: 0;
}

.entry-hero {
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
	margin-bottom: 26px;
}

.entry-hero__content {
	background: rgba(255, 253, 249, 0.84);
	border: 1px solid var(--pj-border);
	border-radius: var(--pj-radius);
	box-shadow: var(--pj-shadow);
	padding: 32px;
}

.entry-hero__title {
	font-size: clamp(2rem, 4vw, 4rem);
	margin-top: 16px;
}

.entry-layout {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) 320px;
}

.entry-content,
.entry-sidebar,
.search-card,
.not-found-card {
	background: rgba(255, 253, 249, 0.88);
	border: 1px solid var(--pj-border);
	border-radius: var(--pj-radius);
	box-shadow: var(--pj-shadow);
}

.entry-content {
	padding: 28px;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content table {
	border-collapse: collapse;
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.entry-content td,
.entry-content th {
	border: 1px solid rgba(16, 33, 51, 0.08);
	padding: 10px 12px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

.entry-content p,
.entry-content li {
	line-height: 1.8;
}

.entry-sidebar {
	align-self: start;
	display: grid;
	gap: 16px;
	padding: 18px;
	position: sticky;
	top: 18px;
}

.info-card {
	box-shadow: none;
	padding: 18px;
}

.info-card h2 {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 1rem;
	margin: 0 0 12px;
}

.info-list {
	display: grid;
	gap: 10px;
	margin: 0;
}

.info-list div {
	border-top: 1px solid rgba(16, 33, 51, 0.08);
	padding-top: 10px;
}

.info-list div:first-child {
	border-top: 0;
	padding-top: 0;
}

.info-list dt {
	color: var(--pj-muted);
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.info-list dd {
	margin: 0;
}

.button-link--inline {
	background: linear-gradient(135deg, var(--pj-teal), var(--pj-cyan));
	color: #fff;
	display: inline-flex;
}

.search-shell__form {
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.search-shell__field {
	background: #fff;
	border: 1px solid rgba(16, 33, 51, 0.12);
	border-radius: 18px;
	padding: 16px 18px;
	width: 100%;
}

.search-shell__submit {
	background: linear-gradient(135deg, var(--pj-navy), var(--pj-teal));
	border: 0;
	border-radius: 18px;
	color: #fff;
	cursor: pointer;
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-weight: 700;
	padding: 0 24px;
}

.results-grid {
	display: grid;
	gap: 18px;
	margin-top: 24px;
}

.result-card__title {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-size: 1.42rem;
	line-height: 1.08;
	margin: 10px 0;
}

.not-found-card {
	padding: 34px;
}

.site-footer {
	padding: 0 0 32px;
}

.site-footer__inner {
	background: linear-gradient(145deg, rgba(13, 32, 49, 0.96), rgba(13, 32, 49, 0.9));
	border-radius: 34px;
	box-shadow: var(--pj-shadow);
	color: #fff;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
	padding: 28px;
}

.site-footer__copy {
	color: rgba(255, 255, 255, 0.74);
	line-height: 1.7;
	max-width: 56ch;
}

.footer-links {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
	color: rgba(255, 255, 255, 0.86);
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: #fff;
}

.journal-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.journal-list li {
	align-items: center;
	border-top: 1px solid rgba(16, 33, 51, 0.08);
	display: flex;
	justify-content: space-between;
	padding-top: 12px;
}

.journal-list li:first-child {
	border-top: 0;
	padding-top: 0;
}

.journal-list a {
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.journal-list span {
	color: var(--pj-muted);
	font-size: 0.9rem;
}

.post-navigation,
.pagination {
	margin-top: 28px;
}

@media (max-width: 1040px) {
	.hero-grid,
	.feature-split,
	.entry-hero,
	.entry-layout,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.story-grid--wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.journal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.entry-sidebar {
		position: static;
	}
}

@media (max-width: 760px) {
	.site-header::before {
		border-bottom-left-radius: 28px;
		border-bottom-right-radius: 28px;
		height: 156px;
		inset: 0 10px auto;
	}

	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-nav {
		justify-content: flex-start;
	}

	.story-grid,
	.story-grid--wide,
	.journal-grid,
	.footer-links {
		grid-template-columns: 1fr;
	}

	.hero-story,
	.entry-hero__content,
	.entry-content,
	.site-footer__inner,
	.not-found-card {
		padding: 22px;
	}

	.search-shell__form {
		grid-template-columns: 1fr;
	}
}
