/* =========================================================================
   RaportKolejowyTheme — main stylesheet
   Layout w stylu actunews: topbar → logo+ad → nav → ticker → hero-grid →
   bloki kategorii → sidebar → footer.
   ========================================================================= */

/* ---------- 1. Variables & reset ---------------------------------------- */
:root {
    --rk-primary:      #07163F;
    --rk-primary-2:    #0a1d55;
    --rk-blue:         #1e63b0;
    --rk-blue-light:   #dbe9f7;
    --rk-accent:       #c0392b;
    --rk-accent-2:     #a3311f;
    --rk-bg:           #ffffff;
    --rk-bg-alt:       #f5f6f8;
    --rk-text:         #1a1a1a;
    --rk-text-muted:   #7a7a7a;
    --rk-border:       #e5e7eb;
    --rk-max:          1280px;
    --rk-radius:       4px;
    --rk-transition:   0.2s ease-in-out;
    --rk-shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
    --rk-shadow-md:    0 4px 12px rgba(0,0,0,0.10);
    --rk-font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rk-font-head:    "Georgia", "Times New Roman", serif;
}

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

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

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

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

a {
    color: var(--rk-primary);
    text-decoration: none;
    transition: color var(--rk-transition);
}
a:hover { color: var(--rk-accent); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--rk-font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--rk-primary);
}
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1em; }

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

button, input, select, textarea { font: inherit; color: inherit; }

/* Screen-reader / skip-link */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px;
    overflow: hidden;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: #fff; color: var(--rk-primary);
    padding: .5rem 1rem; z-index: 9999;
    font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 2. Layout wrappers ------------------------------------------ */
.container {
    max-width: var(--rk-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-content { padding: 0 0 3rem; }

.site-main { padding: 1.5rem 0; }

/* Sidebar layout on archive/single */
body.has-sidebar .site-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

/* ---------- 3. Header --------------------------------------------------- */
.site-topbar {
    background: var(--rk-blue);
    color: #fff;
    font-size: .85rem;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 1rem;
}
.topbar-date { text-transform: capitalize; opacity: .9; }
.topbar-social .menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 1rem;
}
.topbar-social a { color: #fff; opacity: .85; }
.topbar-social a:hover { opacity: 1; color: #fff; }

.site-branding-bar { background: #fff; border-bottom: 1px solid var(--rk-border); }
.branding-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1rem; gap: 1.5rem; flex-wrap: wrap;
}
.site-branding img,
.site-branding .custom-logo { max-height: 72px; width: auto; }
.site-title-link { text-decoration: none; }
.site-title {
    font-family: var(--rk-font-head);
    font-size: 2rem; font-weight: 900; color: var(--rk-accent);
    letter-spacing: -.02em;
}

/* Nav bar — granatowy jak w actunews demo */
.main-navigation {
    background: var(--rk-primary);
    position: relative;
}
.main-navigation .container {
    display: flex; align-items: stretch; gap: 1rem;
}
.menu--primary {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex: 1; flex-wrap: wrap;
}
.menu--primary > li { position: relative; }
.menu--primary > li > a {
    display: block; padding: 1.05rem 1.1rem;
    color: #fff; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
    border-bottom: 3px solid transparent;
    transition: color var(--rk-transition), border-color var(--rk-transition), background var(--rk-transition);
}
.menu--primary > li > a:hover,
.menu--primary > li.current-menu-item > a {
    color: #fff;
    background: var(--rk-blue);
    border-bottom-color: var(--rk-accent);
}
.menu--primary li ul {
    list-style: none; margin: 0; padding: .5rem 0;
    position: absolute; top: 100%; left: 0; z-index: 20;
    background: #fff; box-shadow: var(--rk-shadow-md);
    min-width: 220px; opacity: 0; visibility: hidden;
    transition: opacity var(--rk-transition), visibility var(--rk-transition);
}
.menu--primary li:hover > ul { opacity: 1; visibility: visible; }
.menu--primary li ul a {
    display: block; padding: .55rem 1rem; color: var(--rk-primary);
    font-size: .9rem;
}
.menu--primary li ul a:hover { color: var(--rk-accent); background: var(--rk-bg-alt); }

.header-search { display: flex; align-items: center; padding: .5rem 0; }
.header-search input[type="search"] {
    border: 0;
    padding: .5rem .75rem; border-radius: var(--rk-radius) 0 0 var(--rk-radius);
    min-width: 200px; background: #fff;
}
.header-search button {
    background: var(--rk-blue); color: #fff; border: 0;
    padding: .5rem .9rem; cursor: pointer; font-size: 1.1rem;
    border-radius: 0 var(--rk-radius) var(--rk-radius) 0;
    transition: background var(--rk-transition);
}
.header-search button:hover { background: var(--rk-accent); }

.menu-toggle {
    display: none;
    background: transparent; border: 0; padding: 1rem; cursor: pointer;
    width: 48px; height: 48px; position: relative;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
    content: ""; display: block;
    width: 24px; height: 3px; background: #fff;
    position: absolute; left: 12px;
    transition: transform var(--rk-transition), opacity var(--rk-transition);
}
.menu-toggle-bars { top: 50%; margin-top: -1.5px; }
.menu-toggle-bars::before { top: -8px; }
.menu-toggle-bars::after  { top:  8px; }

/* ---------- 4. Ticker --------------------------------------------------- */
.rk-ticker {
    background: var(--rk-blue-light);
    border-bottom: 1px solid var(--rk-border);
    overflow: hidden;
}
.ticker-inner {
    display: flex; align-items: center; gap: 1rem;
    padding: .55rem 1rem;
}
.ticker-label {
    background: var(--rk-accent); color: #fff;
    padding: .3rem .8rem; font-weight: 700;
    font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
    flex-shrink: 0; border-radius: 2px;
}
.ticker-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 2rem;
    overflow: hidden; white-space: nowrap;
    flex: 1;
    animation: rk-ticker-scroll 60s linear infinite;
}
.ticker-list:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: baseline; gap: .5rem; flex-shrink: 0; }
.ticker-item time {
    color: var(--rk-accent); font-weight: 700; font-size: .85rem;
}
.ticker-item a { color: var(--rk-text); font-size: .95rem; }
.ticker-item a:hover { color: var(--rk-accent); }

@keyframes rk-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- 5. Hero (układ actunews: big + mini list + FEATURED) -------- */
.rk-hero {
    background: var(--rk-primary);
    padding: 0;
}
.rk-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
    gap: 0;
    padding: 0;
}

