/*
Theme Name: Warta Digita
Author: Hello Digita
Author URI: https://hellodigita.web.id
Description: A fast, responsive news and magazine theme with headline grid, news ticker, category blocks, dark mode, ad slots, popular posts and article schema.
Version: 1.10.4
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warta-digita
Domain Path: /languages
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Variables ---------- */
:root {
	--lw-primary: #c8102e;
	--lw-link: var(--lw-primary);
	--lw-bg: #f4f5f7;
	--lw-surface: #fff;
	--lw-text: #1b1d21;
	--lw-muted: #5f6672;
	--lw-border: #e1e4e8;
	--lw-radius: 8px;
	--lw-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lw-serif: Georgia, "Times New Roman", serif;
}
html[data-theme="dark"] {
	--lw-bg: #101216;
	--lw-surface: #181b21;
	--lw-text: #e8eaed;
	--lw-muted: #a2a9b4;
	--lw-border: #2b3038;
	--lw-link: #ff8f9c;
	--lw-link: color-mix(in srgb, var(--lw-primary) 45%, #fff);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--lw-font); font-size: 16px; line-height: 1.6; background: var(--lw-bg); color: var(--lw-text); overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lw-link); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lw-link); outline-offset: 2px; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.container { width: min(var(--lw-width, 1180px), 100% - 32px); margin-inline: auto; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; z-index: 100; top: 8px; left: 8px; background: var(--lw-surface); padding: 10px 14px; }
button, input[type="submit"], .button { font: inherit; cursor: pointer; border: 0; border-radius: var(--lw-radius); background: var(--lw-primary); color: #fff; padding: 9px 16px; display: inline-block; }
.button:hover { color: #fff; filter: brightness(1.1); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--lw-border); border-radius: var(--lw-radius); background: var(--lw-surface); color: var(--lw-text); }

/* ---------- Header ---------- */
.topbar { background: #14161a; color: #cfd3da; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.masthead { background: var(--lw-surface); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { min-width: 0; }
.brand img { max-height: 64px; width: auto; }
.site-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin: 0; letter-spacing: -.5px; color: var(--lw-link); }
.site-description { margin: 0; font-size: 13px; color: var(--lw-muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { background: transparent; color: var(--lw-text); border: 1px solid var(--lw-border); padding: 7px 12px; font-size: 14px; }
.menu-toggle { display: none; }
.search-panel { background: var(--lw-surface); border-top: 1px solid var(--lw-border); padding-block: 14px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.main-nav { background: var(--lw-primary); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .main-nav { top: 32px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .container > ul { display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 11px 14px; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { color: #fff; background: rgba(0,0,0,.2); }
.main-nav li ul { position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--lw-primary); box-shadow: 0 10px 24px rgba(0,0,0,.2); visibility: hidden; opacity: 0; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { visibility: visible; opacity: 1; }
.main-nav li li ul { left: 100%; top: 0; }

/* ---------- Ticker ---------- */
.ticker { background: var(--lw-surface); }
.lw-lines .ticker { border-bottom: 1px solid var(--lw-border); }
.ticker .container { display: flex; align-items: center; gap: 12px; }
.ticker-label { background: var(--lw-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; white-space: nowrap; text-transform: uppercase; }
.ticker-window { overflow: hidden; flex: 1; min-width: 0; container-type: inline-size; }
.ticker-track { display: flex; width: max-content; animation: lw-ticker 40s linear infinite; }
.ticker-track ul { min-width: 100cqw; display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-track li { padding: 9px 24px 9px 0; white-space: nowrap; font-size: 14px; }
.ticker-window:hover .ticker-track, .ticker-window:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-pause { padding: 3px 10px; font-size: 12px; }
@keyframes lw-ticker { to { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.site-main { padding-block: 24px 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.layout.no-sidebar { grid-template-columns: minmax(0, 820px); justify-content: center; }
.section { margin-bottom: 32px; }
.section-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--lw-primary); padding-bottom: 6px; font-size: 20px; margin-bottom: 16px; }
.section-title a.more { font-size: 13px; font-weight: 500; color: var(--lw-muted); }

/* ---------- Cards ---------- */
.thumb { display: block; overflow: hidden; border-radius: var(--lw-radius); aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--lw-border), var(--lw-muted)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.04); }
.cat-label { display: inline-block; background: var(--lw-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 6px; }
a.cat-label:hover { color: #fff; }
.meta { font-size: 12px; color: var(--lw-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card-title { font-size: 17px; margin: 8px 0 4px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 32px; }
.hero.hero-single { grid-template-columns: minmax(0, 1fr); }
.hero-side { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hero-item { position: relative; border-radius: var(--lw-radius); overflow: hidden; }
.hero-item .thumb { height: 100%; min-height: 180px; border-radius: 0; }
.hero-main .thumb { min-height: 420px; }
.hero-caption { position: absolute; inset: auto 0 0; padding: 48px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.88)); color: #fff; }
.hero-caption a:hover { color: #fff; text-decoration: underline; }
.hero-caption a.cat-label { text-decoration: none; }
.hero-caption .meta { color: #ddd; }
.hero-caption h2 { font-size: 17px; margin-bottom: 4px; }
.hero-main h2 { font-size: clamp(20px, 3vw, 32px); }

.list { display: grid; gap: 18px; }
.list-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; background: var(--lw-surface); padding: 12px; border-radius: var(--lw-radius); border: 1px solid var(--lw-border); }
.list-item .card-title { margin-top: 0; font-size: 19px; }
.list-item p { margin: 6px 0 0; font-size: 14px; color: var(--lw-muted); }

.block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini-list { display: grid; gap: 14px; align-content: start; list-style: none; margin: 0; padding: 0; }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.mini .thumb { aspect-ratio: 4 / 3; }
.mini h3, .mini h4 { font-size: 14px; margin: 0 0 2px; }
.popular { counter-reset: popular; }
.popular .mini { grid-template-columns: 40px minmax(0, 1fr); }
.popular .mini::before { counter-increment: popular; content: counter(popular); font-size: 28px; font-weight: 800; color: var(--lw-link); line-height: 1; }

/* ---------- Single ---------- */
.article, .box { background: var(--lw-surface); border: 1px solid var(--lw-border); border-radius: var(--lw-radius); padding: clamp(16px, 3vw, 28px); }
.breadcrumbs { font-size: 13px; color: var(--lw-muted); margin-bottom: 12px; }
.entry-title { font-size: clamp(24px, 4vw, 36px); }
.entry-header .meta { margin-bottom: 14px; font-size: 13px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 14px; font-size: 13px; }
.share a, .share button { border: 1px solid var(--lw-border); background: transparent; color: var(--lw-text); padding: 5px 12px; border-radius: 99px; font-size: 13px; }
.featured { margin: 0 0 18px; }
.featured img { width: 100%; border-radius: var(--lw-radius); }
.featured figcaption, .wp-caption-text, .wp-element-caption { font-size: 12px; color: var(--lw-muted); margin-top: 6px; }
.entry-content { font-family: var(--lw-serif); font-size: var(--lw-reading-size, 18px); line-height: 1.75; }
.entry-content a { color: var(--lw-link); text-decoration: underline; }
.entry-content > * { margin: 0 0 1.2em; }
.entry-content blockquote { border-left: 4px solid var(--lw-primary); padding-left: 16px; margin-inline: 0; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--lw-border); padding: 8px; }
.entry-content pre { overflow-x: auto; background: var(--lw-bg); padding: 14px; }
.entry-content .wp-block-button__link { color: #fff; text-decoration: none; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.gallery-caption { font-size: 12px; color: var(--lw-muted); }
.sticky { display: block; }
.bypostauthor > .comment-body .fn { color: var(--lw-link); }
.alignwide, .alignfull { max-width: 100%; }
.entry-content::after { content: ""; display: block; clear: both; }
.read-also { font-family: var(--lw-font); font-size: 15px; border-left: 4px solid var(--lw-primary); background: var(--lw-bg); padding: 10px 14px; }
.read-also strong { display: block; font-size: 12px; text-transform: uppercase; color: var(--lw-muted); }
.entry-content .read-also a { text-decoration: none; font-weight: 700; }
.font-size { margin-left: auto; display: flex; gap: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; font-size: 13px; }
.tags a { border: 1px solid var(--lw-border); border-radius: 99px; padding: 3px 12px; }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--lw-border); padding-top: 18px; margin-top: 18px; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 0; font-size: 14px; color: var(--lw-muted); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-block: 20px; font-size: 14px; }
.post-nav > div { max-width: 48%; }
.page-links { font-family: var(--lw-font); }

/* ---------- Comments ---------- */
.comments { margin-top: 24px; }
.comment-list, .comment-list ol { list-style: none; padding: 0; }
.comment-list ol { padding-left: 24px; }
.comment-body { border-bottom: 1px solid var(--lw-border); padding-block: 12px; }
.comment-author img { display: inline-block; vertical-align: middle; border-radius: 50%; margin-right: 8px; }
.comment-metadata { font-size: 12px; color: var(--lw-muted); }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form-cookies-consent label { display: inline; }

/* ---------- Sidebar, ads, pagination ---------- */
.sidebar { display: grid; gap: 20px; }
.widget { background: var(--lw-surface); border: 1px solid var(--lw-border); border-radius: var(--lw-radius); padding: 16px; }
.widget-title, .widget h2 { font-size: 16px; border-bottom: 3px solid var(--lw-primary); padding-bottom: 6px; }
.widget ul { padding-left: 18px; margin: 0; }
.widget ul.mini-list { padding: 0; }
.widget select { max-width: 100%; }
.ad { text-align: center; margin: 16px auto; overflow: hidden; min-height: var(--lw-ad-height, 100px); }
.ad-label { display: block; font: 12px var(--lw-font); color: var(--lw-muted); text-transform: uppercase; letter-spacing: 1px; }
.ad img { margin-inline: auto; }
.pagination, .comments-pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 6px 13px; border: 1px solid var(--lw-border); border-radius: var(--lw-radius); background: var(--lw-surface); }
.page-numbers.current { background: var(--lw-primary); border-color: var(--lw-primary); color: #fff; }
.center { text-align: center; margin-top: 20px; }
.archive-header { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #14161a; color: #cfd3da; padding-top: 32px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 16px 0 0; margin: 0; }
.footer-bottom { border-top: 1px solid #2b3038; margin-top: 24px; padding-block: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; }
[hidden] { display: none !important; }

/* ---------- Block widgets ---------- */
.widget .wp-block-search__button { background: var(--lw-primary); border: 0; color: #fff; }
.widget ul.wp-block-latest-posts, .widget ol.wp-block-latest-comments { list-style: none; margin: 0; padding: 0; }
.widget .wp-block-latest-posts li, .widget .wp-block-latest-comments li { margin-bottom: 10px; line-height: 1.4; }

/* ---------- Layout and style choices ---------- */
.lw-static-menu .main-nav { position: static; }
.lw-sidebar-none .layout:not(.no-sidebar) { grid-template-columns: minmax(0, 1fr); }
.single.lw-sidebar-none .layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (min-width: 961px) {
	.lw-sidebar-left .layout:not(.no-sidebar) { grid-template-columns: 320px minmax(0, 1fr); }
	.lw-sidebar-left .layout .sidebar { order: -1; }
}
body.lw-style-clean { background: var(--lw-surface); }
.lw-style-clean .main-nav, .lw-style-clean .main-nav li ul { background: var(--lw-surface); color: var(--lw-text); }
.lw-style-clean.lw-lines .main-nav { border-block: 1px solid var(--lw-border); }
.lw-style-clean .main-nav a:hover, .lw-style-clean .main-nav .current-menu-item > a, .lw-style-clean .main-nav .current-cat > a { color: var(--lw-link); background: transparent; box-shadow: inset 0 -3px var(--lw-primary); }
.lw-style-clean .article, .lw-style-clean .list-item, .lw-style-clean .widget { border: 0; padding-inline: 0; border-radius: 0; }
.lw-style-clean .article { padding-top: 0; }
.lw-style-clean .sidebar .widget { padding-block: 0; }
.lw-style-clean .list-item { border-bottom: 1px solid var(--lw-border); padding-block: 0 18px; }
.lw-style-clean .read-also { background: transparent; }

/* ---------- News portal style ---------- */
.lw-style-portal .topbar { background: #14161a; background: color-mix(in srgb, var(--lw-primary) 65%, #000); color: #fff; }
.lw-style-portal .masthead { background: var(--lw-primary); color: #fff; }
.lw-style-portal .site-title, .lw-style-portal .site-description, .lw-style-portal .site-title a:hover { color: #fff; }
.lw-style-portal .masthead .icon-button { color: #fff; border-color: rgba(255,255,255,.55); }
.lw-style-portal .search-panel { color: var(--lw-text); }
.lw-style-portal .topbar a:focus-visible, .lw-style-portal .masthead a:focus-visible, .lw-style-portal .masthead .icon-button:focus-visible, .lw-style-portal .main-nav a:focus-visible { outline-color: #fff; }
.lw-style-portal .main-nav, .lw-style-portal .main-nav li ul { background: #14161a; }
.lw-style-portal .main-nav a:hover, .lw-style-portal .main-nav .current-menu-item > a, .lw-style-portal .main-nav .current-cat > a { background: var(--lw-primary); }
.lw-style-portal .ticker-label { border-radius: 0; padding: 6px 14px; }
.lw-style-portal .site-main { padding-top: 16px; }
.lw-style-portal .hero { gap: 4px; margin-bottom: 20px; }
.lw-style-portal .hero-side { gap: 4px; }
.lw-style-portal .hero-item, .lw-style-portal .thumb { border-radius: 2px; }
.lw-style-portal .layout { gap: 20px; }
.lw-style-portal .section { background: var(--lw-surface); padding: 0 14px 14px; margin-bottom: 20px; }
.lw-style-portal .section-title { border-bottom-width: 2px; padding-bottom: 0; margin-inline: -14px; align-items: flex-end; gap: 12px; }
.lw-style-portal .section-title > span { background: var(--lw-primary); color: #fff; font-size: 15px; text-transform: uppercase; padding: 8px 16px; }
.lw-style-portal .section-title a.more { margin-right: 14px; margin-bottom: 4px; }
.lw-style-portal .archive-header .section-title { margin-inline: 0; }
.lw-style-portal .list { gap: 0; }
.lw-style-portal .list-item { border: 0; border-bottom: 1px solid var(--lw-border); border-radius: 0; padding: 12px; }
.lw-style-portal .section .list-item { padding-inline: 0; }
.lw-style-portal .section .list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.lw-style-portal .list-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lw-style-portal .widget { border-radius: 0; }
.lw-style-portal .sidebar .widget h2 { background: var(--lw-primary); color: #fff; border: 0; font-size: 15px; text-transform: uppercase; margin: -16px -16px 14px; padding: 9px 16px; }
.lw-style-portal .popular .mini::before { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--lw-primary); color: #fff; font-size: 16px; }
@media (min-width: 721px) {
	.lw-style-portal .list-item { grid-template-columns: 180px minmax(0, 1fr); }
	.lw-style-portal .list-item .card-title { font-size: 17px; }
}
@media (max-width: 720px) {
	.lw-style-portal .list-item p { display: none; }
}

/* ---------- Grand magazine style ---------- */
.lw-style-megah { --lw-shadow: 0 6px 20px rgba(16,24,40,.08); --lw-tint: color-mix(in srgb, var(--lw-primary) 11%, transparent); }
.lw-style-megah .masthead .container { padding-block: 20px; }
.lw-style-megah .site-title { font-size: clamp(26px, 4vw, 38px); font-style: italic; }
.masthead-search { flex: 1 1 220px; max-width: 480px; margin-left: auto; }
.masthead-search input[type="search"], .masthead-search button { border-radius: 99px; min-height: 44px; }
.masthead-search button { padding-inline: 24px; font-weight: 700; }
.lw-style-megah .search-toggle, .lw-style-megah .search-panel { display: none; }
.lw-style-megah .ticker-label, .lw-style-megah .cat-label { background: var(--lw-tint); color: var(--lw-link); }
.lw-style-megah .cat-label { border-radius: 99px; padding-inline: 10px; }
.lw-style-megah a.cat-label:hover { color: var(--lw-link); }
.lw-style-megah .hero-caption .cat-label, .lw-style-megah .hero-caption a.cat-label:hover { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.45); color: #fff; }
.lw-style-megah .cat-label { border-radius: 99px; padding-inline: 10px; }
.lw-style-megah .main-nav { background: var(--lw-surface); background: color-mix(in srgb, var(--lw-surface) 74%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); color: var(--lw-text); box-shadow: var(--lw-shadow); }
.lw-style-megah .main-nav::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--lw-border); }
.lw-style-megah .main-nav a { margin-block: 8px; padding: 7px 14px; border-radius: 99px; }
.lw-style-megah .main-nav a:hover, .lw-style-megah .main-nav .current-menu-item > a, .lw-style-megah .main-nav .current-cat > a { color: var(--lw-link); background: var(--lw-tint); }
.lw-style-megah .main-nav li ul { background: var(--lw-surface); border-radius: 18px; padding-inline: 8px; }
.lw-style-megah .ticker-label { border-radius: 99px; padding: 4px 16px; }
.topics { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin-top: 14px; padding: 10px 16px; background: var(--lw-surface); border: 1px solid var(--lw-border); border-radius: 99px; white-space: nowrap; }
/* Phones scroll by swiping; wider screens keep the bar for mouse users. */
@media (max-width: 720px) {
	.topics { scrollbar-width: none; }
	.topics::-webkit-scrollbar { display: none; }
}
.topics strong { flex: none; background: var(--lw-tint); color: var(--lw-link); border-radius: 99px; padding: 3px 14px; text-transform: uppercase; font-size: 13px; margin-right: 6px; }
.topics a { flex: none; background: var(--lw-bg); border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 600; min-height: 28px; }
.lw-style-megah .site-main { padding-top: 18px; }
.lw-style-megah .layout { gap: 24px; }
.lw-style-megah .hero { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 22px; border-radius: 14px; overflow: hidden; box-shadow: var(--lw-shadow); }
.lw-style-megah .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.lw-style-megah .hero-side > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.lw-style-megah .hero-item { border-radius: 0; }
.lw-style-megah .hero-side .thumb { min-height: 210px; }
.lw-style-megah .hero-side h2, .spot-track h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.spot-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--lw-primary) var(--lw-border); }
.spot-track .hero-item { scroll-snap-align: start; border-radius: 12px; aspect-ratio: 3 / 4.2; }
.spot-track .thumb { position: absolute; inset: 0; min-height: 0; aspect-ratio: auto; }
.spot-track .hero-caption { padding: 60px 10px 10px; }
.spot-track h2 { font-size: 14px; }
.spot-nav { display: none; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.js .spot-nav { display: flex; }
/* The arrow buttons replace the scrollbar; swiping still works. Without JavaScript the bar stays. */
.js .spot-track { scrollbar-width: none; padding-bottom: 0; }
.js .spot-track::-webkit-scrollbar { display: none; }
.spot-nav button { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--lw-border); background: transparent; color: var(--lw-text); font-size: 24px; line-height: 1; cursor: pointer; }
.lw-style-megah .popular .mini { position: relative; grid-template-columns: 96px minmax(0, 1fr); }
.hot-topics ol { list-style: none; margin: 0; padding: 0; counter-reset: topic; }
.hot-topics li { counter-increment: topic; display: flex; align-items: center; gap: 14px; padding-block: 8px; border-bottom: 1px solid var(--lw-border); font-weight: 700; }
.hot-topics li:last-child { border-bottom: 0; }
.hot-topics li::before { content: "#" counter(topic); min-width: 42px; font-size: 24px; font-style: italic; font-weight: 800; color: var(--lw-link); }
.hot-topics a { display: inline-block; min-height: 28px; padding-block: 2px; }
.lw-style-megah .section { background: var(--lw-surface); border-radius: 14px; box-shadow: var(--lw-shadow); padding: 20px; margin-bottom: 22px; }
.lw-style-megah .section-title { border: 0; justify-content: flex-start; gap: 12px; font-size: 22px; }
.lw-style-megah .section-title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; transform: skewX(-14deg); background: var(--lw-primary); }
.lw-style-megah .section-title a.more { margin-left: auto; }
.lw-style-megah .archive-header .section-title { margin-bottom: 0; }
.lw-style-megah .section .list-item { border: 0; border-bottom: 1px solid var(--lw-border); border-radius: 0; padding: 0 0 16px; }
.lw-style-megah .section .list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.lw-style-megah .article, .lw-style-megah .box, .lw-style-megah .list-item { border-radius: 14px; }
.lw-style-megah .sidebar .widget { border: 0; border-radius: 14px; box-shadow: var(--lw-shadow); padding: 20px; }
.picks { background: var(--lw-surface); border-radius: 18px; overflow: hidden; padding: 0 20px 20px; box-shadow: var(--lw-shadow); }
.picks-head { display: flex; align-items: center; gap: 12px; margin: 0 -20px; padding: 18px 20px; background: var(--lw-tint); }
.picks-head img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid var(--lw-surface); }
.picks h2 { font-size: 20px; margin: 0; text-transform: uppercase; font-style: italic; }
.picks-head span { font-size: 13px; }
.picks ul { list-style: none; margin: 0 0 4px; padding: 0; }
.picks li { border-bottom: 1px solid var(--lw-border); padding-block: 12px; }
.picks li:last-child { border-bottom: 0; }
.picks h3 { font-size: 15px; margin: 0 0 4px; }
.picks-more { display: block; text-align: center; border: 2px solid var(--lw-link); color: var(--lw-link); border-radius: 99px; padding: 9px; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.lw-style-megah .popular .mini::before { position: absolute; z-index: 1; top: -4px; left: -6px; border: 2px solid var(--lw-surface); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lw-primary); color: #fff; font-size: 15px; }
.lw-style-megah .site-footer { background: #17131f; border-top: 3px solid var(--lw-primary); }
@media (max-width: 960px) {
	.spot-track { grid-auto-columns: calc((100% - 24px) / 3); }
}
@media (max-width: 520px) {
	.lw-style-megah .hero-main .thumb { min-height: 240px; }
	.lw-style-megah .hero-side .thumb { min-height: 180px; }
	.lw-style-megah .hero-side .hero-caption { padding: 40px 8px 8px; }
	.lw-style-megah .hero-side h2 { font-size: 13px; }
	.spot-track { grid-auto-columns: 46%; }
}
@media (max-width: 720px) {
	.masthead-search { display: none; }
	.lw-style-megah .search-toggle { display: inline-flex; }
	.lw-style-megah .search-panel:not([hidden]) { display: block; }
	.lw-style-megah .section { padding: 14px; }
	.lw-style-megah .main-nav a { margin-block: 4px; }
	.topics { border-radius: 12px; }
}

/* Menu at the top with the floating panel */
.lw-static-menu .topnav { position: relative; }
.topnav { position: sticky; top: 0; z-index: 60; }
.admin-bar .topnav { top: 32px; }
.lw-style-megah .topnav .main-nav { position: static; }
.lw-style-megah .main-nav > .container { display: flex; align-items: center; gap: 10px; }
.lw-style-megah .main-nav > .container > ul { flex: 1; min-width: 0; }
.more-toggle { display: none; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 24px; line-height: 1; font-weight: 800; }
.js .more-toggle { display: inline-block; }
.lw-style-megah .more-toggle { background: transparent; border: 1px solid var(--lw-border); color: var(--lw-text); }
.more-panel { position: absolute; top: calc(100% + 10px); right: max(12px, calc((100% - var(--lw-width, 1180px)) / 2)); width: min(380px, 100% - 24px); max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; background: var(--lw-surface); border: 1px solid var(--lw-border); border-radius: 22px; padding: 18px; box-shadow: 0 24px 60px rgba(16,24,40,.28); }
.more-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.more-close { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--lw-bg); color: var(--lw-text); font-size: 22px; line-height: 1; }
.more-panel h2 { font-size: 13px; text-transform: uppercase; color: var(--lw-muted); margin: 18px 0 8px; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.more-grid a { display: block; background: var(--lw-bg); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.more-panel .social { margin-top: 18px; }
.more-panel .social a { color: var(--lw-link); font-weight: 700; }

/* ---------- News sitemap ---------- */
.lw-sitemap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.sitemap-links { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sitemap-links a { display: block; background: var(--lw-surface); border: 1px solid var(--lw-border); border-radius: 99px; padding: 9px 18px; font-size: 14px; font-weight: 600; }
.sitemap-links a:hover, .sitemap-links .current_page_item > a, .sitemap-links .current-menu-item > a { background: var(--lw-primary); border-color: transparent; color: #fff; }
.lw-style-megah .sitemap-links a:hover, .lw-style-megah .sitemap-links .current_page_item > a, .lw-style-megah .sitemap-links .current-menu-item > a { background: var(--lw-tint); color: var(--lw-link); }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.sitemap-card { background: var(--lw-surface); border: 1px solid var(--lw-border); border-radius: 16px; overflow: hidden; }
.sitemap-card h2 { margin: 0; padding: 12px 16px; background: var(--lw-primary); color: #fff; font-size: 18px; text-transform: uppercase; }
.lw-style-megah .sitemap-card h2 { background: var(--lw-tint); color: var(--lw-text); }
.lw-style-megah .sitemap-card h2 a:hover { color: var(--lw-link); }
.sitemap-card h2 a { display: block; min-height: 24px; }
.sitemap-card h2 a:hover { color: #fff; text-decoration: underline; }
.sitemap-card ul { list-style: none; margin: 0; padding: 0 16px; }
.sitemap-subs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px !important; }
.sitemap-subs a { display: inline-block; border: 1px solid var(--lw-border); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.sitemap-latest li { padding-block: 10px; border-bottom: 1px solid var(--lw-border); font-size: 14px; }
.sitemap-latest li:last-child { border-bottom: 0; }
.sitemap-latest a { display: block; min-height: 24px; }

/* ---------- Article parts ---------- */
.parts { margin-block: 24px; }
.parts-status { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--lw-muted); }
.parts-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.parts-steps li { flex: 1 1 44px; }
.parts-steps a, .parts-steps span { display: block; min-height: 40px; padding-top: 6px; border-top: 6px solid var(--lw-border); border-radius: 6px 6px 0 0; text-align: center; font-weight: 800; }
.parts-steps .done a { border-top-color: var(--lw-muted); }
.parts-steps .current span { border-top-color: var(--lw-primary); color: var(--lw-link); }
.parts-next { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border: 2px solid var(--lw-primary); border-radius: 18px; }
.parts-next small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--lw-muted); }
.parts-next strong { display: block; font-size: 17px; line-height: 1.35; }
.parts-next i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lw-primary); color: #fff; font-style: normal; font-size: 22px; transition: transform .2s; }
.parts-next:hover i { transform: translateX(4px); }
.parts-prev { display: inline-block; min-height: 24px; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ---------- Touch targets ---------- */
.social a, .footer-menu a, .breadcrumbs a, .meta a, .author-box strong a, .post-nav a, .ticker-track a, .section-title a.more, .tags a { display: inline-block; min-height: 24px; padding-block: 2px; }
a.cat-label { min-height: 24px; padding-block: 3px; line-height: 18px; }
.icon-button, .share a, .share button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; }
.ticker-track li { padding-block: 6px; }
.header-actions .menu-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero-side { grid-template-columns: 1fr 1fr; }
	.hero-main .thumb { min-height: 260px; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .main-nav { top: 0; }
	.admin-bar .topnav { top: 46px; }
}
@media (max-width: 720px) {
	.js .menu-toggle { display: inline-flex; }
	.main-nav { position: static; }
	.js .main-nav { display: none; }
	.js .main-nav.is-open { display: block; }
	.main-nav > .container > ul { display: block; }
	.main-nav li ul, .main-nav li li ul { position: static; visibility: visible; opacity: 1; box-shadow: none; padding-left: 16px; }
	.block { grid-template-columns: minmax(0, 1fr); }
	.list-item { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
	.list-item p { display: none; }
	.list-item .card-title { font-size: 15px; }
	.list-item .thumb { aspect-ratio: 1; }
	.site-description { display: none; }
}
@media (max-width: 720px) {
	.lw-sitemap { grid-template-columns: minmax(0, 1fr); }
	.sitemap-links { display: flex; flex-wrap: wrap; }
	.lw-style-megah .topnav .main-nav { display: block; }
	.lw-style-megah .main-nav > .container > ul { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.lw-style-megah .main-nav li { flex: none; }
	.lw-style-megah .main-nav li ul { display: none; }
	.lw-style-megah .main-nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
	.admin-bar .topnav { top: 0; }
}
@media (max-width: 520px) {
	.grid, .hero-side { grid-template-columns: minmax(0, 1fr); }
	.icon-button { padding: 6px 8px; font-size: 13px; }
	.masthead .container { gap: 8px; }
	.header-actions { gap: 4px; }
	.site-title, .lw-style-megah .site-title { font-size: 22px; }
	.ticker-label { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none; }
	.ticker-window { overflow-x: auto; }
	.ticker-track ul[aria-hidden="true"], .ticker-pause { display: none; }
	.thumb img { transition: none; }
}
@media print {
	.topbar, .topnav, .main-nav, .parts, .ticker, .sidebar, .share, .ad, .site-footer, .comments, .to-top, .header-actions { display: none !important; }
	.layout { display: block; }
}
