/*
Theme Name: Andrey Vargas
Theme URI: https://andreyvargas.com.br/
Author: Andrey Vargas
Author URI: https://andreyvargas.com.br/
Description: Tema editorial responsivo, rápido e acessível para o site Andrey Vargas. Desenvolvido para blogs, portais de conteúdo e marcas pessoais.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
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: andrey-vargas
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Design tokens and reset
   ========================================================================== */
:root {
	--av-bg: #f7f8fa;
	--av-surface: #ffffff;
	--av-surface-soft: #eef2f7;
	--av-text: #141821;
	--av-muted: #5f6878;
	--av-border: #dfe4eb;
	--av-primary: #155eef;
	--av-primary-dark: #0d47bd;
	--av-accent: #f5b700;
	--av-success: #147d64;
	--av-danger: #b42318;
	--av-radius-sm: 8px;
	--av-radius: 16px;
	--av-radius-lg: 28px;
	--av-shadow: 0 16px 45px rgba(22, 34, 51, 0.08);
	--av-container: 1180px;
	--av-content: 760px;
	--av-transition: 180ms ease;
}

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

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

body {
	margin: 0;
	background: var(--av-bg);
	color: var(--av-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

a {
	color: var(--av-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--av-primary-dark);
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--av-accent);
	outline-offset: 3px;
}

::selection {
	background: rgba(21, 94, 239, 0.18);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	background: var(--av-surface);
	color: var(--av-text);
	border-radius: var(--av-radius-sm);
	box-shadow: var(--av-shadow);
	font-weight: 700;
}

.av-container {
	width: min(calc(100% - 32px), var(--av-container));
	margin-inline: auto;
}

.av-content-width {
	width: min(calc(100% - 32px), var(--av-content));
	margin-inline: auto;
}

.site-main {
	min-height: 60vh;
}

.av-section {
	padding-block: clamp(56px, 8vw, 96px);
}

.av-section--white {
	background: var(--av-surface);
}

.av-section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.av-section__header h2,
.av-page-header h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.av-section__header p,
.av-page-header p {
	max-width: 620px;
	margin: 8px 0 0;
	color: var(--av-muted);
}

.av-eyebrow {
	margin: 0 0 12px;
	color: var(--av-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.av-button,
.wp-block-button__link,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--av-primary);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--av-transition), background var(--av-transition), box-shadow var(--av-transition);
}

.av-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
	transform: translateY(-2px);
	background: var(--av-primary-dark);
	color: #fff;
	box-shadow: 0 10px 24px rgba(21, 94, 239, 0.24);
}

.av-button--secondary {
	border-color: var(--av-border);
	background: var(--av-surface);
	color: var(--av-text);
}

.av-button--secondary:hover {
	background: var(--av-surface-soft);
	color: var(--av-text);
	box-shadow: none;
}

/* ==========================================================================
   2. Header and navigation
   ========================================================================== */
.site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(223, 228, 235, 0.9);
	backdrop-filter: blur(14px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 28px;
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.site-title a {
	color: var(--av-text);
	text-decoration: none;
}

.site-description {
	margin: 4px 0 0;
	color: var(--av-muted);
	font-size: 0.78rem;
	line-height: 1.3;
}

.main-navigation {
	display: flex;
	align-items: center;
	gap: 20px;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--av-text);
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: var(--av-surface-soft);
	color: var(--av-primary);
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	display: none;
	min-width: 220px;
	padding: 8px;
	background: var(--av-surface);
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius);
	box-shadow: var(--av-shadow);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	display: block;
}

.main-navigation .sub-menu .sub-menu {
	top: 0;
	left: calc(100% + 8px);
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--av-border);
	border-radius: 12px;
	background: var(--av-surface);
	color: var(--av-text);
	cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform var(--av-transition), opacity var(--av-transition);
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle__icon::before {
	top: -7px;
}

.menu-toggle__icon::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.av-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(72px, 11vw, 142px);
	background:
		radial-gradient(circle at 78% 24%, rgba(21, 94, 239, 0.16), transparent 28%),
		radial-gradient(circle at 12% 92%, rgba(245, 183, 0, 0.17), transparent 24%),
		linear-gradient(145deg, #fff 0%, #f4f7fb 55%, #eef4ff 100%);
	border-bottom: 1px solid var(--av-border);
}

