/*
Theme Name: AppDaily
Theme URI: https://goctechz.com/
Author: Goctechz
Description: Giao dien tin cong nghe, ung dung va game theo phong cach AppDaily.
Version: 1.0.0
Text Domain: appdaily
*/

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/roboto-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--primary: #16a34a;
	--primary-2: #22c55e;
	--ink: #11182d;
	--muted: #74809b;
	--line: #e7eaf2;
	--soft: #f6f7fb;
	--success: #11a25c;
	--warning: #f4a20d;
	--danger: #dc2626;
	--background: #fff;
	--surface: #fff;
	--footer-background: #0e1b31;
	--footer-text: #bdc7d9;
	--on-primary: #fff;
	--facebook: #1877f2;
	--x-social: #111;
	--pinterest: #e60023;
	--sidebar-shadow: rgba(25,32,59,.12);
	--sidebar: 190px;
	--rightbar: 300px;
	--header: 76px;
	--radius: 14px;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scroll-behavior: smooth; scrollbar-color: var(--muted) var(--soft); scrollbar-width: auto; }
html::-webkit-scrollbar { display: block; width: 12px; }
html::-webkit-scrollbar-track { background: var(--soft); }
html::-webkit-scrollbar-thumb { border: 3px solid var(--soft); border-radius: 999px; background: var(--muted); }
html::-webkit-scrollbar-thumb:hover { background: var(--primary); }
body {
	margin: 0;
	color: var(--ink);
	background: var(--background);
	font-family: Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Default WordPress content styles */
.aligncenter, .alignleft, .alignright { display: block; padding: 0; }
.aligncenter { float: none; margin: .5em auto 1em; }
.alignright { float: right; margin: .5em 0 1em 1em; }
.alignleft { float: left; margin: .5em 1em 1em 0; }
.wp-caption { max-width: 100%; padding: 5px; border-radius: 8px; background: var(--soft); text-align: center; }
.wp-caption img { display: inline-block; }
.wp-caption p.wp-caption-text { margin: 5px 0 0; padding: 0; color: var(--muted); text-align: center; font-size: 12px; font-weight: 400; font-style: italic; }
.entry-content { min-width: 0; max-width: 100%; overflow-wrap: break-word; }
.entry-content img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 8px;
}
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption,
.entry-content .wp-block-embed,
.entry-content .wp-block-video {
	width: 100% !important;
	max-width: 800px !important;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
}
.entry-content .wp-block-image > img,
.entry-content .wp-block-image > a > img,
.entry-content .wp-caption > img,
.entry-content .wp-caption > a > img {
	display: block;
	width: auto !important;
	max-height: 600px;
	margin-left: auto;
	margin-right: auto;
}
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}
.entry-content .wp-block-embed__wrapper {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}
.entry-content table { width: 100%; border-spacing: 0; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--soft); font-weight: 700; }
.entry-content tr:nth-child(even) td { background: var(--soft); }

.site-header {
	position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--header);
	display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr);
	background: color-mix(in srgb, var(--surface) 96%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.brand {
	display: flex; align-items: center; gap: 11px; padding: 0 26px; border-right: 1px solid var(--line);
	font-size: 22px; font-weight: 700; letter-spacing: -.7px;
}
.brand-mark {
	width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; border-radius: 9px; display: grid; place-items: center;
	color: var(--on-primary); background: linear-gradient(145deg, var(--primary-2), var(--primary)); box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 25%, transparent);
}
.brand-mark .icon { width: 21px; }
.brand-site-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: inherit; }
.brand-tagline { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.brand-custom-logo { display: block; width: auto; max-width: 165px; max-height: 48px; object-fit: contain; }
.header-main { display: flex; align-items: center; gap: 24px; padding: 0 26px 0 34px; }
.top-search { position: relative; width: min(610px, 65%); }
.top-search > .icon { position: absolute; left: 17px; top: 14px; color: var(--muted); }
.top-search input {
	width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 11px; outline: 0;
	padding: 0 58px 0 48px; color: var(--ink); background: var(--soft); transition: .2s;
}
.top-search input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.search-submit {
	position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px;
	color: var(--on-primary); background: var(--primary); cursor: pointer;
}
.search-submit .icon { position: static; width: 19px; height: 19px; color: inherit; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--ink); }
.round-action { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: inherit; }
.round-action:hover { background: var(--soft); }
.avatar { width: 37px; height: 37px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }

