:root {
    --km-sb-bg: #f4f6fb;
    --km-sb-bg-strong: #ebeff8;
    --km-sb-surface: rgba(255, 255, 255, 0.82);
    --km-sb-surface-solid: #ffffff;
    --km-sb-surface-soft: rgba(255, 255, 255, 0.62);
    --km-sb-text: #0f172a;
    --km-sb-muted: #5b6475;
    --km-sb-border: rgba(148, 163, 184, 0.18);
    --km-sb-border-strong: rgba(148, 163, 184, 0.28);
    --km-sb-primary: #111827;
    --km-sb-primary-soft: #e7eefb;
    --km-sb-accent: #2563eb;
    --km-sb-accent-soft: rgba(37, 99, 235, 0.12);
    --km-sb-success: #0f9d58;
    --km-sb-success-soft: rgba(15, 157, 88, 0.12);
    --km-sb-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
    --km-sb-shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.06);
    --km-sb-radius-xl: 34px;
    --km-sb-radius-lg: 26px;
    --km-sb-radius-md: 20px;
    --km-sb-radius-sm: 16px;
    --km-sb-radius-pill: 999px;
    --km-sb-font: "Vazir", Tahoma, Arial, sans-serif;
}

.km-sb-home,
.km-sb-page,
.km-sb-profile-page,
.km-sb-province-page,
.km-sb-service-page {
    direction: rtl;
    color: var(--km-sb-text);
    font-family: var(--km-sb-font);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 32%),
        radial-gradient(circle at top left, rgba(15, 157, 88, 0.1), transparent 26%),
        linear-gradient(180deg, #fbfcff 0%, var(--km-sb-bg) 42%, #eef2f8 100%);
    min-height: 100vh;
}

.km-sb-home *,
.km-sb-page * {
    box-sizing: border-box;
}

.km-sb-container {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.km-sb-shell-main {
    padding-bottom: 46px;
}

.km-sb-shell-head {
    width: min(1220px, calc(100% - 32px));
    margin: 18px auto 0;
    position: sticky;
    top: 14px;
    z-index: 20;
}

.km-sb-topbar,
.km-sb-search-card,
.km-sb-showcase__copy,
.km-sb-showcase__discover,
.km-sb-feature-card,
.km-sb-query-panel,
.km-sb-city-card,
.km-sb-profile-card,
.km-sb-profile-hero,
.km-sb-profile-main,
.km-sb-info-card,
.km-sb-empty {
    background: var(--km-sb-surface);
    border: 1px solid var(--km-sb-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--km-sb-shadow-soft);
}

.km-sb-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 24px;
}

.km-sb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--km-sb-text);
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
}

.km-sb-brand img {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.km-sb-topbar__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.km-sb-topbar__nav a,
.km-sb-inline-nav__item,
.km-sb-search__chip,
.km-sb-chip,
.km-sb-mini-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--km-sb-radius-pill);
    text-decoration: none;
    color: var(--km-sb-muted);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.km-sb-topbar__nav a:hover,
.km-sb-inline-nav__item:hover,
.km-sb-search__chip:hover,
.km-sb-chip:hover,
.km-sb-mini-tags span:hover {
    color: var(--km-sb-text);
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
}

.km-sb-topbar__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.km-sb-topbar__pill,
.km-sb-eyebrow,
.km-sb-feature-card__eyebrow,
.km-sb-profile-card__eyebrow,
.km-sb-city-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--km-sb-radius-pill);
    font-size: 12px;
    font-weight: 800;
}

.km-sb-topbar__pill,
.km-sb-eyebrow {
    color: #11478d;
    background: rgba(37, 99, 235, 0.11);
}

.km-sb-nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    cursor: pointer;
}

.km-sb-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--km-sb-text);
}

.km-sb-mobile-panel {
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--km-sb-border);
    box-shadow: var(--km-sb-shadow-soft);
}

.km-sb-mobile-panel__list {
    display: grid;
    gap: 8px;
}

.km-sb-mobile-panel__list a {
    display: block;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(244, 246, 251, 0.92);
    text-decoration: none;
    color: var(--km-sb-text);
    font-weight: 800;
}

