/* ==========================================================================
   Inspire Quill theme - Inspire Academic Press (Canada)
   Modern publisher look: deep navy + the logo's gold, each journal in its own cover colour.
   Loaded after the parent (default) theme stylesheet, so it only overrides what it must.
   ========================================================================== */

:root {
	--iq-navy: #0b1f3a;
	--iq-navy-2: #12305a;
	--iq-navy-3: #1a427a;
	--iq-blue: #1f5fbf;
	--iq-gold: #c9962b;
	--iq-gold-2: #e8c36a;
	--iq-ink: #1c2a3d;
	--iq-muted: #5b6b80;
	--iq-bg: #f4f7fb;
	--iq-card: #ffffff;
	--iq-line: #e3e8f0;
	--iq-radius: 16px;
	--iq-shadow: 0 10px 30px rgba(11, 31, 58, .10);
	--iq-shadow-lg: 0 24px 60px rgba(11, 31, 58, .22);
	--iq-accent: var(--iq-gold);
	--iq-accent-soft: #fbf3e2;
	--iq-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--iq-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

/* Journal accent colours (taken from each journal's cover) */
.iq-j-inspireai { --iq-accent: #2f7fe0; --iq-accent-soft: #e8f1fd; }
.iq-j-inspirehealth { --iq-accent: #6f7cc4; --iq-accent-soft: #eef0fb; }
.iq-j-inspiresmartsystems { --iq-accent: #1b9a7f; --iq-accent-soft: #e6f6f2; }
.iq-j-inspiredata { --iq-accent: #e8801f; --iq-accent-soft: #fdf0e3; }

/* ---------- Base (all site-level pages) ---------- */
body.iq-theme {
	font-family: var(--iq-font);
	color: var(--iq-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
body.iq-theme a { color: var(--iq-blue); }
body.iq-theme a:hover, body.iq-theme a:focus { color: var(--iq-navy-3); }
body.iq-theme h1, body.iq-theme h2, body.iq-theme h3, body.iq-theme h4 { font-family: var(--iq-serif); color: var(--iq-navy); }
body.iq-theme .pkp_button, body.iq-theme .cmp_button, body.iq-theme .cmp_form .buttons button, body.iq-theme .cmp_form .buttons a.cancel {
	border-radius: 10px;
}
body.iq-theme .pkp_button_primary, body.iq-theme .cmp_form .buttons button.submit {
	background: var(--iq-navy); border-color: var(--iq-navy); color: #fff;
}
body.iq-theme .pkp_structure_main a:focus-visible, body.iq-theme .iq-btn:focus-visible, body.iq-theme .iq-search input:focus-visible {
	outline: 3px solid var(--iq-gold-2); outline-offset: 2px;
}

/* ---------- Header ---------- */
.iq-theme .pkp_structure_head {
	background: #fff !important;
	border-bottom: 1px solid var(--iq-line) !important;
	position: sticky; top: 0; z-index: 1000;
	transition: box-shadow .25s ease;
}
.iq-theme .pkp_structure_head.is-stuck { box-shadow: 0 8px 24px rgba(11, 31, 58, .10); }

.iq-theme .pkp_head_wrapper,
.iq-theme.has_site_logo .pkp_head_wrapper,
.has_site_logo.iq-theme .pkp_head_wrapper {
	display: flex !important; align-items: center; justify-content: space-between; gap: 24px;
	width: 100% !important; max-width: 1240px; margin: 0 auto !important;
	padding: 12px 24px !important; position: relative;
}
.iq-theme .pkp_site_name_wrapper {
	position: static !important; width: auto !important; height: auto !important;
	padding: 0 !important; margin: 0 !important; display: flex; align-items: center; flex: 0 0 auto;
}
.iq-theme .pkp_site_name {
	position: static !important; left: auto !important; right: auto !important;
	padding: 0 !important; margin: 0 !important; width: auto !important; overflow: visible !important;
}
.iq-theme .pkp_site_name .is_img { margin: 0 !important; padding: 0 !important; }
.iq-theme .pkp_site_name .is_img img { max-height: 46px !important; width: auto !important; height: auto !important; display: block; }

.iq-theme .pkp_site_nav_menu {
	position: static !important; display: flex !important; align-items: center; justify-content: flex-end; gap: 18px;
	width: auto !important; flex: 1 1 auto;
	background: none !important; padding: 0 !important; margin: 0 !important;
}
.iq-theme .pkp_navigation_primary_row { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; }
.iq-theme .pkp_navigation_primary_wrapper {
	display: flex; align-items: center; gap: 14px;
	width: auto !important; padding: 0 !important; margin: 0 !important;
}
.iq-theme .pkp_navigation_primary { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 !important; padding: 0 !important; }
.iq-theme .pkp_navigation_primary > li { float: none !important; position: relative; display: block; }
.iq-theme .pkp_navigation_primary > li > a, .iq-theme .pkp_navigation_search_wrapper a {
	display: inline-block; padding: 10px 14px !important; border-radius: 10px;
	font-weight: 600; font-size: .95rem; color: var(--iq-navy) !important; text-decoration: none !important;
}
.iq-theme .pkp_navigation_primary > li > a:hover, .iq-theme .pkp_navigation_primary > li > a:focus,
.iq-theme .pkp_navigation_search_wrapper a:hover { background: var(--iq-bg); color: var(--iq-blue) !important; }

/* Journals drop-down */
.iq-theme .iq-has-sub > a::after { content: "\25BE"; margin-left: 6px; font-size: .75em; opacity: .7; }
.iq-theme .iq-sub {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; z-index: 50;
	list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--iq-line);
	border-radius: 14px; box-shadow: var(--iq-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.iq-theme .iq-has-sub:hover > .iq-sub, .iq-theme .iq-has-sub:focus-within > .iq-sub { opacity: 1; visibility: visible; transform: none; }
.iq-theme .iq-sub li { display: block; }
.iq-theme .iq-sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--iq-navy) !important; font-weight: 600; font-size: .92rem; text-decoration: none !important; }
.iq-theme .iq-sub a:hover, .iq-theme .iq-sub a:focus { background: var(--iq-bg); color: var(--iq-blue) !important; }

/* Search box */
.iq-theme .iq-search { display: flex; align-items: center; background: var(--iq-bg); border: 1px solid var(--iq-line); border-radius: 999px; overflow: hidden; }
.iq-theme .iq-search input {
	border: 0; background: transparent; padding: 9px 4px 9px 16px; width: 150px; font: inherit; font-size: .9rem; color: var(--iq-ink);
	box-shadow: none; transition: width .25s ease;
}
.iq-theme .iq-search input:focus { width: 210px; outline: none; }
.iq-theme .iq-search button { border: 0; background: transparent; padding: 9px 14px 9px 8px; color: var(--iq-navy); cursor: pointer; }
.iq-theme .iq-search:focus-within { border-color: var(--iq-gold); box-shadow: 0 0 0 3px rgba(201, 150, 43, .25); }

/* User menu (Register / Login or the logged-in menu) */
.iq-theme .pkp_navigation_user_wrapper { position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto !important; }
.iq-theme .pkp_navigation_user.pkp_navigation_user { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto !important; list-style: none; }
.iq-theme .pkp_navigation_user > li { float: none !important; position: relative; }
.iq-theme .pkp_navigation_user > li > a {
	display: inline-block; padding: 9px 18px !important; border-radius: 999px; font-weight: 600; font-size: .92rem;
	border: 1px solid var(--iq-line); color: var(--iq-navy) !important; background: #fff; text-decoration: none !important;
}
.iq-theme .pkp_navigation_user > li:last-child > a { background: var(--iq-navy); border-color: var(--iq-navy); color: #fff !important; }
.iq-theme .pkp_navigation_user > li > a:hover { border-color: var(--iq-gold); }
.iq-theme .pkp_navigation_user > li:last-child > a:hover { background: var(--iq-navy-3); }

/* Mobile menu button */
.iq-theme .pkp_site_nav_toggle { display: none; }

/* ---------- Home page: full-bleed layout ---------- */
.pkp_page_index.iq-theme .pkp_structure_content,
.pkp_page_index.iq-theme.has_site_logo .pkp_structure_content {
	width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; float: none;
}
.pkp_page_index.iq-theme .pkp_structure_main,
.pkp_page_index.iq-theme .pkp_structure_main:first-child:last-child {
	float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
}
.pkp_page_index.iq-theme .pkp_structure_main::before, .pkp_page_index.iq-theme .pkp_structure_main::after { display: none !important; }

.iq-home { color: var(--iq-ink); font-size: 1rem; line-height: 1.65; }
.iq-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.iq-section { padding: 84px 0; }
.iq-section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.iq-kicker, .iq-eyebrow {
	margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--iq-gold);
	font-family: var(--iq-font);
}
.iq-section__title { margin: 0; font-family: var(--iq-serif); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; color: var(--iq-navy); }

/* Buttons */
.iq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2;
	text-decoration: none !important; border: 2px solid transparent; cursor: pointer;
	transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.iq-btn:hover { transform: translateY(-2px); }
.iq-btn--gold { background: linear-gradient(135deg, var(--iq-gold-2), var(--iq-gold)); color: var(--iq-navy) !important; box-shadow: 0 8px 22px rgba(201, 150, 43, .35); }
.iq-btn--gold:hover { box-shadow: 0 12px 28px rgba(201, 150, 43, .5); }
.iq-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.iq-btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.iq-btn--solid { background: var(--iq-navy); color: #fff !important; }
.iq-btn--solid:hover { background: var(--iq-navy-3); }
.iq-btn--outline { background: transparent; color: var(--iq-navy) !important; border-color: var(--iq-line); }
.iq-btn--outline:hover { border-color: var(--iq-accent); color: var(--iq-navy) !important; }
.iq-btn--text { background: transparent; color: var(--iq-blue) !important; padding-left: 10px; padding-right: 10px; }
.iq-btn--text:hover { text-decoration: underline !important; transform: none; }

/* ---------- Hero slider ---------- */
.iq-hero {
	position: relative; color: #fff; overflow: hidden;
	background: linear-gradient(135deg, var(--iq-navy) 0%, var(--iq-navy-2) 55%, var(--iq-navy-3) 100%);
}
.iq-hero__bg {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(900px 500px at 85% 15%, rgba(201, 150, 43, .20), transparent 60%),
		radial-gradient(700px 500px at 5% 95%, rgba(47, 127, 224, .28), transparent 60%),
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px;
}
.iq-hero__inner { position: relative; padding-top: 28px; padding-bottom: 110px; }
.iq-slides { display: grid; }
.iq-slide {
	grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center;
	min-height: 540px; padding: 36px 0;
	opacity: 0; visibility: hidden; transform: translateX(24px);
	transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.iq-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.iq-slide__title { margin: 0 0 18px; font-family: var(--iq-serif); font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.06; color: #fff !important; letter-spacing: -.01em; }
.iq-slide__title a { color: #fff !important; text-decoration: none !important; }
.iq-slide__title a:hover { color: var(--iq-gold-2) !important; }
.iq-slide__title span { background: linear-gradient(135deg, var(--iq-gold-2), var(--iq-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iq-slide__lead { margin: 0 0 26px; max-width: 58ch; font-size: 1.12rem; line-height: 1.7; color: rgba(255, 255, 255, .86); }
.iq-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 30px; padding: 0; }
.iq-chips li { padding: 7px 16px; border-radius: 999px; font-size: .86rem; font-weight: 700; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.iq-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.iq-slide__visual { display: flex; justify-content: center; align-items: center; }

/* Journal cover in a slide */
.iq-cover {
	position: relative; display: block; width: min(300px, 64%); aspect-ratio: 2 / 3; border-radius: 12px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 90px color-mix(in srgb, var(--iq-accent) 55%, transparent);
	transform: perspective(1100px) rotateY(-9deg) rotateX(2deg); transition: transform .4s ease;
}
.iq-cover::before { content: ""; position: absolute; inset: -3px; border-radius: 15px; border: 2px solid color-mix(in srgb, var(--iq-accent) 70%, #fff); opacity: .55; }
.iq-cover:hover { transform: perspective(1100px) rotateY(-3deg) translateY(-6px); }
.iq-cover img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 10px; }

/* Fan of all covers (first slide) */
.iq-fan { position: relative; width: min(500px, 100%); height: 430px; }
.iq-fan__img { position: absolute; width: 196px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .25); }
.iq-fan__img--1 { left: 0; top: 52px; transform: rotate(-9deg); z-index: 1; }
.iq-fan__img--2 { left: 96px; top: 12px; transform: rotate(-3deg); z-index: 2; }
.iq-fan__img--3 { left: 200px; top: 40px; transform: rotate(4deg); z-index: 3; }
.iq-fan__img--4 { left: 296px; top: 84px; transform: rotate(11deg); z-index: 4; }

/* Slider controls (created by the script) */
.iq-controls { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.iq-dots { display: flex; gap: 10px; align-items: center; }
.iq-dot { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .6); background: transparent; cursor: pointer; transition: all .25s ease; }
.iq-dot.is-active { width: 34px; background: var(--iq-gold-2); border-color: var(--iq-gold-2); }
.iq-arrows { display: flex; gap: 10px; }
.iq-arrow, .iq-pause {
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08);
	color: #fff; font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.iq-arrow:hover, .iq-pause:hover { background: rgba(255, 255, 255, .22); }
.iq-pause { font-size: .85rem; }

/* ---------- Value strip ---------- */
.iq-values { position: relative; z-index: 3; margin-top: -64px; }
.iq-values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--iq-shadow-lg); overflow: hidden; }
.iq-values li { padding: 26px 24px; display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--iq-line); }
.iq-values li:last-child { border-right: 0; }
.iq-values svg { fill: var(--iq-gold); margin-bottom: 8px; }
.iq-values strong { font-family: var(--iq-serif); font-size: 1.15rem; color: var(--iq-navy); }
.iq-values span { font-size: .9rem; color: var(--iq-muted); line-height: 1.45; }

/* ---------- About ---------- */
.iq-about { background: #fff; padding-top: 96px; }
.iq-about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.iq-about__body { font-size: 1.12rem; line-height: 1.8; color: var(--iq-ink); }
.iq-about__body p { margin: 0 0 1em; }
.iq-about__body strong { color: var(--iq-navy); }
.iq-about__body > p:first-of-type:not(.iq-kicker) strong:first-child { font-family: var(--iq-serif); font-size: 1.7rem; line-height: 1.25; }
.iq-about__cta { border-radius: 20px; padding: 32px; color: #fff; background: linear-gradient(145deg, var(--iq-navy), var(--iq-navy-3)); box-shadow: var(--iq-shadow-lg); }
.iq-about__cta h2 { margin: 0 0 8px; font-family: var(--iq-serif); font-size: 1.5rem; color: #fff !important; }
.iq-about__cta p { margin: 0 0 18px; color: rgba(255, 255, 255, .82); }
.iq-about__cta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.iq-about__cta li a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 12px;
	background: rgba(255, 255, 255, .08); border-left: 4px solid var(--iq-accent); color: #fff !important; text-decoration: none !important; font-weight: 600;
	transition: background .2s ease, transform .15s ease;
}
.iq-about__cta li a:hover { background: rgba(255, 255, 255, .18); transform: translateX(4px); }
.iq-about__cta em { font-style: normal; color: var(--iq-gold-2); }

/* ---------- Journals ---------- */
.iq-journals { background: var(--iq-bg); }
.iq-journal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.iq-card {
	position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; padding: 28px;
	background: var(--iq-card); border: 1px solid var(--iq-line); border-radius: var(--iq-radius); box-shadow: 0 4px 14px rgba(11, 31, 58, .05);
	overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.iq-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--iq-accent); }
.iq-card:hover { transform: translateY(-5px); box-shadow: var(--iq-shadow-lg); }
.iq-card:not(.iq-card--cover) { grid-template-columns: 1fr; }
.iq-card__cover a { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(11, 31, 58, .25); }
.iq-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.iq-card:hover .iq-card__cover img { transform: scale(1.05); }
.iq-pill { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: var(--iq-accent-soft); color: var(--iq-navy); }
.iq-card h3 { margin: 0 0 12px; font-family: var(--iq-serif); font-size: 1.45rem; line-height: 1.2; }
.iq-card h3 a { color: var(--iq-navy) !important; text-decoration: none !important; }
.iq-card h3 a:hover { color: var(--iq-accent) !important; }
.iq-desc { font-size: .95rem; line-height: 1.65; color: var(--iq-muted); }
.iq-desc p { margin: 0 0 .7em; }
.iq-desc a { color: var(--iq-blue); font-weight: 600; }
.iq-js .iq-desc[data-iq-desc]:not(.is-open) { max-height: 8.6em; overflow: hidden; position: relative; }
.iq-js .iq-desc.is-clamped:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.iq-more { margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--iq-blue); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.iq-more:hover { text-decoration: underline; }
.iq-card__links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.iq-card__links li { margin: 0; }
.iq-card__links .iq-btn { padding: 10px 20px; font-size: .88rem; }

/* ---------- Announcements ---------- */
.iq-announcements { background: #fff; }
.iq-announcements .cmp_announcements { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; margin: 0 !important; padding: 0; list-style: none; align-items: start; }
.iq-announcements .cmp_announcements > h2 { grid-column: 1 / -1; }
.iq-announcements .cmp_announcements > a#homepageAnnouncements { display: none; }
.iq-announcements .obj_announcement_summary { margin: 0; padding: 0; border: 0; }
.iq-announcements .cmp_announcements > .obj_announcement_summary {
	display: grid; background: var(--iq-card); border: 1px solid var(--iq-line); border-radius: var(--iq-radius); overflow: hidden; box-shadow: var(--iq-shadow);
}
.iq-announcements .obj_announcement_summary_image { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.iq-announcements .obj_announcement_summary_details { padding: 26px 28px 30px; }
.iq-announcements .obj_announcement_summary h3 { margin: 0 0 6px; font-size: 1.5rem; }
.iq-announcements .obj_announcement_summary h3 a, .iq-announcements .obj_announcement_summary h4 a { color: var(--iq-navy) !important; text-decoration: none !important; }
.iq-announcements .obj_announcement_summary h3 a:hover, .iq-announcements .obj_announcement_summary h4 a:hover { color: var(--iq-blue) !important; }
.iq-announcements .date { margin: 0 0 12px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--iq-gold); }
.iq-announcements .summary { color: var(--iq-muted); }
.iq-announcements .read_more { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--iq-blue) !important; text-decoration: none !important; }
.iq-announcements .read_more:hover { text-decoration: underline !important; }
.iq-announcements .more { display: grid; gap: 14px; }
.iq-announcements .more .obj_announcement_summary { padding: 20px 22px; background: var(--iq-bg); border-radius: 14px; border-left: 4px solid var(--iq-gold); }
.iq-announcements .more h4 { margin: 0 0 4px; font-size: 1.08rem; line-height: 1.35; }

/* ---------- Feeds block (former sidebar) ---------- */
.iq-feeds { background: var(--iq-bg); padding: 40px 0; }
.iq-feeds .pkp_block { margin: 0; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.iq-feeds .pkp_block .title { margin: 0; font-family: var(--iq-serif); font-size: 1.1rem; color: var(--iq-navy); position: static; clip: auto; }
.iq-feeds .pkp_block ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.iq-feeds .pkp_block img { height: 26px; width: auto; display: block; }
.iq-feeds .pkp_block a { display: inline-block; padding: 8px 10px; background: #fff; border-radius: 10px; border: 1px solid var(--iq-line); }

/* ---------- Footer ---------- */
.iq-theme .pkp_structure_footer_wrapper { background: var(--iq-navy) !important; border-top: 4px solid var(--iq-gold); margin-top: 0; }
.iq-theme .pkp_structure_footer { width: 100% !important; max-width: 1240px !important; padding: 56px 24px 30px !important; margin: 0 auto; box-sizing: border-box; color: rgba(255, 255, 255, .78); }
.iq-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.iq-footer__brand img { display: block; max-width: 260px; height: auto; margin-bottom: 16px; background: #fff; padding: 10px 14px; border-radius: 12px; }
.iq-footer__brand p { margin: 0; max-width: 34ch; font-size: .95rem; line-height: 1.65; }
.iq-footer__col h2 { margin: 0 0 16px; font-family: var(--iq-font); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--iq-gold-2) !important; }
.iq-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.iq-footer__col a { color: rgba(255, 255, 255, .85) !important; text-decoration: none !important; font-size: .94rem; }
.iq-footer__col a:hover { color: #fff !important; text-decoration: underline !important; }
.iq-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.iq-theme .pkp_footer_content { margin: 0; padding: 0; color: rgba(255, 255, 255, .72); font-size: .88rem; }
.iq-theme .pkp_footer_content p { margin: 0; }
.iq-theme .pkp_footer_content a { color: var(--iq-gold-2) !important; }
.iq-theme .pkp_brand_footer { margin: 0; padding: 0; float: none; }
.iq-theme .pkp_brand_footer img { display: block; height: 36px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }

/* ---------- Inner pages (login, register, announcements, search ...) ---------- */
.iq-theme:not(.pkp_page_index) .pkp_structure_content { padding-top: 2.4rem; }
.iq-theme:not(.pkp_page_index) .pkp_structure_main h1, .iq-theme:not(.pkp_page_index) .pkp_structure_main h2 { color: var(--iq-navy); }
.iq-theme .cmp_breadcrumbs a { color: var(--iq-blue); }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.iq-js .iq-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.iq-js .iq-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.iq-journal-grid { grid-template-columns: 1fr; }
	.iq-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
	.iq-theme .pkp_head_wrapper, .iq-theme.has_site_logo .pkp_head_wrapper, .has_site_logo.iq-theme .pkp_head_wrapper { padding: 10px 18px !important; }
	.iq-theme .pkp_site_name_wrapper { flex: 1 1 auto; justify-content: space-between; }
	.iq-theme .pkp_site_name_wrapper .pkp_site_name { order: 1; }
	.iq-theme .pkp_site_name .is_img img { max-height: 36px !important; }
	.iq-theme .pkp_site_nav_toggle {
		display: inline-flex !important; align-items: center; justify-content: center; order: 2;
		position: static !important; width: 46px !important; height: 46px !important; margin-left: auto;
		background: #fff !important; border: 1px solid var(--iq-line) !important; border-radius: 12px; box-shadow: none !important; cursor: pointer;
	}
	.iq-theme .pkp_site_nav_toggle > span {
		position: static !important; transform: none !important; display: block; width: 22px !important; height: 16px !important;
		border: 0 !important; overflow: hidden; text-indent: -9999px;
		background:
			linear-gradient(var(--iq-navy), var(--iq-navy)) top / 100% 3px no-repeat,
			linear-gradient(var(--iq-navy), var(--iq-navy)) center / 100% 3px no-repeat,
			linear-gradient(var(--iq-navy), var(--iq-navy)) bottom / 100% 3px no-repeat;
	}
	.iq-theme .pkp_site_nav_toggle > span::before, .iq-theme .pkp_site_nav_toggle > span::after { display: none !important; }
	.iq-theme .pkp_site_nav_menu {
		position: absolute !important; top: 100%; left: 0; right: 0; display: none !important; flex-direction: column; align-items: stretch; gap: 14px;
		padding: 18px 22px 24px !important; background: #fff !important; border-bottom: 1px solid var(--iq-line); box-shadow: 0 20px 40px rgba(11, 31, 58, .15);
		max-height: calc(100vh - 70px); overflow-y: auto;
	}
	.iq-theme .pkp_site_nav_menu.pkp_site_nav_menu--isOpen { display: flex !important; }
	.iq-theme .pkp_navigation_primary_wrapper { flex-direction: column; align-items: stretch; gap: 10px; }
	.iq-theme .pkp_navigation_primary { flex-direction: column; align-items: stretch; }
	.iq-theme .iq-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.iq-theme .iq-has-sub > a::after { display: none; }
	.iq-theme .iq-search input, .iq-theme .iq-search input:focus { width: 100%; flex: 1; }
	.iq-theme .pkp_navigation_user.pkp_navigation_user { justify-content: flex-start; flex-wrap: wrap; padding-top: 12px !important; border-top: 1px solid var(--iq-line) !important; }

	.iq-slide { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 24px 0 20px; }
	.iq-slide__visual { order: -1; }
	.iq-cover { width: min(210px, 52%); }
	.iq-fan { height: 300px; transform: scale(.78); transform-origin: top center; }
	.iq-hero__inner { padding-bottom: 130px; }
	.iq-values ul { grid-template-columns: repeat(2, 1fr); }
	.iq-values li:nth-child(2) { border-right: 0; }
	.iq-values li:nth-child(-n+2) { border-bottom: 1px solid var(--iq-line); }
	.iq-about__grid, .iq-announcements .cmp_announcements { grid-template-columns: 1fr; }
	.iq-section { padding: 64px 0; }
}
@media (max-width: 640px) {
	.iq-container { padding-left: 18px; padding-right: 18px; }
	.iq-card { grid-template-columns: 1fr; padding: 22px; }
	.iq-card__cover a { max-width: 190px; }
	.iq-values ul { grid-template-columns: 1fr; }
	.iq-values li { border-right: 0 !important; border-bottom: 1px solid var(--iq-line); }
	.iq-values li:last-child { border-bottom: 0; }
	.iq-fan { height: 240px; transform: scale(.62); }
	.iq-footer { grid-template-columns: 1fr; }
	.iq-controls { bottom: 62px; }
	.iq-actions .iq-btn { flex: 1 1 calc(50% - 6px); padding: 12px 14px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
	.iq-slide, .iq-card, .iq-btn, .iq-cover, .iq-reveal { transition: none !important; }
	.iq-js .iq-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Fixes after the first live review
   ========================================================================== */

/* Full-bleed page: no boxed 1160px frame, no grey backdrop */
html { background: #fff; }
.iq-theme .pkp_structure_page { max-width: none !important; width: 100% !important; margin: 0 !important; box-shadow: none !important; background: #fff; }

/* The old theme painted a light-blue strip behind the logo */
.iq-theme .pkp_site_name_wrapper { background: transparent !important; }

/* Headings and copy: beat the old theme's `.pkp_structure_main h2 { ... }` size rules */
.iq-home .iq-slide__title { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.06; margin: 0 0 18px; font-weight: 700; }
.iq-home .iq-slide__lead { font-size: 1.12rem; line-height: 1.7; margin: 0 0 26px; }
.iq-home .iq-section__title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; margin: 0; font-weight: 700; }
.iq-home .iq-card h3 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
.iq-home .iq-about__cta h2 { font-size: 1.5rem; margin: 0 0 8px; }
.iq-home .iq-values strong { font-size: 1.15rem; }
.iq-home .iq-announcements .obj_announcement_summary h3 { font-size: 1.5rem; line-height: 1.25; }
.iq-home .iq-announcements .more h4 { font-size: 1.08rem; line-height: 1.35; }
.iq-home .iq-desc, .iq-home .iq-desc p { font-size: .95rem; line-height: 1.65; }
.iq-home .iq-eyebrow, .iq-home .iq-kicker { font-size: .78rem; }

/* About text: the opening bold line becomes a heading */
.iq-home .iq-about__body, .iq-home .iq-about__body p { font-size: 1.12rem; line-height: 1.8; }
.iq-home .iq-about__body > p:not(.iq-kicker) > strong:first-child { display: block; margin-bottom: 10px; font-family: var(--iq-serif); font-size: 1.75rem; line-height: 1.25; color: var(--iq-navy); }
.iq-home .iq-about__body > p:not(.iq-kicker) > strong:first-child + br { display: none; }

/* User menu now has valid markup: Register (outline) and Login (solid) */
.iq-theme .pkp_navigation_user.pkp_navigation_user { display: flex; align-items: center; gap: 8px; }
.iq-theme .pkp_navigation_user > li { display: block; float: none !important; }
.iq-theme .pkp_navigation_user > li > a { white-space: nowrap; }
.iq-theme .pkp_navigation_user > li > ul { z-index: 60; }

/* Header: tighter on mid-size desktops so nothing overflows; never allow sideways scrolling */
body.iq-theme { overflow-x: clip; }
@media (min-width: 992px) and (max-width: 1320px) {
	.iq-theme .pkp_head_wrapper, .iq-theme.has_site_logo .pkp_head_wrapper, .has_site_logo.iq-theme .pkp_head_wrapper { gap: 14px; padding-left: 18px !important; padding-right: 18px !important; }
	.iq-theme .pkp_site_name .is_img img { max-height: 40px !important; }
	.iq-theme .pkp_site_nav_menu { gap: 10px; min-width: 0; }
	.iq-theme .pkp_navigation_primary > li > a { padding: 9px 11px !important; font-size: .92rem; }
	.iq-theme .iq-search input { width: 112px; }
	.iq-theme .iq-search input:focus { width: 160px; }
	.iq-theme .pkp_navigation_user > li > a { padding: 8px 14px !important; }
}

/* Announcements: undo the old theme's floated 65% / 35% layout and its image grid */
.pkp_page_index .iq-announcements .cmp_announcements { border: 0 !important; margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pkp_page_index .iq-announcements .cmp_announcements::before, .pkp_page_index .iq-announcements .cmp_announcements::after { display: none !important; }
.pkp_page_index .iq-announcements .cmp_announcements > .obj_announcement_summary { float: none !important; width: auto !important; display: block !important; padding: 0 !important; margin: 0 !important; position: relative; }
.pkp_page_index .iq-announcements .cmp_announcements > .obj_announcement_summary::before { display: none !important; }
.pkp_page_index .iq-announcements .cmp_announcements .more { float: none !important; width: auto !important; padding: 0 !important; display: grid; gap: 14px; position: static; }
.pkp_page_index .iq-announcements .cmp_announcements .more::before { display: none !important; }
.pkp_page_index .iq-announcements .cmp_announcements .more .obj_announcement_summary { padding: 20px 22px !important; }
.iq-announcements .obj_announcement_summary_has_image { display: block !important; }
.iq-announcements .obj_announcement_summary_image { display: block; width: 100%; height: 260px; object-fit: cover; }
.iq-announcements .obj_announcement_summary .read_more { padding-right: 26px; color: var(--iq-blue) !important; }
.iq-announcements .obj_announcement_summary .date::before { color: var(--iq-gold); }
@media (max-width: 991px) { .pkp_page_index .iq-announcements .cmp_announcements { grid-template-columns: 1fr; } }

/* Journal card buttons: compact so all three sit on one row */
.iq-home .iq-card__links { gap: 8px; }
.iq-home .iq-card__links .iq-btn { padding: 9px 16px; font-size: .84rem; }
.iq-home .iq-card__links .iq-btn--text { padding-left: 6px; padding-right: 6px; }

/* Announcement images (often logos or covers): show them whole, never cropped */
.iq-announcements .obj_announcement_summary_image { height: auto; max-height: 300px; object-fit: contain; background: var(--iq-bg); padding: 14px; box-sizing: border-box; }

@media (max-width: 640px) { .iq-hero__inner { padding-bottom: 140px; } .iq-controls { bottom: 56px; } }

/* ==========================================================================
   Round 3: tighter vertical rhythm + logo never touches the menu button
   ========================================================================== */

/* Less empty space between sections (desktop) */
.iq-home .iq-section { padding: 52px 0; }
.iq-home .iq-about { padding-top: 52px; padding-bottom: 44px; }
.iq-home .iq-section__head { margin-bottom: 28px; }
.iq-home .iq-journal-grid { gap: 22px; }
.pkp_page_index .iq-announcements .cmp_announcements { gap: 22px; }
.iq-home .iq-feeds { padding: 28px 0; }
.iq-home .iq-values { margin-top: -52px; }
.iq-home .iq-about__grid { align-items: center; gap: 44px; }
.iq-home .iq-hero__inner { padding-top: 16px; padding-bottom: 92px; }
.iq-home .iq-slide { min-height: 480px; padding: 24px 0; }
.iq-home .iq-controls { bottom: 44px; }
.iq-home .iq-card { padding: 24px; }

/* Logo: show it whole, keep clear of the menu button */
.iq-theme .pkp_site_name a.is_img { display: block; line-height: 0; }
.iq-theme .pkp_site_name .is_img img { object-fit: contain; max-width: 100%; }

@media (max-width: 991px) {
	.iq-home .iq-section { padding: 38px 0; }
	.iq-home .iq-about { padding-top: 38px; padding-bottom: 30px; }
	.iq-home .iq-section__head { margin-bottom: 22px; }
	.iq-home .iq-values { margin-top: -44px; }
	.iq-home .iq-slide { min-height: 0; padding: 18px 0 10px; }
	.iq-home .iq-hero__inner { padding-bottom: 120px; }
	.iq-theme .pkp_site_name_wrapper { gap: 14px; width: 100% !important; }
	.iq-theme .pkp_site_name_wrapper .pkp_site_name { flex: 1 1 auto; min-width: 0; }
	.iq-theme .pkp_site_name .is_img img { max-height: 32px !important; max-width: calc(100vw - 110px) !important; }
}
@media (max-width: 640px) {
	.iq-home .iq-section { padding: 30px 0; }
	.iq-home .iq-about { padding-top: 30px; padding-bottom: 24px; }
	.iq-home .iq-section__head { margin-bottom: 18px; }
	.iq-home .iq-journal-grid, .pkp_page_index .iq-announcements .cmp_announcements { gap: 16px; }
	.iq-home .iq-card { padding: 18px; }
	.iq-home .iq-hero__inner { padding-bottom: 132px; }
}
@media (max-width: 420px) {
	.iq-theme .pkp_site_name .is_img img { max-height: 27px !important; }
	.iq-theme .pkp_head_wrapper, .iq-theme.has_site_logo .pkp_head_wrapper, .has_site_logo.iq-theme .pkp_head_wrapper { padding-left: 14px !important; padding-right: 14px !important; }
}

/* Logo box: left aligned at every width */
.iq-theme .pkp_site_name, .iq-theme .pkp_site_name_wrapper { text-align: left !important; justify-content: flex-start; }
@media (max-width: 991px) { .iq-theme .pkp_site_name_wrapper { justify-content: space-between; } .iq-theme .pkp_site_name { text-align: left !important; margin: 0 !important; } .iq-theme .pkp_site_name a.is_img { margin-left: 0 !important; } }

/* Phones/tablets: the logo row starts at the left edge of the header and fills the width */
@media (max-width: 991px) {
	.iq-theme .pkp_head_wrapper, .iq-theme.has_site_logo .pkp_head_wrapper, .has_site_logo.iq-theme .pkp_head_wrapper { justify-content: flex-start !important; }
	.iq-theme .pkp_site_name_wrapper { flex: 1 1 auto !important; width: 100% !important; max-width: none !important; margin: 0 !important; left: auto !important; right: auto !important; transform: none !important; }
	.iq-theme .pkp_site_name_wrapper .pkp_site_name { flex: 1 1 auto !important; width: auto !important; max-width: none !important; margin: 0 !important; }
}

/* The old theme's clearfix pseudo-elements became empty flex items (plus a 24px gap) before/after the logo */
.iq-theme .pkp_head_wrapper::before, .iq-theme .pkp_head_wrapper::after,
.iq-theme .pkp_site_name_wrapper::before, .iq-theme .pkp_site_name_wrapper::after,
.iq-theme .pkp_site_nav_menu::before, .iq-theme .pkp_site_nav_menu::after { display: none !important; content: none !important; }