.left-sidebar {
	position: fixed; z-index: 30; top: var(--header); bottom: 0; left: 0; width: var(--sidebar);
	overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); scrollbar-width: none; -ms-overflow-style: none;
}
.left-sidebar::-webkit-scrollbar { display: none; }
.admin-bar .left-sidebar { top: calc(var(--header) + 32px); }
.side-nav { padding: 18px 14px 14px; border-bottom: 1px solid var(--line); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav .menu-item > a {
	display: flex; align-items: center; min-height: 30px; margin-bottom: 3px; padding: 0 15px;
	border-radius: 10px; color: var(--ink); font-weight: 500; transition: .18s;
}
.side-nav .menu-item > a:hover, .side-nav .current-menu-item > a { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.side-link {
	display: flex; align-items: center; gap: 14px; min-height: 46px; margin-bottom: 3px; padding: 0 15px;
	border-radius: 10px; color: var(--ink); font-weight: 500; transition: .18s;
}
.side-link:hover, .side-link.active, .current-menu-item > .side-link { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.side-link .icon { width: 19px; }
.side-block { padding: 20px 25px 17px; border-bottom: 1px solid var(--line); }
.side-title { margin: 0 0 14px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .35px; }
.popular-menu { list-style: none; margin: 0; padding: 0; }
.popular-menu .menu-item { margin: 0; }
.popular-menu .menu-item > a { display: flex; align-items: center; min-height: 30px; padding: 0;  font-weight: 500; }
.popular-menu .menu-item > a:hover{color:var(--primary)}
.popular-menu .menu-item > a:before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin-right: 10px; border-radius: 50%; background: var(--primary); opacity: .7; }
.popular-menu .menu-item:nth-child(n+7) { display: none; }
.side-popular.is-expanded .popular-menu .menu-item:nth-child(n+7) { display: block; }
.mini-link { display: flex; align-items: center; gap: 11px; margin: 11px 0; font-weight: 500; font-size: 13px; }
.mini-logo { width: 44px; height: 44px; padding: 2px; border-radius: 9px; object-fit: contain; background: var(--soft); }
.mini-logo.fallback { display: grid; place-items: center; color: var(--on-primary); background: linear-gradient(145deg, var(--primary), var(--primary-2)); font-size: 12px; font-weight: 700; }
.view-all { display: block; margin-top: 13px; color: var(--primary); font-weight: 500; font-size: 12px; text-align: center; }
.popular-toggle { width: 100%; padding: 5px; border: 0; background: transparent; cursor: pointer; }
.side-popular:not(.has-hidden-items) .popular-toggle { display: none; }
.theme-toggle { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 30px; color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 38px; height: 21px; border: 0; border-radius: 20px; background: var(--line); cursor: pointer; }
.switch:after { content: ""; position: absolute; width: 15px; height: 15px; top: 3px; left: 3px; border-radius: 50%; background: var(--on-primary); transition: .2s; }

.site-shell { padding: calc(var(--header) + 22px) 22px 0 calc(var(--sidebar) + 26px); }
.page-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) var(--rightbar); gap: 22px; align-items: start; }
.content-column { min-width: 0; }
.breadcrumbs { max-width: 100%; margin: 0 0 14px; overflow-x: auto; overflow-y: hidden; color: var(--muted); font-size: 11px; scrollbar-width: none; -ms-overflow-style: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs ol { width: max-content; min-width: 100%; display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { flex: 0 0 auto; display: flex; align-items: center; white-space: nowrap; }
.breadcrumbs li:not(:last-child):after {
	content: "";
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	margin-left: 8px;
	border-top: 1px solid var(--muted);
	border-right: 1px solid var(--muted);
	transform: rotate(45deg);
}
.breadcrumbs li:last-child span { display: block; color: var(--ink); white-space: nowrap; }
.breadcrumbs a:hover { color: var(--primary); }

.hero {
	position: relative; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px;
	padding: 40px 42px; background: radial-gradient(circle at 80% 23%, color-mix(in srgb, var(--primary-2) 18%, transparent), transparent 27%), linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--primary) 8%, var(--surface)));
}
.hero:before, .hero:after { content: ""; position: absolute; width: 8px; height: 8px; transform: rotate(45deg); background: var(--warning); }
.hero:before { right: 28%; top: 60px; }.hero:after { right: 20%; top: 145px; width: 5px; height: 5px; opacity: .55; }
.hero-copy { position: relative; z-index: 2; max-width: 75%; }
.hero h1 { margin: 0 0 17px; font-size: clamp(30px, 3vw, 42px); line-height: 1.16; letter-spacing: -1.6px; }
.hero h1 span { color: var(--primary); }
.hero p { margin: 0; color: var(--ink); line-height: 1.7; }
.hero-search { position: relative; z-index: 2; max-width: 60%; margin-top: 28px; }
.hero-search .icon { position: absolute; left: 18px; top: 17px; color: var(--muted); }
.hero-search input { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 0 106px 0 48px; outline: 0; background: var(--surface); }
.hero-search button { position: absolute; right: 5px; top: 5px; height: 42px; padding: 0 20px; border: 0; border-radius: 9px; color: var(--on-primary); background: var(--primary); cursor: pointer; }
.quick-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 75%; margin-top: 24px; }
.quick-label { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 12px; }
.quick-tags { display: flex; gap: 9px; flex-wrap: wrap; min-width: 0; }
.quick-tag { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; font-weight: 500; }
.hero-art { position: absolute; right: 21px; bottom: 22px; width: 34%; height: 76%; }
.hero-art-image { display: flex; align-items: center; justify-content: center; }
.hero-art-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 24px 0 14px; }
.section-title { margin: 0; font-size: 17px; text-transform: uppercase; letter-spacing: -.15px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.category-tabs a { padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.category-tabs a:hover, .category-tabs a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--line)); }
.post-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-card {
	display: grid; grid-template-columns: 240px minmax(0,1fr) 20px; gap: 17px; align-items: center;
	min-height: 159px; padding: 12px 15px 12px 12px; border-bottom: 1px solid var(--line); transition: .18s;
}
.post-card:last-child { border-bottom: 0; }
.post-card:hover { background: var(--soft); transform: translateX(2px); }
.post-thumb { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 9px; }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-thumb:hover img, .post-thumb:focus-visible img { transform: scale(1.035); }
.placeholder-thumb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--on-primary); font-size: 31px; font-weight: 700; }
.post-card h2 { margin: 0 0 8px;  line-height: 1.4; letter-spacing: -.1px; }
.post-card h2 a { transition: color .18s ease; }
.post-card h2 a:hover, .post-card h2 a:focus-visible { color: var(--primary); }
.post-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 7px;
	color: var(--muted);
	
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.post-meta .category { padding: 3px 6px; border-radius: 5px; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); transition: color .18s ease, background .18s ease; }
.post-meta .category:hover, .post-meta .category:focus-visible { color: var(--on-primary); background: var(--primary); }
.post-arrow { color: var(--muted); font-size: 24px; transition: color .18s ease, transform .18s ease; }
.post-arrow:hover, .post-arrow:focus-visible { color: var(--primary); transform: translateX(3px); }
.pagination { margin: 22px 0 34px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 37px; height: 37px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-weight: 500; }
.pagination .current, .pagination a:hover { color: var(--on-primary); border-color: var(--primary); background: var(--primary); }