.km-sb-mobile-panel__foot {
    padding-top: 12px;
}

.km-sb-showcase {
    padding: 26px 0 10px;
}

.km-sb-showcase__grid {
    display: grid;
    gap: 18px;
}

.km-sb-showcase__copy,
.km-sb-showcase__discover,
.km-sb-profile-hero,
.km-sb-profile-main,
.km-sb-info-card,
.km-sb-empty {
    border-radius: var(--km-sb-radius-xl);
}

.km-sb-showcase__copy {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.km-sb-showcase__copy::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(15, 157, 88, 0.12), transparent 28%);
    pointer-events: none;
}

.km-sb-showcase__copy > * {
    position: relative;
    z-index: 1;
}

.km-sb-showcase__copy h1,
.km-sb-profile h1 {
    margin: 16px 0 14px;
    font-size: clamp(30px, 6vw, 58px);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.km-sb-showcase__copy p,
.km-sb-search-card__head p,
.km-sb-profile p,
.km-sb-richtext,
.km-sb-feature-card p,
.km-sb-empty p {
    margin: 0;
    color: var(--km-sb-muted);
    font-size: 15px;
    line-height: 2;
}

.km-sb-hero__logo {
    display: block;
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
}

.km-sb-inline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.km-sb-hero__actions,
.km-sb-profile-actions,
.km-sb-profile-card__actions,
.km-sb-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.km-sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 18px;
    border: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    cursor: pointer;
}

.km-sb-btn:hover {
    transform: translateY(-1px);
}

.km-sb-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
}

.km-sb-btn--secondary {
    color: var(--km-sb-text);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.km-sb-btn--ghost {
    color: #0f5132;
    background: rgba(15, 157, 88, 0.12);
}

.km-sb-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.km-sb-metric {
    min-height: 116px;
    padding: 18px;
    border-radius: var(--km-sb-radius-md);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.km-sb-metric strong {
    display: block;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--km-sb-text);
}

.km-sb-metric span {
    color: var(--km-sb-muted);
    font-size: 13px;
    line-height: 1.9;
}

.km-sb-showcase__discover {
    padding: 18px;
    border-radius: var(--km-sb-radius-xl);
}

.km-sb-search-card {
    padding: 12px;
    border-radius: 28px;
}

.km-sb-search-card__head {
    padding: 8px 10px 14px;
}

.km-sb-search-card__head strong,
.km-sb-query-panel strong,
.km-sb-feature-card strong,
.km-sb-profile-card__title,
.km-sb-empty strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.7;
    color: var(--km-sb-text);
}

.km-sb-search__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.km-sb-search__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 35% 35%, rgba(37, 99, 235, 0.24), transparent 70%),
        rgba(236, 244, 255, 0.92);
    position: relative;
}

.km-sb-search__icon::before,
.km-sb-search__icon::after {
    content: "";
    position: absolute;
}

.km-sb-search__icon::before {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #11478d;
    top: 11px;
    right: 12px;
}

.km-sb-search__icon::after {
    width: 9px;
    height: 2px;
    background: #11478d;
    transform: rotate(-40deg);
    top: 24px;
    right: 9px;
    border-radius: 999px;
}

.km-sb-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--km-sb-text);
    font-size: 15px;
}

.km-sb-search input:focus {
    outline: none;
}

.km-sb-search__chips,
.km-sb-chip-row,
.km-sb-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.km-sb-search__chip {
    border: 0;
}

.km-sb-search__results {
    margin-top: 12px;
    padding: 4px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--km-sb-border);
}

.km-sb-search-results__grid {
    display: grid;
    gap: 10px;
}

.km-sb-search-group {
    padding: 10px;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.86);
}

.km-sb-search-group header {
    margin-bottom: 10px;
    color: var(--km-sb-muted);
    font-size: 12px;
    font-weight: 800;
}

.km-sb-search-group__items {
    display: grid;
    gap: 8px;
}

.km-sb-search-hit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    color: var(--km-sb-text);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.km-sb-search-hit__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.km-sb-search-hit__body strong {
    font-size: 14px;
    line-height: 1.8;
}

