/*
Theme Name: Azure Portal
Theme URI: https://example.com/azure-portal
Author: Azure Portal Team
Description: Cổng thông tin tối giản nền trắng – xanh điện: bento trang chủ, thẻ bài viết mềm, mục lục dính và thanh tiến độ đọc. Toàn bộ tài nguyên đóng gói cục bộ, không CDN.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azure-portal
Tags: blog, news, grid-layout, custom-menu, custom-logo, translation-ready
*/

/* ============ 1. Tokens ============ */
:root {
	--az-white: #FFFFFF;
	--az-cloud: #F4F7FB;
	--az-blue: #2563EB;
	--az-blue-deep: #1D4ED8;
	--az-sky: #38BDF8;
	--az-ink: #0F172A;
	--az-slate: #64748B;
	--az-mint: #10B981;
	--az-amber: #F59E0B;
	--az-coral: #F43F5E;
	--az-blue-050: #EFF6FF;
	--az-blue-100: #DBEAFE;
	--az-line: #E2E8F0;
	--az-body: #334155;
	--az-mint-050: #ECFDF5;
	--az-amber-050: #FFFBEB;
	--az-coral-050: #FFF1F2;
	--az-font-display: 'Lexend', 'Segoe UI', sans-serif;
	--az-font-body: 'Inter', 'Segoe UI', sans-serif;
	--az-radius: 18px;
	--az-shadow-soft: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px -8px rgba(15, 23, 42, .08);
	--az-shadow-lift: 0 18px 42px -18px rgba(37, 99, 235, .35), 0 4px 12px -6px rgba(15, 23, 42, .1);
	--az-topbar-h: 72px;
}

/* ============ 2. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--az-topbar-h) + 16px); }
body {
	margin: 0;
	background: var(--az-white);
	color: var(--az-body);
	font-family: var(--az-font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
body.az-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--az-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--az-blue-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--az-font-display); color: var(--az-ink); line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--az-blue); color: var(--az-white); }

/* Portal scrollbar: blue thumb on cloud track */
html { scrollbar-color: var(--az-blue) var(--az-cloud); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--az-cloud); }
::-webkit-scrollbar-thumb { background: var(--az-blue); border-radius: 8px; border: 2px solid var(--az-cloud); }
::-webkit-scrollbar-thumb:hover { background: var(--az-blue-deep); }

:focus-visible { outline: 2px solid var(--az-blue); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute;
	word-wrap: normal !important;
}

.az-shell { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.az-main { min-height: 55vh; padding-bottom: 72px; }
.az-ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

/* ============ 3. Buttons & pills ============ */
.az-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	font-family: var(--az-font-display); font-weight: 600; font-size: 13px;
	letter-spacing: .04em; line-height: 1;
	padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	white-space: nowrap;
}
.az-btn-solid {
	background: var(--az-blue); color: var(--az-white);
	box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.az-btn-solid:hover { background: var(--az-blue-deep); color: var(--az-white); transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(37, 99, 235, .6); }
.az-btn-ghost { background: var(--az-white); color: var(--az-blue); border-color: rgba(37, 99, 235, .35); }
.az-btn-ghost:hover { background: var(--az-blue-050); color: var(--az-blue-deep); transform: translateY(-2px); }
.az-cta-pair { display: flex; align-items: center; gap: 10px; }

.az-pill {
	display: inline-flex; align-items: center; gap: 5px;
	font-family: var(--az-font-display); font-weight: 600; font-size: 11.5px;
	letter-spacing: .03em; line-height: 1;
	padding: 6px 12px; border-radius: 999px;
}
.az-card-cat { background: var(--az-blue-050); color: var(--az-blue); }
a.az-card-cat:hover { background: var(--az-blue-100); color: var(--az-blue-deep); }
.az-pill-glass { background: rgba(255, 255, 255, .2); color: var(--az-white); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .35); }

/* ============ 4. Reading progress ============ */
.az-progress {
	position: fixed; top: 0; left: 0; z-index: 1200;
	height: 3px; width: 0;
	background: linear-gradient(90deg, var(--az-blue), var(--az-sky), var(--az-mint));
	border-radius: 0 3px 3px 0;
	transition: width .1s linear;
}

