/**
 * staticpage.css
 *
 * Style sheet for every static page rendered by the StaticPages plugin.
 * Loaded on every static page via the plugin handler, after the theme
 * stylesheets, so these rules can safely override the theme defaults.
 *
 * The static page markup lives inside a <div class="page">:
 *   <div class="page">
 *     <h2>{$title}</h2>
 *     {$content}
 *   </div>
 */

/* =====================================================================
   Page container
   ===================================================================== */
.page {
	max-width: 100%;
	overflow-wrap: break-word;
}

.page > h2 {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-size: 1.9rem;
	font-weight: 700;
	color: #1a2a3a;
	margin-bottom: 1.5rem;
	padding-bottom: .6rem;
	border-bottom: 3px solid #0d6efd;
}

/* =====================================================================
   Typography
   ===================================================================== */
.page p {
	line-height: 1.75;
	color: #374151;
	margin-bottom: 1rem;
}

.page a {
	color: #0d6efd;
	text-decoration: none;
}

.page a:hover,
.page a:focus {
	color: #0a58ca;
	text-decoration: underline;
}

.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 {
	font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
	font-weight: 600;
	color: #1f2937;
	margin-top: 1.5rem;
	margin-bottom: .75rem;
	line-height: 1.3;
}

.page h3 { font-size: 1.35rem; }
.page h4 { font-size: 1.15rem; }
.page h5 { font-size: 1rem; }
.page h6 { font-size: .9rem; }

.page strong {
	font-weight: 700;
	color: #111827;
}

.page em {
	font-style: italic;
}

/* =====================================================================
   Lists
   ===================================================================== */
.page ul,
.page ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.page ul li,
.page ol li {
	line-height: 1.7;
	margin-bottom: .35rem;
}

.page ul li::marker {
	color: #0d6efd;
}

/* =====================================================================
   Blockquote
   ===================================================================== */
.page blockquote {
	margin: 1.25rem 0;
	padding: .9rem 1.25rem;
	border-left: 4px solid #0d6efd;
	background-color: #f3f8ff;
	color: #374151;
	font-style: italic;
	border-radius: 0 .5rem .5rem 0;
}

/* =====================================================================
   Tables
   ===================================================================== */
.page table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0;
	font-size: .95rem;
}

.page th,
.page td {
	border: 1px solid #e5e7eb;
	padding: .6rem .8rem;
	text-align: left;
	vertical-align: top;
}

.page th {
	background-color: #f3f4f6;
	color: #111827;
	font-weight: 600;
}

.page tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.page table,
.page th,
.page td {
	overflow-wrap: break-word;
}

/* =====================================================================
   Media
   ===================================================================== */
.page img,
.page video,
.page iframe {
	max-width: 100%;
	height: auto;
	border-radius: .4rem;
}

.page figure {
	margin: 1.25rem 0;
	text-align: center;
}

.page figcaption {
	margin-top: .5rem;
	font-size: .85rem;
	color: #6b7280;
	font-style: italic;
}

/* =====================================================================
   Inline code & preformatted text
   ===================================================================== */
.page code {
	background-color: #f3f4f6;
	color: #be123c;
	padding: .15rem .35rem;
	border-radius: .25rem;
	font-size: .875em;
}

.page pre {
	background-color: #1f2937;
	color: #e5e7eb;
	padding: 1rem 1.25rem;
	border-radius: .5rem;
	overflow-x: auto;
	line-height: 1.6;
	margin: 1.25rem 0;
}

.page pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	border-radius: 0;
}

/* =====================================================================
   Utilities & responsive
   ===================================================================== */
.page hr {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin: 1.5rem 0;
}

/* =====================================================================
   Cards & info boxes (generic, matches UFDK theme: white + teal #07ad9d)
   Used by author fees and journal info static pages.
   ===================================================================== */
.fees-lead,
.info-lead {
	font-size: 1.05rem;
	color: var(--ufdk-muted, #6c757d);
	margin-bottom: 1.5rem;
}

.fees-grid,
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0;
}

.fee-card,
.info-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1.5rem 1.75rem;
	border: 1px solid var(--ufdk-border, #e9ecef);
	border-radius: var(--ufdk-radius, 1rem);
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}

.fee-card:hover,
.info-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 .75rem 1.75rem rgba(7, 173, 157, .18);
}

.fee-card-external,
.info-card-featured {
	border: 2px solid var(--ufdk-secondary, #07ad9d);
	background: linear-gradient(160deg, #fff 0%, var(--ufdk-secondary-light, #e6f6f4) 100%);
}

.fee-tag,
.info-tag {
	display: inline-block;
	padding: .3rem .95rem;
	border-radius: 2rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: .9rem;
}

.fee-tag-external,
.info-tag-primary {
	background: var(--ufdk-secondary, #07ad9d);
	color: #fff;
}

.fee-tag-internal,
.info-tag-light {
	background: var(--ufdk-secondary-light, #e6f6f4);
	color: var(--ufdk-secondary-dark, #059989);
}

.fee-price,
.info-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ufdk-secondary-dark, #059989);
	margin-bottom: .6rem;
}

.fee-currency {
	font-size: 1rem;
	font-weight: 600;
	vertical-align: super;
	letter-spacing: .02em;
}

.fee-label,
.info-text {
	margin: 0;
	color: var(--ufdk-muted, #6c757d);
	font-size: .9rem;
	line-height: 1.5;
}

.fee-bank,
.info-box {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.75rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--ufdk-border, #e9ecef);
	border-left: 4px solid var(--ufdk-secondary, #07ad9d);
	border-radius: var(--ufdk-radius, 1rem);
	background: var(--ufdk-secondary-light, #e6f6f4);
}

.fee-bank-icon,
.info-box-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--ufdk-secondary, #07ad9d);
	color: #fff;
	font-size: 1.35rem;
}

.fee-bank-text,
.info-box-text {
	font-size: .95rem;
	line-height: 1.6;
	color: var(--ufdk-text, #212529);
}

.fee-bank-text strong,
.info-box-text strong {
	color: var(--ufdk-secondary-dark, #059989);
}

@media (max-width: 575.98px) {
	.page > h2 { font-size: 1.5rem; }
	.page th,
	.page td { padding: .45rem .55rem; }
	.page { font-size: .95rem; }
	.fees-grid { grid-template-columns: 1fr; }
	.info-grid { grid-template-columns: 1fr; }
	.fee-card { padding: 1.5rem 1rem; }
	.info-card { padding: 1.5rem 1rem; }
	.fee-bank { flex-direction: column; text-align: center; }
	.info-box { flex-direction: column; text-align: center; }
}