.km-sb-search-hit__body span {
    color: var(--km-sb-muted);
    font-size: 12px;
    line-height: 1.7;
}

.km-sb-search-hit__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--km-sb-radius-pill);
    background: rgba(37, 99, 235, 0.1);
    color: #11478d;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.km-sb-search-empty {
    padding: 18px;
    text-align: center;
}

.km-sb-search-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 900;
}

.km-sb-search-empty p {
    margin: 0;
    color: var(--km-sb-muted);
    font-size: 13px;
    line-height: 1.8;
}

.km-sb-browser-panel {
    display: grid;
    gap: 14px;
}

.km-sb-browser-panel__head {
    display: grid;
    gap: 6px;
    padding: 6px 4px 0;
}

.km-sb-browser-panel__head strong {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
    color: var(--km-sb-text);
}

.km-sb-browser-panel__head p,
.km-sb-results-copy p {
    margin: 0;
    color: var(--km-sb-muted);
    font-size: 14px;
    line-height: 1.9;
}

.km-sb-browser-form {
    display: grid;
    gap: 14px;
}

.km-sb-browser-controls {
    display: grid;
    gap: 12px;
}

.km-sb-browser-field {
    display: grid;
    gap: 8px;
}

.km-sb-browser-field span,
.km-sb-browser-chip-label {
    color: var(--km-sb-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
}

.km-sb-browser-input,
.km-sb-browser-select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    color: var(--km-sb-text);
    font: inherit;
    font-size: 14px;
}

.km-sb-browser-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(18px) calc(50% - 3px), calc(12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 32px;
}

.km-sb-browser-input:focus,
.km-sb-browser-select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.km-sb-browser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.km-sb-browser-chip-block {
    display: grid;
    gap: 8px;
}

.km-sb-search__chip.is-active {
    color: #11478d;
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.12);
}

.km-sb-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.km-sb-results-copy {
    display: grid;
    gap: 6px;
}

.km-sb-results-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.km-sb-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--km-sb-border);
    box-shadow: var(--km-sb-shadow-soft);
    color: var(--km-sb-muted);
    font-size: 13px;
    font-weight: 800;
}

.km-sb-loading__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.18);
    border-top-color: #2563eb;
    animation: km-sb-spin 700ms linear infinite;
}

@keyframes km-sb-spin {
    to {
        transform: rotate(360deg);
    }
}

.km-sb-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.km-page-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.88);
    color: var(--km-sb-text);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.km-page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
}

.km-page-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
}

.km-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.km-sb-section,
.km-sb-related-cities {
    padding: 12px 0;
}

.km-sb-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.km-sb-section__head h2,
.km-sb-section__head h3,
.km-sb-profile h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.55;
    font-weight: 900;
    color: var(--km-sb-text);
}

.km-sb-section__head span,
.km-sb-section__head a {
    color: var(--km-sb-muted);
    font-size: 13px;
    line-height: 1.8;
    text-decoration: none;
    font-weight: 700;
}

.km-sb-feature-grid,
.km-sb-query-groups,
.km-sb-city-grid,
.km-sb-profile-grid {
    display: grid;
    gap: 12px;
}

.km-sb-feature-grid {
    grid-template-columns: 1fr;
}

.km-sb-feature-card,
.km-sb-query-panel,
.km-sb-city-card,
.km-sb-profile-card {
    border-radius: var(--km-sb-radius-lg);
}

.km-sb-feature-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.km-sb-feature-card__eyebrow {
    width: fit-content;
    color: #11478d;
    background: rgba(37, 99, 235, 0.1);
}

.km-sb-feature-card--province .km-sb-feature-card__eyebrow {
    color: #0f5132;
    background: rgba(15, 157, 88, 0.1);
}

.km-sb-feature-card__meta {
    color: var(--km-sb-muted);
    font-size: 13px;
    font-weight: 800;
}

.km-sb-chip,
.km-sb-mini-tags span {
    min-height: 34px;
}

.km-sb-query-panel {
    padding: 18px;
}

.km-sb-city-grid {
    grid-template-columns: 1fr;
}