/* ============ 5. Topbar ============ */
.az-topbar {
	position: sticky; top: 0; z-index: 1100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--az-line);
	transition: box-shadow .25s ease;
}
.az-topbar.az-scrolled { box-shadow: 0 8px 24px -14px rgba(15, 23, 42, .18); }
.az-topbar-inner { display: flex; align-items: center; gap: 22px; height: var(--az-topbar-h); }

.az-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.az-brand-mark {
	display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 12px; color: var(--az-white); font-size: 20px;
	background: linear-gradient(135deg, var(--az-blue) 20%, var(--az-sky));
	box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6);
}
.az-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.az-brand-name { font-family: var(--az-font-display); font-weight: 700; font-size: 19px; color: var(--az-ink); letter-spacing: .01em; }
.az-brand-sub { font-size: 10.5px; font-weight: 500; color: var(--az-slate); letter-spacing: .14em; text-transform: uppercase; }
.az-brand:hover .az-brand-name { color: var(--az-blue); }

.az-nav { flex: 1; min-width: 0; }
.az-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.az-nav-list li a {
	display: block; padding: 8px 13px; border-radius: 999px;
	font-weight: 500; font-size: 14px; color: var(--az-slate);
	transition: background .2s ease, color .2s ease;
}
.az-nav-list li a:hover { background: var(--az-blue-050); color: var(--az-blue); }
.az-nav-list li.current-menu-item > a,
.az-nav-list li.current_page_item > a { background: var(--az-blue); color: var(--az-white); }

.az-topbar-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.az-topbar-search { width: 200px; }
.az-burger {
	display: none; place-items: center; width: 42px; height: 42px;
	border: 1px solid var(--az-line); border-radius: 12px;
	background: var(--az-white); color: var(--az-ink); font-size: 20px;
}
.az-burger:hover { border-color: var(--az-blue); color: var(--az-blue); }

