/*
Theme Name: VPSZET Docs
Theme URI: https://blog.vpszet.com/
Author: VPSZET
Description: Blog công nghệ với banner tìm kiếm, danh mục phân cấp và thẻ bài viết. Hỗ trợ mục lục, sao chép mã và trình soạn thảo WordPress.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vpszet-docs
Tags: blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready, block-styles
*/

:root {
  --ink: #243449; --muted: #58677b; --soft: #f5f8fc; --paper: #fff;
  --line: #e5ebf2; --accent: #0067cb; --accent-soft: #edf5ff;
  --hero-start: #0463cd; --hero-end: #2370b9; --orange: #ffac35;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --header: 80px; --offset: 0px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + var(--offset) + 24px); }
body { margin: 0; font: 16px/1.7 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.admin-bar { --offset: 32px; }
a { color: var(--accent); text-decoration: none; transition: color .18s, background-color .18s, border-color .18s; }
a:hover { color: #004a96; }
button, input, textarea, select { font: inherit; }
button, a, input[type=submit] { touch-action: manipulation; }
button, input[type=submit], summary { cursor: pointer; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; text-wrap: balance; }
h1, h2, h3 { margin-top: 0; }
p { margin: 0 0 1em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
main:focus { outline: 0; }
[hidden] { display: none !important; }
::selection { background: #dceaff; color: var(--ink); }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.mono { font-family: var(--mono); }
.screen-reader-text, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -10000px; }
.screen-reader-text:focus, .skip-link:focus { position: fixed; top: calc(var(--offset) + 8px); left: 16px; width: auto; height: auto; clip: auto; z-index: 10000; background: var(--ink); color: #fff; padding: 12px 20px; }

/* Header and full-width search banner. */
.site-header { position: sticky; top: var(--offset); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 44px; min-height: var(--header); max-width: 1360px; margin: auto; padding: 14px 24px; }
.site-brand { flex-shrink: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-link:hover { color: var(--ink); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 26px; letter-spacing: -3px; padding-right: 3px; line-height: 1; }
.brand-mark span { color: #ffd08d; }
.brand-word { font-size: 23px; font-weight: 800; letter-spacing: .7px; line-height: 1.2; }
.brand-word small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 1.6px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 48px; max-width: 200px; width: auto; }
.header-nav, .header-nav ul { display: flex; align-items: center; gap: 32px; }
.header-nav ul { list-style: none; padding: 0; margin: 0; }
.header-nav a { display: block; padding: 10px 0; color: var(--ink); font-size: 15px; font-weight: 550; }
.header-nav a:hover, .header-nav a[aria-current], .header-nav .current-menu-item>a { color: var(--accent); }
.header-search { width: 300px; margin-left: auto; }
.search-form { display: flex; align-items: center; position: relative; min-width: 0; max-width: 100%; border: 1px solid #c5d1df; border-radius: 7px; background: var(--soft); }
.search-label { padding-left: 12px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-form input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; outline-offset: 0; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.search-form button:hover { color: var(--accent); background: var(--accent-soft); }
.search-button-text { display: none; }
.nav-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #c5d1df; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.blog-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(105deg, var(--hero-start), var(--hero-end)); }
.blog-hero:before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg,#ffffff0d 1px,transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent); }
.blog-hero-inner { position: relative; max-width: 1300px; margin: auto; padding: 44px 24px 56px; text-align: center; }
.hero-breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.hero-breadcrumbs a { color: #fff; min-height: 32px; display: inline-flex; align-items: center; }
.hero-breadcrumbs .icon { width: 14px; }
.hero-breadcrumbs span { font-weight: 600; }
.blog-hero h1 { color: #fff; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.25; font-weight: 800; text-transform: uppercase; letter-spacing: -.7px; margin: 0 0 22px; }
.blog-hero-inner>p { max-width: 950px; margin: 0 auto 40px; font-size: 20px; line-height: 1.65; font-weight: 500; }
.hero-search { max-width: 700px; margin: auto; padding: 16px; border: 1px solid #ffffff60; border-radius: 18px; background: #ffffff26; }
.hero-search .search-form { background: #fff; border: 0; border-radius: 6px; }
.hero-search .search-label { position: absolute; left: 0; top: -44px; width: 100%; padding: 0; font-size: 13px; text-align: center; color: #fff; }
.hero-search input { min-height: 60px; padding: 16px 24px; font-size: 17px; }
.hero-search button { width: 170px; min-width: 170px; min-height: 60px; border-radius: 0 6px 6px 0; color: #30200e; background: linear-gradient(100deg,var(--orange),#ff8754); font-weight: 650; font-size: 17px; }
.hero-search button:hover { background: #ffc166; color: #30200e; }
.hero-search .search-button-text { display: inline; }
.hero-search button .icon { display: none; }
.blog-hero a:focus-visible, .blog-hero input:focus-visible, .blog-hero button:focus-visible { outline-color: #fff; }

/* The left column contains WordPress categories only. */
.site-shell { display: flex; align-items: stretch; gap: 36px; width: calc(100% - 48px); max-width: 1312px; margin: 44px auto 0; min-height: 560px; }
.docs-sidebar { width: 248px; flex-shrink: 0; border-right: 1px solid var(--line); scroll-margin-top: calc(var(--header) + var(--offset) + 20px); }
.sidebar-inner { position: sticky; top: calc(var(--header) + var(--offset) + 24px); max-height: calc(100dvh - var(--header) - var(--offset) - 48px); overflow-y: auto; padding: 0 22px 20px 0; scrollbar-width: thin; }
.sidebar-heading { font-size: 17px; margin: 0 0 20px; font-weight: 650; }
.category-home, .category-link { display: flex; align-items: center; min-height: 48px; padding: 9px 12px; color: var(--muted); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.category-home { border-radius: 5px; margin-bottom: 5px; }
.category-home.is-current, .category-item.is-current>.category-row .category-link { color: var(--accent); font-weight: 600; }
.category-home:hover, .category-row:hover { background: var(--soft); }
.category-tree, .category-children { list-style: none; padding: 0; margin: 0; }
.category-row { display: flex; align-items: center; border-radius: 5px; }
.category-link { flex: 1; min-width: 0; }
.category-toggle { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); }
.category-toggle .icon { width: 16px; transform: rotate(90deg); transition: transform .18s; }
.category-toggle[aria-expanded=true] .icon { transform: rotate(-90deg); }
.category-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.category-children { padding-left: 16px; margin-left: 12px; border-left: 1px solid var(--line); }
.category-children .category-link { font-size: 14px; }
.main-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-wrap { width: 100%; min-width: 0; padding: 0 0 56px; flex: 1; }

/* Article cards and archives. */
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.section-heading h2 { position: relative; margin: 0; font-size: 26px; font-weight: 650; padding-bottom: 10px; }
.section-heading h2:after { content: ""; position: absolute; bottom: 0; left: 0; width: 76px; height: 2px; background: var(--accent); }
.article-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.featured-section { margin-bottom: 48px; }
.articles-section { scroll-margin-top: calc(var(--header) + var(--offset) + 24px); }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 5px 20px #23436606; transition: border-color .18s, box-shadow .18s; }
.post-card:hover { border-color: #bad2ee; box-shadow: 0 7px 24px #23436612; }
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--accent-soft); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { position: relative; height: 100%; overflow: hidden; padding: 18px; color: #fff; background: linear-gradient(120deg,#0463cd,#2370b9); }
.card-placeholder:after { content: ""; position: absolute; width: 160px; height: 160px; right: -55px; top: 18px; border: 24px solid #ffffff12; border-radius: 38px; transform: rotate(25deg); }
.placeholder-brand { display: block; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.card-placeholder>.icon { display: block; width: 38px; height: 38px; margin: 14px 0 9px; }
.placeholder-line { display: block; width: 70px; height: 3px; background: #ffffff8c; border-radius: 3px; margin: 6px 0; }
.placeholder-line.short { width: 44px; }
.placeholder-topic { position: absolute; right: 18px; bottom: 18px; font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px; }
.category-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.category-links a { display: inline-flex; align-items: center; min-height: 24px; font-size: 12px; font-weight: 500; }
.post-card h3 { font-size: 19px; line-height: 1.5; margin: 9px 0 12px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); }
.card-excerpt { font-size: 14px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 20px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.card-content .post-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.post-meta>span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.post-meta .icon { width: 13px; height: 13px; }
.archive-heading { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.archive-heading h1 { font-size: 34px; margin: 0 0 16px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 1px; margin: 0 0 16px; }
.archive-heading p, .archive-description { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.archive-description p:last-child { margin: 0; }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.page-numbers.current { color: #fff; background: var(--accent); border-color: var(--accent); }
.empty-state { padding: 28px 0; }
.empty-state>.icon { width: 32px; height: 32px; color: var(--muted); margin-bottom: 20px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { max-width: 540px; color: var(--muted); font-size: 15px; }
.empty-state .search-form { max-width: 480px; margin: 24px 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 550; }
.text-link .icon { width: 16px; }
.button, .wp-block-button__link, input[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; }
.button:hover, input[type=submit]:hover { color: #fff; background: #004a96; border-color: #004a96; }

/* Reading view, table of contents, and WordPress blocks. */
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.breadcrumbs .icon { width: 13px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.article-layout { display: grid; grid-template-columns: minmax(0,760px) 180px; gap: 32px; }
.full-article { min-width: 0; }
.article-header { padding-bottom: 26px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(30px,3vw,40px); line-height: 1.3; letter-spacing: -.8px; margin: 12px 0 24px; }
.article-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.article-byline .post-meta { font-size: 12px; }
.article-aside { min-width: 0; }
.toc-sticky { position: sticky; top: calc(var(--header) + var(--offset) + 24px); }
.nav-caption { font-size: 11px; color: var(--muted); letter-spacing: .4px; margin: 0 0 18px; }
.toc-sticky nav { max-height: calc(100dvh - var(--header) - var(--offset) - 160px); overflow: auto; border-left: 1px solid var(--line); scrollbar-width: thin; }
.toc-link { display: block; min-height: 36px; padding: 8px 12px; border-left: 2px solid transparent; margin-left: -1px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.toc-link.toc-sub { padding-left: 24px; }
.toc-link.is-active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.back-library { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: var(--muted); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.back-library .icon { width: 16px; }
.featured-image { margin-bottom: 32px; }
.featured-image img { display: block; width: 100%; border-radius: 8px; }
.entry-content { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content>:first-child { margin-top: 0; }
.entry-content h2 { font-size: 27px; margin: 40px 0 18px; scroll-margin-top: calc(var(--header) + var(--offset) + 24px); }
.entry-content h3 { font-size: 21px; margin: 32px 0 16px; scroll-margin-top: calc(var(--header) + var(--offset) + 24px); }
.entry-content h4 { font-size: 18px; margin: 28px 0 12px; }
.entry-content p { margin: 0 0 1.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 0 0 24px; }
.entry-content li { margin: 6px 0; }
.entry-content pre { position: relative; max-width: 100%; overflow-x: auto; padding: 24px; margin: 24px 0; border: 1px solid var(--line); border-radius: 7px; font: 13px/1.8 var(--mono); color: var(--ink); background: #f4f6f8; }
.entry-content pre.has-copy-button { padding-top: 52px; }
.entry-content code { font-family: var(--mono); font-size: .85em; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.entry-content pre code { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.copy-code { position: absolute; right: 8px; top: 7px; min-height: 34px; padding: 4px 10px; border: 1px solid #c5d1df; border-radius: 4px; font: 12px var(--font); color: var(--muted); background: #fff; }
.copy-code:hover { color: var(--accent); border-color: var(--accent); }
.entry-content blockquote { padding: 20px 24px; margin: 28px 0; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { color: var(--muted); font-size: 13px; font-style: normal; }
.entry-content figure { max-width: 100%; margin: 28px 0; }
.entry-content figcaption { font-size: 12px; line-height: 1.7; color: var(--muted); text-align: center; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--soft); font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.entry-content .wp-block-button__link { color: #fff; text-decoration: none; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; max-width: 50%; margin: 0 24px 20px 0; }
.entry-content .alignright { float: right; max-width: 50%; margin: 0 0 20px 24px; }
.entry-content:after { content: ""; display: block; clear: both; }
.entry-content .wp-block-gallery { padding: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.post-tags a { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 12px; }
.post-navigation { padding: 24px 0; margin: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 28px; }
.post-navigation .nav-links>div { flex: 1; min-width: 0; }
.post-navigation a { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.post-navigation a:hover { color: var(--accent); }
.post-navigation .nav-next { text-align: right; }
.nav-direction { color: var(--muted); font-size: 12px; }
.page-content>.full-article { max-width: 760px; }
.mobile-toc { margin-bottom: 28px; }
.mobile-toc details { padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.mobile-toc summary { display: list-item; min-height: 48px; padding: 12px 0; font-size: 14px; font-weight: 550; }
.mobile-toc nav { padding-bottom: 14px; }
.page-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.page-links a, .page-links span { min-width: 36px; min-height: 36px; padding: 4px; border: 1px solid var(--line); text-align: center; }

/* Comments, error page, footer. */
.comments-area { padding-top: 32px; margin-top: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.comments-area h2, .comment-reply-title { font-size: 22px; }
.comment-list, .comment-list .children { list-style: none; padding: 0; }
.comment-list .children { margin-left: 32px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; margin: 8px 0 16px; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: 15px; overflow-wrap: anywhere; }
.reply a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.comment-form label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.comment-form textarea, .comment-form input:not([type=checkbox]):not([type=submit]), .post-password-form input[type=password] { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #c5d1df; border-radius: 6px; font-size: 16px; color: var(--ink); background: #fff; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { display: inline; font-size: 12px; }
.comment-form-cookies-consent input { min-width: 20px; min-height: 20px; }
.comment-notes, .logged-in-as { font-size: 12px; color: var(--muted); }
.comment-form .submit { width: auto !important; }
.bypostauthor>.comment-body { border-left: 2px solid var(--accent); padding-left: 16px; }
.error-content { padding-top: 24px; padding-bottom: 80px; }
.error-number { font-size: 80px; line-height: 1; letter-spacing: -4px; color: #a9b9cc; margin-bottom: 28px; }
.error-content h1 { font-size: 34px; }
.error-content>p:not(.error-number) { max-width: 550px; color: var(--muted); font-size: 15px; }
.error-content .search-form { max-width: 460px; margin: 28px 0; }
.error-content>.button { margin-top: 8px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer strong { font-size: 14px; font-weight: 650; color: var(--ink); }
.site-footer p { font-size: 12px; margin: 5px 0 0; }
.footer-links, .footer-links ul { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

@media (max-width:1100px) {
  .site-shell { gap: 28px; }.docs-sidebar { width: 218px; }.post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-inner { gap: 28px; }.header-search { width: 270px; }.article-layout { grid-template-columns: minmax(0,1fr) 150px; gap: 24px; }
}
@media (max-width:1023px) {
  .article-layout { display: block; }.article-aside { display: none; }.mobile-toc:not([hidden]) { display: block; }
}
@media (min-width:1024px) { .mobile-toc { display: none !important; } }
@media (max-width:900px) {
  .header-nav { display: none; }.header-search { margin-left: auto; width: 260px; }.nav-toggle:not([hidden]) { display: flex; }
  .site-shell { display: block; margin-top: 32px; }.docs-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .sidebar-inner { position: static; padding: 0 0 20px; max-height: none; }.has-js .docs-sidebar { display: none; }.has-js.nav-open .docs-sidebar { display: block; }
  .category-tree { max-width: 520px; }.sidebar-heading { font-size: 18px; }.category-link { font-size: 16px; }
  .blog-hero h1 { font-size: 36px; }.blog-hero-inner>p { font-size: 18px; max-width: 660px; }.blog-hero-inner { padding-top: 36px; padding-bottom: 44px; }
  .post-grid { gap: 22px; }.site-footer { margin-bottom: 8px; }
}
@media (max-width:600px) {
  :root { --header: 72px; }.header-inner { padding: 12px 18px; gap: 12px; }.brand-word { font-size: 21px; }.brand-word small { font-size: 8px; letter-spacing: 1px; }
  .brand-mark { width: 36px; height: 36px; font-size: 23px; }.header-search { display: none; }.nav-toggle { margin-left: auto; font-size: 12px; padding: 8px 10px; }
  .has-js.nav-open .header-search { display: block; width: 100%; order: 3; }.has-js.nav-open .header-inner { flex-wrap: wrap; }
  .blog-hero-inner { padding: 28px 20px 36px; }.hero-breadcrumbs { font-size: 12px; margin-bottom: 18px; }
  .blog-hero h1 { font-size: 30px; line-height: 1.35; letter-spacing: -.4px; margin-bottom: 16px; }.blog-hero-inner>p { font-size: 16px; line-height: 1.8; margin-bottom: 40px; }
  .hero-search { padding: 10px; border-radius: 12px; }.hero-search input { min-height: 52px; padding: 12px; font-size: 16px; }.hero-search button { width: 100px; min-width: 100px; min-height: 52px; font-size: 14px; }
  .hero-search .search-label { top: -36px; font-size: 12px; }.site-shell { width: calc(100% - 36px); margin-top: 28px; min-height: 0; }
  .section-heading { margin-bottom: 22px; gap: 10px; }.section-heading h2 { font-size: 23px; }.article-count { font-size: 12px; }
  .post-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }.post-card h3 { font-size: 20px; }.card-content { padding: 20px; }.card-excerpt { font-size: 15px; }
  .card-placeholder { padding: 20px; }.card-placeholder>.icon { width: 44px; height: 44px; margin-top: 20px; }.placeholder-topic { font-size: 10px; }.placeholder-brand { font-size: 14px; }
  .post-meta { font-size: 12px; }.content-wrap { padding-bottom: 40px; }.site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 24px 0; }
  .footer-links { justify-content: flex-start; gap: 12px; }.archive-heading h1 { font-size: 30px; }.article-header h1 { font-size: 30px; }.article-byline { gap: 10px; }
  .entry-content h2 { font-size: 24px; }.entry-content pre { padding: 16px; font-size: 12px; }.entry-content pre.has-copy-button { padding-top: 52px; }
  .entry-content blockquote { padding: 18px; }.entry-content th,.entry-content td { padding: 10px; }.comment-list .children { margin-left: 16px; }
  .error-content h1 { font-size: 29px; }.error-number { font-size: 72px; }
}
@media (max-width:360px) { .brand-word { font-size: 18px; }.brand-link { gap: 9px; }.blog-hero h1 { font-size: 27px; }.hero-search button { min-width: 90px; width: 90px; } }
@media (max-width:782px) { body.admin-bar { --offset: 46px; } }
@media (max-width:600px) { body.admin-bar { --offset: 0px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*:before,*:after { transition: none !important; animation: none !important; } }
@media print {
  .site-header,.blog-hero,.docs-sidebar,.site-footer,.article-aside,.mobile-toc,.comments-area,.post-navigation,.breadcrumbs,.copy-code { display: none !important; }
  .site-shell,.main-column,.article-layout { display: block; width: 100%; margin: 0; }.content-wrap { padding: 0; }.entry-content a { color: inherit; }
  .entry-content pre { white-space: pre-wrap; overflow: visible; }.entry-content pre code { white-space: pre-wrap; }.entry-content pre.has-copy-button { padding: 16px; }
  body { font-size: 12pt; }.article-header h1 { font-size: 26pt; }
}