.km-sb-city-grid--slider {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.km-sb-city-grid--slider .km-sb-city-card {
    min-width: min(310px, 84vw);
    scroll-snap-align: start;
}

.km-sb-city-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.km-sb-city-card__visual {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    background-color: var(--km-sb-bg-strong);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -100px 100px rgba(15, 23, 42, 0.15);
}

.km-sb-city-card__body {
    display: grid;
    gap: 8px;
}

.km-sb-city-card__eyebrow {
    justify-content: space-between;
    padding: 0;
    background: transparent;
    color: var(--km-sb-muted);
    font-size: 12px;
}

.km-sb-city-card strong {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 900;
}

.km-sb-city-card__meta,
.km-sb-profile-card__meta {
    color: var(--km-sb-muted);
    font-size: 13px;
    line-height: 1.8;
}

.km-sb-city-card__cta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--km-sb-radius-pill);
    color: #11478d;
    background: rgba(37, 99, 235, 0.1);
    font-size: 13px;
    font-weight: 900;
}

.km-sb-profile-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.km-sb-profile-card__eyebrow {
    width: fit-content;
    color: #0f5132;
    background: rgba(15, 157, 88, 0.12);
}

.km-sb-profile-card__title {
    text-decoration: none;
}

.km-sb-empty {
    padding: 24px;
    text-align: center;
}

.km-sb-empty strong {
    margin-bottom: 6px;
}

.km-sb-profile {
    width: min(1220px, calc(100% - 32px));
    margin: 22px auto 40px;
}

.km-sb-province-list,
.km-sb-profile-side {
    display: grid;
    gap: 16px;
}

.km-sb-province-row {
    display: grid;
    gap: 12px;
}

.km-sb-province-row h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 900;
}

.km-sb-province-row h3 a {
    color: var(--km-sb-text);
    text-decoration: none;
}

.km-sb-profile-hero {
    display: grid;
    gap: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.km-sb-profile-hero__media {
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    overflow: hidden;
    background: var(--km-sb-bg-strong);
}

.km-sb-profile-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.km-sb-profile-grid-layout {
    display: grid;
    gap: 16px;
}

.km-sb-profile-main,
.km-sb-info-card {
    padding: 22px;
}

.km-sb-info-card p {
    margin: 10px 0;
}

.km-sb-info-card a {
    color: var(--km-sb-primary);
    font-weight: 800;
}

.km-sb-richtext > *:first-child {
    margin-top: 0;
}

.km-sb-richtext > *:last-child {
    margin-bottom: 0;
}

.km-sb-section__copy {
    display: grid;
    gap: 6px;
}

.km-sb-blog-section {
    position: relative;
}

.km-sb-blog-layout,
.km-sb-article-grid {
    display: grid;
    gap: 16px;
}

.km-sb-blog-main,
.km-sb-blog-sidebar,
.km-sb-blog-grid,
.km-sb-blog-list,
.km-sb-article-shell {
    display: grid;
    gap: 16px;
}

.km-sb-blog-panel,
.km-sb-article-hero,
.km-sb-article-main {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--km-sb-shadow-soft);
}

.km-sb-blog-panel,
.km-sb-article-main {
    padding: 20px;
    border-radius: 26px;
}

.km-sb-blog-panel--intro,
.km-sb-blog-panel--hero,
.km-sb-article-hero {
    position: relative;
    overflow: hidden;
}

.km-sb-blog-panel--intro::before,
.km-sb-blog-panel--hero::before,
.km-sb-article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(17, 24, 39, 0.08), transparent 26%);
    pointer-events: none;
}

.km-sb-blog-panel--intro > *,
.km-sb-blog-panel--hero > *,
.km-sb-article-hero > * {
    position: relative;
    z-index: 1;
}

.km-sb-blog-panel__head {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.km-sb-blog-panel__head strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.7;
    color: var(--km-sb-text);
}

.km-sb-blog-panel__head p,
.km-sb-article-hero__lead {
    margin: 0;
    color: var(--km-sb-muted);
    font-size: 14px;
    line-height: 2;
}

.km-sb-blog-categories,
.km-sb-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.km-sb-article-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.km-sb-blog-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.14);
    color: #8a6816;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(201, 162, 39, 0.18);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.km-sb-blog-chip:hover,