/* ============ 6. Search capsule ============ */
.az-searchform {
	display: flex; align-items: center; gap: 6px;
	background: var(--az-cloud); border: 1px solid var(--az-line);
	border-radius: 999px; padding: 5px 6px 5px 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.az-searchform:focus-within { border-color: var(--az-blue); box-shadow: 0 0 0 3px var(--az-blue-100); background: var(--az-white); }
.az-search-ic { color: var(--az-slate); display: inline-flex; font-size: 15px; }
.az-search-input {
	flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
	font-size: 14px; color: var(--az-ink); padding: 4px 0;
}
.az-search-input::placeholder { color: var(--az-slate); }
.az-search-go {
	display: grid; place-items: center; width: 30px; height: 30px; flex: none;
	border: 0; border-radius: 999px; background: var(--az-blue); color: var(--az-white);
	font-size: 14px; transition: background .2s ease, transform .2s ease;
}
.az-search-go:hover { background: var(--az-blue-deep); transform: translateX(1px); }

/* ============ 7. Bottom sheet ============ */
.az-scrim {
	position: fixed; inset: 0; z-index: 1150;
	background: rgba(15, 23, 42, .5);
	backdrop-filter: blur(2px);
	opacity: 0; transition: opacity .3s ease;
}
.az-scrim.az-open { opacity: 1; }
.az-sheet {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1160;
	background: var(--az-white);
	border-radius: 26px 26px 0 0;
	box-shadow: 0 -18px 50px -18px rgba(15, 23, 42, .4);
	padding: 10px 22px calc(26px + env(safe-area-inset-bottom, 0px));
	max-height: 82vh; overflow-y: auto;
	transform: translateY(105%);
	transition: transform .38s cubic-bezier(.32, .72, .28, 1), visibility 0s linear .38s;
	visibility: hidden;
}
.az-sheet.az-open { transform: translateY(0); visibility: visible; transition: transform .38s cubic-bezier(.32, .72, .28, 1), visibility 0s; }
.az-sheet-handle { width: 46px; height: 5px; border-radius: 999px; background: var(--az-line); margin: 4px auto 14px; }
.az-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.az-sheet-title { font-family: var(--az-font-display); font-weight: 700; font-size: 16px; color: var(--az-ink); }
.az-sheet-close {
	display: grid; place-items: center; width: 36px; height: 36px;
	border: 1px solid var(--az-line); border-radius: 999px;
	background: var(--az-cloud); color: var(--az-slate); font-size: 16px;
}
.az-sheet-close:hover { color: var(--az-coral); border-color: var(--az-coral); }
.az-sheet-search { margin-bottom: 16px; }
.az-sheet-nav .az-nav-list { flex-direction: column; align-items: stretch; gap: 8px; }
.az-sheet-nav .az-nav-list li a {
	background: var(--az-cloud); border: 1px solid var(--az-line);
	padding: 13px 18px; font-size: 15px; font-weight: 500; color: var(--az-ink);
}
.az-sheet-nav .az-nav-list li a:hover { background: var(--az-blue-050); border-color: var(--az-blue); color: var(--az-blue); }
.az-sheet-nav { margin-bottom: 18px; }
.az-cta-sheet { flex-direction: column; align-items: stretch; }
.az-cta-sheet .az-btn { padding: 15px 22px; font-size: 14px; }

/* ============ 8. Bento ============ */
.az-bento-sec {
	padding: 34px 0 10px;
	background:
		radial-gradient(720px 340px at 88% -10%, rgba(56, 189, 248, .12), transparent 65%),
		radial-gradient(600px 300px at 4% 8%, rgba(37, 99, 235, .07), transparent 60%),
		var(--az-white);
}
.az-bento {
	display: grid; gap: 18px;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(216px, auto);
}
.az-b1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.az-b2 { grid-column: 3; grid-row: 1; }
.az-b3 { grid-column: 4; grid-row: 1; }
.az-b4 { grid-column: 3; grid-row: 2; }
.az-b5 { grid-column: 4; grid-row: 2; }

/* Staged bento entrance */
@keyframes az-pop {
	from { opacity: 0; transform: translateY(26px) scale(.985); }
	to { opacity: 1; transform: none; }
}
.az-b1, .az-b2, .az-b3, .az-b4, .az-b5 { animation: az-pop .65s cubic-bezier(.22, .68, .32, 1) both; }
.az-b1 { animation-delay: .05s; }
.az-b2 { animation-delay: .18s; }
.az-b3 { animation-delay: .28s; }
.az-b4 { animation-delay: .38s; }
.az-b5 { animation-delay: .48s; }

/* Original blue mesh field */
.az-mesh {
	background:
		radial-gradient(at 12% 18%, rgba(56, 189, 248, .95), transparent 52%),
		radial-gradient(at 86% 12%, rgba(29, 78, 216, .9), transparent 58%),
		radial-gradient(at 74% 92%, rgba(16, 185, 129, .4), transparent 46%),
		radial-gradient(at 22% 88%, rgba(15, 23, 42, .5), transparent 55%),
		linear-gradient(135deg, var(--az-blue), var(--az-sky));
}
.az-mesh-hero { position: relative; height: 218px; overflow: hidden; }
.az-mesh-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.az-hero-flag { position: absolute; top: 16px; left: 18px; }
.az-mesh-card { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .8); font-size: 42px; }
.az-mesh-cover { height: 320px; border-radius: var(--az-radius); }

.az-bento-hero {
	background: var(--az-white); border: 1px solid var(--az-line);
	border-radius: 22px; overflow: hidden; box-shadow: var(--az-shadow-soft);
	display: flex; flex-direction: column;
	transition: transform .3s ease, box-shadow .3s ease;
}
.az-bento-hero:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: var(--az-shadow-lift); }
.az-hero-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.az-hero-cat { align-self: flex-start; margin-bottom: 12px; }
.az-hero-title { font-size: 25px; font-weight: 700; margin-bottom: 10px; }
.az-hero-title a { color: var(--az-ink); }
.az-hero-title a:hover { color: var(--az-blue); }
.az-hero-excerpt { font-size: 14.5px; color: var(--az-slate); margin-bottom: 18px; }
.az-hero-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.az-hero-link { font-family: var(--az-font-display); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.az-hero-link:hover .az-ic { transform: translateX(3px); }
.az-hero-link .az-ic { transition: transform .2s ease; }

.az-tile {
	background: var(--az-white); border: 1px solid var(--az-line);
	border-radius: 20px; padding: 20px; box-shadow: var(--az-shadow-soft);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
a.az-tile:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: var(--az-shadow-lift); border-color: var(--az-blue-100); }
.az-tile-title {
	display: flex; align-items: center; gap: 7px;
	font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--az-ink);
}
.az-tile-title .az-ic { color: var(--az-blue); }

