/* Mikanika v1.2.1: header, breadcrumbs, sidebar, home page */

/* Header: logo on the right (RTL), menu on the left. GP rtl.css gives #site-navigation order:-5, so override it. */
.site-header .inside-header { text-align: right; }
@media (min-width: 769px) {
	.site-header .inside-header { flex-direction: row !important; justify-content: space-between; }
	.site-header .site-branding { order: 1; }
	.nav-float-right .site-header #site-navigation { order: 2 !important; margin-left: 0 !important; margin-right: auto !important; }
	/* Sidebar on the left, article on the right (as in the design) */
	.right-sidebar #right-sidebar { order: 10 !important; }
	.right-sidebar .content-area { order: 1; }
}
@media (max-width: 768px) {
	.site-header .mobile-menu-control-wrapper { margin-left: 0 !important; margin-right: auto !important; }
}
.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: #F59E0B; }

.main-title a { display: inline-flex; align-items: center; gap: 10px; }
.main-title a::before {
	content: "";
	width: 34px; height: 34px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h2l1-2h5l1 2h3l2-2h2v8h-2l-2-2h-2v2H8l-2-2H4z'/%3E%3Cpath d='M9 8V6h3v2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Breadcrumbs */
.mk-breadcrumbs { font-size: 14px; color: #4B5563; margin: 0 0 14px; }
.mk-breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.mk-breadcrumbs a { color: #9A3412; text-decoration: none; }
.mk-breadcrumbs .separator { margin: 0 6px; color: #9CA3AF; }

/* Sidebar boxes */
.sidebar .widget.mk-side { padding: 20px; margin-bottom: 18px; }
.mk-side .widget-title { font-size: 18px; margin: 0 0 8px; }
.mk-side ul { list-style: none; margin: 0; padding: 0; }
.mk-side li { border-bottom: 1px solid #F0F1F3; padding: 9px 0; font-size: 15px; line-height: 1.6; }
.mk-side li:last-child { border-bottom: 0; }
.mk-side li a { color: #16181D; text-decoration: none; font-weight: 600; }
.mk-side li a:hover { color: #9A3412; }

/* Search forms */
.mk-search { display: flex; gap: 8px; background: #FFFFFF; border-radius: 14px; padding: 8px; width: 100%; max-width: 680px; box-sizing: border-box; }
.mk-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; outline: none; background: transparent !important; font: inherit; font-size: 16px; padding: 10px 12px; color: #16181D; }
.mk-search button { border: 0; background: #C2410C; color: #FFFFFF; font: inherit; font-weight: 700; font-size: 16px; padding: 12px 28px; border-radius: 10px; cursor: pointer; }
.mk-search button:hover { background: #9A3412; }
.mk-search-sm { border: 1px solid #E5E7EB; padding: 4px; }
.mk-search-sm input[type="search"] { font-size: 14px; padding: 8px; }
.mk-search-sm button { font-size: 14px; padding: 8px 14px; }

/* Home page */
.mk-home { overflow-x: hidden; }
.mk-home .site-content { padding: 0 !important; }
.mk-home .site-main { margin: 0 !important; }
.mk-home .inside-article { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.mk-home .entry-header, .mk-home .entry-meta, .mk-home footer.entry-meta { display: none; }
.mk-home .entry-content { margin: 0 !important; }
.mk-home-wrap { margin-inline: calc(50% - 50vw); width: 100vw; }

.mk-hero { background: #16181D; color: #FFFFFF; padding: 56px 24px 84px; }
.mk-hero-in { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.mk-eyebrow { font-size: 14px; font-weight: 600; color: #F59E0B; }
.mk-hero h1 { margin: 0; color: #FFFFFF; font-size: 42px; line-height: 1.5; }
.mk-hero p { margin: 0; font-size: 18px; line-height: 1.8; color: #D1D5DB; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 14px; }
.mk-chips span { color: #D1D5DB; padding: 6px 4px; }
.mk-chips a { background: #2A2E36; color: #FFFFFF; padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.mk-chips a:hover { background: #C2410C; color: #FFFFFF; }
.mk-mono { font-family: monospace; font-size: 15px; direction: ltr; }

.mk-main { max-width: 1200px; margin: 0 auto; padding: 0 24px 56px; display: flex; flex-direction: column; gap: 52px; box-sizing: border-box; }
.mk-main h2 { margin: 0; font-size: 26px; }
.mk-main a { text-decoration: none; }
.mk-card { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.mk-card h2 { font-size: 22px; }
.mk-symptoms { margin-top: -44px; box-shadow: 0 10px 28px rgba(22,24,29,0.08); }
.mk-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mk-head a { font-weight: 600; color: #9A3412; }

.mk-sym-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mk-sym-grid a { border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; color: #16181D; background: #FAFAFB; line-height: 1.5; }
.mk-sym-grid a:hover { border-color: #F59E0B; }
.mk-sym-grid strong { font-size: 16px; }
.mk-sym-grid span { font-size: 13px; color: #4B5563; }

.mk-lights { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.mk-light { background: #16181D; border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; color: #FFFFFF; line-height: 1.5; }
.mk-light:hover { background: #2A2E36; color: #FFFFFF; }
.mk-light svg { flex: none; }
.mk-light-warn svg { stroke: #F59E0B; }
.mk-light-stop svg { stroke: #F87171; }
.mk-light span { display: flex; flex-direction: column; gap: 4px; }
.mk-light strong { color: #FFFFFF; }
.mk-light em { font-style: normal; font-size: 13px; }
.mk-light-warn em { color: #FCD34D; }
.mk-light-stop em { color: #FCA5A5; }

.mk-codes { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; }
.mk-codes a { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid #F0F1F3; color: #16181D; line-height: 1.6; }
.mk-codes a:last-child { border-bottom: 0; }
.mk-codes a:hover { background: #FAFAFB; }
.mk-code-id { flex: none; width: 84px; font-family: monospace; font-size: 18px; font-weight: 700; color: #9A3412; direction: ltr; text-align: right; }
.mk-code-name { flex: 1; font-size: 16px; font-weight: 600; }
.mk-codes .mk-sev-high, .mk-codes .mk-sev-mid { flex: none; font-size: 13px; padding: 5px 12px; }

.mk-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.mk-cats a { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; color: #16181D; }
.mk-cats a:hover { border-color: #F59E0B; }
.mk-cats strong { font-size: 18px; }
.mk-cats span { font-size: 14px; color: #4B5563; line-height: 1.7; }

.mk-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-brands a { border: 1px solid #D1D5DB; border-radius: 10px; padding: 8px 18px; font-weight: 600; color: #16181D; }
.mk-brands a:hover { border-color: #C2410C; color: #9A3412; }

.mk-latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mk-latest a { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: #16181D; }
.mk-thumb { display: block; height: 170px; background: #D9DCE2; }
.mk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-latest-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.mk-latest-body em { font-style: normal; font-size: 12px; font-weight: 700; color: #9A3412; }
.mk-latest-body strong { font-size: 18px; line-height: 1.6; }

@media (max-width: 768px) {
	.mk-hero { padding: 40px 18px 72px; }
	.mk-hero h1 { font-size: 30px; }
	.mk-hero p { font-size: 16px; }
	.mk-search button { padding: 10px 18px; }
	.mk-main { padding: 0 16px 40px; gap: 40px; }
	.mk-card { padding: 20px; }
	.mk-sym-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mk-codes a { flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px; }
	.mk-code-name { flex-basis: 100%; order: 3; }
	.mk-main h2 { font-size: 22px; }
}