/* Główny wpis z nakładką mini-listy */
.rk-hero__main {
    position: relative;
    min-height: 520px;
}
.rk-hero__big { height: 100%; }
.rk-hero__big-link {
    display: block; position: relative; height: 100%;
    color: #fff;
}
.rk-hero__big-link:hover { color: #fff; }
.rk-hero__big-img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0;
}
.rk-hero__big-body {
    position: absolute; left: 0; bottom: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(7,22,63,.92) 0%, rgba(7,22,63,.5) 55%, transparent 100%);
    max-width: 62%;
}
.rk-hero__big-title {
    color: #fff; margin: .5rem 0;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}
.rk-hero__big-link:hover .rk-hero__big-title { text-decoration: underline; }
.rk-hero__big-meta {
    display: flex; gap: 1rem; font-size: .85rem;
    color: rgba(255,255,255,.85);
    text-transform: uppercase; letter-spacing: .04em;
}

/* Mini-lista nałożona na prawą krawędź dużego zdjęcia */
.rk-hero__mini {
    list-style: none; margin: 0; padding: 0;
    position: absolute; top: 1.5rem; right: 1rem; bottom: 1.5rem;
    width: 300px;
    display: flex; flex-direction: column; justify-content: space-between;
    gap: .5rem;
    z-index: 2;
}
.rk-hero__mini-item a {
    display: grid; grid-template-columns: 56px 1fr; gap: .7rem;
    align-items: center;
    background: rgba(245,246,248,.92);
    padding: .5rem .7rem;
    border-radius: 2px;
    color: var(--rk-text);
    transition: background var(--rk-transition);
}
.rk-hero__mini-item a:hover { background: #fff; }
.rk-hero__mini-thumb img {
    width: 56px; height: 56px; object-fit: cover; border-radius: 50%;
}
.rk-hero__mini-title {
    display: block;
    font-weight: 700; font-size: .82rem; line-height: 1.3;
    color: var(--rk-primary);
    text-transform: uppercase;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.rk-hero__mini-item time {
    font-size: .72rem; color: var(--rk-text-muted);
}

/* Kolumna FEATURED na czerwonym tle */
.rk-hero__featured {
    background: var(--rk-accent);
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.rk-hero__featured-title {
    margin: 0;
    background: var(--rk-blue);
    color: #fff;
    padding: .6rem 1rem;
    font-family: var(--rk-font-body);
    font-size: 1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
    position: relative;
}
.rk-hero__featured-title::after {
    content: "";
    position: absolute; left: 1rem; top: 100%;
    border: 8px solid transparent; border-top-color: var(--rk-blue);
}
.rk-hero__featured-item { position: relative; }
.rk-hero__featured-item a { display: block; position: relative; color: #fff; }
.rk-hero__featured-num {
    position: absolute; top: 0; left: 0; z-index: 2;
    background: var(--rk-blue); color: #fff;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem;
}
.rk-hero__featured-img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}
.rk-hero__featured-item-title {
    position: absolute; left: 0; right: 0; bottom: 0;
    margin: 0; padding: .75rem;
    color: #fff; font-size: .95rem; line-height: 1.35;
    font-family: var(--rk-font-body); font-weight: 700;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}
.rk-hero__featured-item a:hover .rk-hero__featured-item-title { text-decoration: underline; }

/* ---------- 6. Section-category ---------------------------------------- */
.front-sections { padding: 1rem 0 3rem; }
.section-category { margin: 2rem 0 2.5rem; }
.section-category__header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; padding-bottom: .5rem;
    border-bottom: 3px solid var(--rk-primary);
    margin-bottom: 1.5rem;
    position: relative;
}
.section-category__header::after {
    content: ""; position: absolute; left: 0; bottom: -3px;
    width: 80px; height: 3px; background: var(--rk-accent);
}
.section-category__title {
    margin: 0; font-size: 1.4rem; text-transform: uppercase;
    letter-spacing: .04em; font-family: var(--rk-font-body);
    font-weight: 800;
}
.section-category__title a { color: var(--rk-primary); }
.section-category__title a:hover { color: var(--rk-accent); }
.section-category__more {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
    font-weight: 700; color: var(--rk-accent);
}

/* Grid layout (kafelki 4-kolumnowe) */
.section-category__body--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Featured-list: duży wyróżniony + lista po prawej */
.section-category__body--featured-list {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.section-category__body--featured-list > .card--section-featured {
    grid-row: span 4;
}
.section-category__body--featured-list > .list-item {
    border-bottom: 1px solid var(--rk-border);
    padding-bottom: 1rem;
}
.section-category__body--featured-list > .list-item:last-child {
    border-bottom: 0; padding-bottom: 0;
}

/* ---------- 7. Card ---------------------------------------------------- */
.card {
    background: #fff; border-radius: var(--rk-radius);
    overflow: hidden;
    transition: transform var(--rk-transition), box-shadow var(--rk-transition);
    margin: 0;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--rk-shadow-md); }

.card__link {
    display: block; color: inherit; text-decoration: none;
}
.card__link:hover { color: inherit; }

.card__media {
    margin: 0; overflow: hidden; aspect-ratio: 3 / 2;
    background: var(--rk-bg-alt);
}
.card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease-out;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: .9rem 0 0; }
.card--slider .card__body,
.card--section-featured .card__body { padding: 1rem; }

.card__category {
    display: inline-block; margin-bottom: .35rem;
    background: var(--rk-accent); color: #fff;
    padding: .15rem .55rem; font-size: .7rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    border-radius: 2px;
}
.card__title {
    font-size: 1.05rem; margin: 0 0 .4rem;
    font-family: var(--rk-font-body); font-weight: 700;
    line-height: 1.35; color: var(--rk-primary);
}
.card--section-featured .card__title { font-size: 1.35rem; }
.card__meta {
    font-size: .8rem; color: var(--rk-text-muted);
    display: flex; gap: .75rem; align-items: center;
}
.card__meta time { color: var(--rk-text-muted); }
.card__author::before { content: "· "; opacity: .5; }

/* ---------- 8. List-item ----------------------------------------------- */
.list-item {
    display: block;
}
.list-item__link {
    display: grid; grid-template-columns: 100px 1fr; gap: .8rem;
    color: inherit; text-decoration: none;
    align-items: start;
}
.list-item__link:hover { color: inherit; }
.list-item__link:hover .list-item__title { color: var(--rk-accent); }
.list-item__media {
    margin: 0; aspect-ratio: 1 / 1; overflow: hidden;
    background: var(--rk-bg-alt); border-radius: var(--rk-radius);
}
.list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.list-item__body { min-width: 0; }
.list-item__title {
    font-size: .95rem; margin: 0 0 .35rem;
    font-family: var(--rk-font-body); font-weight: 700;
    line-height: 1.3; color: var(--rk-primary);
    transition: color var(--rk-transition);
}
.list-item__date { font-size: .75rem; color: var(--rk-text-muted); }

/* ---------- 9. Posts grid (index/archive/search) ----------------------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.page-header {
    padding: 1.5rem 0; margin-bottom: 1rem;
    border-bottom: 3px solid var(--rk-primary);
    position: relative;
}
.page-header::after {
    content: ""; position: absolute; left: 0; bottom: -3px;
    width: 80px; height: 3px; background: var(--rk-accent);
}
.archive-eyebrow {
    color: var(--rk-accent); font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .25rem;
}
.page-title { margin: 0; }

/* ---------- 10. Single article ----------------------------------------- */
.single-article__header {
    padding: 2rem 1rem 1.5rem;
    text-align: center;
}
.single-article__category a {
    color: var(--rk-accent);
    text-transform: uppercase; letter-spacing: .08em;
    font-weight: 700; font-size: .8rem; margin-right: .5rem;
}
.single-article__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: .5rem 0 1rem;
}
.single-article__meta {
    color: var(--rk-text-muted); font-size: .85rem;
    display: flex; justify-content: center; gap: 1rem;
}
.single-article__hero {
    margin: 0 auto 2rem; max-width: var(--rk-max);
}
.single-article__hero img { width: 100%; height: auto; }
.single-article__hero figcaption {
    font-size: .8rem; color: var(--rk-text-muted);
    padding: .5rem 1rem; text-align: center;
}
.single-article__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
}
.single-article__content {
    font-size: 1.05rem; line-height: 1.75;
}
.single-article__content h2,
.single-article__content h3 { margin-top: 2rem; }
.single-article__content img { border-radius: var(--rk-radius); margin: 1rem 0; }
.single-article__content blockquote {
    border-left: 4px solid var(--rk-accent);
    padding: .5rem 1rem; margin: 1.5rem 0;
    color: var(--rk-text-muted); font-style: italic;
}
.post-tags {
    list-style: none; padding: 0; margin: 1.5rem 0;
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.post-tags li a {
    background: var(--rk-bg-alt); padding: .25rem .7rem;
    font-size: .8rem; border-radius: 2px; color: var(--rk-primary);
}
.post-tags li a:hover { background: var(--rk-accent); color: #fff; }

/* ---------- 11. Sidebar ------------------------------------------------- */
.widget-area {
    position: sticky; top: 1rem;
}
.widget {
    background: #fff; border: 1px solid var(--rk-border);
    padding: 1.25rem; margin-bottom: 1.5rem;
    border-radius: var(--rk-radius);
}
.widget-title {
    margin: 0 0 1rem; font-size: 1rem;
    text-transform: uppercase; letter-spacing: .05em;
    font-family: var(--rk-font-body); font-weight: 800;
    color: var(--rk-primary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--rk-primary);
    position: relative;
}
.widget-title::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 40px; height: 2px; background: var(--rk-accent);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: .5rem 0; border-bottom: 1px solid var(--rk-border);
    font-size: .95rem;
}
.widget li:last-child { border-bottom: 0; }

/* ---------- 12. Ad zones ------------------------------------------------ */
.rk-ad-zone {
    display: flex; justify-content: center; align-items: center;
    padding: 1rem; margin: 1.5rem 0;
    background: var(--rk-bg-alt); border-radius: var(--rk-radius);
    min-height: 90px;
}
.rk-ad-zone:empty::before { content: "reklama"; color: var(--rk-text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 13. Footer -------------------------------------------------- */
.site-footer {
    background: var(--rk-primary); color: #fff;
    margin-top: 3rem;
}
.footer-widgets {
    padding: 2.5rem 0 1.5rem;
    display: grid;
}
.footer-widgets .container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.footer-widgets .widget {
    background: transparent; border: 0; padding: 0; margin: 0;
    color: #fff;
}
.footer-widgets .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.footer-widgets .widget a { color: #fff; opacity: .85; }
.footer-widgets .widget a:hover { opacity: 1; color: #fff; }
.footer-widgets .widget li { border-bottom-color: rgba(255,255,255,.1); }

.site-info {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 1rem 0; font-size: .85rem;
}
.site-info-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.copyright { margin: 0; opacity: .85; }
.menu--footer {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 1.25rem;
}
.menu--footer a { color: #fff; opacity: .85; }
.menu--footer a:hover { opacity: 1; }

/* ---------- 14. Pagination --------------------------------------------- */
.pagination,
.nav-links {
    display: flex; justify-content: center; gap: .5rem;
    margin: 2rem 0;
}
.pagination .page-numbers,
.nav-links a, .nav-links span {
    display: inline-block; padding: .5rem .85rem;
    border: 1px solid var(--rk-border);
    color: var(--rk-primary); font-weight: 600;
    border-radius: var(--rk-radius);
    text-decoration: none;
    transition: background var(--rk-transition), color var(--rk-transition);
}
.pagination .page-numbers.current,
.nav-links .current {
    background: var(--rk-primary); color: #fff; border-color: var(--rk-primary);
}
.pagination a:hover, .nav-links a:hover {
    background: var(--rk-accent); color: #fff; border-color: var(--rk-accent);
}

/* ---------- 15. Responsive --------------------------------------------- */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .section-category__body--grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets .container { grid-template-columns: repeat(2, 1fr); }
    body.has-sidebar .site-main,
    .single-article__body {
        grid-template-columns: 1fr;
    }
    .widget-area { position: static; }
}

@media (max-width: 1024px) {
    .rk-hero__inner { grid-template-columns: 1fr; }
    .rk-hero__mini { position: static; width: auto; padding: 1rem; gap: .5rem; }
    .rk-hero__main { min-height: 0; }
    .rk-hero__big-link { min-height: 380px; display: block; }
    .rk-hero__big-body { max-width: 100%; }
    .rk-hero__featured {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
    .rk-hero__featured-title { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .rk-hero__featured { grid-template-columns: 1fr; }
    .section-category__header {
        flex-direction: column; align-items: flex-start; gap: .35rem;
    }

    .menu-toggle { display: inline-block; }
    .menu--primary {
        display: none; flex-direction: column; width: 100%;
        position: absolute; top: 100%; left: 0;
        background: #fff; box-shadow: var(--rk-shadow-md);
        z-index: 30;
    }
    .menu--primary.is-open { display: flex; }
    .menu--primary > li > a {
        padding: .8rem 1rem; border-bottom: 1px solid var(--rk-border);
        margin-bottom: 0;
    }
    .menu--primary li ul {
        position: static; box-shadow: none;
        opacity: 1; visibility: visible;
        padding-left: 1rem;
    }
    .header-search input[type="search"] { min-width: 0; flex: 1; }
    .main-navigation .container { flex-wrap: wrap; padding: .5rem 1rem; }
    .header-search { width: 100%; order: 3; }

    .topbar-inner { flex-wrap: wrap; gap: .5rem; }
}

@media (max-width: 560px) {
    .posts-grid { grid-template-columns: 1fr; }
    .section-category__body--grid { grid-template-columns: 1fr; }
    .section-category__body--featured-list { grid-template-columns: 1fr; }
    .section-category__body--featured-list > .card--section-featured { grid-row: auto; }
    .rk-hero__big-link { min-height: 280px; }
    .rk-hero__big-body { padding: 1.25rem; }
    .footer-widgets .container { grid-template-columns: 1fr; }
    .site-info-inner { flex-direction: column; text-align: center; }
    .ticker-list { animation-duration: 40s; }
}