.right-sidebar { display: grid; gap: 20px; }
.side-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-title { display: flex; align-items: center; gap: 9px; margin: 0; padding: 17px 17px 13px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; }
.card-title .hot { color: var(--danger); }.card-title .warn { color: var(--warning); }.card-title .trend { color: var(--success); }
.rank-list { list-style: none; margin: 0; padding: 7px 15px 13px; }
.rank-item { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; align-items: start; min-height: 92px; padding: 10px 0; font-size: 13px; }
.rank-item .mini-logo { width: 110px; height: 72px; padding: 0; border-radius: 8px; object-fit: cover; }
.rank-item strong { min-width: 0; line-height: 1.4; }
.rank-item strong > a {
	display: block;
	transition: color .18s ease;
}
.rank-item strong > a:hover, .rank-item strong > a:focus-visible { color: var(--primary); }
.rank-note { display: block; color: var(--muted); font-weight: 500; }
.updates .rank-item { grid-template-columns: 110px minmax(0,1fr); }

.article-wrap { border: 0; border-radius: 0; padding: 0; background: var(--surface); }
.article-wrap h1 { margin-top: 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.2; letter-spacing: -1.2px; }
.article-wrap .featured-image { margin: 24px 0; border-radius: 14px; overflow: hidden; }
.entry-content { color: var(--ink); font-size: 16px; line-height: 1.8; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.3; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content blockquote {
	position: relative;
	margin: 24px 0;
	padding: 20px 24px 20px 58px;
	overflow: hidden;
	border-left: 4px solid var(--primary);
	border-radius: 0 12px 12px 0;
	color: var(--ink);
	background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 5%, var(--surface)), color-mix(in srgb, var(--primary) 10%, var(--surface)));
}
.entry-content blockquote:before {
	content: "\201C";
	position: absolute;
	top: 4px;
	left: 17px;
	color: var(--primary);
	font-family: Georgia, serif;
	font-size: 58px;
	font-weight: 700;
	line-height: 1;
	opacity: .35;
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote p + p { margin-top: 10px; }
.article-meta { margin-top: 16px; }
.article-author { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 500; }
.article-author img { width: 28px; height: 28px; border-radius: 50%; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.article-tags a { color: var(--primary); }
.share-links { display: flex; align-items: center; gap: 10px; }
.share-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--on-primary); background: var(--primary); cursor: pointer; transition: .18s; }
.share-button:hover { color: var(--on-primary); transform: translateY(-2px); filter: brightness(.92); }
.share-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.share-facebook { background: var(--facebook); }.share-facebook svg { fill: currentColor; stroke: none; }
.share-x { background: var(--x-social); }
.share-pinterest { background: var(--pinterest); }.share-pinterest svg { fill: currentColor; stroke: none; }
.copy-link-button.is-copied { background: var(--success); }
.author-box, .related-posts, .comments-area {
	margin-top: 20px; padding: 0; border: 0; border-radius: 0; background: var(--surface);
}
.author-box { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 20px; align-items: start; }
.author-box > img { width: 88px; height: 88px; border-radius: 50%; }
.box-label { color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.author-box h2 { margin: 3px 0 6px; font-size: 19px; }
.author-box p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.author-stats, .author-profile__meta { margin: 7px 0; color: var(--muted); font-size: 12px; }
.author-stats strong, .author-profile__meta strong { color: var(--ink); font-size: 15px; }
.author-socials { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0; }
.author-socials a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--primary); background: var(--soft); font-size: 11px; font-weight: 500; }
.author-more { color: var(--primary); font-size: 12px; font-weight: 500; }
.author-profile { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-profile > img { width: 110px; height: 110px; border-radius: 50%; }
.author-profile h1 { margin: 3px 0 8px; font-size: 28px; }
.author-profile p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.7; }
.single-section-title { margin: 0 0 18px; font-size: 19px; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.related-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: var(--soft); }
.related-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.related-card:hover .related-thumb img { transform: scale(1.03); }
.related-card > div { padding: 11px; }
.related-card h3 { display: -webkit-box; overflow: hidden; margin: 0 0 7px; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.related-card h3 a { transition: color .18s ease; }
.related-card:hover h3 a, .related-card h3 a:focus-visible { color: var(--primary); }
.related-card time { color: var(--muted); font-size: 10px; }
.archive-title { margin:0;font-size: 26px; }
.archive-description { margin: -8px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.archive-description p { margin: 0; }

.site-footer { margin-left: var(--sidebar); color: var(--footer-text); background: var(--footer-background); }
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 42px; padding: 48px 35px 35px; }
.footer-grid[style*="--footer-columns:2"] { grid-template-columns: repeat(2, minmax(0,1fr)); }
.footer-grid[style*="--footer-columns:3"] { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.4fr); }
.footer-grid[style*="--footer-columns:4"] { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr); }
.footer-widget { min-width: 0; }
.footer-brand { border: 0; padding: 0; color: var(--on-primary); }
.footer-brand .brand-tagline { color: var(--footer-text); }
.footer-grid h3, .footer-widget-title { margin: 2px 0 15px; color: var(--on-primary); font-size: 12px; text-transform: uppercase; }
.footer-grid p, .footer-grid a, .footer-grid li { color: var(--footer-text); font-size: 12px; }
.footer-grid a { margin: 5px 0; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 6px 0; }
.footer-grid img { max-width: 100%; height: auto; }
.footer-form { display: flex; margin-top: 16px; }
.footer-form input { min-width: 0; flex: 1; height: 43px; border: 0; border-radius: 8px 0 0 8px; padding: 0 14px; }
.footer-form button { border: 0; border-radius: 0 8px 8px 0; padding: 0 18px; color: var(--on-primary); background: var(--primary); }
.copyright { padding: 14px; border-top: 1px solid color-mix(in srgb, var(--on-primary) 9%, transparent); text-align: center; color: var(--footer-text); font-size: 11px; opacity: .72; }
.footer-nav { padding: 14px 10px 0; text-align: center; border-top: 1px solid color-mix(in srgb, var(--on-primary) 9%, transparent); }
.footer-nav + .copyright { border-top: 0; }
.footer-menu { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--footer-text); font-size: 12px; opacity: .8; text-decoration: none; transition: opacity .2s, color .2s; }
.footer-menu a:hover { opacity: 1; color: var(--on-primary); }
.back-to-top {
	position: fixed; z-index: 45; right: 22px; bottom: 22px; width: 42px; height: 42px; display: grid; place-items: center;
	padding: 0; border: 0; border-radius: 50%; color: var(--on-primary); background: var(--primary); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 28%, transparent);
	opacity: 0; visibility: hidden; transform: translateY(12px); cursor: pointer; transition: .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); filter: brightness(.82); }