.av-hero::after {
	position: absolute;
	top: 12%;
	right: -90px;
	width: 320px;
	height: 320px;
	border: 1px solid rgba(21, 94, 239, 0.14);
	border-radius: 50%;
	box-shadow:
		0 0 0 38px rgba(21, 94, 239, 0.035),
		0 0 0 76px rgba(21, 94, 239, 0.025);
	content: "";
	pointer-events: none;
}

.av-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	align-items: center;
	gap: clamp(44px, 7vw, 92px);
}

.av-hero__content h1 {
	max-width: 850px;
	margin: 0;
	font-size: clamp(2.8rem, 7vw, 5.75rem);
	line-height: 0.98;
	letter-spacing: -0.065em;
}

.av-hero__content h1 span {
	color: var(--av-primary);
}

.av-hero__lead {
	max-width: 680px;
	margin: 24px 0 0;
	color: var(--av-muted);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.av-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.av-hero__panel {
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: var(--av-radius-lg);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: var(--av-shadow);
	backdrop-filter: blur(10px);
}

.av-hero__panel-label {
	margin: 0 0 14px;
	color: var(--av-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.av-hero__stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-block: 14px;
	border-top: 1px solid var(--av-border);
}

.av-hero__stat:first-of-type {
	border-top: 0;
}

.av-hero__stat-icon {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 12px;
	background: rgba(21, 94, 239, 0.1);
	color: var(--av-primary);
	font-weight: 900;
}

.av-hero__stat strong,
.av-hero__stat span {
	display: block;
}

.av-hero__stat span {
	color: var(--av-muted);
	font-size: 0.84rem;
}

/* ==========================================================================
   4. Cards and grids
   ========================================================================== */
.av-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.av-card {
	overflow: hidden;
	background: var(--av-surface);
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius);
	transition: transform var(--av-transition), box-shadow var(--av-transition), border-color var(--av-transition);
}

.av-card:hover {
	transform: translateY(-5px);
	border-color: rgba(21, 94, 239, 0.25);
	box-shadow: var(--av-shadow);
}

.av-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--av-surface-soft);
}

.av-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.av-card:hover .av-card__image img {
	transform: scale(1.035);
}

.av-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(21, 94, 239, 0.09), rgba(245, 183, 0, 0.11)),
		var(--av-surface-soft);
	color: var(--av-primary);
	font-size: 2rem;
	font-weight: 900;
}

.av-card__body {
	padding: 22px;
}

.av-card__meta,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-bottom: 10px;
	color: var(--av-muted);
	font-size: 0.8rem;
}

.av-card__meta a,
.entry-meta a {
	color: inherit;
	text-decoration: none;
}

.av-card__meta a:hover,
.entry-meta a:hover {
	color: var(--av-primary);
}

.av-card__title {
	margin: 0;
	font-size: 1.28rem;
	line-height: 1.25;
	letter-spacing: -0.025em;
}

.av-card__title a {
	color: var(--av-text);
	text-decoration: none;
}

.av-card__title a:hover {
	color: var(--av-primary);
}

.av-card__excerpt {
	margin: 12px 0 0;
	color: var(--av-muted);
	font-size: 0.94rem;
}

.av-card__read-more {
	display: inline-flex;
	margin-top: 16px;
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
}

/* Category grid */
.av-topic-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.av-topic {
	display: block;
	min-height: 145px;
	padding: 22px;
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius);
	background: var(--av-surface);
	color: var(--av-text);
	text-decoration: none;
	transition: transform var(--av-transition), border-color var(--av-transition), background var(--av-transition);
}

.av-topic:hover {
	transform: translateY(-3px);
	border-color: rgba(21, 94, 239, 0.34);
	background: #fbfdff;
	color: var(--av-text);
}

.av-topic__icon {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 28px;
	place-items: center;
	border-radius: 12px;
	background: rgba(21, 94, 239, 0.1);
	color: var(--av-primary);
	font-weight: 900;
}

.av-topic strong {
	display: block;
	font-size: 1.02rem;
}

.av-topic span {
	color: var(--av-muted);
	font-size: 0.82rem;
}

/* About feature */
.av-about {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(32px, 7vw, 96px);
}

.av-about__visual {
	position: relative;
	min-height: 430px;
	border-radius: var(--av-radius-lg);
	background:
		linear-gradient(155deg, rgba(21, 94, 239, 0.96), rgba(12, 45, 106, 0.94)),
		var(--av-primary);
	box-shadow: var(--av-shadow);
}

.av-about__visual::before,
.av-about__visual::after {
	position: absolute;
	content: "";
	border-radius: 50%;
}