.az-tile-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.az-stat-ic {
	display: grid; place-items: center; width: 38px; height: 38px;
	border-radius: 11px; background: var(--az-blue-050); color: var(--az-blue);
	font-size: 18px; margin-bottom: 8px;
}
.az-stat-num { font-family: var(--az-font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--az-blue); }
.az-stat-label { font-size: 13px; font-weight: 500; color: var(--az-slate); }
.az-tile-stat-mint .az-stat-ic { background: var(--az-mint-050); color: var(--az-mint); }
.az-tile-stat-mint .az-stat-num { color: var(--az-mint); }

.az-cat-list, .az-latest-list { list-style: none; margin: 0; padding: 0; }
.az-cat-list li + li { border-top: 1px dashed var(--az-line); }
.az-cat-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 8px 2px; font-size: 13.5px; font-weight: 500; color: var(--az-body);
	transition: color .2s ease, transform .2s ease;
}
.az-cat-list a:hover { color: var(--az-blue); transform: translateX(3px); }
.az-cat-list em {
	font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--az-slate);
	background: var(--az-cloud); border-radius: 999px; padding: 2px 9px;
}
.az-cat-list a:hover em { background: var(--az-blue-050); color: var(--az-blue); }

.az-latest-list li + li { margin-top: 12px; }
.az-latest-list a { display: flex; gap: 11px; align-items: center; }
.az-latest-list img, .az-latest-thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.az-latest-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.az-latest-name {
	font-size: 12.8px; font-weight: 500; color: var(--az-ink); line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .2s ease;
}
.az-latest-list a:hover .az-latest-name { color: var(--az-blue); }
.az-latest-date { font-size: 11px; color: var(--az-slate); }

/* ============ 9. Section head & card feed ============ */
.az-feed-sec { padding: 44px 0 0; }
.az-section-head { margin-bottom: 26px; }
.az-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--az-font-display); font-weight: 600; font-size: 12px;
	letter-spacing: .18em; color: var(--az-blue); margin-bottom: 8px;
}
.az-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--az-blue), var(--az-sky)); }
.az-section-title { font-size: 27px; font-weight: 700; margin: 0; }

.az-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.az-card {
	background: var(--az-white); border: 1px solid var(--az-line);
	border-radius: var(--az-radius); overflow: hidden;
	box-shadow: var(--az-shadow-soft); display: flex; flex-direction: column;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.az-card:hover { transform: translateY(-6px) rotate(-.45deg); box-shadow: var(--az-shadow-lift); border-color: var(--az-blue-100); }
.az-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--az-cloud); }
.az-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.az-card:hover .az-card-media img { transform: scale(1.06); }
.az-card-media .az-card-cat {
	position: absolute; top: 12px; left: 12px;
	background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.az-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.az-card-title { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.az-card-title a { color: var(--az-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.az-card-title a:hover { color: var(--az-blue); }
.az-card-excerpt {
	font-size: 13.5px; color: var(--az-slate); margin-bottom: 16px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.az-card-meta {
	margin-top: auto; display: flex; align-items: center; gap: 9px;
	font-size: 12px; font-weight: 500; color: var(--az-slate);
}
.az-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--az-sky); flex: none; }
.az-meta-read { display: inline-flex; align-items: center; gap: 5px; }
.az-meta-read .az-ic { color: var(--az-amber); }
.az-meta-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--az-ink); }
.az-meta-author img { border-radius: 50%; }

.az-demo-hidden { display: none; }

/* Blue ghost capsule load-more */
.az-load-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 38px; }
.az-load-btn {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--az-font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em;
	color: var(--az-blue); background: var(--az-white);
	border: 1.5px solid rgba(37, 99, 235, .45); border-radius: 999px;
	padding: 15px 32px;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.az-load-btn:hover { background: var(--az-blue-050); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .5); }