.back-to-top .icon { width: 21px; height: 21px; }
.admin-bar .back-to-top { bottom: 22px; }
.mobile-header-actions { display: none; }
.mobile-action { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; }
.mobile-action .icon { width: 20px; height: 20px; }

@media (min-width: 561px) {
	.article-wrap { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px,4vw,48px); }
	.author-box, .related-posts, .comments-area { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
}

body.dark-mode {
	--ink:#eef1fa;
	--muted:#a8b1c5;
	--line:#2b3448;
	--soft:#1d2638;
	--background:#111827;
	--surface:#151e2e;
	--sidebar-shadow:rgba(0,0,0,.28);
	background:var(--background);
	color:var(--ink);
}
body.dark-mode .site-header, body.dark-mode .left-sidebar, body.dark-mode .post-list, body.dark-mode .post-card, body.dark-mode .side-card, body.dark-mode .article-wrap { background:var(--surface); }
body.dark-mode .side-link, body.dark-mode .hero p { color:var(--ink); }
body.dark-mode .hero-search input, body.dark-mode .top-search input, body.dark-mode .quick-tag { color:var(--ink); background:var(--soft); border-color:var(--line); }
body.dark-mode .switch { background:var(--primary); } body.dark-mode .switch:after { left:20px; }
body.dark-mode .author-box, body.dark-mode .author-profile, body.dark-mode .related-posts, body.dark-mode .comments-area, body.dark-mode .comment-form input:not([type="submit"]), body.dark-mode .comment-form textarea { background:var(--surface); }
body.dark-mode .entry-content, body.dark-mode .comment-content { color:var(--ink); }
body.dark-mode .entry-content tr:nth-child(even) td { background:var(--soft); }