.av-about__visual::before {
	top: 46px;
	right: 48px;
	width: 150px;
	height: 150px;
	border: 28px solid rgba(255, 255, 255, 0.1);
}

.av-about__visual::after {
	bottom: 50px;
	left: 40px;
	width: 92px;
	height: 92px;
	background: var(--av-accent);
}

.av-about__badge {
	position: absolute;
	right: 28px;
	bottom: 28px;
	left: 28px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--av-radius);
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
	backdrop-filter: blur(10px);
}

.av-about__badge strong {
	display: block;
	font-size: 1.28rem;
}

.av-about__content h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.06;
	letter-spacing: -0.045em;
}

.av-about__content p {
	color: var(--av-muted);
	font-size: 1.05rem;
}

/* ==========================================================================
   5. Archive and single content
   ========================================================================== */
.av-page-header {
	padding-block: clamp(56px, 8vw, 92px) 40px;
}

.av-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 42px;
	padding-bottom: 80px;
}

.av-layout--full {
	display: block;
}

.av-post-list {
	display: grid;
	gap: 24px;
}

.av-article {
	overflow: hidden;
	background: var(--av-surface);
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius-lg);
	box-shadow: 0 12px 36px rgba(22, 34, 51, 0.045);
}

.av-article__header {
	padding: clamp(28px, 6vw, 64px) clamp(24px, 7vw, 76px) 32px;
}

.av-article__title {
	margin: 0;
	font-size: clamp(2.2rem, 6vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.055em;
}

.av-article__thumbnail {
	overflow: hidden;
	margin-inline: clamp(20px, 4vw, 44px);
	border-radius: var(--av-radius);
}

.av-article__thumbnail img {
	width: 100%;
}

.entry-content {
	padding: 36px clamp(24px, 7vw, 76px) 56px;
	font-size: 1.06rem;
}

.entry-content > * {
	max-width: var(--av-content);
	margin-right: auto;
	margin-left: auto;
}

.entry-content > .alignwide {
	max-width: 1060px;
}

.entry-content > .alignfull {
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.7em;
	margin-bottom: 0.65em;
	line-height: 1.18;
	letter-spacing: -0.03em;
}

.entry-content h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.entry-content h3 {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.entry-content blockquote {
	padding: 6px 0 6px 24px;
	border-left: 4px solid var(--av-primary);
	color: var(--av-muted);
	font-size: 1.18rem;
	font-style: italic;
}

.entry-content pre {
	overflow-x: auto;
	padding: 20px;
	border-radius: var(--av-radius-sm);
	background: #111827;
	color: #e5e7eb;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 12px;
	border: 1px solid var(--av-border);
	text-align: left;
}

.entry-content figure {
	margin-top: 2em;
	margin-bottom: 2em;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--av-muted);
	font-size: 0.82rem;
	text-align: center;
}

.entry-footer {
	padding: 0 clamp(24px, 7vw, 76px) 48px;
}

.entry-footer__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.entry-footer__tags a {
	padding: 7px 12px;
	border: 1px solid var(--av-border);
	border-radius: 999px;
	color: var(--av-muted);
	font-size: 0.8rem;
	text-decoration: none;
}

.entry-footer__tags a:hover {
	border-color: var(--av-primary);
	color: var(--av-primary);
}

.post-navigation {
	margin-top: 28px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius);
	background: var(--av-surface);
	color: var(--av-text);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--av-primary);
}

.post-navigation .nav-subtitle {
	display: block;
	color: var(--av-muted);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	display: block;
	margin-top: 4px;
	font-weight: 800;
}

/* Pagination */
.navigation.pagination {
	margin-top: 34px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid var(--av-border);
	border-radius: 10px;
	background: var(--av-surface);
	color: var(--av-text);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--av-primary);
	background: var(--av-primary);
	color: #fff;
}

/* ==========================================================================
   6. Sidebar and widgets
   ========================================================================== */
.widget-area {
	display: grid;
	align-content: start;
	gap: 20px;
}

.widget {
	padding: 22px;
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius);
	background: var(--av-surface);
}

.widget-title {
	margin: 0 0 16px;
	font-size: 1.08rem;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--av-border);
}

.widget a {
	color: var(--av-text);
	text-decoration: none;
}

.widget a:hover {
	color: var(--av-primary);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid var(--av-border);
	border-radius: 10px;
	background: var(--av-surface);
	color: var(--av-text);
}

textarea {
	min-height: 160px;
	resize: vertical;
}