.az-load-btn:disabled { opacity: .55; pointer-events: none; }
.az-load-btn[hidden] { display: none; }
.az-load-btn.az-loading .az-ic { animation: az-spin 1s linear infinite; }
@keyframes az-spin { to { transform: rotate(360deg); } }
.az-load-status { font-size: 13px; color: var(--az-coral); margin: 0; }

/* ============ 10. Page head / layout / sidebar ============ */
.az-page-head { padding: 34px 0 28px; }
.az-page-head .az-kicker { display: flex; margin-top: 14px; }
.az-page-title { font-size: 32px; font-weight: 700; margin: 10px 0 6px; }
.az-page-sub { color: var(--az-slate); font-size: 15px; max-width: 640px; margin: 0; }
.az-page-search { max-width: 460px; margin-top: 18px; }

.az-crumbs { font-size: 12.5px; font-weight: 500; color: var(--az-slate); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.az-crumbs a { color: var(--az-slate); }
.az-crumbs a:hover { color: var(--az-blue); }
.az-crumbs [aria-current] { color: var(--az-ink); }
.az-crumb-sep { color: var(--az-sky); }

.az-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-bottom: 20px; }
.az-layout-main .az-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

.az-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--az-topbar-h) + 20px); }
.az-widget {
	background: var(--az-white); border: 1px solid var(--az-line);
	border-radius: var(--az-radius); padding: 20px; box-shadow: var(--az-shadow-soft);
}
.az-widget-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.az-widget-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(180deg, var(--az-blue), var(--az-sky)); }
.az-widget ul { list-style: none; margin: 0; padding: 0; }
.az-widget-cats li + li { border-top: 1px dashed var(--az-line); }
.az-widget-cats a { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; font-size: 14px; font-weight: 500; color: var(--az-body); }
.az-widget-cats a:hover { color: var(--az-blue); }
.az-widget-cats em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--az-slate); background: var(--az-cloud); padding: 2px 9px; border-radius: 999px; }
.az-widget-recent li { padding: 10px 0; }
.az-widget-recent li + li { border-top: 1px dashed var(--az-line); }
.az-widget-recent a { display: block; font-size: 13.5px; font-weight: 500; color: var(--az-ink); line-height: 1.45; margin-bottom: 3px; }
.az-widget-recent a:hover { color: var(--az-blue); }
.az-widget-recent span { font-size: 11.5px; color: var(--az-slate); }
.az-widget-cta { background: linear-gradient(160deg, var(--az-blue-050), var(--az-white) 70%); border-color: var(--az-blue-100); }
.az-widget-cta p { font-size: 13.5px; color: var(--az-slate); }
.az-widget-cta .az-cta-pair { flex-direction: column; align-items: stretch; }
.az-widget-cta .az-btn { width: 100%; }

/* ============ 11. Article ============ */
.az-article-head { padding: 34px 0 22px; max-width: 820px; }
.az-article-head .az-card-cat { margin: 16px 0 12px; }
.az-article-title { font-size: 34px; font-weight: 700; margin-bottom: 16px; }
.az-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--az-slate); }
.az-article-cover { margin: 0 0 34px; }
.az-article-cover img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--az-radius); box-shadow: var(--az-shadow-soft); }