@media (max-width: 1180px) {
	:root { --rightbar: 260px; }
	.hero { padding: 32px; }
	.hero-copy { max-width: 65%; }
	.hero-art { opacity: .7; right: 5px; }
	.post-card { grid-template-columns: 200px minmax(0,1fr) 18px; }
	.related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
	:root { --sidebar: 0px; }
	.site-header { display: flex; align-items: center; padding: 0 14px; }
	.brand { position: relative; z-index: 2; flex: 0 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; }
	.brand-copy { overflow: hidden; }
	.header-main { position: static; min-width: 0; margin-left: auto; padding: 0; }
	.header-main .header-actions { display: none; }
	.top-search {
		position: absolute; z-index: 5; inset: 10px 100px 10px 14px; width: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s;
	}
	body.mobile-search-open .top-search { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
	body.mobile-search-open .brand { opacity: 0; pointer-events: none; }
	body.mobile-search-open .mobile-header-actions .theme-button { display: none; }
	body.mobile-search-open .mobile-search-button { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
	.mobile-header-actions { position: relative; z-index: 6; margin-left: auto; display: flex; align-items: center; gap: 4px; }
	.mobile-action { display: grid; place-items: center; }
	.mobile-action:hover { background: var(--soft); }
	.mobile-menu-button { background: var(--primary); color: var(--on-primary); }
	.left-sidebar { width: 260px; transform: translateX(-100%); transition: .25s; box-shadow: 15px 0 30px var(--sidebar-shadow); }
	body.menu-open .left-sidebar { transform: translateX(0); }
	.site-shell { padding-left: 18px; padding-right: 18px; }
	.site-footer { margin-left: 0; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .left-sidebar { top: calc(var(--header) + 46px); }
}
@media (max-width: 780px) {
	.page-grid { grid-template-columns: 1fr; }
	.right-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.right-sidebar .side-card:last-child { display: none; }
	.hero { min-height: 360px; }
	.hero-art { opacity: .32; }
	.hero-copy, .hero-search { max-width: 78%; }
	.quick-row { max-width: 100%; }
	.footer-grid, .footer-grid[style*="--footer-columns"] { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.footer-widget:only-child { grid-column: 1 / -1; }
	.wp-block-table, .entry-content > table {
		display: block; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
	}
	.wp-block-table table, .entry-content > table { width: 100% !important; min-width: 680px !important; table-layout: fixed; }
	.wp-block-table th, .wp-block-table td, .entry-content > table th, .entry-content > table td {
		padding: 10px 12px !important; font-size: 13px !important; line-height: 1.45; vertical-align: top; word-break: normal; overflow-wrap: break-word;
	}
	.wp-block-table th, .wp-block-table td strong, .wp-block-table td a { font-size: 13px !important; }
	.wp-block-table td span { display: block; margin-top: 4px; font-size: 12px !important; line-height: 1.35; }
	.wp-block-table th:nth-child(1), .wp-block-table td:nth-child(1) { width: 150px !important; }
	.wp-block-table th:nth-child(2), .wp-block-table td:nth-child(2) { width: 160px !important; }
	.wp-block-table th:nth-child(3), .wp-block-table td:nth-child(3) { width: 135px !important; }
	.wp-block-table th:nth-child(4), .wp-block-table td:nth-child(4) { width: 170px !important; }
	.wp-block-table th:nth-child(5), .wp-block-table td:nth-child(5) { width: 65px !important; text-align: center !important; }
	.wp-block-table::-webkit-scrollbar, .entry-content > table::-webkit-scrollbar { height: 6px; }
	.wp-block-table::-webkit-scrollbar-track, .entry-content > table::-webkit-scrollbar-track { background: color-mix(in srgb, var(--primary) 8%, transparent); border-radius: 999px; }
	.wp-block-table::-webkit-scrollbar-thumb, .entry-content > table::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; }
}
@media (max-width: 560px) {
	:root { --header: 66px; }
	.site-header { padding: 0 10px; }
	.brand { max-width: calc(100% - 132px); font-size: 18px; }
	.brand-mark { width: 32px; height: 32px; }
	.brand-tagline { display: none; }
	.brand-custom-logo { max-width: 130px; max-height: 40px; }
	.mobile-header-actions { gap: 1px; }
	.mobile-action { width: 36px; height: 36px; }
	.top-search { inset: 12px 88px 12px 10px; }
	.top-search input { height: 42px; padding-left: 16px; }
	.top-search > .icon { display: none; }
	.top-search .search-submit { top: 3px; right: 3px; width: 36px; height: 36px; }
	.site-shell { padding-left: 5px; padding-right: 5px; padding-top: calc(var(--header) + 10px); }
	.hero { min-height: auto; padding: 26px 20px; }
	.hero h1 { font-size: 29px; }
	.hero-copy, .hero-search { max-width: 100%; }
	.hero-art { display: none; }
	.quick-row { display: none; }
	.post-list { border: 0; border-radius: 0; }
	.post-card { grid-template-columns: 120px minmax(0,1fr); gap: 12px; min-height: 90px; padding: 0px; }
	.post-thumb { /*width: 85px; height: 70px; */}
	.post-arrow { display: none; }
	.post-card h2 { font-size: 13px; margin-bottom: 5px; }
	.post-excerpt { display: none; }
	
	.right-sidebar { grid-template-columns: 1fr; }
	.author-box, .related-posts, .comments-area { padding: 0; }
	.article-wrap h1 { font-size: 27px; }
	.entry-content blockquote { margin: 20px 0; padding: 16px 16px 16px 45px; }
	.entry-content blockquote:before { left: 12px; font-size: 46px; }
	.article-footer { align-items: flex-start; }
	.share-links { flex-wrap: wrap; }
	.author-box { grid-template-columns: 58px minmax(0,1fr); gap: 13px; }
	.author-box > img { width: 58px; height: 58px; }
	.author-profile { grid-template-columns: 70px minmax(0,1fr); gap: 14px; padding: 16px; }
	.author-profile > img { width: 70px; height: 70px; }
	.author-profile h1 { font-size: 22px; }
	.category-tabs {
		flex-wrap: nowrap;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
		-webkit-overflow-scrolling: touch;
	}
	.category-tabs::-webkit-scrollbar { display: none; }
	.category-tabs a { flex: 0 0 auto; white-space: nowrap; }
	.breadcrumbs li:last-child span { max-width: 190px; }
	.related-grid { grid-template-columns: 1fr; }
	.related-card { display: grid; grid-template-columns: 110px minmax(0,1fr); }
	.related-thumb { height: 88px; aspect-ratio: auto; }
	.comment-list .children { margin-left: 12px; }
	.footer-grid, .footer-grid[style*="--footer-columns"] { grid-template-columns: 1fr; padding: 35px 24px; gap: 25px; }
	.back-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}
