/*
Theme Name: Techrato
Theme URI: https://techrato.com
Author: Techrato Team
Description: قالب اختصاصی وردپرس برای وب‌سایت خبری-تکنولوژی تکراتو. طراحی شده بر اساس فایل فیگما با تم تیره و لهجه‌ی رنگی فیروزه‌ای.
Version: 1.23.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techrato
Tags: dark, rtl-language-support, news, custom-menu, custom-logo, translation-ready
*/

/* -------------------------------------------------- */
/* 1. RESET                                            */
/* -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* -------------------------------------------------- */
/* 2. DESIGN TOKENS                                    */
/* -------------------------------------------------- */
:root {
	--bg: #0a1613;
	--bg-soft: #0e1c18;
	--card: rgba(28, 48, 41, 0.5);
	--card-soft: rgba(33, 56, 47, 0.55);
	--card-solid: #12211c;
	--glass-blur: blur(18px);
	--border: rgba(255, 255, 255, 0.14);
	--border-strong: rgba(255, 255, 255, 0.22);
	--text: #f3f6f5;
	--text-muted: #93a29c;
	--text-dim: #6c7d76;
	--accent: #22d3b5;
	--accent-strong: #17b89e;
	--accent-tint: rgba(34, 211, 181, 0.12);
	--overlay-strong: linear-gradient(180deg, rgba(6, 14, 12, 0) 30%, rgba(4, 10, 9, 0.92) 100%);
	--shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--container: 1360px;
	--font: "Vazirmatn", -apple-system, "Segoe UI", Tahoma, sans-serif;
}

[data-theme="light"] {
	--bg: #f2f6f5;
	--bg-soft: #ffffff;
	--card: rgba(255, 255, 255, 0.6);
	--card-soft: rgba(238, 243, 241, 0.65);
	--card-solid: #ffffff;
	--border: rgba(10, 25, 20, 0.14);
	--border-strong: rgba(10, 25, 20, 0.22);
	--text: #0e1a17;
	--text-muted: #5a6b64;
	--text-dim: #889690;
	--accent: #14b89c;
	--accent-strong: #109c84;
	--accent-tint: rgba(20, 184, 156, 0.1);
	--overlay-strong: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.92) 100%);
	--shadow: 0 12px 30px rgba(20, 40, 34, 0.1);
}

/* -------------------------------------------------- */
/* 3. BASE                                             */
/* -------------------------------------------------- */
html { direction: rtl; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 13.5px;
	line-height: 1.8;
	transition: background .25s ease, color .25s ease;
}
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}
h1, h2, h3, h4 { font-weight: 700; color: var(--text); line-height: 1.5; }
a { transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent); }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
body.no-scroll { overflow: hidden; }

/* -------------------------------------------------- */
/* 4. BUTTONS / BADGES / TAGS                          */
/* -------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #06231d;
	font-weight: 700;
	font-size: 13px;
	border: none;
	transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-strong); color: #06231d; }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-outline {
	background: transparent;
	border: 1px solid var(--border-strong);
	color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: var(--radius-pill);
	font-size: 12px;
	border: 1px solid var(--border-strong);
	color: var(--text-muted);
}
.pill--accent { background: var(--accent); color: #06231d; border-color: var(--accent); font-weight: 700; }
.pill--outline { color: var(--accent); border-color: var(--accent); }

/* -------------------------------------------------- */
/* 5. HEADER                                           */
/* -------------------------------------------------- */
/*
 * The blur lives on a ::before layer instead of directly on .site-header:
 * backdrop-filter on an element establishes a new containing block for its
 * position:fixed descendants (same rule as `transform`), which would trap
 * the mobile nav-drawer/search overlay inside the header's small box
 * instead of covering the full screen. A pseudo-element has no DOM
 * descendants, so it gets the glass look without that side effect.
 */
