/* ==========================================================================
   IKYBOY_ID4 LAW & JURISPRUDENCE THEME (v1.0.0)
   Distinct Layout : LEFT Sidebar + RIGHT Main Content (Classic Law Review)
                     Centered Masthead + Reversed Hero (3D Leather Volume Left)
                     Unified 4-Pillar Judicial Metrics Ribbon
   Palette         : Warm Parchment Ivory + Judicial Burgundy + Antique Gold
   Dark Mode       : Midnight Chambers Obsidian-Mahogany + Warm Ivory + Gold
   ========================================================================== */
:root {
	--ib-accent: #b8892c;
	--ib-accent-dark: #8c6318;
	--ib-law-burgundy: #5c1022;
	--ib-law-burgundy-deep: #3b0815;
	--ib-law-gold: #b8892c;
	--ib-law-gold-light: #e3c16f;
	--ib-law-ink: #1a1816;
	--ib-bg: #f6f2ea;
	--ib-surface: #fffdf9;
	--ib-border: rgba(138, 102, 42, 0.22);
	--ib-text: #1c1917;
	--ib-muted: #57534e;
}

:root[data-theme="dark"] {
	--ib-bg: #0e0b10;
	--ib-surface: #18131b;
	--ib-border: rgba(212, 168, 67, 0.24);
	--ib-text: #f3ede2;
	--ib-muted: #b5a898;
}

::selection {
	background: rgba(184, 137, 44, 0.28);
	color: #2b0710;
}

:root[data-theme="dark"] ::selection {
	background: rgba(212, 168, 67, 0.36);
	color: #ffffff;
}

body {
	background: var(--ib-bg) !important;
	color: var(--ib-text);
}

.ib_id4_scroll_bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3.5px;
	width: 0%;
	z-index: 99995;
	background: linear-gradient(90deg, #5c1022 0%, #b8892c 55%, #f3d27a 100%);
	box-shadow: 0 0 12px rgba(184, 137, 44, 0.65);
	pointer-events: none;
	transition: width 0.08s linear;
}

/* 1. AMBIENT PARCHMENT & 3D SCALES BACKGROUND */
.ib_ambient_layer.ib_id4_law_layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 16%, rgba(184, 137, 44, 0.11), transparent 44%),
		radial-gradient(circle at 88% 82%, rgba(92, 16, 34, 0.09), transparent 46%),
		linear-gradient(180deg, #f8f4ec 0%, #f3ede2 52%, #f7f2e8 100%) !important;
}

:root[data-theme="dark"] .ib_ambient_layer.ib_id4_law_layer {
	background:
		radial-gradient(circle at 14% 18%, rgba(212, 168, 67, 0.11), transparent 44%),
		radial-gradient(circle at 86% 80%, rgba(107, 18, 36, 0.22), transparent 46%),
		linear-gradient(180deg, #0c090e 0%, #140e16 54%, #0b080d 100%) !important;
}

.ib_id4_orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.24;
	will-change: transform;
}

.ib_id4_orb_1 {
	width: 440px;
	height: 440px;
	top: -130px;
	right: -110px;
	background: radial-gradient(circle, rgba(184, 137, 44, 0.58), transparent 72%);
	animation: ibId4Orb 24s ease-in-out infinite alternate;
}

.ib_id4_orb_2 {
	width: 460px;
	height: 460px;
	bottom: -150px;
	left: -120px;
	background: radial-gradient(circle, rgba(92, 16, 34, 0.55), transparent 72%);
	animation: ibId4Orb 28s ease-in-out infinite alternate-reverse;
}

@keyframes ibId4Orb {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(55px, -40px, 0) scale(1.1); }
}