.km-sb-blog-chip.is-active {
    transform: translateY(-1px);
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    border-color: rgba(17, 24, 39, 0.92);
}

.km-sb-blog-chip--muted {
    background: rgba(148, 163, 184, 0.12);
    color: var(--km-sb-muted);
    border-color: rgba(148, 163, 184, 0.16);
}

.km-sb-blog-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--km-sb-shadow-soft);
    min-width: 0;
}

.km-sb-blog-card--compact,
.km-sb-blog-card--list {
    border-radius: 24px;
}

.km-sb-blog-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.94) 0%, rgba(29, 78, 216, 0.78) 100%);
}

.km-sb-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 220ms ease;
}

.km-sb-blog-card:hover .km-sb-blog-card__media img {
    transform: scale(1.02);
}

.km-sb-blog-card__placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 18px;
}

.km-sb-blog-card__placeholder span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.km-sb-blog-card__body {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.km-sb-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.km-sb-blog-card__meta-item,
.km-sb-blog-card__author {
    color: var(--km-sb-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.km-sb-blog-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.km-sb-blog-card__title a {
    color: var(--km-sb-text);
    text-decoration: none;
}

.km-sb-blog-card__excerpt {
    margin: 0;
    color: var(--km-sb-muted);
    font-size: 14px;
    line-height: 2;
}

.km-sb-blog-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.km-sb-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--km-sb-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.km-sb-blog-card__link::after {
    content: "←";
    font-size: 14px;
}

.km-sb-blog-card--list {
    padding: 14px 16px;
}

.km-sb-blog-card--list .km-sb-blog-card__meta {
    margin-bottom: -2px;
}

.km-sb-blog-card--list .km-sb-blog-card__title {
    font-size: 15px;
    line-height: 1.9;
}

.km-sb-blog-card--list .km-sb-blog-card__excerpt {
    display: none;
}

.km-sb-blog-links {
    display: grid;
    gap: 10px;
}

.km-sb-blog-links__item {
    display: grid;
    gap: 2px;
    padding: 14px 15px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--km-sb-text);
    background: rgba(244, 246, 251, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.km-sb-blog-links__item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(17, 24, 39, 0.16);
}

.km-sb-blog-links__item span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

.km-sb-blog-links__item small {
    color: var(--km-sb-muted);
    font-size: 12px;
    line-height: 1.7;
}

.km-sb-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.km-sb-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--km-sb-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    box-shadow: var(--km-sb-shadow-soft);
}

.km-sb-blog-pagination .page-numbers.current {
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
    border-color: transparent;
}

.km-sb-article-shell {
    gap: 18px;
}

.km-sb-article-hero {
    padding: 24px;
    border-radius: 34px;
}

.km-sb-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--km-sb-muted);
    font-size: 12px;
    font-weight: 700;
}

.km-sb-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.km-sb-article-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.km-sb-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.km-sb-article-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--km-sb-muted);
    font-size: 12px;
    font-weight: 800;
}

.km-sb-article-cover {
    margin-top: 20px;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: rgba(226, 232, 240, 0.9);
}

.km-sb-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.km-sb-article-main {
    border-radius: 28px;
}

.km-sb-article-content {
    color: var(--km-sb-text);
    font-size: 16px;
    line-height: 2.15;
}

.km-sb-article-content > *:first-child {
    margin-top: 0;
}

.km-sb-article-content > *:last-child {
    margin-bottom: 0;
}

.km-sb-article-content h2,
.km-sb-article-content h3,
.km-sb-article-content h4 {
    margin: 30px 0 14px;
    color: var(--km-sb-text);
    font-weight: 900;
    line-height: 1.6;
}

.km-sb-article-content h2 {
    font-size: 24px;
}

.km-sb-article-content h3 {
    font-size: 20px;
}

.km-sb-article-content p,
.km-sb-article-content ul,
.km-sb-article-content ol,
.km-sb-article-content blockquote,
.km-sb-article-content pre,
.km-sb-article-content table {
    margin: 0 0 18px;
}

.km-sb-article-content ul,
.km-sb-article-content ol {
    padding: 0 20px 0 0;
}