.site-header { position: relative; z-index: 60; border-bottom: 1px solid var(--border); }
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(10, 22, 19, 0.72);
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
[data-theme="light"] .site-header::before { background: rgba(242, 246, 245, 0.72); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.topbar-icons { display: flex; align-items: center; gap: 14px; }
.topbar-mobile { display: none; }
.topbar-mobile-brand { justify-self: center; }
.icon-btn {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--card); border: 1px solid var(--border); color: var(--text-muted);
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.topbar-divider { width: 1px; height: 22px; background: var(--border-strong); }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.site-logo img { max-height: 34px; width: auto; }
.site-logo .logo-mark { color: var(--accent); }
.site-logo .logo-mark svg { width: 28px; height: 28px; }

.main-nav-wrap { border-top: 1px solid var(--border); }
.main-nav { display: flex; align-items: center; justify-content: flex-start; gap: 34px; padding: 14px 0; flex-wrap: wrap; }
.main-nav a { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.main-nav .current-menu-item > a { color: var(--accent); }
.main-nav .sub-menu { display: none; }

.trending-bar { border-top: 1px solid var(--border); background: var(--bg-soft); }
.trending-bar .container { display: flex; align-items: center; gap: 16px; padding-block: 11px; flex-wrap: wrap; }
.trending-bar .label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.trending-bar .trending-nav { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.trending-bar a { font-size: 12px; color: var(--text-muted); }
.trending-bar a:hover { color: var(--accent); }

/* Mobile-only quick category row under the homepage hero — hidden on desktop
   since the header's own primary nav already covers this. */
.quick-categories { display: none; }

.search-panel { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 16px; }
.search-panel[hidden] { display: none; }
.search-panel-head { display: none; }
.back-link { display: none; }
.suggestions-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; list-style: none; margin: 0; padding: 0; }
.suggestions-nav a { font-size: 13px; color: var(--text-muted); }
.suggestions-nav a:hover { color: var(--accent); }

/* ---- Mobile nav drawer chrome (hidden on desktop) ---- */
.drawer-head, .drawer-toolbar, .drawer-contact { display: none; }

/* -------------------------------------------------- */
/* 6. SECTION TITLE                                    */
/* -------------------------------------------------- */
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-title h2 { font-size: 16px; white-space: nowrap; }
.section-title .bar { flex: 1; height: 1px; background: var(--border-strong); }
.section-title .icon { color: var(--accent); display: flex; }
.section-title .icon svg { width: 16px; height: 16px; }
.section-title .more { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.section-title .more:hover { color: var(--accent); }

section.block { padding-block: 46px; }
section.block.hero-section { padding-top: 34px; }

/* -------------------------------------------------- */
/* 7. TABS                                             */
/* -------------------------------------------------- */
.tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs a, .tabs button {
	padding: 7px 18px; border-radius: var(--radius-pill); font-size: 12px;
	background: transparent; border: 1px solid transparent; color: var(--text-muted);
}
.tabs a.is-active, .tabs button.is-active { background: var(--accent); color: #06231d; font-weight: 700; }
.tabs a:hover:not(.is-active) { color: var(--text); }

/* -------------------------------------------------- */
/* 8. META                                             */
/* -------------------------------------------------- */
.meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-dim); }
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-item svg { width: 13px; height: 13px; }
.meta a { color: var(--text-dim); }
.meta a:hover { color: var(--accent); }

/* -------------------------------------------------- */
/* 9. CARDS                                            */
/* -------------------------------------------------- */
.card-hero {
	position: relative; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--card); min-height: 320px; height: 100%; display: flex; align-items: flex-end;
	border: 1px solid var(--border);
}
.card-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card-hero::after { content: ""; position: absolute; inset: 0; background: var(--overlay-strong); z-index: 1; }
.card-hero-body { position: relative; z-index: 2; padding: 28px; color: #fff; }
.card-hero-body h3, .card-hero-body h2 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.card-hero-body .meta { color: rgba(255,255,255,.75); }
.card-hero-body .meta a { color: rgba(255,255,255,.75); }
.hero-dots { display: none; gap: 6px; margin-top: 12px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-dots span.is-active { width: 18px; border-radius: 4px; background: var(--accent); }

.card-vertical {
	display: flex; flex-direction: column;
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.card-vertical .thumb-frame { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--card-solid); margin-bottom: 14px; position: relative; }
.card-vertical .thumb { display: block; width: 100%; height: 100%; }
.card-vertical .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-vertical:hover .thumb img { transform: scale(1.06); }
.card-vertical h3 {
	font-size: 13px; margin-bottom: 10px; min-height: 2.4em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-vertical h3 a:hover { color: var(--accent); }

.thumb-frame { position: relative; }
.thumb-frame .badge-tag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 3px 10px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 4px; z-index: 2; }
.thumb-frame .save-btn {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	width: 30px; height: 30px; border-radius: 50%; border: none;
	background: rgba(0,0,0,.55); color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.thumb-frame .save-btn:hover { color: var(--accent); }
.thumb-frame .save-btn.is-saved { color: var(--accent); }
.thumb-frame .save-btn.is-saved svg { fill: currentColor; }

.card-vertical--compact { padding: 10px; }
.card-vertical--compact .thumb-frame { aspect-ratio: 16/10; margin-bottom: 10px; }
.card-vertical--compact h3 { font-size: 12px; margin-bottom: 8px; }
.card-vertical--compact .meta { font-size: 11px; }

.card-vertical--feature {
	background: none; border: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card-vertical--feature .thumb-frame { aspect-ratio: 16/8; margin-bottom: 18px; }
.card-vertical--feature h3 { font-size: 16px; margin-bottom: 14px; }
.card-vertical--feature .tags { display: flex; gap: 8px; margin-bottom: 14px; }

.card-horizontal {
	display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.card-horizontal .thumb { flex: none; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.card-horizontal .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-horizontal .body { flex: 1; min-width: 0; }
.card-horizontal h3 { font-size: 12.5px; line-height: 1.6; margin-bottom: 8px; }
.card-horizontal h3 a:hover { color: var(--accent); }

.card-list-row { display: flex; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.card-list-row:last-child { border-bottom: none; }
.card-list-row .thumb-frame { flex: none; width: 130px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; }
.card-list-row .thumb { display: block; width: 100%; height: 100%; }
.card-list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-list-row .body { flex: 1; min-width: 0; }
.card-list-row h3 { font-size: 14px; margin-bottom: 10px; }
.card-list-row h3 a:hover { color: var(--accent); }
.card-list-row .excerpt { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.9; }
.card-list-row .row-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card-list-row.card-list-row--featured h3 { font-size: 15px; }
.card-list-row.card-list-row--featured .thumb-frame { width: 150px; height: 100px; }

.card-avatar-row { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.card-avatar-row:last-child { border-bottom: none; }
.card-avatar-row .thumb { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.card-avatar-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-avatar-row .body { flex: 1; min-width: 0; }
.card-avatar-row h3 { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.card-avatar-row h3 a:hover { color: var(--accent); }

.card-app { display: flex; align-items: center; gap: 12px; }
.card-app .thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; }
.card-app .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-app .eyebrow { font-size: 10px; color: var(--text-dim); margin-bottom: 6px; }
.card-app h3 { font-size: 12px; line-height: 1.6; }
.card-app h3 a:hover { color: var(--accent); }

/* -------------------------------------------------- */
/* 10. GRIDS                                           */
/* -------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch; }
.hero-grid > div { height: 100%; }
.hero-grid .hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-grid .hero-thumbs .card-vertical--compact { display: flex; flex-direction: column; }
.hero-grid .hero-thumbs .card-vertical--compact .thumb-frame { flex: 1; }
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.layout-with-sidebar.layout-reverse { grid-template-columns: 340px 1fr; }
.split-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }

/* -------------------------------------------------- */
/* 11. SIDEBAR / WIDGETS                               */
/* -------------------------------------------------- */
.widget {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 22px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.widget-title { font-size: 14.5px; margin-bottom: 16px; }
.widget .more-link { display: block; text-align: center; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.widget .more-link:hover { color: var(--accent); }

.promo-box {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.promo-box h3 { font-size: 15px; margin-bottom: 10px; }
.promo-box p { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; margin-bottom: 18px; }

/* -------------------------------------------------- */
/* 12. SOCIAL BANNER                                   */
/* -------------------------------------------------- */
.social-banner {
	background: var(--card-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.social-banner .wordmark { font-size: 38px; font-weight: 800; color: var(--border-strong); display: flex; align-items: center; gap: 12px; }
.social-banner .wordmark .logo-mark svg { width: 40px; height: 40px; }
.social-banner .content h2 { font-size: 18px; margin-bottom: 10px; }
.social-banner .content p { color: var(--text-muted); font-size: 12.5px; max-width: 480px; line-height: 1.9; }
.social-banner .socials { display: flex; gap: 10px; margin-top: 16px; }

/* -------------------------------------------------- */
/* 13. APP SHOWCASE                                    */
/* -------------------------------------------------- */
.app-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.most-viewed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* -------------------------------------------------- */
/* 14. BREADCRUMB / ARCHIVE HEADER                     */
/* -------------------------------------------------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-dim); padding-block: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .6; }
.breadcrumb .current { color: var(--text-muted); }

.archive-header { padding-bottom: 30px; }
.archive-header .pill { margin-bottom: 14px; }
.archive-header h1 { font-size: 24px; margin-bottom: 14px; }
.archive-header p { color: var(--text-muted); font-size: 12.5px; line-height: 2; max-width: 980px; }

/* -------------------------------------------------- */
/* 15. PAGINATION                                      */
/* -------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; font-size: 12.5px; color: var(--text-muted); }
.pagination a { color: var(--text); }
.pagination a:hover { color: var(--accent); }
.pagination .disabled { color: var(--text-dim); pointer-events: none; }
.pagination .page-numbers { display: none; }

/* -------------------------------------------------- */
/* 16. FOOTER                                          */
/* -------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 60px; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.3fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { font-size: 14px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 12.5px; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--accent); }
.footer-brand .site-logo { margin-bottom: 20px; }
.newsletter-box {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.newsletter-box h4 { font-size: 14px; margin-bottom: 6px; }
.newsletter-box p { font-size: 11.5px; color: var(--text-muted); margin-bottom: 16px; }
.newsletter-box input[type="email"] {
	width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 12px 16px; margin-bottom: 12px; color: var(--text); font-size: 12.5px;
}
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; text-align: center; font-size: 11.5px; color: var(--text-dim); }

/* -------------------------------------------------- */
/* 17. SINGLE POST                                     */
/* -------------------------------------------------- */
.article-header { padding-top: 22px; }
.article-header h1 { font-size: 21px; margin-bottom: 16px; }
.article-header-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; }
.article-header-info { min-width: 0; }
.article-featured { border-radius: var(--radius-lg); overflow: hidden; height: 100%; }
.article-featured img { height: 100%; object-fit: cover; }
.article-actions { display: flex; align-items: center; gap: 18px; padding-block: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.article-actions .action { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); background: none; border: none; padding: 0; font-family: inherit; }
button.action { cursor: pointer; }
.article-actions .action svg { width: 16px; height: 16px; }
.article-actions .action.js-like-btn.is-liked,
.article-actions .action.js-save-btn.is-saved { color: var(--accent); }
.article-actions .action.js-like-btn.is-liked svg,
.article-actions .action.js-save-btn.is-saved svg { fill: currentColor; }

.article-content { font-size: 14px; line-height: 2.05; color: var(--text); padding-block: 24px; }
.article-content p { margin-bottom: 20px; color: var(--text-muted); }
.article-content h2, .article-content h3 { margin-bottom: 16px; margin-top: 8px; font-size: 16px; }
.article-content img { border-radius: var(--radius-md); margin-block: 16px; }

.article-tags { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 20px; }

.author-box {
	display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-block: 24px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.author-box .avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; }
.author-box .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box .name { font-size: 14px; margin-bottom: 4px; }
.author-box .bio { font-size: 11.5px; color: var(--text-muted); }
.author-box .link { font-size: 11.5px; color: var(--accent); margin-top: 8px; display: inline-block; }

.comments-section { padding-top: 10px; }
.comment-form-wrap {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 26px;
	backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.comment-form-wrap h3 { font-size: 14.5px; margin-bottom: 18px; }
.comment-form-wrap .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comment-form-wrap input, .comment-form-wrap textarea {
	width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 12px 16px; color: var(--text); font-size: 12.5px;
}
.comment-form-wrap textarea { min-height: 120px; margin-bottom: 16px; resize: vertical; }

.comment-list-title { font-size: 14px; margin-bottom: 18px; }
.comment { display: flex; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.comment .avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; }
.comment .avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment .name { font-size: 13px; }
.comment .date { font-size: 11px; color: var(--text-dim); margin-inline-start: 8px; }
.comment .text { font-size: 12.5px; color: var(--text-muted); margin-block: 8px; line-height: 1.9; }
.comment .comment-actions { display: flex; gap: 14px; font-size: 11px; color: var(--text-dim); }
.comment.is-reply { margin-inline-start: 56px; }
.children { list-style: none; }

/* -------------------------------------------------- */
/* 18. PAGE / 404 / SEARCH                             */
/* -------------------------------------------------- */
.page-content { padding-block: 40px; font-size: 14px; line-height: 2; color: var(--text-muted); }
.page-content h1 { color: var(--text); font-size: 22px; margin-bottom: 20px; }
.error-404 { text-align: center; padding-block: 100px; }
.error-404 .code { font-size: 70px; font-weight: 800; color: var(--accent); }
.error-404 h1 { font-size: 18px; margin-block: 16px; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text); }

/* -------------------------------------------------- */
/* 19. RESPONSIVE                                      */
/* -------------------------------------------------- */
@media (max-width: 1100px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.grid-5, .grid-4 { grid-template-columns: repeat(3, 1fr); }
	.app-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.layout-with-sidebar, .layout-with-sidebar.layout-reverse, .split-feature { grid-template-columns: 1fr; }
	.layout-with-sidebar > aside { display: none; }
	.hero-grid { grid-template-columns: 1fr; }
	.article-header-grid { grid-template-columns: 1fr; }
	.article-featured { margin-bottom: 20px; }
	.topbar-desktop { display: none; }
	.topbar-mobile {
		display: grid; grid-template-columns: auto 1fr auto; align-items: center;
		padding: 6px 10px; margin-block: 14px; border: 1px solid var(--border);
		border-radius: var(--radius-pill); background: var(--card);
		backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
	}
	.topbar-mobile .icon-btn { background: none; border: none; }
	.topbar-mobile-brand { font-size: 15px; gap: 7px; }
	.topbar-mobile-brand img { max-height: 26px; }
	.topbar-mobile-brand .logo-mark svg { width: 20px; height: 20px; }
	.grid-3 { grid-template-columns: 1fr; }
	.most-viewed-grid { grid-template-columns: 1fr; }

	/* ---- Full-screen nav drawer ---- */
	.main-nav-wrap .main-nav { display: none; }
	.main-nav-wrap.is-open {
		position: fixed; inset: 0; z-index: 200; background: rgba(10, 22, 19, 0.85);
		backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
		overflow-y: auto; padding-bottom: 40px; border-top: none;
	}
	[data-theme="light"] .main-nav-wrap.is-open { background: rgba(242, 246, 245, 0.85); }
	.main-nav-wrap.is-open .main-nav {
		display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0;
	}
	.main-nav-wrap.is-open .main-nav > li { width: 100%; }
	.main-nav-wrap.is-open .main-nav > li > a {
		display: flex; align-items: center; justify-content: space-between;
		padding: 17px 2px; border-bottom: 1px solid var(--border); font-size: 14px;
	}
	.main-nav-wrap.is-open .main-nav > li > a::after {
		content: "‹"; color: var(--text-dim); font-size: 16px; transition: transform .2s ease;
	}
	.main-nav-wrap.is-open .main-nav > li:not(.menu-item-has-children) > a::after { content: ""; }
	.main-nav-wrap.is-open .main-nav > li.is-expanded > a::after { transform: rotate(-90deg); }
	.main-nav-wrap.is-open .main-nav .sub-menu {
		list-style: none; margin: 0; padding: 2px 14px 10px; display: none;
		background: rgba(255, 255, 255, 0.03);
	}
	[data-theme="light"] .main-nav-wrap.is-open .main-nav .sub-menu { background: rgba(0, 0, 0, 0.025); }
	.main-nav-wrap.is-open .main-nav > li.is-expanded > .sub-menu { display: block; }
	.main-nav-wrap.is-open .main-nav .sub-menu > li > a {
		display: block; padding: 12px 4px; font-size: 12.5px; color: var(--text-muted);
		border-bottom: 1px solid var(--border);
	}
	.main-nav-wrap.is-open .main-nav .sub-menu > li:last-child > a { border-bottom: none; }
	.main-nav-wrap.is-open .drawer-contact { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 4px; }
	.main-nav-wrap.is-open .drawer-head,
	.main-nav-wrap.is-open .drawer-toolbar { display: flex; align-items: center; }
	.main-nav-wrap.is-open .drawer-head { justify-content: space-between; padding-block: 18px; border-bottom: 1px solid var(--border); }
	.main-nav-wrap.is-open .drawer-toolbar { gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
	.main-nav-wrap.is-open .drawer-toolbar .login-link { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; color: var(--accent); font-size: 12.5px; font-weight: 600; }

	/* ---- Full-screen search overlay ---- */
	.search-panel:not([hidden]) {
		position: fixed; inset: 0; z-index: 200; background: rgba(10, 22, 19, 0.85);
		backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
		overflow-y: auto; border-top: none; padding-block: 0;
	}
	[data-theme="light"] .search-panel:not([hidden]) { background: rgba(242, 246, 245, 0.85); }
	.search-panel-head { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
	.back-link { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12.5px; margin-bottom: 18px; background: none; border: none; padding: 0; }

	/* ---- Quick pill tabs (trending bar) ---- */
	.trending-bar .container { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
	.trending-bar .container::-webkit-scrollbar { display: none; }
	.trending-bar .label { display: none; }
	.trending-bar .trending-nav { flex-wrap: nowrap; }
	.trending-bar .trending-nav a { padding: 7px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); white-space: nowrap; }
	.trending-bar .trending-nav .current-menu-item > a { background: var(--accent); color: #06231d; border-color: var(--accent); font-weight: 700; }

	/* ---- Quick category row above the homepage hero ---- */
	.quick-categories { display: block; border-bottom: 1px solid var(--border); padding-block: 14px; margin-bottom: 0; }
	.quick-categories .container { overflow-x: auto; scrollbar-width: none; }
	.quick-categories .container::-webkit-scrollbar { display: none; }
	.quick-categories-nav { display: flex; gap: 8px; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
	section.block.hero-section { padding-top: 10px; }
	.quick-categories-nav a {
		display: block; padding: 7px 16px; border-radius: var(--radius-pill);
		border: 1px solid var(--border-strong); white-space: nowrap; font-size: 12.5px; color: var(--text-muted);
	}
	.quick-categories-nav .current-menu-item > a { background: var(--accent); color: #06231d; border-color: var(--accent); font-weight: 700; }

	/* ---- Stacked list-row cards (image on top, text below) ---- */
	.card-list-row { flex-direction: column; align-items: stretch; }
	.card-list-row .thumb-frame { order: 1; width: 100%; height: 190px; margin-bottom: 12px; }
	.card-list-row .body { order: 2; }
	.card-list-row.card-list-row--featured .thumb-frame { width: 100%; }

	/* ---- Smaller category badge + no bookmark overlay on thumbnails ---- */
	.thumb-frame .badge-tag { font-size: 9px; padding: 2px 8px; }
	.thumb-frame .save-btn { display: none; }
	.hero-dots { display: flex; }

	/* ---- Compact single-row social banner ---- */
	section.block.social-banner-wrap { padding-block: 5px; }
	.social-banner {
		flex-direction: row; align-items: center; justify-content: space-between;
		padding: 14px 16px; gap: 12px; border-radius: var(--radius-md);
	}
	.social-banner .wordmark { display: none; }
	.social-banner .content { min-width: 0; }
	.social-banner .content h2 { font-size: 12.5px; margin-bottom: 0; }
	.social-banner .content p { display: none; }
	.social-banner .socials { margin-top: 5px; flex-shrink: 0; }
}
@media (max-width: 640px) {
	.grid-5, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); }
	.app-showcase-grid { display: flex; overflow-x: auto; gap: 18px; padding-bottom: 4px; scrollbar-width: none; }
	.app-showcase-grid::-webkit-scrollbar { display: none; }
	.app-showcase-grid .card-app { flex: none; width: 200px; }
	.comment-form-wrap .row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-grid .footer-col--popular, .footer-grid .footer-col--categories { display: none; }
	.footer-grid .footer-col:not(.footer-brand):not(.footer-col--popular):not(.footer-col--categories) ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
	.comment.is-reply { margin-inline-start: 20px; }
}
