/*
Theme Name: Kabar Wongkito Magazine
Theme URI: https://kabarwongkito.com/
Author: Kabar Wongkito
Author URI: https://kabarwongkito.com/
Description: Custom magazine-style WordPress theme for Kabar Wongkito, a Palembang and South Sumatra news portal.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kabar-wongkito-magazine
Tags: news, magazine, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --kwo-red: #e21b23;
    --kwo-red-dark: #b90f16;
    --kwo-black: #121416;
    --kwo-charcoal: #202326;
    --kwo-text: #202124;
    --kwo-muted: #6d7278;
    --kwo-line: #e4e6e8;
    --kwo-soft: #f4f5f6;
    --kwo-white: #ffffff;
    --kwo-container: 1180px;
    --kwo-radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--kwo-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.62;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--kwo-red); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.kwo-container { width: min(calc(100% - 32px), var(--kwo-container)); margin-inline: auto; }
.kwo-section-space { margin-top: 26px; }

/* Top bar */
.kwo-topbar { background: var(--kwo-black); color: #d6d7d9; font-size: 12px; }
.kwo-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kwo-topbar-left, .kwo-topbar-right { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.kwo-topbar a:hover { color: #fff; }
.kwo-topbar-separator { opacity: .35; }
.kwo-social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; font-weight: 700; }

/* Branding */
.kwo-branding { background: #fff; border-bottom: 1px solid var(--kwo-line); }
.kwo-branding-inner { min-height: 112px; display: grid; grid-template-columns: 1fr minmax(460px, 728px); align-items: center; gap: 38px; }
.kwo-site-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 51px); line-height: 1; letter-spacing: -2px; }
.kwo-site-title .kwo-brand-black { color: #111; }
.kwo-site-title .kwo-brand-red { color: var(--kwo-red); }
.kwo-site-description { margin: 8px 0 0; color: var(--kwo-muted); font-size: 15px; }
.custom-logo { width: auto; max-height: 78px; }
.kwo-ad-slot { min-height: 72px; background: linear-gradient(135deg, #f4f4f4, #e6e7e8); border: 1px solid #eceeef; color: #8b9095; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.kwo-ad-slot img { max-height: 100%; margin: auto; }
.kwo-ad-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Navigation */
.kwo-nav-wrap { background: var(--kwo-black); position: relative; z-index: 30; }
.kwo-nav-inner { display: flex; min-height: 48px; align-items: stretch; }
.kwo-menu-toggle, .kwo-search-toggle { border: 0; color: #fff; background: transparent; padding: 0 16px; }
.kwo-menu-toggle { display: none; }
.kwo-primary-nav { flex: 1; }
.kwo-primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.kwo-primary-nav li { position: relative; }
.kwo-primary-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 17px; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.kwo-primary-nav li.current-menu-item > a,
.kwo-primary-nav li.current_page_item > a,
.kwo-primary-nav a:hover { background: var(--kwo-red); color: #fff; }
.kwo-primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #191c1f; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.kwo-primary-nav li:hover > .sub-menu { display: block; }
.kwo-primary-nav .sub-menu li { width: 100%; }
.kwo-primary-nav .sub-menu a { min-height: 42px; text-transform: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.kwo-search-panel { display: none; position: absolute; right: 0; top: 100%; width: min(420px, 100%); padding: 14px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.kwo-search-panel.is-open { display: block; }
.search-form { display: flex; }
.search-field { min-width: 0; flex: 1; border: 1px solid var(--kwo-line); padding: 11px 13px; }
.search-submit { border: 0; background: var(--kwo-red); color: #fff; font-weight: 700; padding: 0 18px; }

/* Breaking news */
.kwo-breaking { border-bottom: 1px solid var(--kwo-line); background: #fff; overflow: hidden; }
.kwo-breaking-inner { min-height: 43px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; overflow: hidden; }
.kwo-breaking-label { align-self: stretch; display: flex; align-items: center; background: var(--kwo-red); color: #fff; padding: 0 19px; font-size: 12px; font-weight: 800; text-transform: uppercase; position: relative; z-index: 2; white-space: nowrap; }
.kwo-breaking-label::after { content: ''; position: absolute; right: -12px; border-top: 21.5px solid transparent; border-bottom: 21.5px solid transparent; border-left: 12px solid var(--kwo-red); }
.kwo-breaking-items { min-width: 0; overflow: hidden; padding-left: 28px; mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.kwo-breaking-track { display: flex; width: max-content; will-change: transform; animation: kwoBreakingMarquee var(--kwo-breaking-duration, 40s) linear infinite; }
.kwo-breaking-group { display: flex; flex: 0 0 auto; align-items: center; }
.kwo-breaking-item { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 43px; padding: 0 46px 0 0; white-space: nowrap; font-size: 13px; }
.kwo-breaking-item::after { content: '•'; position: absolute; right: 20px; color: var(--kwo-red); font-weight: 900; }
.kwo-breaking-items:hover .kwo-breaking-track,
.kwo-breaking-items:focus-within .kwo-breaking-track { animation-play-state: paused; }
@keyframes kwoBreakingMarquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) {
    .kwo-breaking-items { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
    .kwo-breaking-track { animation: none; }
    .kwo-breaking-group[aria-hidden="true"] { display: none; }
}

/* Generic media */
.kwo-media { position: relative; overflow: hidden; background: #d7dadc; }
.kwo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a:hover .kwo-media img { transform: scale(1.035); }
.kwo-fallback-visual {
    --kwo-fallback-a: #7f1118;
    --kwo-fallback-b: #151719;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.18), transparent 0 18%, transparent 19%),
        radial-gradient(circle at 18% 78%, rgba(255,255,255,.08), transparent 0 24%, transparent 25%),
        linear-gradient(135deg, var(--kwo-fallback-a), var(--kwo-fallback-b) 72%);
}
.kwo-fallback-visual::before {
    content: '';
    position: absolute;
    inset: 12% -8% auto 30%;
    height: 46%;
    border: 1px solid rgba(255,255,255,.13);
    transform: rotate(-9deg);
}
.kwo-fallback-visual::after {
    content: '';
    position: absolute;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    right: -18%;
    bottom: -48%;
}
.kwo-fallback-monogram {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255,255,255,.3);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.9);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    letter-spacing: -.06em;
}
.kwo-fallback-palembang { --kwo-fallback-a: #8b141c; --kwo-fallback-b: #15242d; }
.kwo-fallback-sumsel { --kwo-fallback-a: #6f1a20; --kwo-fallback-b: #1c2d27; }
.kwo-fallback-nasional { --kwo-fallback-a: #74161b; --kwo-fallback-b: #20242a; }
.kwo-fallback-ekonomi { --kwo-fallback-a: #7b231b; --kwo-fallback-b: #263039; }
.kwo-fallback-politik { --kwo-fallback-a: #68151c; --kwo-fallback-b: #2a2527; }
.kwo-fallback-lifestyle { --kwo-fallback-a: #7c2132; --kwo-fallback-b: #242638; }
.kwo-fallback-olahraga { --kwo-fallback-a: #6d151c; --kwo-fallback-b: #193027; }
a:hover .kwo-fallback-visual { filter: brightness(1.06); }
.kwo-category-badge { display: inline-flex; background: var(--kwo-red); color: #fff; padding: 4px 8px; font-size: 10px; line-height: 1; font-weight: 800; text-transform: uppercase; }
.kwo-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--kwo-muted); font-size: 12px; }

/* Feature */
.kwo-feature-layout { display: grid; grid-template-columns: minmax(0, 3.25fr) minmax(250px, 1fr); gap: 20px; margin-top: 18px; }
.kwo-feature-composite { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(220px, .9fr); gap: 7px; min-height: 392px; }
.kwo-hero-main { position: relative; min-height: 392px; overflow: hidden; background: #111; }
.kwo-hero-slide { display: none; position: absolute; inset: 0; }
.kwo-hero-slide.is-active { display: block; animation: kwoFade .35s ease; }
@keyframes kwoFade { from { opacity: .35; } to { opacity: 1; } }
.kwo-hero-slide .kwo-media { position: absolute; inset: 0; }
.kwo-hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.06) 70%); }
.kwo-hero-content { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 37px; color: #fff; }
.kwo-hero-title { margin: 10px 0 10px; max-width: 720px; font-size: clamp(27px, 2.65vw, 36px); line-height: 1.12; letter-spacing: -.5px; }
.kwo-hero-meta { color: rgba(255,255,255,.82); }
.kwo-hero-dots { position: absolute; z-index: 5; left: 24px; bottom: 14px; display: flex; gap: 8px; }
.kwo-hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); }
.kwo-hero-dot.is-active { background: var(--kwo-red); }
.kwo-feature-stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 7px; }
.kwo-stack-card { position: relative; min-height: 0; overflow: hidden; color: #fff; }
.kwo-stack-card .kwo-media { position: absolute; inset: 0; }
.kwo-stack-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.2)); }
.kwo-stack-content { position: absolute; z-index: 2; left: 14px; right: 12px; bottom: 13px; }
.kwo-stack-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 16px; line-height: 1.2; margin: 7px 0 5px; }
.kwo-stack-date { font-size: 11px; color: rgba(255,255,255,.8); }

/* Section heading */
.kwo-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; border-bottom: 2px solid var(--kwo-line); margin-bottom: 13px; }
.kwo-section-title { position: relative; margin: 0; padding: 0 0 8px; font-size: 14px; line-height: 1; font-weight: 800; text-transform: uppercase; }
.kwo-section-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 78px; height: 2px; background: var(--kwo-red); }
.kwo-section-more { padding-bottom: 7px; color: var(--kwo-muted); font-size: 11px; }

/* Popular */
.kwo-widget { border: 1px solid var(--kwo-line); background: #fff; margin-bottom: 18px; }
.kwo-widget-title { margin: 0; background: var(--kwo-red); color: #fff; display: inline-block; padding: 8px 11px; font-size: 13px; line-height: 1; text-transform: uppercase; }
.kwo-widget-body { padding: 12px; }
.kwo-popular-list { list-style: none; margin: 0; padding: 0; counter-reset: popular; }
.kwo-popular-item { counter-increment: popular; display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--kwo-line); }
.kwo-popular-item:last-child { border-bottom: 0; }
.kwo-popular-item::before { content: counter(popular); color: var(--kwo-red); font-weight: 800; }
.kwo-popular-link { display: grid; grid-template-columns: 74px 1fr; gap: 9px; align-items: center; min-width: 0; }
.kwo-popular-thumb { height: 54px; display: block; }
.kwo-popular-thumb .kwo-media { height: 100%; }
.kwo-popular-copy { display: block; min-width: 0; }
.kwo-popular-title { display: block; margin: 0 0 4px; font-size: 12px; line-height: 1.3; font-weight: 700; }
.kwo-popular-date { font-size: 10px; color: var(--kwo-muted); }

/* Home modules */
.kwo-card-block { display: block; color: inherit; }
.kwo-card-block:hover { color: inherit; }
.kwo-card-block:hover .kwo-card-title { color: var(--kwo-red); }
.kwo-video-media { position: relative; display: block; }
.kwo-widget-note { margin: 0; color: var(--kwo-muted); font-size: 12px; line-height: 1.5; }
.kwo-content-layout { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(270px, 1fr); gap: 24px; margin-top: 22px; align-items: start; }
.kwo-primary-content { min-width: 0; }
.kwo-top-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.kwo-category-feature .kwo-media { aspect-ratio: 16 / 9; }
.kwo-card-title { margin: 9px 0 5px; font-size: 17px; line-height: 1.28; }
.kwo-card-excerpt { margin: 0 0 8px; color: #5e6368; font-size: 13px; line-height: 1.55; }
.kwo-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-top: 28px; }
.kwo-small-module .kwo-media { aspect-ratio: 16 / 10; }
.kwo-small-module .kwo-card-title { font-size: 15px; }
.kwo-headline-list { list-style: none; padding: 0; margin: 12px 0 0; }
.kwo-headline-list li { position: relative; padding: 8px 0 8px 13px; border-top: 1px solid var(--kwo-line); font-size: 12px; line-height: 1.42; }
.kwo-headline-list li::before { content: ''; width: 5px; height: 5px; background: var(--kwo-red); border-radius: 50%; position: absolute; top: 15px; left: 0; }
.kwo-banner-wide { margin: 28px 0 0; min-height: 90px; }
.kwo-sidebar-ad { min-height: 250px; }

/* Sidebar fallback */
.kwo-trending-list { margin: 0; padding: 0; list-style: none; counter-reset: trend; }
.kwo-trending-list li { counter-increment: trend; display: grid; grid-template-columns: 20px 1fr; gap: 5px; padding: 6px 0; font-size: 12px; border-bottom: 1px solid var(--kwo-line); }
.kwo-trending-list li::before { content: counter(trend); color: var(--kwo-red); font-weight: 800; }
.kwo-video-card > a { position: relative; display: block; }
.kwo-video-card .kwo-media { aspect-ratio: 16 / 9; }
.kwo-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.38); color: #fff; display: grid; place-items: center; font-size: 22px; }
.kwo-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.kwo-tag-cloud a { border: 1px solid var(--kwo-line); background: #fafafa; padding: 4px 7px; color: #555; font-size: 10px; }
.kwo-follow-list { display: grid; gap: 5px; }
.kwo-follow-list a { display: flex; justify-content: space-between; align-items: center; background: #26292d; color: #fff; padding: 8px 10px; font-size: 11px; }
.kwo-follow-list a:hover { background: var(--kwo-red); color: #fff; }

/* Archive */
.kwo-page-header { padding: 28px 0 13px; border-bottom: 2px solid var(--kwo-line); margin-bottom: 20px; }
.kwo-page-title { margin: 0; font-size: 28px; line-height: 1.2; }
.kwo-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.kwo-archive-card { border-bottom: 1px solid var(--kwo-line); padding-bottom: 18px; }
.kwo-archive-card .kwo-media { aspect-ratio: 16 / 9; }
.kwo-archive-meta { margin-top: 10px; }
.kwo-pagination { margin: 28px 0; }
.kwo-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.kwo-pagination .page-numbers { min-width: 36px; height: 36px; border: 1px solid var(--kwo-line); display: grid; place-items: center; padding: 0 9px; }
.kwo-pagination .current, .kwo-pagination a:hover { background: var(--kwo-red); border-color: var(--kwo-red); color: #fff; }

/* Single */
.kwo-article { min-width: 0; }
.kwo-article-header { margin-bottom: 18px; }
.kwo-article-title { margin: 9px 0 12px; font-size: clamp(32px, 4.5vw, 49px); line-height: 1.12; letter-spacing: -.7px; }
.kwo-featured-image { margin: 0 0 23px; }
.kwo-featured-image img { width: 100%; }
.kwo-entry-content { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.84; }
.kwo-entry-content h2, .kwo-entry-content h3, .kwo-entry-content h4 { font-family: Arial, Helvetica, sans-serif; line-height: 1.25; margin-top: 1.7em; }
.kwo-entry-content a { color: var(--kwo-red); text-decoration: underline; }
.kwo-entry-content blockquote { margin: 28px 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--kwo-red); font-size: 1.15em; font-style: italic; }
.kwo-entry-content table { width: 100%; border-collapse: collapse; }
.kwo-entry-content th, .kwo-entry-content td { border: 1px solid var(--kwo-line); padding: 9px; }
.kwo-entry-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 25px 0; }
.kwo-entry-tags a { border: 1px solid var(--kwo-line); padding: 5px 9px; font-size: 12px; }
.kwo-author-box { border: 1px solid var(--kwo-line); background: var(--kwo-soft); padding: 18px; margin: 26px 0; }
.kwo-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kwo-related-grid .kwo-media { aspect-ratio: 16 / 9; }
.kwo-related-grid .kwo-card-title { font-size: 14px; }

/* WordPress alignment */
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--kwo-muted); font-size: 12px; text-align: center; }
.sticky { border-top: 3px solid var(--kwo-red); }
.bypostauthor { outline: 1px solid transparent; }
.gallery-caption { font-size: 12px; color: var(--kwo-muted); }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--kwo-line); padding: 18px 0; }
.comment-form input:not([type='submit']), .comment-form textarea { width: 100%; border: 1px solid var(--kwo-line); padding: 10px; }
.form-submit .submit { border: 0; background: var(--kwo-red); color: #fff; padding: 11px 18px; font-weight: 700; }

/* Footer */
.kwo-site-footer { margin-top: 34px; background: linear-gradient(135deg, #151719, #0c0e10); color: #d1d3d5; }
.kwo-footer-grid { display: grid; grid-template-columns: 1.35fr .9fr 1fr 1.25fr; gap: 42px; padding: 40px 0 28px; }
.kwo-footer-title { margin: 0 0 14px; color: #fff; font-size: 14px; text-transform: uppercase; }
.kwo-footer-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 29px; line-height: 1; color: #fff; }
.kwo-footer-brand span { color: var(--kwo-red); }
.kwo-footer-text { font-size: 12px; color: #b9bdc1; }
.kwo-footer-menu { list-style: none; padding: 0; margin: 0; columns: 2; }
.kwo-footer-menu li { margin-bottom: 6px; font-size: 12px; break-inside: avoid; }
.kwo-footer-social { display: flex; gap: 8px; margin: 0 0 18px; }
.kwo-footer-social a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.kwo-footer-social-note { color: #92979c; font-size: 11px; }
.kwo-newsletter { display: flex; }
.kwo-newsletter input { flex: 1; min-width: 0; border: 0; padding: 10px; }
.kwo-newsletter button { border: 0; background: var(--kwo-red); color: #fff; padding: 0 13px; font-size: 11px; font-weight: 800; }
.kwo-copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 15px 0; color: #92979c; font-size: 11px; }

/* Empty */
.kwo-empty { border: 1px dashed var(--kwo-line); padding: 28px; text-align: center; color: var(--kwo-muted); }

@media (max-width: 1020px) {
    .kwo-branding-inner { grid-template-columns: 1fr 1.25fr; }
    .kwo-primary-nav a { padding-inline: 11px; font-size: 12px; }
    .kwo-feature-layout { grid-template-columns: 1fr; }
    .kwo-feature-sidebar { display: none; }
    .kwo-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kwo-content-layout { grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr); }
    .kwo-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .kwo-topbar-inner { padding-block: 8px; }
    .kwo-topbar-left a:not(:first-of-type), .kwo-topbar-separator { display: none; }
    .kwo-branding-inner { min-height: 95px; grid-template-columns: 1fr; gap: 18px; padding-block: 18px; text-align: center; }
    .custom-logo { margin-inline: auto; }
    .kwo-ad-slot { min-height: 58px; }
    .kwo-menu-toggle { display: block; }
    .kwo-primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--kwo-black); box-shadow: 0 10px 24px rgba(0,0,0,.24); }
    .kwo-primary-nav.is-open { display: block; }
    .kwo-primary-nav ul { display: block; }
    .kwo-primary-nav .sub-menu { position: static; display: block; box-shadow: none; padding-left: 12px; }
    .kwo-search-toggle { margin-left: auto; }
    .kwo-breaking-inner { grid-template-columns: auto minmax(0, 1fr); }
    .kwo-breaking-label { padding-inline: 12px; }
    .kwo-breaking-items { padding-left: 20px; }
    .kwo-feature-composite { grid-template-columns: 1fr; min-height: auto; }
    .kwo-hero-main { min-height: 430px; }
    .kwo-feature-stack { grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: none; }
    .kwo-stack-card { min-height: 155px; }
    .kwo-top-modules { grid-template-columns: 1fr; }
    .kwo-content-layout { grid-template-columns: 1fr; }
    .kwo-sidebar { margin-top: 16px; }
    .kwo-archive-grid { grid-template-columns: 1fr; }
    .kwo-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .kwo-container { width: min(calc(100% - 22px), var(--kwo-container)); }
    .kwo-topbar-right { display: none; }
    .kwo-site-title { font-size: 38px; }
    .kwo-breaking-label { font-size: 10px; }
    .kwo-hero-main { min-height: 360px; }
    .kwo-hero-content { left: 17px; right: 17px; bottom: 34px; }
    .kwo-hero-title { font-size: 27px; }
    .kwo-hero-dots { left: 17px; }
    .kwo-feature-stack { grid-template-columns: 1fr; }
    .kwo-stack-card { min-height: 175px; }
    .kwo-category-grid { grid-template-columns: 1fr; }
    .kwo-related-grid { grid-template-columns: 1fr; }
    .kwo-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .kwo-footer-menu { columns: 1; }
    .alignleft, .alignright { float: none; display: block; margin: 1em auto; }
}