.km-sb-article-content li {
    margin-bottom: 8px;
}

.km-sb-article-content a {
    color: #11478d;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(17, 71, 141, 0.24);
}

.km-sb-article-content blockquote {
    padding: 18px 20px;
    border-radius: 22px;
    border-right: 4px solid rgba(201, 162, 39, 0.9);
    background: rgba(201, 162, 39, 0.08);
    color: #5f4a14;
}

.km-sb-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.km-sb-article-content pre,
.km-sb-article-content code {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.km-sb-article-content pre {
    padding: 18px;
    overflow: auto;
    border-radius: 22px;
    background: #0f172a;
    color: #f8fafc;
}

.km-sb-article-content code {
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.km-sb-article-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
}

.km-sb-article-content th,
.km-sb-article-content td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: right;
}

.km-sb-article-content th {
    background: rgba(244, 246, 251, 0.88);
    font-size: 13px;
    font-weight: 900;
}

@media (min-width: 760px) {
    .km-sb-showcase {
        padding-top: 34px;
    }

    .km-sb-showcase__grid,
    .km-sb-profile-hero {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: stretch;
    }

    .km-sb-feature-grid,
    .km-sb-query-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-sb-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-sb-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-sb-profile-grid-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
        align-items: start;
    }

    .km-sb-browser-controls {
        grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    }

    .km-sb-blog-layout,
    .km-sb-article-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
        align-items: start;
    }

    .km-sb-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-sb-blog-card--featured {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: stretch;
    }

    .km-sb-blog-card--featured .km-sb-blog-card__media {
        aspect-ratio: auto;
        min-height: 100%;
    }
}

@media (min-width: 1040px) {
    .km-sb-showcase__copy {
        padding: 34px;
    }

    .km-sb-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .km-sb-city-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .km-sb-profile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .km-sb-blog-grid--archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .km-sb-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .km-sb-topbar__nav {
        display: none;
    }

    .km-sb-topbar__pill,
    .km-sb-topbar__cta {
        display: none;
    }

    .km-sb-nav-toggle {
        display: inline-block;
    }
}

@media (max-width: 759px) {
    .km-sb-shell-head {
        top: 10px;
    }

    .km-sb-showcase {
        padding-top: 18px;
    }

    .km-sb-showcase__copy,
    .km-sb-showcase__discover,
    .km-sb-profile-hero,
    .km-sb-profile-main,
    .km-sb-info-card,
    .km-sb-empty {
        border-radius: 24px;
    }

    .km-sb-showcase__copy,
    .km-sb-showcase__discover {
        padding: 18px;
    }

    .km-sb-showcase__copy h1,
    .km-sb-profile h1 {
        font-size: 32px;
        line-height: 1.35;
    }

    .km-sb-search__bar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .km-sb-search__icon {
        display: none;
    }

    .km-sb-search input {
        min-height: 46px;
        padding: 0 8px;
    }

    .km-sb-stat-grid {
        grid-template-columns: 1fr;
    }

    .km-sb-section__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .km-sb-results-head {
        flex-direction: column;
    }

    .km-sb-results-meta {
        justify-content: flex-start;
    }

    .km-sb-browser-actions .km-sb-btn {
        width: 100%;
    }

    .km-sb-city-card__visual {
        aspect-ratio: 16 / 9;
    }

    .km-sb-profile-grid,
    .km-sb-city-grid,
    .km-sb-feature-grid,
    .km-sb-query-groups {
        grid-template-columns: 1fr;
    }

    .km-sb-blog-panel,
    .km-sb-article-main {
        padding: 18px;
        border-radius: 24px;
    }

    .km-sb-blog-card,
    .km-sb-blog-card--compact,
    .km-sb-blog-card--list {
        padding: 14px;
        border-radius: 22px;
    }

    .km-sb-blog-card__title {
        font-size: 16px;
    }

    .km-sb-article-hero {
        padding: 18px;
        border-radius: 24px;
    }

    .km-sb-article-hero h1 {
        font-size: 32px;
        line-height: 1.35;
    }

    .km-sb-article-content {
        font-size: 15px;
        line-height: 2.05;
    }
}
