/* ═══════════════════════════════════════════════════
   BASE.CSS — kolekcje-mebli.pl
   Once - Clean & Elegant blog style
   Reset, Typography, Layout, Header, Cards, Archive,
   Featured, Tiles, Carousel, Sidebar, Breadcrumbs,
   Single, Related, TOC, Footer, Pagination, Forms,
   Back-to-top, Utilities, Responsive
   ═══════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-text);
}

ul, ol {
    padding-left: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 0.5em;
    color: var(--color-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin: 0 0 1rem;
}

figure {
    margin: 0;
}

blockquote {
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ─── FOCUS & WCAG ─── */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.stb-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.stb-skip-link:focus {
    top: 0.5rem;
}

/* ─── LAYOUT ─── */
.stb-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.km-layout-inner {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 0 0 40px;
}

.km-main-col {
    min-width: 0;
}

/* ─── ENTRY-OVERLINK PATTERN ─── */
.stb-entry-overlink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.km-card,
.km-full-card,
.km-sidebar-entry,
.km-carousel-card,
.km-tile,
.km-related-card {
    position: relative;
}

.km-card-body,
.km-full-card-body,
.km-sidebar-body,
.km-carousel-body,
.km-related-body,
.km-featured-body {
    position: relative;
    z-index: 2;
}

.km-cat-badge,
.km-card-title a,
.km-full-card-title a,
.km-sidebar-title a,
.km-carousel-title a,
.km-related-title a,
.km-featured-title a {
    position: relative;
    z-index: 3;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */

/* ─── Top bar ─── */
.km-top-bar {
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    font-size: 0.75rem;
    color: var(--color-meta);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.km-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.km-top-bar-social {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.km-top-bar-social a {
    color: var(--color-meta);
    transition: color 0.2s ease;
}

.km-top-bar-social a:hover {
    color: var(--color-primary);
}

/* ─── Navbar ─── */
.km-navbar {
    background: var(--color-bg);
    border-bottom: none;
}

.km-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.km-logo-wrap {
    flex-shrink: 0;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
}

.custom-logo {
    display: block;
    max-height: 31px;
    width: auto;
    height: auto;
}

.km-text-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.km-text-logo:hover {
    color: var(--color-primary);
}

.km-menu-holder {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

/* ─── Desktop menu ─── */
.km-menu {
    display: none;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.km-menu li {
    position: relative;
}

.km-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    height: 80px;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.km-menu > li:first-child > a {
    padding-left: 0;
}

.km-menu > li > a:hover,
.km-menu .current-menu-item > a,
.km-menu .current_page_item > a {
    color: var(--color-primary);
}

/* Submenu */
.km-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    list-style: none;
    z-index: 1000;
}

.km-menu li:hover > .sub-menu {
    display: block;
}

.km-menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.8125rem;
    color: var(--color-text);
    white-space: nowrap;
}

.km-menu .sub-menu a:hover {
    color: var(--color-primary);
    background: var(--color-surface);
}

/* ─── Nav actions (search toggle) ─── */
.km-header-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.km-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.km-search-toggle:hover {
    color: var(--color-primary);
}

.km-search-toggle svg {
    width: 18px;
    height: 18px;
}

/* ─── Search overlay ─── */
.km-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.km-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.km-search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
    text-align: center;
}

.km-search-overlay-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.km-search-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid var(--color-border);
    font-size: 1.25rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: transparent;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
}

.km-search-input:focus {
    border-color: var(--color-primary);
}

.km-search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.km-search-close:hover {
    color: var(--color-primary);
}

/* ─── Hamburger ─── */
.km-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.km-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
    transition: background 0.2s ease;
}

.km-hamburger-line::before,
.km-hamburger-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.km-hamburger-line::before {
    top: -7px;
}

.km-hamburger-line::after {
    top: 7px;
}

.km-hamburger.is-active .km-hamburger-line {
    background: transparent;
}

.km-hamburger.is-active .km-hamburger-line::before {
    top: 0;
    transform: rotate(45deg);
}

.km-hamburger.is-active .km-hamburger-line::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ─── Mobile nav (slide-in) ─── */
.km-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 24px 40px;
    border-left: 1px solid var(--color-border);
}

.km-nav.is-open {
    right: 0;
}

.km-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.km-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.km-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.km-mobile-menu li {
    border-bottom: 1px solid var(--color-border);
}

.km-mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 0.9375rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.km-mobile-menu a:hover {
    color: var(--color-primary);
}

