/*!
 * SciPublish OJS AMI Digital theme for OJS 3.5 - portal.css
 * Loaded after the parent (default) theme, so rules here win on equal specificity.
 */
:root {
	--pm-primary: #0f60dc;
	--pm-primary-dark: color-mix(in srgb, var(--pm-primary) 78%, #000);
	--pm-primary-soft: color-mix(in srgb, var(--pm-primary) 9%, #fff);
	--pm-navy: #0d1f40;
	--pm-green: #1fa971;
	--pm-ink: #14213d;
	--pm-text: #2b3548;
	--pm-muted: #657089;
	--pm-line: #d9e5f5;
	--pm-bg: #ffffff;
	--pm-bg-soft: #f5f9ff;
	--pm-radius: 14px;
	--pm-radius-sm: 8px;
	--pm-shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 8px 24px rgba(10, 31, 68, .06);
	--pm-wrap: 1200px;
	--pm-sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--pm-serif: "Source Serif 4", "Source Serif Pro", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
html, body.pm-body { background: var(--pm-bg); color: var(--pm-text); font-family: var(--pm-sans); font-size: 16px; line-height: 1.6; }
.pm-body *, .pm-body *::before, .pm-body *::after { box-sizing: border-box; }
.pm-body a { color: var(--pm-primary); text-decoration: none; }
.pm-body a:hover, .pm-body a:focus { color: var(--pm-primary-dark); }
.pm-body :focus-visible { outline: 3px solid color-mix(in srgb, var(--pm-primary) 55%, #fff); outline-offset: 2px; border-radius: 4px; }
.pm-body img { max-width: 100%; height: auto; }
.pm-container { width: 100%; max-width: var(--pm-wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.pm-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; border-radius: 10px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pm-btn_sm { padding: 9px 14px; font-size: 14px; }
.pm-btn_lg { padding: 14px 24px; font-size: 16px; }
.pm-body a.pm-btn_primary, .pm-body button.pm-btn_primary { background: var(--pm-primary); color: #fff; }
.pm-body a.pm-btn_primary:hover, .pm-body button.pm-btn_primary:hover { background: var(--pm-primary-dark); color: #fff; }
.pm-body a.pm-btn_ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .85); color: #fff; }
.pm-body a.pm-btn_ghost:hover { background: #fff; color: var(--pm-navy); }

/* ---------- Header ---------- */
.pm-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--pm-line); }
.pm-topbar { background: var(--pm-navy); color: #dbe5fb; font-size: 13px; }
.pm-topbar_inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.pm-topbar ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.pm-topbar a { color: #dbe5fb; font-weight: 500; }
.pm-topbar a:hover { color: #fff; }
.pm-bar_inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.pm-brand { flex: 0 0 auto; }
.pm-brand_logo img { display: block; max-height: 56px; width: auto; }
.pm-brand_text { font-family: var(--pm-serif); font-size: 24px; font-weight: 700; color: var(--pm-ink); line-height: 1.15; }
.pm-nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex: 1 1 auto; }
.pm-nav_toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--pm-line); border-radius: 10px; background: #fff; cursor: pointer; }
.pm-nav_toggle_bars, .pm-nav_toggle_bars::before, .pm-nav_toggle_bars::after { display: block; width: 20px; height: 2px; background: var(--pm-ink); border-radius: 2px; content: ""; margin: 0 auto; position: relative; }
.pm-nav_toggle_bars::before { top: -6px; position: absolute; left: 0; }
.pm-nav_toggle_bars::after { top: 6px; position: absolute; left: 0; }

/* Primary menu produced by load_menu (resets parent theme styling) */
.pm-header .pm-nav ul.pkp_navigation_primary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; background: none; border: 0; float: none; width: auto; }
.pm-header .pm-nav ul.pkp_navigation_primary > li { position: relative; margin: 0; padding: 0; float: none; }
.pm-header .pm-nav ul.pkp_navigation_primary > li > a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--pm-ink); font-size: 14px; font-weight: 600; background: none; border: 0; text-transform: none; letter-spacing: 0; }
.pm-header .pm-nav ul.pkp_navigation_primary > li > a:hover,
.pm-header .pm-nav ul.pkp_navigation_primary > li > a:focus { background: var(--pm-primary-soft); color: var(--pm-primary); }
.pm-header .pm-nav ul.pkp_navigation_primary > li.current > a,
.pm-header .pm-nav ul.pkp_navigation_primary > li > a[aria-current] { background: var(--pm-primary); color: #fff; }
.pm-header .pm-nav ul.pkp_navigation_primary > li > a[aria-haspopup]::after { font-family: FontAwesome; content: "\f107"; margin-left: 6px; font-weight: 400; }
.pm-header .pm-nav ul.pkp_navigation_primary ul { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; margin: 4px 0 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--pm-line); border-radius: 12px; box-shadow: var(--pm-shadow); }
.pm-header .pm-nav ul.pkp_navigation_primary ul.show { display: block; }
.pm-header .pm-nav ul.pkp_navigation_primary ul a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--pm-text); font-size: 14px; font-weight: 500; background: none; }
.pm-header .pm-nav ul.pkp_navigation_primary ul a:hover { background: var(--pm-primary-soft); color: var(--pm-primary); }
.pm-nav_cta { white-space: nowrap; }

/* ---------- Page scaffolding ---------- */
.pm-content { width: 100%; max-width: var(--pm-wrap); margin: 0 auto; padding: 28px 24px 56px; display: block; }
.pm-has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
.pm-fullbleed { margin: 0 -24px; }
.pm-is-home .pm-content { max-width: none; padding: 0; }
.pm-is-home .pm-fullbleed { margin: 0; }

/* Typography for default OJS pages rendered inside .pm-main */
:where(.pm-main) h1 { font-family: var(--pm-serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--pm-ink); margin: .2em 0 .6em; }
:where(.pm-main) h2 { font-size: 24px; line-height: 1.3; color: var(--pm-ink); margin: 1.6em 0 .6em; }
:where(.pm-main) h3 { font-size: 19px; line-height: 1.35; color: var(--pm-ink); margin: 1.4em 0 .5em; }
:where(.pm-main) ul, :where(.pm-main) ol { padding-left: 1.4em; }
.pm-main table { border-collapse: collapse; max-width: 100%; }
.pm-main input[type=text], .pm-main input[type=email], .pm-main input[type=password], .pm-main input[type=search], .pm-main select, .pm-main textarea { border: 1px solid #cfd8e8; border-radius: 8px; padding: 10px 12px; font: inherit; max-width: 100%; }
.pm-main .cmp_button, .pm-main button[type=submit], .pm-main .pkp_button { background: var(--pm-primary); border: 0; color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; }
.pm-main .cmp_breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--pm-muted); }
.pm-main .cmp_breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9aa7bf; }
.pm-main .cmp_breadcrumbs .separator { display: none; }

/* ---------- Hero ---------- */
.pm-hero { position: relative; color: #fff; background-color: var(--pm-navy); background-image: linear-gradient(100deg, rgba(10, 31, 68, .96) 0%, rgba(10, 31, 68, .86) 45%, rgba(10, 31, 68, .45) 100%), var(--pm-hero-image, radial-gradient(1200px 500px at 85% 10%, #2b6be0 0%, #0a1f44 70%)); background-size: cover; background-position: center; }
.pm-hero_inner { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.pm-hero_title { max-width: 14em; margin: 0 0 18px; font-family: var(--pm-sans); font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pm-hero_text { max-width: 34em; margin: 0 0 32px; font-size: clamp(16px, 2vw, 19px); color: #dbe5fb; }
.pm-hero_actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Home ---------- */
.pm-home { padding-top: 32px; padding-bottom: 8px; }
.pm-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: -72px; position: relative; z-index: 2; }
.pm-body a.pm-path { display: flex; gap: 20px; align-items: center; padding: 28px; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); box-shadow: var(--pm-shadow); color: var(--pm-text); }
.pm-path:hover { transform: translateY(-2px); }
.pm-path_icon { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; color: #fff; background: var(--pm-primary); }
.pm-path_article .pm-path_icon { background: var(--pm-green); }
.pm-path_body { display: flex; flex-direction: column; gap: 4px; }
.pm-path_body strong { font-size: 20px; color: var(--pm-ink); }
.pm-path_body em { font-style: normal; font-weight: 600; color: var(--pm-primary); }
.pm-path_article .pm-path_body em { color: var(--pm-green); }

.pm-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; margin-top: 48px; }
.pm-block_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pm-block_title { margin: 0; padding-left: 14px; border-left: 5px solid var(--pm-primary); font-size: 22px; line-height: 1.2; color: var(--pm-ink); }
.pm-block_wide { margin-top: 56px; }
.pm-link { font-size: 14px; font-weight: 600; white-space: nowrap; }

.pm-journals { display: grid; gap: 20px; }
.pm-journal_featured { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.pm-cover { display: block; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--pm-primary-soft); box-shadow: 0 10px 24px rgba(10, 31, 68, .2); }
.pm-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-cover_fallback { display: grid; place-items: center; height: 100%; padding: 12px; text-align: center; font-weight: 700; color: var(--pm-primary); }
.pm-journal_info h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.pm-pill { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--pm-primary-soft); color: var(--pm-primary-dark); font-size: 13px; font-weight: 600; }
.pm-journal_desc { margin: 0 0 14px; color: var(--pm-muted); font-size: 15px; }
.pm-journal_list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pm-journal_list a { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-sm); color: var(--pm-text); }
.pm-journal_list a:hover { background: var(--pm-bg-soft); }
.pm-mini_cover { flex: 0 0 48px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--pm-primary-soft); }
.pm-mini_cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-journal_list strong { display: block; font-size: 15px; color: var(--pm-ink); }
.pm-journal_list small { color: var(--pm-muted); }