/* 2. DISTINCT DESKTOP LAYOUT: LEFT SIDEBAR + RIGHT MAIN CONTENT */
@media (min-width: 992px) {
	.pkp_structure_page:not(:has(.page_article_ikyboy)) .pkp_structure_content {
		display: flex !important;
		flex-direction: row-reverse !important;
		align-items: flex-start !important;
		justify-content: space-between !important;
		gap: 1.75rem !important;
		max-width: 1220px !important;
		width: 100% !important;
		margin: 1.75rem auto 0 !important;
		padding: 0 1.25rem !important;
		box-sizing: border-box !important;
	}

	.pkp_structure_page:not(:has(.page_article_ikyboy)) .pkp_structure_content::before,
	.pkp_structure_page:not(:has(.page_article_ikyboy)) .pkp_structure_content::after {
		display: none !important;
		content: none !important;
	}

	.pkp_structure_page:not(:has(.page_article_ikyboy)) .pkp_structure_main {
		float: none !important;
		flex: 1 1 0% !important;
		width: auto !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 1.85rem 2rem !important;
	}

	.pkp_structure_page:not(:has(.page_article_ikyboy)) .pkp_structure_sidebar {
		float: none !important;
		flex: 0 0 300px !important;
		width: 300px !important;
		margin: 0 !important;
		padding: 0 !important;
		position: sticky !important;
		top: 1.25rem !important;
	}
}

.pkp_structure_main {
	background: rgba(255, 253, 249, 0.92) !important;
	border: 1px solid rgba(184, 137, 44, 0.24) !important;
	border-top: 4px solid #5c1022 !important;
	border-radius: 14px !important;
	box-shadow: 0 20px 50px -28px rgba(45, 16, 22, 0.22) !important;
	backdrop-filter: blur(8px) !important;
}

:root[data-theme="dark"] .pkp_structure_main {
	background: rgba(24, 19, 27, 0.9) !important;
	border: 1px solid rgba(212, 168, 67, 0.24) !important;
	border-top: 4px solid #b8892c !important;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.72) !important;
}