.km-mobile-menu .sub-menu {
    list-style: none;
    padding: 0 0 0 16px;
}

.km-mobile-menu .sub-menu a {
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.km-card {
    display: flex;
    flex-direction: column;
}

.km-card-thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.km-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.km-card:hover .km-card-thumb img {
    transform: scale(1.05);
    opacity: 0.9;
}

.km-card-body {
    padding: 20px 0 0;
}

.km-cat-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: #AF9070;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.km-cat-badge:hover {
    opacity: 0.85;
    color: #fff;
}

.km-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 10px;
}

.km-card-title a {
    color: var(--color-dark);
}

.km-card-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

.km-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.km-card-meta a {
    color: var(--color-meta);
}

.km-card-meta a:hover {
    color: var(--color-primary);
}

.km-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.km-card-readmore {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.km-card-readmore:hover {
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════
   FULL-WIDTH CARD (horizontal)
   ═══════════════════════════════════════════════════ */
.km-full-card {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 32px;
    margin-top: 15px;
    margin-bottom: 32px;
}

.km-full-card-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
}

.km-full-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.km-full-card:hover .km-full-card-thumb img {
    transform: scale(1.03);
    opacity: 0.95;
}

.km-full-card-body {
    padding: 0;
}

.km-full-card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 10px;
}

.km-full-card-title a {
    color: var(--color-dark);
}

.km-full-card-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

/* ═══════════════════════════════════════════════════
   ARCHIVE GRID
   ═══════════════════════════════════════════════════ */
.km-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stb-archive-header {
    background: var(--color-dark);
    color: #fff;
}

.stb-archive-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.stb-archive-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    margin: 0;
    color: #fff;
}

.stb-archive-description {
    margin-top: 4px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════
   FEATURED POST
   ═══════════════════════════════════════════════════ */
.km-featured-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
}

.km-featured-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.km-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.km-featured-card:hover .km-featured-thumb img {
    transform: scale(1.03);
}

.km-featured-body {
    padding: 24px 0 0;
    text-align: center;
}

.km-featured-body .km-cat-badge {
    margin-bottom: 12px;
}

.km-featured-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 12px;
}

.km-featured-title a {
    color: var(--color-dark);
}

.km-featured-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

.km-featured-meta {
    font-size: 0.75rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.km-featured-meta a {
    color: var(--color-meta);
}

.km-featured-meta a:hover {
    color: var(--color-primary);
}

.km-featured-excerpt {
    max-width: 600px;
    margin: 16px auto 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════
   TILES GRID
   ═══════════════════════════════════════════════════ */
.km-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-bottom: 40px;
}

.km-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.km-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.km-tile:hover img {
    transform: scale(1.08);
}

.km-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    z-index: 2;
}

.km-tile-cat {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.km-tile-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
}

.km-tile-title a {
    color: #fff;
}

.km-tile-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

/* ═══════════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════════ */
.km-carousel-section {
    position: relative;
    margin-bottom: 48px;
    overflow: hidden;
}

.km-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.km-carousel-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    color: var(--color-dark);
}

.km-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.km-carousel::-webkit-scrollbar {
    display: none;
}

.km-carousel-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.km-carousel-thumb {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: 14px;
}

.km-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.km-carousel-card:hover .km-carousel-thumb img {
    transform: scale(1.05);
}

.km-carousel-body {
    padding: 0;
}

.km-carousel-body .km-cat-badge {
    margin-bottom: 6px;
}

.km-carousel-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 6px;
}

.km-carousel-title a {
    color: var(--color-dark);
}

.km-carousel-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