/* Compact rows */
.pm-rows { display: grid; gap: 6px; }
.pm-body a.pm-row { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--pm-radius-sm); color: var(--pm-ink); }
.pm-body a.pm-row:hover { background: var(--pm-bg-soft); }
.pm-row_thumb { flex: 0 0 84px; height: 62px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--pm-primary-soft); color: var(--pm-primary); font-size: 22px; }
.pm-row_thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-row_body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pm-row_title { font-weight: 700; line-height: 1.3; font-size: 15px; }
.pm-row_meta { font-size: 12.5px; color: var(--pm-muted); }
.pm-dot { display: inline-block; width: 3px; height: 3px; margin: 0 8px; vertical-align: middle; border-radius: 50%; background: #aab5ca; }
.pm-empty { color: var(--pm-muted); padding: 16px 0; }

/* Cards */
.pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pm-grid_2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pm-card:hover { box-shadow: var(--pm-shadow); transform: translateY(-2px); }
.pm-card_media { display: block; aspect-ratio: 16 / 9; background: var(--pm-primary-soft); }
.pm-card_media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-card_placeholder { display: grid; place-items: center; height: 100%; font-size: 38px; color: var(--pm-primary); }
.pm-card_body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.pm-card_title { margin: 0; font-size: 18px; line-height: 1.3; }
.pm-card_title a { color: var(--pm-ink); }
.pm-card_title a:hover { color: var(--pm-primary); }
.pm-card_excerpt { margin: 0; color: var(--pm-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pm-meta { margin-top: auto; font-size: 13px; color: var(--pm-muted); }
.pm-chip { align-self: flex-start; display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--pm-primary-soft); color: var(--pm-primary-dark) !important; font-size: 12.5px; font-weight: 600; }

/* ---------- Article listing ---------- */
.pm-listing_head h1 { margin-bottom: 14px; }
.pm-listing_intro { color: var(--pm-muted); max-width: 60ch; }
.pm-search { display: flex; gap: 8px; max-width: 460px; margin: 18px 0; }
.pm-search input[type=search] { flex: 1; border: 1px solid #cfd8e8; border-radius: 10px; padding: 10px 14px; font: inherit; }
.pm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pm-filters a { display: inline-block; padding: 7px 14px; border: 1px solid var(--pm-line); border-radius: 999px; color: var(--pm-text); font-size: 14px; font-weight: 600; }
.pm-filters a small { color: var(--pm-muted); margin-left: 4px; }
.pm-filters a[aria-current], .pm-filters a:hover { background: var(--pm-primary); border-color: var(--pm-primary); color: #fff; }
.pm-filters a[aria-current] small, .pm-filters a:hover small { color: #dbe5fb; }
.pm-listing_layout, .pm-article_layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.pm-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pm-pager a { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--pm-line); border-radius: 8px; font-weight: 600; }
.pm-pager a[aria-current] { background: var(--pm-primary); border-color: var(--pm-primary); color: #fff; }

/* Sidebar widgets */
.pm-widget { margin-bottom: 24px; padding: 20px; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-widget_title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; font-size: 17px !important; color: var(--pm-ink); }
.pm-widget_title .fa { color: var(--pm-primary); }
.pm-widget_title .pm-fire { color: #f2542d; }
.pm-widget .pm-link { display: inline-block; margin-top: 12px; }
.pm-cats { margin: 0 !important; padding: 0 !important; list-style: none; }
.pm-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--pm-text); font-size: 14.5px; }
.pm-cats a:hover, .pm-cats a[aria-current] { background: var(--pm-bg-soft); }
.pm-cats_name { flex: 1; }
.pm-cats_count { min-width: 34px; padding: 1px 8px; text-align: center; border-radius: 999px; background: var(--pm-bg-soft); color: var(--pm-muted); font-size: 12px; }
.pm-cats_dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pm-primary); }
.pm-cats_dot-1 { background: #1d5bd6; } .pm-cats_dot-2 { background: #8a3d3d; } .pm-cats_dot-3 { background: #f08a24; }
.pm-cats_dot-4 { background: #1fa971; } .pm-cats_dot-5 { background: #2d9d5b; } .pm-cats_dot-0 { background: #d6358f; }

/* ---------- Single article ---------- */
.pm-article_head { max-width: 860px; margin-bottom: 28px; }
.pm-article_title { font-family: var(--pm-serif) !important; font-size: clamp(32px, 5vw, 52px) !important; line-height: 1.12 !important; letter-spacing: -.01em; margin: .1em 0 .35em !important; }
.pm-article_lede { margin: 0 0 20px; font-size: clamp(17px, 2vw, 21px); color: var(--pm-muted); max-width: 40em; }
.pm-meta_article { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 0; }
.pm-meta_article .fa { margin-right: 4px; }
.pm-article_figure { margin: 0 0 28px; border-radius: var(--pm-radius); overflow: hidden; background: var(--pm-primary-soft); }
.pm-article_figure img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.pm-prose { max-width: 70ch; font-size: 18px; line-height: 1.75; color: #1f2a40; }
.pm-prose p { margin: 0 0 1.2em; }
.pm-prose h2, .pm-prose h3 { margin-top: 1.8em; }
.pm-prose img { border-radius: 10px; }
.pm-prose blockquote, .pm-prose .pm-takeaways { margin: 1.6em 0; padding: 18px 22px; background: var(--pm-primary-soft); border: 1px solid color-mix(in srgb, var(--pm-primary) 18%, #fff); border-radius: var(--pm-radius); }
.pm-prose blockquote > :last-child { margin-bottom: 0; }
.pm-prose ul { list-style: none; padding-left: 0; }
.pm-prose .pm-takeaways li { position: relative; padding-left: 28px; margin: 6px 0; }
.pm-prose .pm-takeaways li::before { font-family: FontAwesome; content: "\f00c"; position: absolute; left: 0; color: var(--pm-green); }
.pm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.pm-share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; margin: 36px 0; padding-top: 18px; border-top: 1px solid var(--pm-line); }
.pm-share ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pm-share a, .pm-share button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff !important; font-size: 17px; cursor: pointer; }
.pm-share_fb { background: #1877f2; } .pm-share_x { background: #111; } .pm-share_in { background: #0a66c2; } .pm-share_wa { background: #25d366; } .pm-share_copy { background: var(--pm-primary); }
.pm-related { margin-top: 40px; }
.pm-related .pm-grid { margin-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Trust bar & footer ---------- */
.pm-trust { margin-top: 8px; margin-bottom: 40px; }
.pm-trust_list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 22px 28px; list-style: none; background: var(--pm-primary-soft); border-radius: var(--pm-radius); }
.pm-trust_list li { display: flex; align-items: center; gap: 14px; }
.pm-trust_list strong { display: block; color: var(--pm-ink); font-size: 15px; }
.pm-trust_list span:not(.fa) { color: var(--pm-muted); font-size: 13px; }
.pm-trust_icon { font-size: 30px; color: var(--pm-primary); width: 36px; text-align: center; }
.pm-footer { background: var(--pm-navy); color: #c8d4ee; padding: 36px 0; }
.pm-footer a { color: #fff; }
.pm-footer_inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.pm-footer_content { flex: 1 1 360px; font-size: 14px; }
.pm-footer_brand img { max-height: 40px; filter: brightness(0) invert(1); opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pm-split { grid-template-columns: 1fr; gap: 40px; }
	.pm-grid, .pm-related .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pm-listing_layout, .pm-article_layout, .pm-has-sidebar { grid-template-columns: 1fr; }
	.pm-trust_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
	.pm-nav_toggle { display: block; }
	.pm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 24px 22px; background: #fff; border-bottom: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); }
	.pm-nav.is-open { display: flex; }
	.pm-bar { position: relative; }
	.pm-header .pm-nav ul.pkp_navigation_primary { flex-direction: column; align-items: stretch; }
	.pm-header .pm-nav ul.pkp_navigation_primary ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; margin: 0; }
	.pm-header .pm-nav ul.pkp_navigation_primary > li > a[aria-haspopup]::after { display: none; }
	.pm-nav_cta { justify-content: center; }
}
@media (max-width: 720px) {
	.pm-container { padding-left: 16px; padding-right: 16px; }
	.pm-content { padding: 20px 16px 40px; }
	.pm-fullbleed { margin: 0 -16px; }
	.pm-is-home .pm-fullbleed { margin: 0; }
	.pm-topbar_links:first-child li:not(:first-child) { display: none; }
	.pm-paths { grid-template-columns: 1fr; margin-top: -40px; }
	.pm-journal_featured { grid-template-columns: 110px 1fr; gap: 16px; }
	.pm-grid, .pm-grid_2, .pm-related .pm-grid { grid-template-columns: 1fr; }
	.pm-trust_list { grid-template-columns: 1fr; }
	.pm-prose { font-size: 17px; }
	.pm-share { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-card, .pm-path, .pm-btn { transition: none; }
	.pm-card:hover, .pm-path:hover { transform: none; }
}
@media print {
	.pm-topbar, .pm-nav, .pm-share, .pm-article_side, .pm-trust, .pm-footer { display: none !important; }
	.pm-article_layout { display: block; }
	.pm-prose { max-width: none; font-size: 12pt; }
}
.pm-is-home .pm-content { display: block; }

/* Alignment: .pm-content already pads the page, so nested containers must not pad twice */
.pm-content > .pm-main > .pm-container { padding-left: 0; padding-right: 0; }
.pm-is-home .pm-content > .pm-main > .pm-fullbleed .pm-container { padding-left: 24px; padding-right: 24px; }
.pm-prose blockquote .pm-takeaways { margin: 12px 0 0; padding: 0; background: none; border: 0; }
@media (max-width: 720px) {
	.pm-is-home .pm-content > .pm-main > .pm-fullbleed .pm-container { padding-left: 16px; padding-right: 16px; }
}

.pm-notice { margin: 40px 0; padding: 20px 24px; background: #fff8e6; border: 1px solid #f0d58a; border-radius: var(--pm-radius); color: #5c4400; }
.pm-notice h2 { margin: 0 0 10px; font-size: 17px; color: #5c4400; }
.pm-notice ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; }

/* ---------- Licence panel & admin notice ---------- */
.pm-license { max-width: 720px; padding-bottom: 40px; }
.pm-license_info { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 20px 0; padding: 18px 22px; background: var(--pm-bg-soft); border-radius: var(--pm-radius); }
.pm-license_info dt { font-weight: 600; color: var(--pm-ink); } .pm-license_info dd { margin: 0; }
.pm-badge { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #e6e9f2; font-weight: 700; font-size: 13px; }
.pm-badge_active { background: #d7f3e6; color: #0b6b43; }
.pm-badge_expired, .pm-badge_invalid, .pm-badge_suspended, .pm-badge_domain_limit, .pm-badge_stale { background: #fde2e0; color: #9a1c14; }
.pm-license_form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 12px; }
.pm-license_form label { flex: 1 0 100%; font-weight: 600; }
.pm-license_form input { flex: 1 1 280px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.pm-license_actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-body button.pm-btn_ghost_dark { background: #fff; border-color: var(--pm-line); color: var(--pm-ink); }
.pm-license_note { margin-top: 18px; color: var(--pm-muted); font-size: 14px; }
.pm-flash { margin: 14px 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.pm-flash_ok { background: #d7f3e6; color: #0b6b43; } .pm-flash_error { background: #fde2e0; color: #9a1c14; }
.pm-adminbar { background: #fff4d6; color: #5c4400; font-size: 14px; text-align: center; padding: 8px 16px; }
.pm-adminbar a { color: #5c4400; font-weight: 700; text-decoration: underline; }

.pm-license_server { margin: 24px 0 8px; padding: 14px 18px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-license_server summary { cursor: pointer; font-weight: 600; color: var(--pm-ink); }