.az-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.az-toc-sticky { position: sticky; top: calc(var(--az-topbar-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.az-toc { background: var(--az-white); border: 1px solid var(--az-line); border-radius: var(--az-radius); padding: 18px 20px; box-shadow: var(--az-shadow-soft); }
.az-toc-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.az-toc-list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.az-toc-list li { margin: 0; }
.az-toc-list a {
	display: block; padding: 6px 0 6px 14px; font-size: 13px; font-weight: 500;
	color: var(--az-slate); border-left: 2px solid var(--az-line);
	transition: color .2s ease, border-color .2s ease;
}
.az-toc-list a:hover { color: var(--az-blue); }
.az-toc-list a.az-active { color: var(--az-blue); border-left-color: var(--az-blue); font-weight: 600; }
.az-toc-list .az-toc-sub a { padding-left: 28px; font-size: 12.5px; }

/* Entry typography */
.az-entry-content { font-size: 16.5px; line-height: 1.8; color: var(--az-body); }
.az-entry-content > * { max-width: 100%; }
.az-entry-content h2 { font-size: 24px; margin: 38px 0 14px; padding-top: 6px; }
.az-entry-content h3 { font-size: 18.5px; margin: 28px 0 12px; }
.az-entry-content h4 { font-size: 16px; margin: 22px 0 10px; }
.az-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.az-entry-content img { border-radius: 14px; margin: 18px 0; }
.az-entry-content blockquote {
	margin: 22px 0; padding: 16px 22px;
	background: var(--az-blue-050); border-left: 3px solid var(--az-blue);
	border-radius: 0 14px 14px 0; color: var(--az-ink); font-style: normal;
}
.az-entry-content blockquote p:last-child { margin-bottom: 0; }
.az-entry-content ul, .az-entry-content ol { padding-left: 24px; margin: 0 0 1.2em; }
.az-entry-content li { margin-bottom: .4em; }
.az-entry-content ul li::marker { color: var(--az-blue); }
.az-entry-content ol li::marker { color: var(--az-blue); font-weight: 600; }
.az-entry-content code { background: var(--az-cloud); border: 1px solid var(--az-line); border-radius: 6px; padding: 2px 6px; font-size: .88em; }
.az-entry-content pre { background: var(--az-ink); color: #E2E8F0; border-radius: 14px; padding: 18px; overflow-x: auto; }
.az-entry-content pre code { background: none; border: 0; color: inherit; }
.az-entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.az-entry-content th { background: var(--az-cloud); font-family: var(--az-font-display); font-weight: 600; color: var(--az-ink); }
.az-entry-content th, .az-entry-content td { border: 1px solid var(--az-line); padding: 10px 14px; text-align: left; }
.az-entry-content tr:nth-child(even) td { background: #FAFCFF; }
.az-page-links { margin: 22px 0; font-weight: 600; color: var(--az-ink); }
.az-page-content { background: var(--az-white); border: 1px solid var(--az-line); border-radius: var(--az-radius); padding: 28px; box-shadow: var(--az-shadow-soft); }

.az-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.az-tags a {
	font-size: 12px; font-weight: 500; color: var(--az-slate);
	background: var(--az-cloud); border: 1px solid var(--az-line);
	padding: 5px 13px; border-radius: 999px;
}
.az-tags a:hover { color: var(--az-blue); border-color: var(--az-blue); background: var(--az-blue-050); }
.az-tags a::before { content: "#"; color: var(--az-sky); margin-right: 2px; }

/* Author box — pale blue field */
.az-author {
	display: flex; gap: 18px; align-items: flex-start;
	background: var(--az-blue-050); border: 1px solid var(--az-blue-100);
	border-radius: 20px; padding: 24px; margin: 30px 0;
}
.az-author-avatar img { border-radius: 50%; border: 3px solid var(--az-white); box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .4); }
.az-author-kicker { font-family: var(--az-font-display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--az-blue); }
.az-author-name { font-size: 17px; margin: 4px 0 6px; }
.az-author-bio { font-size: 13.5px; color: var(--az-body); margin-bottom: 10px; }
.az-author-link { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.az-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.az-postnav-item {
	background: var(--az-white); border: 1px solid var(--az-line); border-radius: 16px;
	padding: 16px 18px; display: flex; flex-direction: column; gap: 5px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.az-postnav-item:hover { border-color: var(--az-blue); transform: translateY(-3px); box-shadow: var(--az-shadow-lift); }
.az-postnav-next { text-align: right; grid-column: 2; }
.az-postnav-dir { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--az-blue); }
.az-postnav-title { font-size: 13.5px; font-weight: 500; color: var(--az-ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 12. Comments ============ */
.az-comments { margin-top: 40px; }
.az-comments-title { font-size: 20px; margin-bottom: 18px; }
.az-comment-list { list-style: none; margin: 0 0 26px; padding: 0; }
.az-comment-list .children { list-style: none; padding-left: 34px; }
.az-comment-list .comment-body {
	background: var(--az-cloud); border: 1px solid var(--az-line);
	border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; font-size: 14px;
}
.az-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--az-ink); }
.az-comment-list .comment-author img { border-radius: 50%; }
.az-comment-list .comment-metadata { font-size: 11.5px; margin: 4px 0 8px; }
.az-comment-list .comment-metadata a { color: var(--az-slate); }
.az-comment-list .reply a { font-size: 12px; font-weight: 600; }
.az-comment-reply-title, .az-comments .comment-reply-title { font-size: 17px; margin-bottom: 12px; }
.az-comments .comment-form p { margin-bottom: 14px; }
.az-comments .comment-form label { display: block; font-size: 13px; font-weight: 500; color: var(--az-ink); margin-bottom: 5px; }
.az-comments .comment-form input[type="text"],
.az-comments .comment-form input[type="email"],
.az-comments .comment-form input[type="url"],
.az-comments .comment-form textarea {
	width: 100%; background: var(--az-cloud); border: 1px solid var(--az-line);
	border-radius: 12px; padding: 11px 14px; color: var(--az-ink); outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.az-comments .comment-form input:focus, .az-comments .comment-form textarea:focus {
	border-color: var(--az-blue); box-shadow: 0 0 0 3px var(--az-blue-100); background: var(--az-white);
}
.az-comments .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.az-comments .comment-form-cookies-consent label { margin: 0; }
.az-comments .logged-in-as, .az-comments .comment-notes { font-size: 13px; color: var(--az-slate); }
.az-comments-closed { font-size: 13.5px; color: var(--az-slate); }
.az-comments .nav-links { display: flex; gap: 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }

/* ============ 13. 404 & empty ============ */
.az-404 { text-align: center; padding: 60px 0 80px; max-width: 620px; margin: 0 auto; }
.az-404 .az-crumbs { justify-content: center; }
.az-404-num {
	font-family: var(--az-font-display); font-weight: 700; font-size: 130px; line-height: 1;
	margin: 24px 0 8px;
	background: linear-gradient(120deg, var(--az-blue) 15%, var(--az-sky) 55%, var(--az-mint) 95%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.az-404-title { font-size: 24px; }
.az-404-sub { color: var(--az-slate); font-size: 15px; }
.az-404-search { max-width: 440px; margin: 22px auto; }
.az-404-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.az-empty { text-align: center; padding: 56px 24px; background: var(--az-cloud); border: 1px dashed var(--az-line); border-radius: var(--az-radius); }
.az-empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--az-blue-050); color: var(--az-blue); font-size: 24px; margin-bottom: 14px; }
.az-empty h3 { font-size: 18px; }
.az-empty p { color: var(--az-slate); font-size: 14px; }
.az-empty .az-searchform { max-width: 380px; margin: 16px auto 0; background: var(--az-white); }

/* ============ 14. Footer ============ */
.az-footer { background: var(--az-cloud); color: var(--az-ink); border-top: 1px solid var(--az-line); }
.az-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 36px; padding-top: 52px; padding-bottom: 44px; }
.az-footer-title { font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.az-footer-desc { font-size: 13.5px; color: var(--az-slate); margin-top: 14px; }
.az-footer-links { list-style: none; margin: 0; padding: 0; }
.az-footer-links li { margin-bottom: 9px; }
.az-footer-links a { font-size: 13.5px; font-weight: 500; color: var(--az-slate); }
.az-footer-links a:hover { color: var(--az-blue); }
.az-footer-linkbtn {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--az-white); border: 1px solid var(--az-line);
	border-radius: 999px; padding: 7px 14px; font-size: 12.5px !important;
	transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.az-footer-linkbtn .az-ic { color: var(--az-sky); }
.az-footer-linkbtn:hover { border-color: var(--az-blue); transform: translateX(3px); }
.az-footer-cta .az-cta-pair { flex-direction: column; align-items: stretch; margin-top: 14px; }
.az-footer-cta .az-btn { width: 100%; }
.az-footer-legal { border-top: 1px solid var(--az-line); }
.az-footer-legal-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	padding-top: 18px; padding-bottom: 18px;
}
.az-footer-legal p { margin: 0; font-size: 12.5px; color: var(--az-slate); }
.az-legal-badge { display: inline-flex; align-items: center; gap: 8px; }
.az-18 {
	font-family: var(--az-font-display); font-weight: 700; font-size: 11px;
	background: var(--az-coral); color: var(--az-white);
	border-radius: 7px; padding: 3px 7px; line-height: 1;
}

/* ============ 15. To-top & reveal ============ */
.az-totop {
	position: fixed; right: 22px; bottom: 22px; z-index: 1000;
	display: grid; place-items: center; width: 46px; height: 46px;
	border: 0; border-radius: 50%;
	background: var(--az-blue); color: var(--az-white); font-size: 18px;
	box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .65);
	opacity: 0; transform: translateY(14px); pointer-events: none;
	transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.az-totop.az-show { opacity: 1; transform: none; pointer-events: auto; }
.az-totop:hover { background: var(--az-blue-deep); transform: translateY(-3px); }

.az-js .az-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, .68, .32, 1); }
.az-js .az-reveal.az-in { opacity: 1; transform: none; }

/* ============ 16. Responsive ============ */
@media (max-width: 1100px) {
	.az-topbar-search { width: 160px; }
	.az-nav-list li a { padding: 8px 10px; font-size: 13.5px; }
}

@media (max-width: 900px) {
	.az-nav, .az-topbar-search, .az-cta-top .az-btn-ghost { display: none; }
	.az-burger { display: grid; }
	.az-topbar-inner { justify-content: space-between; }

	.az-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
	.az-b1 { grid-column: 1 / 3; grid-row: auto; }
	.az-b2 { grid-column: 1; grid-row: auto; }
	.az-b3 { grid-column: 2; grid-row: auto; }
	.az-b4 { grid-column: 1 / 3; grid-row: auto; }
	.az-b5 { grid-column: 1 / 3; grid-row: auto; }
	.az-mesh-hero { height: 190px; }

	.az-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.az-layout, .az-article-layout { grid-template-columns: 1fr; }
	.az-sidebar { position: static; }
	.az-toc-col { order: -1; }
	.az-toc-sticky { position: static; }
	.az-toc-list { max-height: 220px; }

	.az-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.az-article-title { font-size: 27px; }
	.az-page-title { font-size: 26px; }
}

@media (max-width: 600px) {
	.az-shell { padding: 0 16px; }
	.az-brand-sub { display: none; }
	.az-cta-top .az-btn-solid { padding: 10px 16px; font-size: 12px; }

	.az-bento { grid-template-columns: 1fr; gap: 14px; }
	.az-b1, .az-b2, .az-b3, .az-b4, .az-b5 { grid-column: 1; }
	.az-b2, .az-b3 { flex-direction: row; align-items: center; gap: 14px; }
	.az-b2 .az-stat-ic, .az-b3 .az-stat-ic { margin-bottom: 0; }
	.az-b2 .az-stat-num, .az-b3 .az-stat-num { font-size: 32px; }
	.az-hero-title { font-size: 20px; }
	.az-mesh-hero { height: 160px; }

	.az-grid, .az-layout-main .az-grid { grid-template-columns: 1fr; }
	.az-section-title { font-size: 22px; }
	.az-postnav { grid-template-columns: 1fr; }
	.az-postnav-next { grid-column: 1; text-align: left; }
	.az-author { flex-direction: column; }
	.az-article-title { font-size: 23px; }
	.az-article-cover img, .az-mesh-cover { max-height: 240px; height: 240px; }
	.az-footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 38px; }
	.az-footer-legal-inner { flex-direction: column; align-items: flex-start; }
	.az-404-num { font-size: 92px; }
	.az-totop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.az-js .az-reveal { opacity: 1; transform: none; }
}