.km-carousel-meta {
    font-size: 0.6875rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Carousel buttons */
.km-carousel-btns {
    display: flex;
    gap: 8px;
}

.km-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.km-carousel-btn:hover {
    background: var(--color-dark);
    color: #fff;
}

.km-carousel-btn svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════ */
.stb-sidebar {
    width: 100%;
}

.stb-widget {
    margin-bottom: 32px;
}

.stb-widget:last-child {
    margin-bottom: 0;
}

.stb-widget-title,
.km-widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* Sidebar entry (small horizontal card) */
.km-sidebar-entry {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.km-sidebar-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.km-sidebar-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.km-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.km-sidebar-entry:hover .km-sidebar-thumb img {
    transform: scale(1.05);
}

.km-sidebar-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.km-sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 4px;
}

.km-sidebar-title a {
    color: var(--color-dark);
}

.km-sidebar-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

.km-sidebar-meta {
    font-size: 0.6875rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Categories list in sidebar */
.km-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.km-categories-list li {
    border-bottom: 1px solid var(--color-border);
}

.km-categories-list li:last-child {
    border-bottom: none;
}

.km-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.km-categories-list a:hover {
    color: var(--color-primary);
}

.km-cat-count {
    font-size: 0.75rem;
    color: var(--color-meta);
    min-width: 24px;
    text-align: right;
}

/* Sidebar social */
.km-sidebar-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.km-sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.km-sidebar-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Sidebar newsletter */
.km-sidebar-newsletter p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.km-sidebar-newsletter input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.km-sidebar-newsletter input[type="email"]:focus {
    border-color: var(--color-primary);
    outline: none;
}

.km-sidebar-newsletter button {
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: var(--color-dark);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.km-sidebar-newsletter button:hover {
    background: var(--color-primary);
}

/* ═══════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════ */
.km-breadcrumbs-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.stb-breadcrumbs {
    font-size: 0.75rem;
    color: var(--color-meta);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.stb-breadcrumbs a {
    color: var(--color-meta);
    transition: color 0.2s ease;
}

.stb-breadcrumbs a:hover {
    color: var(--color-primary);
}

.stb-breadcrumbs .stb-breadcrumbs-sep {
    margin: 0 4px;
    color: var(--color-border);
}

.stb-breadcrumbs .stb-breadcrumbs-current {
    color: var(--color-text);
}

/* Archive header breadcrumbs override */
.stb-archive-header .stb-breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
}

.stb-archive-header .stb-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.stb-archive-header .stb-breadcrumbs a:hover {
    color: #fff;
}

.stb-archive-header .stb-breadcrumbs .stb-breadcrumbs-sep {
    color: rgba(255, 255, 255, 0.4);
}

.stb-archive-header .stb-breadcrumbs .stb-breadcrumbs-current {
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   SINGLE ARTICLE
   ═══════════════════════════════════════════════════ */
.km-single-header {
    text-align: center;
    padding: 40px 0 24px;
}

.km-single-header .km-cat-badge {
    margin-bottom: 16px;
}

.km-single-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--color-dark);
}

.km-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.km-single-meta a {
    color: var(--color-meta);
}

.km-single-meta a:hover {
    color: var(--color-primary);
}

.km-single-thumb {
    margin-bottom: 32px;
    overflow: hidden;
}

.km-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Single content typography ─── */
.km-single-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text);
}

.km-single-content p {
    margin: 0 0 1.5rem;
}

.km-single-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem;
    color: var(--color-dark);
}

.km-single-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 2rem 0 0.75rem;
    color: var(--color-dark);
}

.km-single-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-dark);
}

.km-single-content ul,
.km-single-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.km-single-content li {
    margin-bottom: 0.5rem;
}

.km-single-content blockquote {
    margin: 2rem 0;
    padding: 24px 28px;
    border-left: 3px solid var(--color-primary);
    background: var(--color-surface);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text-light);
}

.km-single-content blockquote p:last-child {
    margin-bottom: 0;
}

.km-single-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.km-single-content img {
    margin: 1.5rem 0;
}

.km-single-content figure {
    margin: 2rem 0;
}

.km-single-content figcaption {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--color-meta);
    text-align: center;
    font-style: italic;
}

.km-single-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(196, 169, 124, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.km-single-content a:hover {
    text-decoration-color: var(--color-primary);
}

.km-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.km-single-content th,
.km-single-content td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.km-single-content th {
    background: var(--color-surface);
    font-weight: 600;
    color: var(--color-dark);
}

.km-single-content pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 20px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.km-single-content code {
    font-size: 0.875em;
    background: var(--color-surface);
    padding: 2px 6px;
}

.km-single-content pre code {
    background: none;
    padding: 0;
}

.km-single-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

/* Single post tags */
.km-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.km-single-tags a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.km-single-tags a:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

/* Single author box */
.km-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-top: 40px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.km-author-avatar {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
}

.km-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.km-author-info {
    min-width: 0;
}

.km-author-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--color-dark);
}

.km-author-bio {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin: 0;
}

/* Post navigation (prev/next) */
.km-post-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.km-post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.km-post-nav-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-meta);
}

.km-post-nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.km-post-nav-link:hover {
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════ */
.km-related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.km-related-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 32px;
    color: var(--color-dark);
}

.km-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.km-related-card {
    display: flex;
    flex-direction: column;
}

.km-related-thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
}