/* 3. CENTERED CLASSICAL LAW REVIEW MASTHEAD & BURGUNDY-GOLD NAVBAR */
header.pkp_structure_head {
	background: linear-gradient(180deg, #fffdf9 0%, #f5efe3 100%) !important;
	border-top: 5px solid #5c1022 !important;
	border-bottom: 1px solid rgba(184, 137, 44, 0.35) !important;
	padding-bottom: 0 !important;
	box-shadow: 0 12px 30px -18px rgba(45, 16, 22, 0.25) !important;
	animation: none !important;
}

header.pkp_structure_head::before,
header.pkp_structure_head::after {
	display: none !important;
}

:root[data-theme="dark"] header.pkp_structure_head {
	background: linear-gradient(180deg, #161018 0%, #20131b 100%) !important;
	border-top: 5px solid #b8892c !important;
}

header.pkp_structure_head .pkp_site_name_wrapper {
	max-width: 1220px !important;
	padding: 1.55rem 1.5rem 1.25rem !important;
	justify-content: center !important;
	text-align: center !important;
}

header.pkp_structure_head .pkp_site_name {
	width: 100% !important;
	text-align: center !important;
}

header.pkp_structure_head .pkp_site_name .is_text {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 0.32rem !important;
	font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif !important;
	font-size: clamp(1.5rem, 2.5vw, 2.05rem) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	color: #3b0815 !important;
	text-shadow: none !important;
}

header.pkp_structure_head .pkp_site_name .is_text::before {
	content: "⚖  LAW & JURISPRUDENCE REVIEW" !important;
	display: inline-block !important;
	font-family: system-ui, -apple-system, sans-serif !important;
	font-size: 0.66rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.2em !important;
	color: #9a6f1f !important;
	padding: 0.16rem 0.72rem !important;
	border-top: 1px solid rgba(184, 137, 44, 0.55) !important;
	border-bottom: 1px solid rgba(184, 137, 44, 0.55) !important;
}

:root[data-theme="dark"] header.pkp_structure_head .pkp_site_name .is_text {
	color: #f6efe2 !important;
}

:root[data-theme="dark"] header.pkp_structure_head .pkp_site_name .is_text::before {
	color: #e3c16f !important;
}

header.pkp_structure_head .pkp_navigation_user > li > a {
	background: rgba(92, 16, 34, 0.07) !important;
	border: 1px solid rgba(184, 137, 44, 0.4) !important;
	color: #4c0d19 !important;
	font-weight: 700 !important;
}

header.pkp_structure_head .pkp_navigation_user > li > a:hover {
	background: #5c1022 !important;
	border-color: #5c1022 !important;
	color: #ffffff !important;
}

:root[data-theme="dark"] header.pkp_structure_head .pkp_navigation_user > li > a {
	background: rgba(212, 168, 67, 0.12) !important;
	border-color: rgba(212, 168, 67, 0.38) !important;
	color: #f3e4bc !important;
}

:root[data-theme="dark"] header.pkp_structure_head .pkp_navigation_user > li > a:hover {
	background: #b8892c !important;
	color: #140e16 !important;
}

button.ib_theme_toggle,
#ib-theme-toggle {
	background: linear-gradient(135deg, #5c1022, #851832) !important;
	border: 1px solid rgba(212, 168, 67, 0.55) !important;
	color: #fdf6e3 !important;
}

button.ib_theme_toggle:hover,
#ib-theme-toggle:hover {
	background: linear-gradient(135deg, #b8892c, #8c6318) !important;
	color: #ffffff !important;
}

header.pkp_structure_head .pkp_navigation_primary_row {
	background: linear-gradient(90deg, #320712 0%, #5c1022 50%, #320712 100%) !important;
	border-top: 2px solid #b8892c !important;
	border-bottom: 1px solid rgba(212, 168, 67, 0.35) !important;
	box-shadow: 0 12px 26px -14px rgba(34, 4, 11, 0.65) !important;
}

header.pkp_structure_head .pkp_navigation_primary_wrapper {
	max-width: 1220px !important;
}

header.pkp_structure_head .pkp_navigation_primary > li::after {
	background: linear-gradient(90deg, #d4a843, #f3d27a) !important;
	height: 3px !important;
}

header.pkp_structure_head .pkp_navigation_primary li > ul {
	background: #fffdf9 !important;
	border: 1px solid rgba(184, 137, 44, 0.32) !important;
	border-top: 3px solid #5c1022 !important;
	border-radius: 10px !important;
}

header.pkp_structure_head .pkp_navigation_primary li > ul > li > a:hover {
	background: rgba(184, 137, 44, 0.12) !important;
	color: #4c0d19 !important;
}

:root[data-theme="dark"] header.pkp_structure_head .pkp_navigation_primary li > ul {
	background: #18131b !important;
	border-color: rgba(212, 168, 67, 0.3) !important;
}

:root[data-theme="dark"] header.pkp_structure_head .pkp_navigation_primary li > ul > li > a:hover {
	background: rgba(212, 168, 67, 0.16) !important;
	color: #f3d27a !important;
}

header.pkp_structure_head .pkp_navigation_search_wrapper a {
	background: rgba(212, 168, 67, 0.18) !important;
	border: 1px solid rgba(227, 193, 111, 0.48) !important;
	color: #fef3c7 !important;
}

header.pkp_structure_head .pkp_navigation_search_wrapper a:hover {
	background: #b8892c !important;
	color: #1c1008 !important;
}

/* 4. REVERSED EDITORIAL HERO (3D LEATHER VOLUME LEFT, TITLE RIGHT) */
.page_index_journal .ba_hero {
	border-radius: 14px !important;
	padding: 2rem 2rem !important;
	background:
		radial-gradient(circle at 14% 24%, rgba(212, 168, 67, 0.24), transparent 45%),
		radial-gradient(circle at 90% 85%, rgba(127, 29, 29, 0.35), transparent 48%),
		linear-gradient(135deg, #27060f 0%, #4c0d19 52%, #1d1522 100%) !important;
	border: 1px solid rgba(212, 168, 67, 0.4) !important;
	box-shadow: 0 24px 50px -24px rgba(39, 6, 15, 0.7) !important;
	animation: none !important;
}

.page_index_journal .ba_hero::before {
	content: "" !important;
	position: absolute !important;
	inset: 8px !important;
	border: 1px solid rgba(212, 168, 67, 0.22) !important;
	border-radius: 9px !important;
	pointer-events: none !important;
	z-index: 1 !important;
	animation: none !important;
}

.page_index_journal .ib_hero_grid {
	grid-template-columns: minmax(235px, 0.85fr) minmax(0, 1.45fr) !important;
	gap: 1.9rem !important;
}

@media (min-width: 821px) {
	.page_index_journal .ib_hero_right {
		order: -1 !important;
	}
}

.page_index_journal .ba_hero_badge {
	background: rgba(212, 168, 67, 0.16) !important;
	border: 1px solid rgba(227, 193, 111, 0.5) !important;
	color: #fde68a !important;
	border-radius: 4px !important;
	letter-spacing: 0.1em !important;
}

.page_index_journal .ib_issn_pill {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(212, 168, 67, 0.34) !important;
	color: #f3ede2 !important;
	border-radius: 4px !important;
}

.page_index_journal .ba_hero_title {
	font-family: Georgia, "Palatino Linotype", serif !important;
	font-size: clamp(1.55rem, 2.5vw, 2.08rem) !important;
	font-weight: 700 !important;
	color: #fffdf9 !important;
	line-height: 1.24 !important;
}

.page_index_journal .ba_hero_desc {
	color: #e6dcd0 !important;
}

.page_index_journal .ba_hero a.ba_btn_primary {
	background: linear-gradient(90deg, #b8892c 0%, #d4a843 100%) !important;
	color: #1f0a0e !important;
	border-radius: 8px !important;
	font-weight: 800 !important;
	box-shadow: 0 10px 24px -8px rgba(212, 168, 67, 0.65) !important;
}

.page_index_journal .ba_hero a.ba_btn_ghost {
	background: rgba(255, 255, 255, 0.07) !important;
	border: 1px solid rgba(212, 168, 67, 0.45) !important;
	color: #fef3c7 !important;
	border-radius: 8px !important;
}

.page_index_journal .ib_issue_card {
	background: rgba(24, 6, 11, 0.55) !important;
	border: 1px solid rgba(212, 168, 67, 0.36) !important;
	border-radius: 12px !important;
	animation: none !important;
}

.page_index_journal .ib_issue_tag {
	background: linear-gradient(90deg, #d4a843, #f3d27a) !important;
	color: #2b0710 !important;
	border-radius: 4px !important;
	font-weight: 900 !important;
}

/* 3D LEATHER-BOUND LAW VOLUME SHOWCASE */
.ib_law_volume_stage {
	perspective: 1100px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.65rem 0.85rem;
}

.ib_law_volume {
	position: relative;
	display: inline-block;
	transform-style: preserve-3d;
	animation: ibLawVolFloat 6s ease-in-out infinite;
	border-radius: 3px 10px 10px 3px;
	box-shadow:
		12px 18px 28px -8px rgba(0, 0, 0, 0.58),
		0 0 0 1px rgba(227, 193, 111, 0.35);
	transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
	will-change: transform;
}

@keyframes ibLawVolFloat {
	0%, 100% { transform: perspective(1100px) rotateY(11deg) rotateX(3deg) translateY(0); }
	50% { transform: perspective(1100px) rotateY(7deg) rotateX(1.5deg) translateY(-6px); }
}

.ib_law_volume:hover {
	box-shadow:
		6px 24px 36px -10px rgba(212, 168, 67, 0.45),
		0 0 0 1px rgba(243, 210, 122, 0.62);
}

.ib_law_volume img.ib_issue_cover_img,
.ib_law_volume img.ib_art_cover_img {
	display: block !important;
	border-radius: 3px 9px 9px 3px !important;
	max-height: 215px !important;
	width: auto !important;
	max-width: 100% !important;
	position: relative;
	z-index: 2;
	box-shadow: none !important;
}

.ib_law_volume_empty .ib_issue_cover_placeholder {
	margin-bottom: 0 !important;
	min-width: 155px;
	min-height: 165px;
	border-radius: 3px 9px 9px 3px !important;
	background: linear-gradient(145deg, #3b0815, #5c1022) !important;
	border: 1.5px solid rgba(212, 168, 67, 0.55) !important;
	position: relative;
	z-index: 2;
}

.ib_law_spine {
	position: absolute;
	top: 1px;
	bottom: 1px;
	left: -15px;
	width: 16px;
	background: linear-gradient(90deg, #27060f 0%, #5c1022 35%, #d4a843 50%, #5c1022 65%, #27060f 100%);
	border-radius: 3px 0 0 3px;
	transform-origin: right center;
	transform: rotateY(-78deg);
	z-index: 1;
}

.ib_law_ribbon {
	position: absolute;
	bottom: -14px;
	left: 22px;
	width: 11px;
	height: 20px;
	background: linear-gradient(180deg, #d4a843, #9a6f1f);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
	z-index: 1;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.ib_law_pages {
	position: absolute;
	top: 5px;
	bottom: 5px;
	right: -9px;
	width: 10px;
	background: repeating-linear-gradient(90deg, #f8f3e6 0px, #f8f3e6 1px, #d6ccb8 1px, #d6ccb8 2px);
	border-radius: 0 3px 3px 0;
	transform: translateZ(-4px);
	z-index: 0;
}

.ib_law_glare {
	position: absolute;
	inset: 0;
	border-radius: 3px 9px 9px 3px;
	background: radial-gradient(circle at var(--ib-mx, 30%) var(--ib-my, 25%), rgba(254, 243, 199, 0.28), transparent 62%);
	pointer-events: none;
	z-index: 3;
	mix-blend-mode: overlay;
}

.page_index_journal .ba_hero a.ib_issue_btn {
	background: rgba(212, 168, 67, 0.16) !important;
	border: 1px solid rgba(227, 193, 111, 0.45) !important;
	color: #fef3c7 !important;
	border-radius: 8px !important;
}

.page_index_journal .ba_hero a.ib_issue_btn:hover {
	background: #b8892c !important;
	color: #1f0a0e !important;
}

/* 5. UNIFIED 4-PILLAR JUDICIAL METRICS RIBBON */
.ib_kpi_grid {
	gap: 0 !important;
	background: var(--ib-surface, #fffdf9) !important;
	border: 1px solid rgba(184, 137, 44, 0.32) !important;
	border-top: 3px solid #5c1022 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	box-shadow: 0 12px 26px -18px rgba(45, 16, 22, 0.2) !important;
}

.ib_kpi_card {
	border: none !important;
	border-radius: 0 !important;
	border-right: 1px solid rgba(184, 137, 44, 0.22) !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center !important;
	padding: 1.1rem 0.9rem !important;
}

.ib_kpi_card:last-child {
	border-right: none !important;
}

.ib_kpi_card:hover {
	background: rgba(184, 137, 44, 0.06) !important;
	transform: none !important;
	box-shadow: none !important;
}

.ib_kpi_value {
	font-family: Georgia, "Palatino Linotype", serif !important;
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_kpi_grid {
	background: #18131b !important;
	border-color: rgba(212, 168, 67, 0.26) !important;
	border-top-color: #b8892c !important;
}

:root[data-theme="dark"] .ib_kpi_value {
	color: #f3d27a !important;
}

/* 6. JOURNAL INFORMATION & EDITORIAL OVERVIEW */
.ib_overview_prose {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1rem;
	line-height: 1.85;
}

.ib_info_card {
	border-radius: 12px !important;
	border: 1px solid rgba(184, 137, 44, 0.28) !important;
	border-top: 3.5px solid #5c1022 !important;
	background: var(--ib-surface, #fffdf9) !important;
}

.ib_info_title {
	font-family: Georgia, serif !important;
	color: #5c1022 !important;
	border-bottom-color: rgba(184, 137, 44, 0.35) !important;
}

:root[data-theme="dark"] .ib_info_title {
	color: #e3c16f !important;
}

.ib_info_table tr:nth-child(even) th,
.ib_info_table tr:nth-child(even) td {
	background: rgba(184, 137, 44, 0.055);
}

.ib_quick_card {
	border-radius: 10px !important;
	border-left: 4px solid #5c1022 !important;
}

.ib_quick_card:last-child {
	border-left-color: #b8892c !important;
}

/* 7. PRESTIGIOUS LAW REVIEW ARTICLE CARDS */
.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3,
.current_issue .section > h2,
.current_issue .section > h3 {
	display: inline-flex !important;
	align-items: center;
	font-family: Georgia, serif !important;
	background: #3b0815 !important;
	color: #fef3c7 !important;
	border-left: 4px solid #d4a843 !important;
	border-radius: 4px !important;
	padding: 0.36rem 1.05rem !important;
	font-size: 0.88rem !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}

:root[data-theme="dark"] .obj_issue_toc .section > h2,
:root[data-theme="dark"] .obj_issue_toc .section > h3,
:root[data-theme="dark"] .current_issue .section > h2,
:root[data-theme="dark"] .current_issue .section > h3 {
	background: #5c1022 !important;
	border-left: 4px solid #e3c16f !important;
	color: #fffdf9 !important;
}

.ib_article_card {
	position: relative !important;
	background: var(--ib-surface, #fffdf9) !important;
	border: 1px solid rgba(184, 137, 44, 0.28) !important;
	border-left: 4px solid #5c1022 !important;
	border-radius: 10px !important;
	padding: 1.45rem 1.55rem !important;
	box-shadow: 0 10px 26px -18px rgba(45, 16, 22, 0.2) !important;
}

.ib_article_card::after {
	display: none !important;
	content: none !important;
}

.ib_article_card:hover {
	transform: translateY(-3px) !important;
	border-color: rgba(184, 137, 44, 0.58) !important;
	border-left-color: #b8892c !important;
}

:root[data-theme="dark"] .ib_article_card {
	background: #18131b !important;
	border-color: rgba(212, 168, 67, 0.24) !important;
	border-left-color: #b8892c !important;
}

.ib_article_card .ib_badge_oa {
	background: rgba(184, 137, 44, 0.12) !important;
	border: 1px solid rgba(184, 137, 44, 0.4) !important;
	color: #7c5611 !important;
	border-radius: 4px !important;
}

:root[data-theme="dark"] .ib_article_card .ib_badge_oa {
	background: rgba(212, 168, 67, 0.16) !important;
	color: #f3d27a !important;
}

.ib_article_card .ib_article_title {
	border-left: none !important;
	padding-left: 0 !important;
	font-family: Georgia, "Palatino Linotype", serif !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.38 !important;
}

.ib_article_card .ib_article_title a:hover {
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_article_card .ib_article_title a:hover {
	color: #f3d27a !important;
}

.ib_article_card .ib_badge_corresponding {
	background: rgba(92, 16, 34, 0.1) !important;
	border-color: rgba(92, 16, 34, 0.34) !important;
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_article_card .ib_badge_corresponding {
	background: rgba(212, 168, 67, 0.18) !important;
	border-color: rgba(212, 168, 67, 0.45) !important;
	color: #f3d27a !important;
}

.ib_article_card a.ib_doi_wrap {
	background: rgba(92, 16, 34, 0.06) !important;
	border-color: rgba(184, 137, 44, 0.35) !important;
}

.ib_article_card .ib_badge_doi {
	background: #5c1022 !important;
}

.ib_article_card .ib_doi_text {
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_article_card .ib_doi_text {
	color: #e3c16f !important;
}

.ib_article_card .ib_galleys_row a.obj_galley_link,
.ib_article_card .galleys_links a {
	background: linear-gradient(90deg, #5c1022, #7a162d) !important;
	border: 1px solid rgba(212, 168, 67, 0.45) !important;
	color: #fef3c7 !important;
	border-radius: 7px !important;
	padding: 0.46rem 1.05rem !important;
	font-weight: 800 !important;
}

.ib_article_card .ib_galleys_row a.obj_galley_link:hover,
.ib_article_card .galleys_links a:hover {
	background: linear-gradient(90deg, #b8892c, #8c6318) !important;
	color: #ffffff !important;
}

/* 8. LEFT SIDEBAR — LEGAL ARCHIVE CARDS */
.ib_sb_card {
	border-radius: 12px !important;
	border: 1px solid rgba(184, 137, 44, 0.28) !important;
	background: var(--ib-surface, #fffdf9) !important;
	overflow: hidden !important;
	box-shadow: 0 12px 26px -18px rgba(45, 16, 22, 0.22) !important;
}

.ib_sb_header {
	font-family: Georgia, serif !important;
	background: linear-gradient(95deg, #2d0710 0%, #5c1022 100%) !important;
	border-bottom: 2.5px solid #d4a843 !important;
	letter-spacing: 0.08em !important;
	font-size: 0.78rem !important;
	color: #fef3c7 !important;
}

.ib_sb_sinta_badge {
	background: linear-gradient(90deg, #5c1022, #b8892c) !important;
}

.ib_sb_sinta_slot {
	background: linear-gradient(135deg, rgba(92, 16, 34, 0.06), rgba(184, 137, 44, 0.1)) !important;
	border-color: rgba(184, 137, 44, 0.48) !important;
	border-radius: 10px !important;
}

.ib_sb_icon {
	background: rgba(184, 137, 44, 0.14) !important;
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_sb_icon {
	background: rgba(212, 168, 67, 0.16) !important;
	color: #e3c16f !important;
}

.ib_sb_item:hover {
	background: rgba(184, 137, 44, 0.1) !important;
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_sb_item:hover {
	background: rgba(212, 168, 67, 0.14) !important;
	color: #f3d27a !important;
}

/* 9. ANALYTICS & CHOROPLETH MAP (BURGUNDY vs ANTIQUE GOLD) */
.ib_an_card {
	border-radius: 12px !important;
	border-top: 3.5px solid #5c1022 !important;
	background: var(--ib-surface, #fffdf9) !important;
}

.ib_an_card::before {
	background: linear-gradient(90deg, transparent, #d4a843, #5c1022, transparent) !important;
}

.ib_an_title {
	font-family: Georgia, serif !important;
	color: #5c1022 !important;
}

:root[data-theme="dark"] .ib_an_title {
	color: #e3c16f !important;
}

.ib_an_toggle_btn.is_active,
.ib_an_period_badge,
.ib_geo_tag,
.ib_geo_zoom_btn {
	background: linear-gradient(90deg, #5c1022, #7a162d) !important;
}

.ib_an_pill_blue { background: #6b1224 !important; }
.ib_an_pill_green { background: #b8892c !important; }

.ib_geo_gradient_bar {
	background: linear-gradient(90deg, #f3e8d2, #d4a843, #7f1d1d, #4c0d19) !important;
}

.ib_geo_bar_fill {
	background: linear-gradient(90deg, #5c1022, #b8892c) !important;
}

/* 10. ARTICLE DETAIL, SUBMISSIONS, REVIEWER GUIDELINES & AUTH */
.page_article_ikyboy .ib_art_header_card {
	border-top: 4px solid #5c1022 !important;
	border-radius: 12px !important;
}

.page_article_ikyboy .ib_art_section_pill,
.page_article_ikyboy .ib_art_kw_chip {
	background: rgba(184, 137, 44, 0.12) !important;
	border-color: rgba(184, 137, 44, 0.36) !important;
	color: #5c1022 !important;
}

.page_article_ikyboy .ib_art_box.ib_art_abstract_box {
	border-left-color: #5c1022 !important;
}

.page_article_ikyboy .ib_art_box_heading,
.page_article_ikyboy .ib_art_breadcrumb a,
.page_article_ikyboy .ib_art_doi_link,
.page_article_ikyboy .ib_art_issue_title {
	color: #5c1022 !important;
}

:root[data-theme="dark"] .page_article_ikyboy .ib_art_box_heading,
:root[data-theme="dark"] .page_article_ikyboy .ib_art_breadcrumb a,
:root[data-theme="dark"] .page_article_ikyboy .ib_art_doi_link,
:root[data-theme="dark"] .page_article_ikyboy .ib_art_issue_title,
:root[data-theme="dark"] .page_article_ikyboy .ib_art_section_pill,
:root[data-theme="dark"] .page_article_ikyboy .ib_art_kw_chip {
	color: #e3c16f !important;
}

.page_article_ikyboy .ib_art_doi_badge {
	background: #5c1022 !important;
}

.page_article_ikyboy .ib_art_scard_head.head_green { background: linear-gradient(90deg, #3b0815, #5c1022) !important; }
.page_article_ikyboy .ib_art_scard_head.head_red { background: linear-gradient(90deg, #7f1d1d, #991b1b) !important; }
.page_article_ikyboy .ib_art_scard_head.head_teal { background: linear-gradient(90deg, #785513, #b8892c) !important; }
.page_article_ikyboy .ib_art_scard_head.head_purple { background: linear-gradient(90deg, #2b1d2e, #5c1022) !important; }
.page_article_ikyboy .ib_art_scard_head.head_sky { background: linear-gradient(90deg, #4c0d19, #8c6318) !important; }

.page_article_ikyboy a.ib_art_btn_view,
.page_article_ikyboy a.ib_art_btn_view.obj_galley_link,
.page_article_ikyboy a.ib_art_btn_view.obj_galley_link.pdf {
	background: linear-gradient(90deg, #5c1022 0%, #851832 100%) !important;
	color: #fef3c7 !important;
	box-shadow: 0 10px 22px -10px rgba(92, 16, 34, 0.7) !important;
}

.page_article_ikyboy a.ib_art_btn_download {
	background: linear-gradient(90deg, #9a6f1f 0%, #b8892c 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 10px 22px -10px rgba(184, 137, 44, 0.7) !important;
}

.page_submissions_ikyboy .ib_sub_hero,
.page_submissions_ikyboy .ib_sub_bottom_cta,
.ib_auth_banner,
.ib_sp_banner {
	background:
		radial-gradient(circle at 86% 24%, rgba(212, 168, 67, 0.24), transparent 46%),
		linear-gradient(135deg, #27060f 0%, #4c0d19 56%, #1d1522 100%) !important;
	border: 1px solid rgba(212, 168, 67, 0.36) !important;
}

.page_submissions_ikyboy a.ib_sub_btn_primary,
.page_login form.cmp_form .buttons button.submit,
.page_register form.cmp_form .buttons button.submit,
.page_lost_password form.cmp_form .buttons button.submit {
	background: linear-gradient(90deg, #5c1022 0%, #b8892c 100%) !important;
	color: #ffffff !important;
}

.ib_rg_num {
	background: linear-gradient(135deg, #5c1022, #b8892c) !important;
}

/* DARK MODE SURFACE PARITY */
:root[data-theme="dark"] .ib_info_card,
:root[data-theme="dark"] .ib_quick_card,
:root[data-theme="dark"] .ib_sb_card,
:root[data-theme="dark"] .ib_an_card,
:root[data-theme="dark"] .ib_art_header_card,
:root[data-theme="dark"] .ib_art_scard,
:root[data-theme="dark"] .ib_art_box,
:root[data-theme="dark"] .page_submissions_ikyboy .ib_sub_card,
:root[data-theme="dark"] .page_submissions_ikyboy .ib_sub_step,
:root[data-theme="dark"] .page_login form.cmp_form,
:root[data-theme="dark"] .page_register form.cmp_form fieldset {
	background: #18131b !important;
	border-color: rgba(212, 168, 67, 0.24) !important;
}

:root[data-theme="dark"] .ib_an_kpi,
:root[data-theme="dark"] .ib_geo_panel,
:root[data-theme="dark"] .ib_sb_visitor_box,
:root[data-theme="dark"] a.ib_sb_index_pill,
:root[data-theme="dark"] a.ib_sb_tool_pill {
	background: #211a26 !important;
	border-color: rgba(212, 168, 67, 0.24) !important;
}

/* 11. COURTROOM MAHOGANY & GOLD FOOTER */
.pkp_structure_footer_wrapper {
	background:
		radial-gradient(circle at 15% 0%, rgba(212, 168, 67, 0.14), transparent 40%),
		radial-gradient(circle at 88% 100%, rgba(92, 16, 34, 0.26), transparent 45%),
		linear-gradient(180deg, #1b0910 0%, #10060a 100%) !important;
	border-top: 3px solid #b8892c !important;
}

.ib_ft_logo_box {
	background: linear-gradient(135deg, #5c1022 0%, #b8892c 100%) !important;
	box-shadow: 0 8px 22px rgba(184, 137, 44, 0.35) !important;
}

.ib_ft_col_title {
	font-family: Georgia, serif !important;
	border-bottom-color: rgba(212, 168, 67, 0.45) !important;
}

.ib_ft_contact_card,
.ib_ft_publisher_box {
	border-left-color: #d4a843 !important;
}

.ib_ft_pub_kicker {
	color: #f3d27a !important;
}

.ib_ft_submit_btn {
	background: linear-gradient(90deg, #5c1022, #b8892c) !important;
}

.ib_ft_nav_list li a:hover,
.ib_ft_contact_line a:hover,
.ib_ft_bottom a {
	color: #f3d27a !important;
}

@media (max-width: 991px) {
	.ib_kpi_card {
		border-right: none !important;
		border-bottom: 1px solid rgba(184, 137, 44, 0.2) !important;
	}
	.ib_kpi_card:last-child {
		border-bottom: none !important;
	}
	.page_index_journal .ib_hero_grid {
		grid-template-columns: 1fr !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ib_law_volume,
	.ib_id4_orb {
		animation: none !important;
	}
}
