.mkb-hero {
    padding: 2.25rem 0 1.55rem;
    background: #edf5ff;
    text-align: left;
}

.mkb-hero-inner { max-width: 1160px; }
.mkb-kicker { margin: 0 0 .45rem; padding: 0; background: none; border: 0; }
.mkb-hero h1 { max-width: 100%; margin: 0 0 .9rem; font-size: clamp(1.7rem, 3.5vw, 3.05rem); letter-spacing: -.04em; }
.mkb-search-shell { width: 100%; max-width: 880px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.mkb-search-box { min-height: 58px; border-width: 1px; border-color: #b2c8e6; gap: .25rem; padding-right: .3rem; }
.mkb-search-box > .bi-search { margin-left: .8rem; }
.mkb-input { flex: 1; width: auto; min-width: 0; padding: .65rem .3rem .65rem .45rem; font-size: 1rem; }
.mkb-input::-webkit-search-cancel-button { display: none; }
.mkb-clear { position: static; width: 36px; height: 36px; }
.mkb-clear:not(.is-visible) { display: none; }
.mkb-submit { flex-shrink: 0; min-height: 44px; padding: .6rem 1.1rem; border: 1px solid #1559e4; border-radius: 9px; background: #1559e4; color: white; font-weight: 750; }
.mkb-submit:hover { background: #1249b6; }
.mkb-search-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .45rem 1rem; padding: .65rem .1rem 0; }
.mkb-popular { justify-content: flex-start; gap: .35rem; margin: .65rem 0 0; }
.mkb-popular > span { width: auto; margin-right: .2rem; }
.mkb-lead { max-width: 64rem; margin: .6rem 0 0; font-size: .94rem; line-height: 1.5; }
.mkb-workspace { padding-top: 1.3rem; }
.mkb-class-index { margin-bottom: 1.3rem; }
.mkb-search-active .mkb-class-index { display: none; }
.mkb-query-active .mkb-hero .mkb-kicker,
.mkb-query-active .mkb-search-meta,
.mkb-query-active .mkb-popular,
.mkb-query-active .mkb-lead { display: none; }
.mkb-query-active .mkb-search-shell { max-width: none; }
.mkb-query-active .mkb-results-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.mkb-query-active .mkb-results-header { align-items: center; margin-bottom: .55rem; }
.mkb-query-active .mkb-results-header h2 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.mkb-query-active .mkb-results-header .mkb-eyebrow { display: none; }
.mkb-path { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .65rem; color: #425674; font-size: .82rem; }
.mkb-path[hidden] { display: none; }
.mkb-path button, .mkb-retry { min-height: 36px; padding: .35rem .65rem; border: 1px solid #d4e2f5; border-radius: 7px; background: #f2f7ff; color: #114caa; font: inherit; font-weight: 700; }
.mkb-path button:hover, .mkb-retry:hover { border-color: #8aadeb; }
.mkb-result-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .85rem 1rem; align-items: start; padding: 1rem; }
.mkb-result-copy h3 { font-size: 1rem; overflow-wrap: anywhere; }
.mkb-query-active .mkb-result-main { align-items: center; }
.mkb-query-active .mkb-result-main > .mkb-code { padding: 0; background: transparent; color: #1559e4; font-size: 1.35rem; }
.mkb-query-active .mkb-result-copy h3 { font-size: 1.12rem; }
.mkb-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; margin: 0; }
.mkb-result-actions:empty { display: none; }
.mkb-action { min-height: 44px; white-space: normal; }
.mkb-action-copy { color: #19355c; border-color: #cad9ef; }
.mkb-related-recs, .mkb-result-offer { grid-column: 1 / -1; }
.mkb-related-recs h4 { margin: 0 0 .45rem; font-size: 1rem; }
.mkb-related-recs summary { min-height: 44px; padding: .65rem .1rem; cursor: pointer; color: #124d9e; font-size: .86rem; font-weight: 750; }
.mkb-related-recs p { margin: 0 0 .4rem; color: #405672; font-size: .82rem; }
.mkb-related-recs ul { margin: 0; padding: 0; list-style: none; border: 1px solid #d9e7f9; border-radius: 8px; }
.mkb-related-recs li + li { border-top: 1px solid #e1ebf7; }
.mkb-related-recs a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 44px; padding: .45rem .65rem; color: #19355c; font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
.mkb-related-recs a i { color: #1559e4; }
.mkb-related-recs a small { display: block; margin-top: .12rem; color: #425674; font-size: .74rem; }
.mkb-related-recs a:hover { background: #f1f7ff; text-decoration: underline; }
.mkb-related-compact summary { padding-block: .55rem; }
.mkb-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .65rem; }
.mkb-suggestions .mkb-retry { min-height: 44px; }
.mkb-result-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .6rem; padding: .3rem .6rem; border-radius: 8px; background: #eaf3ff; color: #19355c; }
.mkb-result-offer p { flex: 1 1 9rem; margin: .15rem 0; font-size: .86rem; line-height: 1.35; }
.mkb-result-offer a { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 44px; color: #1052ce; font-size: .84rem; font-weight: 700; text-decoration: underline; }
.mkb-result-offer a:hover { color: #083c9d; background: #deecff; }
.mkb-result-offer .mkb-rustore-badge { max-width: 100%; border-radius: 6px; background: transparent; }
.mkb-rustore-badge img { display: block; width: 172px; max-width: 100%; height: auto; }
.mkb-search-sections { padding: .65rem .75rem; border-top: 1px solid #d9e7f9; }
.mkb-search-sections h3 { margin: 0 0 .25rem; font-size: .9rem; }
.mkb-search-section { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; width: 100%; min-height: 44px; padding: .3rem .4rem; border: 0; border-radius: 7px; background: transparent; color: #124d9e; font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.mkb-search-section:hover { background: #f1f7ff; }
@media (max-width: 900px) {
    .mkb-hero { padding: 1.25rem 0 1.15rem; }
    .mkb-hero h1 { margin-bottom: .7rem; font-size: clamp(1.52rem, 5.7vw, 2.15rem); line-height: 1.12; }
    .mkb-kicker { font-size: .69rem; }
    .mkb-search-box { min-height: 52px; }
    .mkb-input { font-size: 16px; }
    .mkb-submit { padding-inline: .7rem; font-size: .85rem; }
    .mkb-search-meta span { font-size: .71rem; }
    .mkb-lead { font-size: .84rem; }
    .mkb-popular > span { font-size: .74rem; }
    .mkb-popular button { padding-inline: .55rem; }
    .mkb-workspace { padding-top: .95rem; }
    .mkb-result-card { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .mkb-result-actions { justify-content: flex-start; }
    .mkb-query-active .mkb-result-card { grid-template-columns: minmax(0, 1fr) auto; padding: .75rem; }
    .mkb-query-active .mkb-result-main { display: contents; }
    .mkb-query-active .mkb-result-main > .mkb-code { grid-column: 1; grid-row: 1; align-self: center; white-space: normal; }
    .mkb-query-active .mkb-result-copy { grid-column: 1 / -1; grid-row: 2; }
    .mkb-query-active .mkb-result-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
}
@media (max-width: 375px) {
    .mkb-search-box > .bi-search { margin-left: .55rem; font-size: 1rem; }
    .mkb-clear { width: 29px; }
    .mkb-submit { padding-inline: .55rem; }
}


.mkb-header-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.mkb-rustore-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .65rem; border: 1px solid #ccdcef; border-radius: 10px; background: white; cursor: pointer; }
.mkb-rustore-button:hover { background: #edf5ff; border-color: #91b3e6; }
.mkb-rustore-dialog { position: fixed; inset: 0; margin: auto; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 27px 23px 24px; border: 1px solid #dce6f4; border-radius: 18px; background: white; color: #142648; box-shadow: 0 16px 48px #17356036; text-align: center; }
.mkb-rustore-dialog::backdrop { background: #14264865; }
.mkb-rustore-dialog img { display: block; margin-inline: auto; }
.mkb-rustore-dialog h2 { margin: 12px 0 7px; font-size: 21px; letter-spacing: -.025em; }
.mkb-rustore-dialog p { margin: 0 auto 9px; max-width: 270px; color: #425674; font-size: 14px; line-height: 1.45; }
.mkb-rustore-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; color: #425674; background: transparent; cursor: pointer; }
.mkb-rustore-close:hover { color: #1052ce; background: #eef4ff; }
.mkb-rustore-code { max-width: 100%; height: auto; image-rendering: pixelated; }
.mkb-rustore-link { display: inline-block; margin-top: 6px; color: #1052ce; font-size: 14px; font-weight: 700; }
.mkb-rustore-link:hover { text-decoration: underline; }
@media (min-width: 901px) and (max-width: 1100px) {
    .page-mkb-search .navbar .nav-links { flex-wrap: wrap; column-gap: .85rem; row-gap: .35rem; }
}
@media (max-width: 900px) { .mkb-header-actions { display: none; } }