.search-submit {
	flex: 0 0 auto;
	min-height: 48px;
	padding-inline: 15px;
	border: 0;
	border-radius: 10px;
	background: var(--av-primary);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

/* ==========================================================================
   7. Comments
   ========================================================================== */
.comments-area {
	margin-top: 28px;
	padding: clamp(24px, 5vw, 44px);
	border: 1px solid var(--av-border);
	border-radius: var(--av-radius-lg);
	background: var(--av-surface);
}

.comments-title,
.comment-reply-title {
	margin-top: 0;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 24px;
	list-style: none;
}

.comment-body {
	padding-block: 24px;
	border-bottom: 1px solid var(--av-border);
}

.comment-meta {
	font-size: 0.86rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-content {
	margin-top: 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
	padding-block: 58px 24px;
	background: #111827;
	color: #d6dbea;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--av-accent);
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
	gap: 30px;
	padding-bottom: 40px;
}

.footer-widgets .widget {
	padding: 0;
	border: 0;
	background: transparent;
}

.footer-widgets .widget-title {
	color: #fff;
}

.footer-widgets .widget li + li {
	border-color: rgba(255, 255, 255, 0.12);
}

.footer-widgets .widget a {
	color: #d6dbea;
}

.site-footer__brand {
	max-width: 360px;
}

.site-footer__brand strong {
	display: block;
	margin-bottom: 10px;
	color: #fff;
	font-size: 1.4rem;
}

.site-footer__brand p {
	margin: 0;
	color: #aeb7ca;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #aeb7ca;
	font-size: 0.83rem;
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================================
   9. Utilities and special states
   ========================================================================== */
.av-empty {
	padding: 42px;
	border: 1px dashed var(--av-border);
	border-radius: var(--av-radius);
	background: var(--av-surface);
	text-align: center;
}

.av-empty h2 {
	margin-top: 0;
}

.av-notice {
	padding: 18px 20px;
	border-left: 4px solid var(--av-primary);
	border-radius: 0 var(--av-radius-sm) var(--av-radius-sm) 0;
	background: rgba(21, 94, 239, 0.08);
}

.bypostauthor {
	display: block;
}

.sticky {
	border-color: rgba(245, 183, 0, 0.65);
}

.gallery-caption {
	color: var(--av-muted);
	font-size: 0.85rem;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-bottom: 1em;
	margin-left: 1.5em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

/* ==========================================================================
   10. Responsive rules
   ========================================================================== */
@media (max-width: 1040px) {
	.av-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.av-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.av-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 28px;
	}
}

@media (max-width: 860px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: absolute;
		top: calc(100% + 1px);
		right: 0;
		left: 0;
		display: none;
		padding: 14px 16px 20px;
		background: var(--av-surface);
		border-bottom: 1px solid var(--av-border);
		box-shadow: 0 18px 30px rgba(22, 34, 51, 0.08);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		display: block;
	}

	.main-navigation a {
		padding: 12px;
	}

	.main-navigation .sub-menu {
		position: static;
		display: block;
		margin-left: 14px;
		padding: 0 0 0 10px;
		border: 0;
		border-left: 2px solid var(--av-border);
		border-radius: 0;
		box-shadow: none;
	}

	.av-hero__inner,
	.av-about,
	.av-layout {
		grid-template-columns: 1fr;
	}

	.av-hero__panel {
		max-width: 520px;
	}

	.widget-area {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.av-container,
	.av-content-width {
		width: min(calc(100% - 24px), var(--av-container));
	}

	.site-header__inner {
		min-height: 68px;
	}

	.site-description {
		display: none;
	}

	.av-hero {
		padding-block: 64px;
	}

	.av-hero__content h1 {
		font-size: clamp(2.55rem, 13vw, 4rem);
	}

	.av-section {
		padding-block: 54px;
	}

	.av-section__header {
		display: block;
	}

	.av-section__header .av-button {
		margin-top: 18px;
	}

	.av-post-grid,
	.av-topic-grid,
	.widget-area,
	.footer-widgets,
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.av-card__body {
		padding: 18px;
	}

	.av-about__visual {
		min-height: 330px;
	}

	.av-article {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.av-article__header {
		padding-inline: 18px;
	}

	.av-article__thumbnail {
		margin-inline: 12px;
	}

	.entry-content,
	.entry-footer {
		padding-right: 18px;
		padding-left: 18px;
	}

	.site-footer__bottom {
		display: block;
	}

	.footer-navigation {
		margin-top: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.widget-area,
	.post-navigation,
	.comments-area {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.av-article {
		border: 0;
		box-shadow: none;
	}
}
