/*
Theme Name: Mole24
Theme URI: https://mole24.co.uk/
Author: Mole24
Description: A fast, clean magazine theme for travel, technology and lifestyle sites. Hero grid, configurable homepage sections, four demo styles, four header styles, dark mode, table of contents, share buttons, custom widgets and more — all from the Customizer.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.8
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: mole24
Tags: blog, news, magazine, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== Tokens ===== */
:root {
	--brand: #1e6bd6; --brand-dark: #0f1f4b; --accent-soft: #e8f0fc;
	--bg: #ffffff; --bg-alt: #f5f7fb; --text: #1b2333; --muted: #667085; --line: #e4e8f0; --card: #ffffff;
	--radius: 10px; --wrap: 1200px; --logo-h: 52px; --logo-h-m: 38px;
	--font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-demo="tech"]      { --brand: #6d4aff; --accent-soft: #efeaff; --brand-dark: #1d1452; }
[data-demo="lifestyle"] { --brand: #e0475b; --accent-soft: #fdecee; --brand-dark: #4a1220; --font-head: "Playfair Display", Georgia, serif; }
[data-demo="news"]      { --brand: #c8102e; --accent-soft: #fbe7ea; --brand-dark: #111111; --font-head: "Merriweather", Georgia, serif; }
[data-theme="dark"] { --bg: #0f141c; --bg-alt: #161d28; --text: #e7ebf2; --muted: #98a2b3; --line: #263041; --card: #171f2b; --accent-soft: rgba(255,255,255,.07); }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 10px; top: 10px; z-index: 999; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon { display: block; }

/* ===== Buttons ===== */
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: .2s; flex: none; font-size: 16px; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.btn, .search-form button, input[type="submit"], .comment-form .submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font: 600 14px var(--font-body); cursor: pointer; transition: filter .2s, transform .2s; }
.btn:hover, .search-form button:hover, input[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-1px); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea { border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font: 15px var(--font-body); background: var(--card); color: var(--text); width: 100%; }

/* ===== Top bar ===== */
.topbar { background: var(--brand-dark); color: #cdd6e6; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 38px; }
.ticker-label { background: var(--brand); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.ticker { overflow: hidden; white-space: nowrap; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker span { display: inline-block; padding-left: 100%; animation: mole24-tick 45s linear infinite; }
.ticker:hover span { animation-play-state: paused; }
.ticker a { margin-right: 48px; color: #e7ecf5; }
.ticker a:hover { color: #fff; text-decoration: underline; }
@keyframes mole24-tick { to { transform: translateX(-100%); } }
.topbar .date { flex: none; opacity: .8; margin-left: auto; }

/* ===== Header ===== */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.head-main .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: var(--logo-h); width: auto; max-width: 100%; }
.logo-text { font: 800 26px var(--font-head); color: var(--text); }
.logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark, .header-dark .site-header .logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light, .header-dark .site-header .logo .logo-light { display: block; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.mode-toggle .icon-sun { display: none; }
[data-theme="dark"] .mode-toggle .icon-sun { display: block; }
[data-theme="dark"] .mode-toggle .icon-moon { display: none; }
.nav { border-top: 1px solid var(--line); }
.nav ul, .inline-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav li, .inline-nav li { position: relative; }
.nav a { display: block; padding: 14px; font: 600 14px var(--font-body); letter-spacing: .02em; position: relative; }
.nav > .wrap > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav li:hover > a::after, .nav .current-menu-item > a::after, .nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--brand); }
.nav .sub-menu, .inline-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 8px; display: none; flex-direction: column; z-index: 60; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .inline-nav li:hover > .sub-menu { display: flex; }
.nav .sub-menu a { padding: 9px 12px; border-radius: 6px; }
.nav .sub-menu a:hover { background: var(--accent-soft); color: var(--brand); }
.burger { display: none; }
.inline-nav { display: none; }
.inline-nav a { display: block; padding: 8px 12px; font: 600 14px var(--font-body); border-radius: 999px; }
.inline-nav a:hover, .inline-nav .current-menu-item > a { background: var(--accent-soft); color: var(--brand); }

.header-centered .head-main { position: relative; }
.header-centered .head-main .wrap { flex-direction: column; gap: 10px; }
.header-centered .head-tools { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.header-centered .nav ul { justify-content: center; }
.header-dark .site-header { background: var(--brand-dark); border-color: transparent; }
.header-dark .site-header .nav { border-color: rgba(255,255,255,.1); }
.header-dark .site-header .nav > .wrap > ul > li > a, .header-dark .site-header .head-tools .icon-btn, .header-dark .site-header .burger { color: #fff; }
.header-dark .site-header .icon-btn { border-color: rgba(255,255,255,.25); }
.header-dark .site-header .logo-text { color: #fff; }
.header-minimal .nav { display: none; }
.header-minimal .inline-nav { display: block; }

/* ===== Common ===== */
.site-main { padding: 34px 0 10px; min-height: 50vh; }
.section { margin-bottom: 52px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--brand); flex: none; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; }
.section-head .more, .section-head .slider-nav { order: 2; }
.section-head .more { font: 600 13px var(--font-body); color: var(--brand); white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }
.cat-label { display: inline-flex; align-items: center; min-height: 24px; background: var(--brand); color: #fff !important; font: 700 11px var(--font-body); letter-spacing: .07em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; line-height: 1.2; position: relative; z-index: 3; }
.cat-text { color: var(--brand); font: 700 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta b { color: var(--text); font-weight: 600; }
.meta a:hover b { color: var(--brand); }
.meta .dot::before { content: "•"; margin-right: 12px; opacity: .6; }
.thumb { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); aspect-ratio: 16/10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .thumb img, .list-item:hover .thumb img, .small-item:hover .thumb img { transform: scale(1.05); }
.no-thumb { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); opacity: .85; }
.title-link:hover, .card h3 a:hover, .small-item h5 a:hover { color: var(--brand); }

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; margin-bottom: 56px; }
.hero-grid3 { grid-template-columns: 2fr 1fr; }
.hero .tile, .overlay-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.hero .tile:first-child { grid-row: span 2; }
.hero .tile img, .overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; position: absolute; inset: 0; }
.hero .tile:hover img, .overlay-card:hover img { transform: scale(1.06); }
.hero .tile::after, .overlay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(5,10,20,.86)); pointer-events: none; }
.stretched { position: absolute; inset: 0; z-index: 1; }
.overlay-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; color: #fff; pointer-events: none; }
.overlay-body a { pointer-events: auto; }
.overlay-body .ov-title { font-size: 17px; margin: 10px 0 8px; }
.hero .tile:first-child .overlay-body { padding: 32px; }
.hero .tile:first-child .ov-title { font-size: 30px; }
.overlay-body .meta, .overlay-body .meta b { color: rgba(255,255,255,.88); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { position: relative; }
.card .thumb { margin-bottom: 14px; }
.card-cat { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card h3 { font-size: 18px; margin: 0 0 8px; transition: color .2s; }
.card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cols-4 .card h3 { font-size: 16px; }
.cols-4 .card p { display: none; }

/* Sidebar layouts */
.with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 44px; align-items: start; }
.sidebar { position: sticky; top: 110px; }
.list-item { display: grid; grid-template-columns: 270px 1fr; gap: 22px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .thumb { aspect-ratio: 4/3; }
.list-item h3 { font-size: 20px; margin: 8px 0; }
.list-item p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }

/* Widgets */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }
.widget-title { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.widget-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--brand); }
.widget ul { margin: 0; padding-left: 18px; }
.widget li { margin: 6px 0; }
.small-item { display: grid; grid-template-columns: 34px 1fr 74px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.widget .small-item:first-of-type, .feature-list .small-item:first-child { border-top: 0; padding-top: 0; }
.small-item .num { font: 800 24px var(--font-head); color: var(--brand); opacity: .8; }
.small-item h5 { margin: 0 0 4px; font: 600 14px/1.4 var(--font-head); }
.small-item .thumb { aspect-ratio: 1; border-radius: 8px; }
.cat-pills { display: flex; flex-direction: column; gap: 8px; }
.cat-pill { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--bg-alt); font-weight: 600; font-size: 14px; transition: .2s; }
.cat-pill:hover { background: var(--accent-soft); color: var(--brand); }
.cat-pill span { background: var(--card); border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--muted); }
.subscribe-box { text-align: center; }
.subscribe-box .widget-title { justify-content: center; }
.subscribe-box p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.subscribe-box .social { justify-content: center; }

/* Overlay + feature + slider */
.overlay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.overlay-card { aspect-ratio: 4/5; }
.overlay-card .ov-title { font-size: 20px; }
.feature-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.feature-main { aspect-ratio: auto; min-height: 420px; }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slider::-webkit-scrollbar { display: none; }
.slider .card { scroll-snap-align: start; }
.slider .card p { display: none; }
.slider-nav { display: flex; gap: 8px; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; margin-bottom: 56px; position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.07); right: -80px; top: -120px; }
.newsletter h2 { font-size: 28px; margin-bottom: 8px; }
.newsletter p { margin: 0; opacity: .88; }
.newsletter form { display: flex; gap: 10px; position: relative; }
.newsletter input { border: 0; border-radius: 999px; padding: 14px 20px; color: #1b2333; background: #fff; }
.newsletter .btn { background: var(--brand-dark); }
.nl-cta { position: relative; text-align: right; }
.nl-cta .btn { background: #fff; color: var(--brand-dark); }

/* Page hero / archive */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 44px 0; margin: -34px 0 40px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 4px; opacity: .6; }
.page-hero h1 { font-size: 40px; margin-bottom: 10px; }
.archive-desc { color: var(--muted); max-width: 680px; }
.archive-desc p { margin: 0; }
.pagination { margin: 40px 0 10px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; padding: 0 12px; }
.page-numbers.current, a.page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-numbers.dots { border: 0; }
.empty { text-align: center; padding: 40px 0; }
.empty .search-form { max-width: 480px; margin: 20px auto; }

/* Search form + modal */
.search-form { display: flex; gap: 10px; }
.search-modal { position: fixed; inset: 0; z-index: 210; display: none; }
.search-modal.open { display: block; }
.search-modal .backdrop { position: absolute; inset: 0; background: rgba(5,10,20,.7); }
.search-box { position: relative; max-width: 680px; margin: 18vh auto 0; padding: 0 20px; }
.search-box .search-field { padding: 18px 22px; font-size: 18px; border-radius: 999px; }
.search-box p { color: #cfd6e3; text-align: center; font-size: 13px; }

/* Single */
.single-head { max-width: 860px; margin: 0 auto 28px; text-align: center; }
.single-head h1 { font-size: 42px; margin: 14px 0 18px; }
.single-head .meta { justify-content: center; }
.avatar img, img.avatar { border-radius: 50%; }
.single-img { border-radius: calc(var(--radius) + 4px); overflow: hidden; margin: 0 0 40px; aspect-ratio: 21/9; background: var(--bg-alt); }
.single-img img { width: 100%; height: 100%; object-fit: cover; }
.contained-img { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.single-body { display: grid; grid-template-columns: 200px minmax(0, 740px) 1fr; gap: 40px; }
.single-body.has-sidebar { grid-template-columns: 60px minmax(0, 1fr) 330px; }
.share { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; align-self: start; align-items: flex-start; }
.share small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.content { font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.content > * { margin-top: 0; margin-bottom: 1.3em; }
.content h2 { font-size: 27px; margin: 1.6em 0 .6em; scroll-margin-top: 110px; }
.content h3 { font-size: 22px; margin: 1.4em 0 .5em; scroll-margin-top: 110px; }
.content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.content img { border-radius: var(--radius); }
.content blockquote { margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--brand); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font: italic 500 20px/1.6 var(--font-head); }
.content blockquote p { margin: 0; }
.content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.content th { background: var(--bg-alt); }
.content pre, .content code { background: var(--bg-alt); border-radius: 6px; font-size: 15px; }
.content pre { padding: 16px; overflow-x: auto; }
.content code { padding: 2px 6px; }
.content ul, .content ol { padding-left: 1.4em; }
.content li { margin-bottom: .4em; }
.content .wp-caption-text, .content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 15px; }
.toc b { display: block; margin-bottom: 8px; font-family: var(--font-head); }
.toc ol { margin: 0; padding-left: 20px; }
.toc .toc-h3 { margin-left: 14px; list-style: circle; }
.toc a { color: var(--brand); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.tags a { padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); font-size: 13px; font-weight: 600; }
.tags a:hover { background: var(--accent-soft); color: var(--brand); }
.author-box { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin: 36px 0; background: var(--card); }
.author-box .avatar { flex: none; width: 64px; height: 64px; }
.author-box .avatar img, .single-head .avatar img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.single-head .avatar { flex: none; width: 34px; height: 34px; overflow: hidden; }
.author-box h4, .author-box .author-name { margin-bottom: 6px; font-size: 17px; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 36px; }
.post-navigation a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; transition: .2s; }
.post-navigation a:hover { border-color: var(--brand); }
.post-navigation small { display: block; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.post-navigation span { font: 600 15px/1.4 var(--font-head); }
.post-navigation .nav-next { text-align: right; }
.related { margin-top: 30px; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); width: 0; z-index: 100; }
.admin-bar .progress { top: 32px; }

/* Comments */
.comments { margin-top: 20px; }
.comments-title, .comment-reply-title { font-size: 22px; margin-bottom: 18px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.comment-author .avatar { float: left; margin-right: 12px; }
.comment-author .fn { font-weight: 700; color: var(--text); }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }

/* 404 */
.not-found { text-align: center; }
.nf-code { font: 900 120px/1 var(--font-head); color: var(--brand); opacity: .9; }
.not-found h1 { font-size: 34px; margin: 10px 0; }
.not-found > p { color: var(--muted); }
.not-found .search-form { max-width: 480px; margin: 24px auto; }
.not-found .section { text-align: left; margin-top: 50px; }

/* Footer */
.site-footer { background: #0b1220; color: #a9b3c4; margin-top: 30px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h4, .site-footer .widget-title { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .icon-btn { color: #cdd6e6; border-color: rgba(255,255,255,.2); }
.footer-logo { height: 46px; width: auto; max-width: 100%; margin-bottom: 14px; }
.site-footer .logo-text { color: #fff; display: block; margin-bottom: 12px; }
.f-about p { margin: 0; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.to-top { position: fixed; right: 18px; bottom: 18px; background: var(--brand); color: #fff; border: 0; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; filter: brightness(1.1); }

/* Off-canvas */
.offcanvas { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.offcanvas .backdrop { position: absolute; inset: 0; background: rgba(5,10,20,.55); opacity: 0; transition: opacity .3s; }
.offcanvas .panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg); padding: 20px; transform: translateX(-100%); transition: transform .3s; overflow-y: auto; }
.offcanvas.open { pointer-events: auto; }
.offcanvas.open .backdrop { opacity: 1; }
.offcanvas.open .panel { transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-head .logo img { height: 34px; }
.mobile-menu, .offcanvas .menu { list-style: none; padding: 0; margin: 22px 0; }
.mobile-menu a, .offcanvas .menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font: 600 16px var(--font-head); }
.mobile-menu .sub-menu { list-style: none; padding-left: 14px; }
.mobile-menu .current-menu-item > a { color: var(--brand); }

/* ===== Mega menu ===== */
.nav .has-mega { position: static; }
.nav > .wrap { position: relative; }
.mega-panel { position: absolute; left: 20px; right: 20px; top: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.14); padding: 22px; display: none; z-index: 70; }
.nav .has-mega:hover > .mega-panel, .nav .has-mega:focus-within > .mega-panel { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mega-item { display: block; padding: 0 !important; }
.mega-item::after { display: none; }
.mega-item .thumb { margin-bottom: 10px; }
.mega-title { display: block; font: 600 14px/1.4 var(--font-head); color: var(--text); letter-spacing: 0; }
.mega-item:hover .mega-title { color: var(--brand); }
.mega-item .meta { margin-top: 4px; font-weight: 400; }
.mega-all { display: inline-block !important; margin-top: 14px; padding: 0 !important; color: var(--brand); font-size: 13px !important; }
.inline-nav .mega-panel { display: none !important; }

/* ===== Ads ===== */
.ad-spot { margin: 22px auto; text-align: center; overflow: hidden; clear: both; }
.ad-label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sidebar .ad-spot { margin-top: 0; }

/* ===== Format badge ===== */
.format-badge { position: absolute; right: 10px; top: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: 13px; backdrop-filter: blur(4px); }

/* ===== Post layouts ===== */
.dek { font-size: 19px; color: var(--muted); max-width: 720px; margin: -6px auto 18px; line-height: 1.6; }
.overlay-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; margin: -34px 0 40px; overflow: hidden; }
.overlay-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,20,.15), rgba(5,10,20,.85)); }
.overlay-hero .wrap { position: relative; z-index: 2; width: 100%; }
.single-head.on-image { color: #fff; margin-bottom: 50px; }
.on-image .crumbs, .on-image .crumbs a, .on-image .meta, .on-image .meta b, .on-image .dek { color: rgba(255,255,255,.88); }
.split-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.split-head { text-align: left; margin: 0; }
.split-head .meta { justify-content: flex-start; }
.split-head .dek { margin-left: 0; }
.split-img { margin: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.single-img.is-video { aspect-ratio: auto; background: #000; }
.video-embed { position: relative; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Review box ===== */
.review-box { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 26px; margin: 2em 0; background: var(--card); font-size: 16px; line-height: 1.6; }
.review-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.review-head h3 { font-size: 22px; margin: 4px 0 6px; }
.review-head p { margin: 0; color: var(--muted); }
.review-total { flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1; }
.review-total b { font: 800 30px var(--font-head); }
.review-total span { font-size: 12px; opacity: .85; }
.review-scores { display: grid; gap: 12px; margin-bottom: 18px; }
.score-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.bar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.review-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-pc > div { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 16px; }
.review-pc h4 { font-size: 15px; margin-bottom: 6px; }
.review-pc ul { margin: 0; padding-left: 0; list-style: none; }
.review-pc li { padding-left: 22px; position: relative; margin: 4px 0; font-size: 15px; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 800; }

/* ===== Load more ===== */
.load-more-wrap { text-align: center; margin: 36px 0 10px; }
.load-more { padding: 12px 30px; }

/* ===== Footer feed ===== */
.footer-feed { padding: 30px 0 0; }
.footer-feed .widget-title { justify-content: center; }

/* ===== Cookie bar ===== */
.cookie-bar { position: fixed; left: 18px; bottom: 18px; max-width: 440px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 18px 20px; z-index: 150; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--brand); text-decoration: underline; }
.cookie-bar .btn { flex: none; }

/* ===== Login popup ===== */
.login-box { position: relative; max-width: 400px; margin: 14vh auto 0; background: var(--card); color: var(--text); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-box h3 { font-size: 22px; margin-bottom: 14px; }
.login-close { position: absolute; right: 14px; top: 14px; }
.login-box form p { margin: 0 0 12px; }
.login-box label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.login-box input[type="text"], .login-box input[type="password"] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font: 15px var(--font-body); background: var(--bg); color: var(--text); }
.login-box .login-remember label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.login-box .button-primary { width: 100%; }
.login-links { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.login-links a { color: var(--brand); }

/* ===== Mobile share bar ===== */
.mobile-share { display: none; }

/* ===== Floating WhatsApp / contact button ===== */
.float-contact { position: fixed; bottom: 20px; z-index: 96; display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 16px; border-radius: 999px; color: #fff; font: 600 15px var(--font-body); box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; justify-content: center; }
.float-contact.is-whatsapp { background: #25d366; }
.float-contact.is-contact { background: var(--brand); }
.float-contact:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.26); color: #fff; }
.float-contact.pos-right { right: 20px; }
.float-contact.pos-left { left: 20px; }
.float-contact.is-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: mole24-pulse 2.4s infinite; }
@keyframes mole24-pulse { 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.float-contact .icon { width: 24px; height: 24px; }
.show-mobile { display: none; }
body:has(.float-contact.pos-right) .to-top { bottom: 88px; }
body:has(.float-contact.pos-left) .cookie-bar { bottom: 88px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.hero { height: 440px; }
	.with-sidebar, .single-body, .single-body.has-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.slider { grid-auto-columns: calc((100% - 22px) / 2.3); }
	.share { position: static; flex-direction: row; align-items: center; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.feature-grid { grid-template-columns: 1fr; }
	.mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 760px) {
	.topbar .date { display: none; }
	.nav, .head-btn, .inline-nav, .header-minimal .inline-nav { display: none; }
	.burger { display: inline-grid; }
	.head-main .wrap { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
	.header-centered .head-main .wrap { flex-direction: row; }
	.header-centered .head-tools { position: static; transform: none; }
	.logo img { height: var(--logo-h-m); }
	.head-tools { gap: 6px; }
	.hero, .hero-grid3 { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 190px 190px; height: auto; }
	.hero-grid3 { grid-template-rows: 320px 190px; }
	.hero .tile:first-child { grid-column: span 2; grid-row: auto; }
	.hero .tile:first-child .ov-title { font-size: 22px; }
	.hero .tile:not(:first-child) .ov-title { font-size: 14px; }
	.hero .tile:not(:first-child) .overlay-body { padding: 12px; }
	.hero .tile:not(:first-child) .meta { display: none; }
	.grid, .grid.cols-2, .grid.cols-3, .overlay-grid { grid-template-columns: 1fr; }
	.grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
	.slider { grid-auto-columns: 78%; }
	.list-item { grid-template-columns: 120px 1fr; gap: 14px; }
	.list-item p { display: none; }
	.list-item h3 { font-size: 16px; }
	.newsletter { grid-template-columns: 1fr; padding: 28px; }
	.newsletter form { flex-direction: column; }
	.nl-cta { text-align: left; }
	.page-hero h1, .single-head h1 { font-size: 28px; }
	.single-img { aspect-ratio: 16/10; }
	.content { font-size: 17px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.overlay-hero { min-height: 420px; }
	.split-hero { grid-template-columns: 1fr; gap: 20px; }
	.review-pc { grid-template-columns: 1fr; }
	.review-total { width: 70px; height: 70px; }
	.review-total b { font-size: 22px; }
	.cookie-bar { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-direction: column; align-items: stretch; }
	.mobile-share { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
	.mobile-share a, .mobile-share button { display: grid; place-items: center; height: 50px; background: none; border: 0; color: var(--text); cursor: pointer; }
	.single-post ~ .to-top, .post-layout-classic .to-top, body[class*="post-layout-"] .to-top { bottom: 66px; }
	body[class*="post-layout-"] .site-footer { padding-bottom: 50px; }
	.float-contact { height: 52px; min-width: 52px; padding: 0 14px; bottom: 14px; }
	.float-contact.pos-right { right: 14px; }
	.float-contact.pos-left { left: 14px; }
	.float-contact .fc-label { display: none; }
	.show-mobile { display: inline-flex; }
	.show-desktop { display: none; }
	body[class*="post-layout-"] .float-contact { bottom: 64px; }
	body:has(.float-contact.pos-right) .to-top { bottom: 76px; }
	body[class*="post-layout-"]:has(.float-contact.pos-right) .to-top { bottom: 126px; }
	body:has(.cookie-bar:not([hidden])) .float-contact { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