.km-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.km-related-card:hover .km-related-thumb img {
    transform: scale(1.05);
}

.km-related-body {
    padding: 0;
}

.km-related-body .km-cat-badge {
    margin-bottom: 6px;
    font-size: 0.625rem;
}

.km-related-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 4px;
}

.km-related-title a {
    color: var(--color-dark);
}

.km-related-title a:hover {
    text-decoration: underline;
    text-decoration-color: #AF9070;
    text-underline-offset: 3px;
    color: inherit;
}

.km-related-meta {
    font-size: 0.6875rem;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════
   TABLE OF CONTENTS (TOC)
   ═══════════════════════════════════════════════════ */
.km-toc {
    border: 1px solid var(--color-border);
    padding: 24px;
    margin: 2rem 0;
    background: var(--color-surface);
}

.km-toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 16px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.km-toc-toggle {
    font-size: 0.75rem;
    color: var(--color-meta);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.km-toc-toggle:hover {
    color: var(--color-primary);
}

.km-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.km-toc-list li {
    counter-increment: toc;
    margin-bottom: 8px;
}

.km-toc-list li::before {
    content: counter(toc) ".";
    margin-right: 8px;
    color: var(--color-meta);
    font-size: 0.8125rem;
}

.km-toc-list a {
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.km-toc-list a:hover {
    color: var(--color-primary);
}

.km-toc-list .km-toc-sub {
    list-style: none;
    padding-left: 24px;
    margin-top: 8px;
    counter-reset: toc-sub;
}

.km-toc-list .km-toc-sub li {
    counter-increment: toc-sub;
}

.km-toc-list .km-toc-sub li::before {
    content: counter(toc) "." counter(toc-sub);
    font-size: 0.75rem;
}

.km-toc.is-collapsed .km-toc-list {
    display: none;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.km-footer {
    background: #1b1d1f;
    border-top: none;
    padding: 48px 0 0;
    margin-top: 48px;
    color: #b0b0b0;
}

.km-footer-cols {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 40px;
}

.km-footer-col {
    min-width: 0;
}

.km-footer-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0 0 20px;
}

.km-footer-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.km-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.km-footer-links li {
    margin-bottom: 8px;
}

.km-footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.km-footer-links a:hover {
    color: var(--color-primary);
}

.km-footer-copyright {
    padding: 0;
    border-top: none;
    font-size: 0.6875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-meta);
}

.km-footer-copyright a {
    color: var(--color-meta);
}

.km-footer-copyright a:hover {
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */
.km-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 40px 0;
}

.km-pagination a,
.km-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 0.875rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.km-pagination a:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.km-pagination .current {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.km-pagination .dots {
    border: none;
    min-width: auto;
    padding: 0 4px;
    color: var(--color-meta);
}

.km-pagination .prev,
.km-pagination .next {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════ */
.stb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.stb-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.stb-back-to-top:hover {
    background: var(--color-primary);
}

.stb-back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════ */
.km-contact-form {
    max-width: 600px;
}

.km-contact-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.km-contact-form input[type="text"],
.km-contact-form input[type="email"],
.km-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.km-contact-form input[type="text"]:focus,
.km-contact-form input[type="email"]:focus,
.km-contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.km-contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.km-contact-form button[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    background: var(--color-dark);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.km-contact-form button[type="submit"]:hover {
    background: var(--color-primary);
}

.km-contact-msg {
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.km-contact-msg--success {
    background: #f0faf0;
    border: 1px solid #c3e6c3;
    color: #2d7a2d;
}

.km-contact-msg--error {
    background: #faf0f0;
    border: 1px solid #e6c3c3;
    color: #7a2d2d;
}

/* ═══════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════ */
.km-404 {
    text-align: center;
    padding: 80px 24px;
}

.km-404-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    color: var(--color-border);
    margin: 0 0 16px;
    line-height: 1;
}

.km-404-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 16px;
    color: var(--color-dark);
}

.km-404-text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin: 0 0 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.km-404-search {
    max-width: 400px;
    margin: 0 auto 24px;
    display: flex;
    gap: 0;
}

.km-404-search input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-right: none;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
}

.km-404-search input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.km-404-search button {
    padding: 14px 20px;
    border: 1px solid var(--color-dark);
    background: var(--color-dark);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.km-404-search button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.km-404-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-dark);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.km-404-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════ */
.km-search-header {
    padding: 32px 0;
    text-align: center;
}

.km-search-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--color-dark);
}

.km-search-count {
    font-size: 0.875rem;
    color: var(--color-meta);
}

/* ═══════════════════════════════════════════════════
   CONTENT NONE (no results)
   ═══════════════════════════════════════════════════ */
.km-content-none {
    text-align: center;
    padding: 60px 24px;
}

.km-content-none-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 12px;
    color: var(--color-dark);
}

