/*
Theme Name: Radiologia Medica
Theme URI: https://radiologiamedicajournal.com/
Description: Hand-coded HTML/CSS theme for the Radiologia Medica journal. Journals are managed with Secure Custom Fields (SCF); no page builder required.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Author: Infin Digital
Text Domain: radiologia
License: GNU General Public License v2 or later
*/

:root {
	--rm-primary: #2f6d59;
	--rm-primary-2: #2d6d59;
	--rm-dark: #003122;
	--rm-darkest: #05100d;
	--rm-mint: #5ed5aa;
	--rm-mint-bg: #f2faf7;
	--rm-sage: #7b9c7d;
	--rm-title: #0d2a22;
	--rm-text: #333333;
	--rm-muted: #7a7a7a;
	--rm-panel-shadow: 0 4px 10px rgba(0, 0, 0, .5);
	--rm-card-shadow: 2px 2px 12px 1px rgba(0, 0, 0, .45);
	/* Fonts exactly as the original site rendered them. */
	--rm-ui: Arial, Helvetica, sans-serif;
	--rm-sys: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--rm-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--rm-text); font-family: var(--rm-sys); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--rm-primary); text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
a:hover { color: var(--rm-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }

/* ---------------- Buttons ---------------- */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 0; cursor: pointer; font-family: var(--rm-ui); font-size: 16px; line-height: 1.2; padding: 11px 26px; transition: background .25s, color .25s, box-shadow .25s, border-color .25s; }
.rm-btn--solid { background: var(--rm-primary); color: #fff; }
.rm-btn--solid:hover { background: var(--rm-dark); color: #fff; }
.rm-btn--light { background: #fff; color: var(--rm-primary); box-shadow: 0 10px 16px -4px rgba(0, 0, 0, .3); }
.rm-btn--light:hover { background: var(--rm-primary); color: #fff; }
.rm-btn--outline { background: #fff; color: var(--rm-primary); border: 1px solid var(--rm-primary); padding: 10px 26px; }
.rm-btn--outline:hover { background: var(--rm-primary); color: #fff; }
.rm-btn--dark { background: var(--rm-darkest); color: #efefef; font-size: 18px; letter-spacing: 1px; padding: 14px 24px; }
.rm-btn--dark:hover { background: #fff; color: var(--rm-darkest); }
.rm-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.rm-emoji { font-size: .85em; line-height: 1; }

/* ---------------- Header ---------------- */
.rm-topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 18px 20px 26px; }
.rm-contact { display: flex; align-items: flex-start; gap: 18px; align-self: start; }
.rm-contact img { width: 50px; height: 50px; }
.rm-contact__label { display: block; font-family: var(--rm-ui); font-size: 15px; letter-spacing: 1px; color: var(--rm-primary); }
.rm-contact__mail { display: block; font-family: var(--rm-ui); font-size: 12px; letter-spacing: 1px; color: #54595f; margin-top: 4px; }
.rm-logo { display: block; line-height: 0; margin-top: 30px; }
.rm-logo img { width: 440px; }
.rm-search { justify-self: end; width: 100%; max-width: 490px; margin-top: 30px; }
.rm-search form { display: flex; align-items: center; border-bottom: 1px solid rgba(47, 109, 89, .55); }
.rm-search svg { width: 15px; height: 15px; fill: #a3a9ab; margin: 0 10px 0 16px; flex: none; }
.rm-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; padding: 12px 6px; font-family: var(--rm-ui); font-size: 16px; letter-spacing: 1px; color: var(--rm-text); }
.rm-search input::placeholder { color: #a3a9ab; }

.rm-navbar { position: relative; z-index: 50; background: linear-gradient(180deg, var(--rm-primary) 0%, var(--rm-dark) 100%); box-shadow: 0 5px 10px rgba(0, 0, 0, .19); }
.rm-navbar__inner { display: flex; justify-content: center; padding: 0 20px; }
.rm-menu, .rm-menu ul { list-style: none; margin: 0; padding: 0; }
.rm-menu { display: flex; align-items: center; }
.rm-menu > li { position: relative; }
.rm-menu a { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--rm-ui); font-size: 16px; letter-spacing: 1px; padding: 27px 20px; }
.rm-menu a:hover, .rm-menu .current-menu-item > a, .rm-menu .current-menu-ancestor > a, .rm-menu .current_page_item > a { color: var(--rm-mint); }
.rm-menu .menu-item-has-children > a::after { content: ""; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.rm-menu ul { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.rm-menu ul ul { top: 0; left: 100%; }
.rm-menu li:hover > ul, .rm-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.rm-menu ul a { color: var(--rm-primary); font-size: 15px; padding: 12px 20px; justify-content: space-between; }
.rm-menu ul a:hover, .rm-menu ul .current-menu-item > a { background: var(--rm-mint); color: #fff; }
.rm-menu ul .menu-item-has-children > a::after { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid currentColor; border-right: 0; }
.rm-burger { display: none; align-items: center; gap: 10px; background: transparent; border: 0; color: #fff; font-family: var(--rm-ui); font-size: 16px; padding: 18px 0; cursor: pointer; }
.rm-burger span, .rm-burger span::before, .rm-burger span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.rm-burger span::before, .rm-burger span::after { content: ""; position: absolute; left: 0; }
.rm-burger span::before { top: -7px; }
.rm-burger span::after { top: 7px; }

/* ---------------- Banner ---------------- */
.rm-banner { position: relative; background: var(--rm-sage); height: 100px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.rm-banner::before { content: ""; position: absolute; inset: 0; background: url("assets/img/banner-contour.png") center / 1000px auto repeat; opacity: .7; }
.rm-banner__title { position: relative; width: 525px; max-width: 92%; margin: 0; background: #fff; border-top: 5px solid var(--rm-primary); text-align: center; padding: 14px 20px 0; font-family: var(--rm-ui); font-size: 29px; font-weight: 700; line-height: 1.1; color: var(--rm-primary); }

/* ---------------- Mint panel (content pages) ---------------- */
.rm-page { padding: 75px 20px 60px; }
.rm-panel { max-width: 1180px; margin: 0 auto; background: var(--rm-mint-bg); box-shadow: var(--rm-panel-shadow); padding: 30px 34px; }
.rm-content { font-family: var(--rm-sys); font-size: 15px; line-height: 1.6; color: var(--rm-text); }
.rm-content > *:first-child { margin-top: 0; }
.rm-content > *:last-child { margin-bottom: 0; }
.rm-content p { margin: 0 0 1em; }
.rm-content h2, .rm-content h3, .rm-content h4, .rm-content h5, .rm-content h6 { font-family: var(--rm-sys); font-size: 16px; font-weight: 700; color: #000; margin: 1.3em 0 .35em; }
.rm-content ul, .rm-content ol { padding-left: 1.6em; margin: 0 0 1em; }
.rm-content img { display: block; margin: 10px 0 20px; }
.rm-content a { text-decoration: underline; }
.rm-content .rm-btn { text-decoration: none; }
.rm-steps { display: block; }
.rm-step h3 { font-size: 16px; margin-top: 1em; }

/* Editorial board */
.rm-content .rm-board-title { font-family: var(--rm-ui); font-size: 30px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rm-primary); text-align: center; margin: 20px 0 22px; }
.rm-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1140px; margin: 0 auto 40px; }
.rm-board--chief { grid-template-columns: minmax(0, 600px); justify-content: center; }
.rm-board__card { background: var(--rm-mint-bg); box-shadow: 0 8px 28px -2px rgba(0, 0, 0, .5); padding: 22px 16px 28px; text-align: center; }
.rm-content .rm-board__name { font-family: var(--rm-ui); font-size: 19px; font-weight: 700; letter-spacing: 2px; color: var(--rm-title); margin: 0 0 26px; }
.rm-content .rm-board__card p { margin: 0; font-family: var(--rm-ui); font-size: 15px; line-height: 1.55; color: var(--rm-text); }
.rm-content .rm-board--chief .rm-board__card p { margin-bottom: 24px; font-style: italic; }
.rm-content .rm-board--chief .rm-board__card p:last-child { margin-bottom: 0; }

/* Submission */
.rm-content .rm-intro { font-family: var(--rm-ui); font-size: 19px; letter-spacing: 2px; text-transform: capitalize; color: var(--rm-title); text-align: center; max-width: 1100px; margin: 0 auto 50px; font-weight: 400; line-height: 1.5; }
.rm-flip { position: relative; max-width: 1120px; height: 245px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); background: #fff; overflow: hidden; }
.rm-flip__face { position: absolute; inset: 0; padding: 40px 35px; display: flex; flex-direction: column; justify-content: center; transition: opacity .45s ease, transform .45s ease; }
.rm-flip__back { background: linear-gradient(180deg, var(--rm-primary) 0%, var(--rm-dark) 100%); color: #fff; align-items: center; text-align: center; opacity: 0; transform: translateY(20px); }
.rm-flip:hover .rm-flip__front, .rm-flip:focus-within .rm-flip__front { opacity: 0; transform: translateY(-20px); }
.rm-flip:hover .rm-flip__back, .rm-flip:focus-within .rm-flip__back { opacity: 1; transform: none; }
.rm-flip svg { width: 62px; height: 55px; fill: var(--rm-primary); margin-bottom: 26px; }
.rm-content .rm-flip h3 { font-family: var(--rm-ui); font-size: 30px; font-weight: 700; color: var(--rm-title); margin: 0 0 18px; }
.rm-content .rm-flip p { font-family: var(--rm-ui); font-size: 14.5px; color: var(--rm-primary); margin: 0; }
.rm-content .rm-flip__back h3 { color: #fff; }
.rm-content .rm-flip__back p { color: #efefef; margin-bottom: 18px; }
.rm-flip__back .rm-btn { border: 2px solid #fff; background: transparent; color: #fff; letter-spacing: 1px; }
.rm-flip__back .rm-btn:hover { background: #fff; color: var(--rm-dark); }

/* ---------------- Journal cards ---------------- */
.rm-list { max-width: 1156px; margin: 0 auto; padding: 34px 20px 60px; }
.rm-cards { display: flex; flex-direction: column; gap: 30px; }
.rm-card { background: var(--rm-mint-bg); box-shadow: var(--rm-card-shadow); padding: 22px 30px 32px 20px; }
.rm-card[hidden] { display: none; }
.rm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 12px; padding: 0; list-style: none; font-family: var(--rm-ui); font-size: 14.5px; color: var(--rm-text); }
.rm-tags li::after { content: "|"; font-weight: 700; margin: 0 12px; font-size: .85em; }
.rm-tags__doi::after { display: none; }
.rm-tags__doi a { color: #1a5fd0; word-break: break-all; }
.rm-tags__doi a:hover { color: #0b3d91; text-decoration: underline; }
.rm-card__title { font-family: var(--rm-ui); font-size: 26.5px; font-weight: 400; line-height: 1.2; letter-spacing: 1.3px; margin: 0 0 10px; }
.rm-card__title a { color: var(--rm-title); }
.rm-card__title a:hover { color: var(--rm-primary); }
.rm-authors { font-family: var(--rm-serif); font-style: italic; font-size: 14.5px; line-height: 1.22; letter-spacing: 1.5px; color: var(--rm-primary); }
.rm-authors p { margin: 0; }
.rm-authors ol, .rm-authors ul { margin: 18px 0 0; padding-left: 40px; }
.rm-authors p + p { margin-top: 18px; }
.rm-card__meta { margin: 10px 0 0; font-family: var(--rm-ui); font-size: 13px; color: var(--rm-muted); }
.rm-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-left: 16px; }
.rm-card__actions-right { display: flex; flex-wrap: wrap; gap: 12px; }
.rm-card .rm-btn { font-size: 16px; padding: 11px 24px; }
.rm-card .rm-btn--light { padding: 11px 24px 11px 22px; gap: 14px; }
.rm-load-more { display: flex; justify-content: center; margin-top: 28px; }
.rm-load-more .rm-btn { background: var(--rm-dark); font-size: 14px; padding: 11px 22px; }
.rm-load-more .rm-btn:hover { background: var(--rm-primary); }
.rm-empty { text-align: center; padding: 40px 20px; background: var(--rm-mint-bg); box-shadow: var(--rm-panel-shadow); color: var(--rm-muted); font-family: var(--rm-ui); }

/* ---------------- Archive / year pages ---------------- */
.rm-years { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 1036px; margin: 0 auto; }
.rm-year { background: var(--rm-mint-bg); box-shadow: var(--rm-panel-shadow); padding: 14px 16px 22px; text-align: center; }
.rm-year--featured { grid-column: 1 / -1; }
.rm-year h2 { font-family: var(--rm-ui); font-size: 27px; font-weight: 700; color: var(--rm-darkest); letter-spacing: 1px; margin: 0 0 16px; }
.rm-year h2 a { color: inherit; }
.rm-year__issues { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 14px; }
.rm-year__issues .rm-btn { font-family: var(--rm-ui); font-size: 15px; color: #306c5c; min-width: 110px; padding: 12px 20px; }
.rm-year__issues .rm-btn:hover { color: #fff; }
.rm-yearbox { max-width: 1036px; margin: 0 auto; background: var(--rm-mint-bg); box-shadow: var(--rm-panel-shadow); padding: 25px 20px; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; }
.rm-yearbox .rm-btn { width: 184px; height: 64px; font-family: Verdana, Geneva, sans-serif; font-size: 25px; font-weight: 700; color: #306c5c; box-shadow: 0 10px 16px -4px rgba(0, 0, 0, .3); }
.rm-yearbox .rm-btn:hover { color: #fff; }

/* ---------------- Single journal ---------------- */
.rm-article { display: grid; grid-template-columns: minmax(0, 1000px) 400px; gap: 16px; justify-content: center; align-items: start; max-width: 1450px; margin: 0 auto; padding: 22px 20px 90px; }
.rm-article__main { background: #fff; box-shadow: 0 5px 10px rgba(0, 0, 0, .5); padding: 50px; }
.rm-article .rm-tags { font-size: 19px; margin-bottom: 22px; }
.rm-article__title { font-family: var(--rm-ui); font-size: 29px; font-weight: 700; line-height: 1.07; letter-spacing: 2px; color: var(--rm-primary); margin: 0 0 22px; }
.rm-article .rm-authors { font-family: var(--rm-sys); font-size: 16px; line-height: 1.5; letter-spacing: 0; color: var(--rm-text); }
.rm-article .rm-authors sup { font-size: .7em; }
.rm-article .rm-authors ol { margin: 14px 0 0; padding-left: 40px; }
.rm-divider { border: 0; border-top: 2px solid #e8e8e8; margin: 14px 0 20px; }
.rm-article__h { font-family: var(--rm-ui); font-weight: 400; font-size: 22.5px; color: #000; margin: 0 0 20px; }
.rm-abstract { font-family: var(--rm-sys); font-size: 15.5px; line-height: 1.52; color: #111; text-align: justify; }
.rm-abstract p { margin: 0 0 1.05em; }
.rm-article__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rm-article__actions .rm-btn { font-size: 16px; padding: 12px 24px; }
.rm-aside__box { background: linear-gradient(180deg, var(--rm-darkest) 0%, var(--rm-dark) 100%); color: #fff; padding: 50px 15px; }
.rm-aside__box h2 { font-family: "Arial Black", Arial, sans-serif; font-weight: 900; font-size: 32px; line-height: 1.02; color: #fff; margin: 0 0 28px; }
.rm-aside__box p { font-family: var(--rm-ui); font-size: 15px; letter-spacing: 1px; line-height: 1.35; color: #fff; margin: 0 0 30px; }
.rm-aside__form { display: grid; gap: 16px; }
.rm-aside__form input { width: 100%; height: 39px; border: 1px solid #69727d; border-radius: 3px; background: #fff; padding: 0 16px; font-family: var(--rm-ui); font-size: 15px; letter-spacing: 1px; }
.rm-aside__form .rm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-aside__form button { height: 40px; border: 0; background: var(--rm-primary); color: #fff; font-family: var(--rm-ui); font-size: 16px; letter-spacing: 1px; cursor: pointer; }
.rm-aside__form button:hover { background: var(--rm-mint); }
.rm-aside__note { font-family: var(--rm-ui); font-size: 14px; color: var(--rm-mint); margin: 0 0 14px; }

/* ---------------- Forms (Get Access / Contact) ---------------- */
.rm-content .rm-access h2 { font-family: var(--rm-ui); font-size: 24px; color: var(--rm-primary); margin: 0 0 10px; }
.rm-access__article { font-family: var(--rm-ui); font-size: 18px; color: var(--rm-title); background: #fff; padding: 12px 16px; margin: 0 0 6px; }
.rm-form { display: grid; gap: 14px; margin-top: 18px; }
.rm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rm-form label { display: block; font-family: var(--rm-ui); font-size: 14px; color: var(--rm-dark); margin-bottom: 5px; }
.rm-form input[type=text], .rm-form input[type=email], .rm-form textarea { width: 100%; border: 1px solid #69727d; border-radius: 3px; background: #fff; padding: 11px 13px; font-family: var(--rm-ui); font-size: 15px; color: var(--rm-text); }
.rm-form textarea { min-height: 120px; resize: vertical; }
.rm-form .rm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-form .rm-btn { justify-self: start; }
.rm-notice { padding: 14px 18px; margin: 0 0 20px; border-left: 4px solid var(--rm-primary); background: #fff; font-family: var(--rm-ui); font-size: 15px; }
.rm-notice--error { border-left-color: #b3261e; background: #fdf0ef; }

/* ---------------- Home ---------------- */
.rm-hero { position: relative; background: var(--rm-primary-2); overflow: hidden; text-align: center; padding: 44px 12px 0; }
.rm-hero::before { content: ""; position: absolute; inset: 0; background: url("assets/img/hero-contour.png") center / cover no-repeat; opacity: .16; }
.rm-hero__inner { position: relative; max-width: 1600px; margin: 0 auto 22px; }
.rm-hero h1 { font-family: var(--rm-ui); font-weight: 700; font-size: 44px; line-height: 1.12; letter-spacing: 2px; color: #fff; margin: 0 0 51px; }
.rm-features { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1500px; margin: 0 auto; text-align: left; }
.rm-feature { display: flex; gap: 28px; align-items: flex-start; padding: 40px 30px 40px 62px; min-height: 227px; }
.rm-feature:nth-child(1) { background: var(--rm-darkest); }
.rm-feature:nth-child(2), .rm-feature:nth-child(3) { background: linear-gradient(180deg, var(--rm-darkest) 0%, var(--rm-dark) 100%); }
.rm-feature img { width: 58px; height: 58px; flex: none; }
.rm-feature h3 { font-family: var(--rm-ui); font-weight: 700; font-size: 29px; line-height: 1.2; letter-spacing: 2px; color: #fff; margin: 0 0 24px; }
.rm-feature p { font-family: var(--rm-ui); font-size: 16px; line-height: 1.5; letter-spacing: 1px; color: #e6e6e6; margin: 0; }
.rm-home-latest { max-width: 1224px; margin: 0 auto; padding: 117px 20px 20px; }
.rm-heading { text-align: center; font-family: var(--rm-ui); font-weight: 700; font-size: 29px; letter-spacing: 2px; color: var(--rm-dark); margin: 0 0 20px; }
.rm-indexing { padding: 40px 20px 10px; text-align: center; }
.rm-sjr--solo { display: inline-block; width: 260px; max-width: 80%; background: #fff; box-shadow: var(--rm-card-shadow); padding: 12px; }
.rm-sjr--solo img { display: block; width: 100%; height: auto; }
.rm-info { padding: 40px 0; }
.rm-info__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1900px; margin: 0 auto; padding: 0 40px; }
.rm-info__grid::before { content: ""; position: absolute; left: 60px; right: 60px; top: 47px; height: 1px; background: var(--rm-primary); opacity: .5; }
.rm-info__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rm-info__item img { width: 95px; height: 95px; margin-bottom: 40px; }
.rm-info__item h3 { font-family: var(--rm-ui); font-weight: 700; font-size: 19px; letter-spacing: 1.5px; color: var(--rm-primary); margin: 0 0 20px; }
.rm-info__item p { font-family: var(--rm-ui); font-size: 14.5px; line-height: 1.55; letter-spacing: 1px; color: var(--rm-muted); margin: 0 0 40px; }
.rm-info__item .rm-btn { margin-top: auto; background: #fff; color: var(--rm-primary); border: 2px solid var(--rm-primary); box-shadow: none; font-weight: 700; font-size: 15px; padding: 10px 24px; }
.rm-info__item .rm-btn:hover { background: var(--rm-primary); color: #fff; }

/* ---------------- Footer ---------------- */
.rm-footer { background: var(--rm-dark); color: #fff; }
.rm-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 20px 40px 40px; }
.rm-footer__logo img { width: 420px; max-width: 100%; }
.rm-footer__menu { flex: 1; justify-content: center; }
.rm-footer__menu a { font-family: var(--rm-sys); font-size: 16px; letter-spacing: 0; padding: 16px 25px; }
.rm-footer__menu > li > a { border-bottom: 3px solid transparent; }
.rm-footer__menu > .current-menu-item > a, .rm-footer__menu > .current_page_item > a, .rm-footer__menu > .current-menu-ancestor > a { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
.rm-footer__menu > li > a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
.rm-footer__menu ul { top: auto; bottom: 100%; transform: translateY(-8px); }
.rm-footer__menu ul ul { bottom: auto; top: 0; }
.rm-footer__bottom { margin: 0 20px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 24px 0 30px; font-family: var(--rm-sys); font-size: 15px; }

/* ---------------- Search ---------------- */
.rm-results-title { font-family: var(--rm-ui); font-size: 18px; margin: 0 0 20px; color: var(--rm-muted); font-weight: 400; }
.rm-page-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.rm-page-list a { display: block; padding: 14px 18px; background: var(--rm-mint-bg); box-shadow: 0 3px 10px rgba(0, 0, 0, .2); font-family: var(--rm-ui); }
.rm-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; font-family: var(--rm-ui); }
.rm-pagination .page-numbers { padding: 8px 14px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.rm-pagination .current { background: var(--rm-primary); color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
	.rm-article { grid-template-columns: minmax(0, 1fr) 340px; }
	.rm-feature { padding: 34px 24px; }
	.rm-feature h3 { font-size: 24px; }
}
@media (max-width: 1024px) {
	.rm-article { grid-template-columns: 1fr; }
	.rm-features { grid-template-columns: 1fr; }
	.rm-info__grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
	.rm-info__grid::before { display: none; }
	.rm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rm-hero h1 { font-size: 34px; }
}
@media (max-width: 880px) {
	.rm-topbar__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; padding-bottom: 16px; }
	.rm-contact { display: none; }
	.rm-logo, .rm-search { margin-top: 0; }
	.rm-logo img { width: 320px; }
	.rm-search { justify-self: center; }
	.rm-navbar__inner { flex-direction: column; align-items: stretch; }
	.rm-burger { display: flex; align-self: center; }
	.rm-navbar .rm-menu { display: none; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
	.rm-navbar.is-open .rm-menu { display: flex; }
	.rm-navbar .rm-menu a { padding: 12px 10px; justify-content: space-between; }
	.rm-navbar .rm-menu ul, .rm-navbar .rm-menu ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, .06); display: none; min-width: 0; }
	.rm-navbar .rm-menu li.is-open > ul { display: block; }
	.rm-navbar .rm-menu ul a { color: #fff; padding-left: 26px; }
	.rm-navbar .rm-menu ul ul a { padding-left: 42px; }
	.rm-footer__menu ul { display: none !important; }
	.rm-footer__menu .menu-item-has-children > a::after { display: none; }
	.rm-footer__top { flex-direction: column; text-align: center; padding: 30px 20px; }
	.rm-footer__menu { flex-wrap: wrap; justify-content: center; }
	.rm-footer__menu a { padding: 10px 14px; }
	.rm-years { grid-template-columns: 1fr; }
	.rm-article__main { padding: 28px 20px; }
	.rm-panel { padding: 24px 18px; }
	.rm-form__row { grid-template-columns: 1fr; }
	.rm-flip { height: 300px; }
	.rm-page { padding-top: 40px; }
}
@media (max-width: 600px) {
	.rm-hero h1 { font-size: 26px; margin-bottom: 30px; }
	.rm-feature h3 { font-size: 22px; }
	.rm-home-latest { padding-top: 60px; }
	.rm-heading { font-size: 22px; }
	.rm-info__grid { grid-template-columns: 1fr; }
	.rm-board { grid-template-columns: 1fr; }
	.rm-card { padding: 18px 16px 22px; }
	.rm-card__title { font-size: 20px; }
	.rm-card__actions { flex-direction: column; align-items: stretch; padding-left: 0; }
	.rm-card__actions .rm-btn, .rm-card__actions-right { width: 100%; }
	.rm-card__actions-right .rm-btn { flex: 1; }
	.rm-banner__title { font-size: 22px; }
	.rm-article__title { font-size: 23px; letter-spacing: 1px; }
	.rm-abstract, .rm-content p { text-align: left; }
	.rm-yearbox .rm-btn { width: 100%; }
	.rm-content .rm-intro { font-size: 16px; }
	.rm-flip { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Submission page: intro + Mail Us card sit on white (no mint panel). */
.rm-panel:has(.rm-flip) { background: transparent; box-shadow: none; padding: 0; max-width: 1120px; }

/* Single journal: "Start your future today" box stays in view while scrolling. */
.rm-aside { position: sticky; top: 20px; align-self: start; }
.admin-bar .rm-aside { top: 52px; }
@media (max-width: 1024px) {
	.rm-aside { position: static; }
}

/* Footer logo: white so it is readable on the dark green. */
.rm-footer__logo img { filter: brightness(0) invert(1); }

/* Home: SCImago ranking band. */
.rm-rank { background: var(--rm-mint-bg); margin-top: 60px; padding: 60px 20px; border-top: 1px solid rgba(47, 109, 89, .15); border-bottom: 1px solid rgba(47, 109, 89, .15); }
.rm-rank__inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 60px; align-items: center; }
.rm-rank__eyebrow { font-family: var(--rm-ui); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--rm-primary); margin: 0 0 10px; }
.rm-rank h2 { font-family: var(--rm-ui); font-size: 29px; font-weight: 700; letter-spacing: 1.5px; color: var(--rm-dark); margin: 0 0 16px; }
.rm-rank__text p:not(.rm-rank__eyebrow) { font-family: var(--rm-ui); font-size: 16px; line-height: 1.6; letter-spacing: .5px; color: #555; margin: 0 0 26px; max-width: 560px; }
.rm-rank__badge { display: block; background: #fff; padding: 10px; border-top: 4px solid var(--rm-primary); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); transition: transform .25s ease, box-shadow .25s ease; }
.rm-rank__badge:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .2); }
.rm-rank__badge img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
	.rm-rank__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; justify-items: center; }
	.rm-rank__text p:not(.rm-rank__eyebrow) { margin-left: auto; margin-right: auto; }
	.rm-rank__badge { width: 220px; }
	.rm-rank h2 { font-size: 24px; }
}

/* Author names / affiliations wrappers (cards). */
.rm-authors__affil > p:first-child { margin-top: 18px; }
.rm-burger--top { display: none; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 880px) {
	/* Header: logo left, menu button top-right, search below. */
	.rm-topbar__inner { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; text-align: left; gap: 10px 14px; padding: 14px 16px 12px; }
	.rm-logo { justify-self: start; }
	.rm-logo img { width: 240px; }
	.rm-search { grid-column: 1 / -1; justify-self: stretch; max-width: none; }
	.rm-burger--top { display: flex; grid-column: 2; grid-row: 1; justify-self: end; align-self: center; width: 46px; height: 42px; padding: 0; justify-content: center; background: var(--rm-primary); color: #fff; border-radius: 3px; }
	.rm-burger--top:hover { background: var(--rm-dark); }
	/* Green bar only appears when the menu is opened. */
	.rm-navbar .rm-burger { display: none; }
	.rm-navbar { display: none; }
	.rm-navbar.is-open { display: block; }
	.rm-navbar.is-open .rm-menu { display: flex; padding: 6px 0 12px; }
	/* Close icon when open. */
	.rm-menu-open .rm-burger--top span { background: transparent; }
	.rm-menu-open .rm-burger--top span::before { top: 0; transform: rotate(45deg); }
	.rm-menu-open .rm-burger--top span::after { top: 0; transform: rotate(-45deg); }
	.rm-burger span, .rm-burger span::before, .rm-burger span::after { transition: transform .2s ease, background .2s ease; }
}
@media (max-width: 600px) {
	/* Cards: author names limited to 4 lines, affiliations hidden. */
	.rm-card .rm-authors__names { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
	.rm-card .rm-authors__names p { display: inline; }
	.rm-card .rm-authors__affil { display: none; }
	.rm-card .rm-authors { letter-spacing: .8px; }
}