.km-content-none-text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin: 0 0 24px;
}

/* ═══════════════════════════════════════════════════
   SECTION DIVIDER (homepage sections)
   ═══════════════════════════════════════════════════ */
.km-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.km-section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-dark);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.km-section-subtitle {
    font-size: 0.875rem;
    color: var(--color-meta);
}

.km-section-divider {
    width: 40px;
    height: 1px;
    background: var(--color-primary);
    margin: 16px auto 0;
}

/* ═══════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════ */
.stb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.km-text-center {
    text-align: center;
}

.km-mb-0 {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet (min-width: 768px)
   ═══════════════════════════════════════════════════ */
@media (min-width: 768px) {

    .stb-container {
        padding: 0 24px;
    }

    /* Layout */
    .km-layout-inner {
        flex-direction: row;
        padding: 0 0 48px;
    }

    .km-main-col {
        flex: 1;
        min-width: 0;
    }

    .stb-sidebar {
        width: var(--sidebar-width);
        flex-shrink: 0;
    }

    /* Header — show nav inline on desktop */
    .km-nav {
        position: static;
        width: auto;
        height: 100%;
        background: none;
        border-left: none;
        padding: 0;
        overflow: visible;
        z-index: auto;
        transition: none;
    }

    .km-menu {
        display: flex;
        height: 100%;
    }

    .km-hamburger {
        display: none;
    }

    .km-logo-wrap {
        margin-right: 2rem;
    }

    /* Featured */
    .km-featured-title {
        font-size: 2rem;
    }

    .km-featured-body {
        padding: 32px 0 0;
    }

    /* Full card — horizontal */
    .km-full-card {
        flex-direction: row;
        gap: 28px;
    }

    .km-full-card-thumb {
        flex: 0 0 45%;
        margin-bottom: 0;
        aspect-ratio: auto;
    }

    .km-full-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .km-full-card-title {
        font-size: 1.5rem;
    }

    /* Archive grid */
    .km-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Related posts */
    .km-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Single */
    .km-single-title {
        font-size: 2.25rem;
    }

    .km-single-header {
        padding: 48px 0 32px;
    }

    /* Footer columns */
    .km-footer-cols {
        flex-direction: row;
    }

    .km-footer-col {
        flex: 1;
    }

    /* Post navigation */
    .km-post-nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .km-post-nav-item:last-child {
        text-align: right;
    }

    /* Tiles */
    .km-tile-title {
        font-size: 1rem;
    }

    .km-tile-overlay {
        padding: 32px 20px 20px;
    }

    /* Carousel */
    .km-carousel-card {
        flex: 0 0 220px;
    }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Desktop (min-width: 1024px)
   ═══════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    /* Featured — horizontal */
    .km-featured-card {
        flex-direction: row;
        align-items: stretch;
        gap: 40px;
    }

    .km-featured-thumb {
        flex: 0 0 55%;
        aspect-ratio: auto;
    }

    .km-featured-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 0;
    }

    .km-featured-title {
        font-size: 2.25rem;
    }

    .km-featured-excerpt {
        margin-left: 0;
    }

    /* Tiles 4-column */
    .km-tiles-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .km-tile-title {
        font-size: 1.0625rem;
    }

    /* Related 5 columns */
    .km-related-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .km-related-title {
        font-size: 0.875rem;
    }

    /* Single */
    .km-single-title {
        font-size: 2.5rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Carousel card sizing */
    .km-carousel-card {
        flex: 0 0 240px;
    }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Wide Desktop (min-width: 1280px)
   ═══════════════════════════════════════════════════ */
@media (min-width: 1280px) {

    .km-featured-title {
        font-size: 2.75rem;
    }

    .km-carousel-card {
        flex: 0 0 260px;
    }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════ */
@media print {
    .km-top-bar,
    .km-navbar,
    .stb-sidebar,
    .km-footer,
    .stb-back-to-top,
    .km-search-overlay,
    .km-related-section,
    .km-post-nav,
    .km-toc,
    .km-pagination {
        display: none !important;
    }

    .km-layout-inner {
        display: block;
    }

    .km-single-content a {
        text-decoration: underline;
    }

    .km-single-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #666;
    }
}
