/*
Theme Name: Qiufeng Theme
Theme URI: https://example.com/qiufeng-theme
Author: Qiufeng
Description: 面向免费教程与附件资源分享的经典 WordPress 主题，内置分类搜索、九宫格文章列表、多附件资源和广告位。
Version: 1.8.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: qiufeng-theme
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--qf-accent: #ff5f3d;
	--qf-ink: #14213d;
	--qf-text: #334155;
	--qf-muted: #7a8597;
	--qf-line: #e8ebf0;
	--qf-surface: #ffffff;
	--qf-canvas: #f6f7f9;
	--qf-radius: 16px;
	--qf-shadow: 0 14px 35px rgba(20, 33, 61, 0.08);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--qf-canvas);
	color: var(--qf-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--qf-ink);
	text-decoration: none;
}

a:hover {
	color: var(--qf-accent);
}

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

.qf-container {
	width: min(1240px, calc(100% - 40px));
	margin-inline: auto;
}

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

.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 {
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: var(--qf-ink);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(20, 33, 61, 0.08);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 20px rgba(20, 33, 61, 0.05);
	backdrop-filter: blur(12px);
}

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

.site-header__inner {
	display: flex;
	align-items: center;
	min-height: 76px;
	gap: 30px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.custom-logo-link img,
.site-branding__mark {
	width: 48px;
	height: 48px;
	border-radius: 14px;
}

.site-branding__mark {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #ff8b66, var(--qf-accent));
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	box-shadow: 0 8px 18px rgba(255, 95, 61, 0.25);
}

.site-branding__name {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.primary-navigation {
	flex: 1 1 auto;
}

.primary-menu,
.primary-menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 6px;
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a {
	display: block;
	padding: 25px 15px 22px;
	border-bottom: 3px solid transparent;
	font-weight: 650;
}

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li > a:hover {
	border-color: var(--qf-accent);
	color: var(--qf-accent);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% + 1px);
	left: 0;
	z-index: 20;
	min-width: 190px;
	padding: 10px;
	border: 1px solid var(--qf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--qf-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: 160ms ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
}

.primary-menu .sub-menu a:hover {
	background: #fff3ef;
}

.header-search-link {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid var(--qf-line);
	border-radius: 50%;
}

.header-search-link svg {
	width: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	border: 1px solid var(--qf-line);
	border-radius: 10px;
	background: #fff;
}

.menu-toggle > span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: var(--qf-ink);
}

.qf-hero {
	position: relative;
	display: grid;
	min-height: 470px;
	place-items: center;
	background:
		radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.35), transparent 28%),
		radial-gradient(circle at 85% 35%, rgba(255, 95, 61, 0.35), transparent 32%),
		linear-gradient(130deg, #10213f, #1e3a5f 55%, #132138);
	background-position: center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}

.qf-hero::after {
	position: absolute;
	inset: auto -5% -170px;
	height: 250px;
	border-radius: 50%;
	background: var(--qf-canvas);
	content: "";
}

.qf-hero__inner {
	position: relative;
	z-index: 1;
	padding: 80px 0 110px;
	text-align: center;
}

.qf-eyebrow,
.qf-section-heading span {
	margin: 0 0 8px;
	color: var(--qf-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.qf-hero h1 {
	margin: 0;
	font-size: clamp(38px, 6vw, 68px);
	line-height: 1.12;
	letter-spacing: -0.05em;
}

.qf-hero__inner > p:not(.qf-eyebrow) {
	margin: 14px 0 28px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 19px;
}

.qf-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px auto;
	width: min(820px, 100%);
	margin: 0 auto;
	padding: 6px;
	border: 1px solid var(--qf-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(4, 14, 32, 0.2);
}

.qf-search-form input,
.qf-search-form select {
	min-width: 0;
	height: 50px;
	padding: 0 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--qf-text);
}

.qf-search-form select {
	border-left: 1px solid var(--qf-line);
}

.qf-search-form button,
.qf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 10px;
	background: var(--qf-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.qf-category-strip {
	position: relative;
	z-index: 2;
	padding: 16px 0 28px;
}

.qf-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.qf-section-heading--compact {
	margin-bottom: 16px;
}

.qf-section-heading h2,
.qf-archive-header h1 {
	margin: 0;
	color: var(--qf-ink);
	font-size: clamp(27px, 4vw, 38px);
	line-height: 1.25;
	letter-spacing: -0.035em;
}

.qf-section-heading p {
	margin: 0;
	color: var(--qf-muted);
}

.qf-category-list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	scrollbar-width: thin;
}

.qf-category-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	padding: 11px 16px;
	border: 1px solid var(--qf-line);
	border-radius: 12px;
	background: #fff;
	font-weight: 650;
}

.qf-category-list small {
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 20px;
	background: #fff1ec;
	color: var(--qf-accent);
}

.qf-ad-wrap {
	margin-top: 12px;
	margin-bottom: 36px;
}

.qf-top-ad {
	padding: 14px 0;
	border-bottom: 1px solid var(--qf-line);
	background: #fff;
}

.qf-top-ad .qf-ad-placeholder {
	min-height: 76px;
}

.qf-ad-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 92px;
	padding: 18px;
	border: 1px dashed #cbd2dc;
	border-radius: var(--qf-radius);
	background: rgba(255, 255, 255, 0.7);
	color: var(--qf-muted);
}

.qf-ad-placeholder small {
	font-size: 12px;
}

.qf-ad-placeholder--sidebar {
	flex-direction: column;
	min-height: 180px;
	text-align: center;
}

.qf-post-section,
.qf-listing {
	padding-top: 42px;
	padding-bottom: 80px;
}

.qf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.qf-card {
	min-width: 0;
	border: 1px solid rgba(20, 33, 61, 0.07);
	border-radius: var(--qf-radius);
	background: var(--qf-surface);
	box-shadow: 0 8px 25px rgba(20, 33, 61, 0.05);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.qf-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--qf-shadow);
}

.qf-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e9eef6;
}

.qf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.qf-card:hover .qf-card__media img {
	transform: scale(1.025);
}

.qf-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, #dce7f7, #f9e6df);
	color: #6a7890;
	font-size: 24px;
	font-weight: 800;
}

.qf-card__body {
	padding: 20px;
}

.qf-card__category {
	min-height: 24px;
	font-size: 13px;
	font-weight: 700;
}

.qf-card__category a {
	color: var(--qf-accent);
}

.qf-card__category a::before {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border: 2px solid currentColor;
	border-radius: 50%;
	content: "";
}

.qf-card__title {
	display: -webkit-box;
	min-height: 58px;
	margin: 8px 0;
	overflow: hidden;
	color: var(--qf-ink);
	font-size: 19px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.qf-card__excerpt {
	display: -webkit-box;
	min-height: 50px;
	margin: 8px 0 14px;
	overflow: hidden;
	color: var(--qf-muted);
	font-size: 14px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.qf-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--qf-line);
	color: var(--qf-muted);
	font-size: 12px;
}

.qf-archive-header {
	padding: 50px 0 34px;
	text-align: center;
}

.qf-archive-header > p,
.qf-archive-description {
	margin: 12px auto 0;
	color: var(--qf-muted);
}

.qf-archive-header .qf-search-form {
	margin-top: 24px;
	box-shadow: 0 8px 30px rgba(20, 33, 61, 0.08);
}

.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.nav-links .page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid var(--qf-line);
	border-radius: 10px;
	background: #fff;
}

.nav-links .current {
	border-color: var(--qf-accent);
	background: var(--qf-accent);
	color: #fff;
}

.qf-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 30px;
	padding-top: 48px;
	padding-bottom: 80px;
}

.qf-single-main,
.qf-sidebar-card,
.qf-sidebar .widget,
.qf-page-wrap .qf-article {
	border: 1px solid rgba(20, 33, 61, 0.07);
	border-radius: var(--qf-radius);
	background: #fff;
	box-shadow: 0 8px 25px rgba(20, 33, 61, 0.04);
}

.qf-article {
	padding: clamp(24px, 5vw, 54px);
}

.qf-article__categories a {
	color: var(--qf-accent);
	font-size: 14px;
	font-weight: 750;
}

.qf-article__header h1 {
	margin: 10px 0 14px;
	color: var(--qf-ink);
	font-size: clamp(30px, 4.5vw, 50px);
	line-height: 1.25;
	letter-spacing: -0.045em;
}

.qf-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: var(--qf-muted);
	font-size: 13px;
}

.qf-article__cover {
	margin: 30px 0;
	border-radius: 14px;
	overflow: hidden;
}

.qf-article__cover img {
	width: 100%;
}

.qf-article__content {
	color: #303b4d;
	font-size: 17px;
}

.qf-article__content > * {
	max-width: 100%;
}

.qf-article__content h1,
.qf-article__content h2,
.qf-article__content h3 {
	margin-top: 1.8em;
	color: var(--qf-ink);
	line-height: 1.35;
}

.qf-article__content h1,
.qf-article__content h2 {
	position: relative;
	padding-left: 16px;
	letter-spacing: -.02em;
}

.qf-article__content h1::before,
.qf-article__content h2::before {
	position: absolute;
	top: .13em;
	bottom: .13em;
	left: 0;
	width: 4px;
	border-radius: 4px;
	background: var(--qf-accent);
	content: "";
}

.qf-article__content h1 {
	font-size: clamp(27px, 3vw, 34px);
}

.qf-article__content h2 {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--qf-line);
	font-size: clamp(22px, 2.4vw, 27px);
}

.qf-article__content a {
	color: var(--qf-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.qf-article__content pre {
	position: relative;
	padding: 20px 22px;
	border: 1px solid #243047;
	border-left: 4px solid var(--qf-accent);
	border-radius: 12px;
	background: #111827;
	box-shadow: 0 10px 26px rgba(17, 24, 39, .12);
	color: #e8edf6;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 14px;
	line-height: 1.75;
	overflow-x: auto;
}

.qf-article__content pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

.qf-article__content :not(pre) > code {
	padding: .16em .42em;
	border: 1px solid #f1d4cc;
	border-radius: 5px;
	background: #fff3ef;
	color: #c94428;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: .9em;
}

.qf-article__content blockquote {
	margin-inline: 0;
	padding: 12px 20px;
	border-left: 4px solid var(--qf-accent);
	background: #fff5f1;
}

.qf-sidebar {
	position: sticky;
	top: 106px;
	display: grid;
	gap: 20px;
}

.qf-jump-downloads {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 0 20px;
	border-radius: 12px;
	background: var(--qf-accent);
	box-shadow: 0 10px 24px rgba(255, 95, 61, .2);
	color: #fff;
	font-weight: 750;
}

.qf-jump-downloads:hover,
.qf-jump-downloads:focus-visible {
	background: #e84d2e;
	color: #fff;
}

.qf-jump-downloads span {
	font-size: 19px;
}

.admin-bar .qf-sidebar {
	top: 138px;
}

.qf-sidebar-card,
.qf-sidebar .widget {
	padding: 22px;
}

.qf-sidebar h2,
.widget-title {
	margin: 0 0 16px;
	color: var(--qf-ink);
	font-size: 18px;
}

.qf-sidebar .qf-search-form {
	grid-template-columns: 1fr auto;
	padding: 4px;
	box-shadow: none;
}

.qf-sidebar .qf-search-form select {
	display: none;
}

.qf-sidebar .qf-search-form input {
	height: 42px;
	padding: 0 10px;
}

.qf-sidebar .qf-search-form button {
	min-height: 42px;
	padding: 0 14px;
}

.qf-sidebar .wp-block-search__label {
	display: block;
	margin-bottom: 12px;
	color: var(--qf-ink);
	font-size: 18px;
	font-weight: 700;
}

.qf-sidebar .wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	gap: 8px;
	padding: 0;
	border: 0;
}

.qf-sidebar .wp-block-search__input {
	min-width: 0;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--qf-line);
	border-radius: 8px;
	outline: 0;
}

.qf-sidebar .wp-block-search__input:focus {
	border-color: var(--qf-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--qf-accent) 16%, transparent);
}

.qf-sidebar .wp-block-search__button {
	flex: 0 0 auto;
	min-width: 68px;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--qf-ink);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.qf-sidebar .wp-block-search__button:hover {
	background: var(--qf-accent);
}

.qf-sidebar .wp-block-heading {
	margin-top: 0;
	color: var(--qf-ink);
	font-size: 18px;
}

.qf-sidebar-categories,
.widget ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.qf-sidebar-categories li,
.widget li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--qf-line);
}

.qf-downloads {
	scroll-margin-top: 120px;
	margin-top: 42px;
	padding: 24px;
	border: 1px solid #ffd7ca;
	border-radius: 16px;
	background: #fffaf7;
}

.qf-downloads__heading {
	margin-bottom: 18px;
}

.qf-downloads__heading span {
	color: var(--qf-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.qf-downloads__heading h2 {
	margin: 2px 0 0;
	color: var(--qf-ink);
	font-size: 24px;
}

.qf-downloads__list {
	display: grid;
	gap: 12px;
}

.qf-download {
	display: grid;
	grid-template-columns: minmax(130px, 1fr) auto minmax(160px, auto);
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--qf-line);
	border-radius: 12px;
	background: #fff;
}

.qf-download__info {
	display: grid;
}

.qf-download__info strong {
	color: var(--qf-ink);
}

.qf-download__info span {
	color: var(--qf-muted);
	font-size: 12px;
}

.qf-download__button {
	padding: 10px 22px;
	border-radius: 8px;
	background: #222b3a;
	color: #fff;
	font-weight: 700;
}

.qf-download__button:hover {
	background: var(--qf-accent);
	color: #fff;
}

.qf-download__code {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--qf-muted);
}

.qf-download__code code {
	padding: 3px 7px;
	border: 1px dashed var(--qf-accent);
	background: transparent;
	color: var(--qf-ink);
	font: inherit;
	font-weight: 750;
}

.qf-download__code button {
	padding: 3px;
	border: 0;
	background: transparent;
	color: var(--qf-muted);
	text-decoration: underline;
	cursor: pointer;
}

.qf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px;
}

.qf-tags a {
	padding: 5px 10px;
	border-radius: 20px;
	background: #eef2f7;
	font-size: 13px;
}

.post-navigation {
	padding: 22px 30px;
	border-top: 1px solid var(--qf-line);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation a {
	display: grid;
}

.post-navigation span {
	color: var(--qf-muted);
	font-size: 12px;
}

.qf-comments {
	margin-top: 24px;
	padding: 30px;
	border-radius: var(--qf-radius);
	background: #fff;
}

.comment-list {
	padding-left: 22px;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--qf-line);
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--qf-line);
	border-radius: 8px;
}

.form-submit .submit {
	padding: 10px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--qf-accent);
	color: #fff;
}

.qf-page-wrap {
	padding-top: 48px;
	padding-bottom: 80px;
}

.qf-error-page,
.qf-empty {
	padding: 100px 0;
	text-align: center;
}

.qf-error-page .qf-search-form,
.qf-empty .qf-search-form {
	margin: 24px auto;
	box-shadow: 0 8px 30px rgba(20, 33, 61, 0.08);
}

.site-footer {
	padding: 64px 0 24px;
	background: #1d2027;
	color: #9da4b3;
	font-size: 14px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
	gap: 54px;
}

.site-footer__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-size: 19px;
}

.site-footer__brand-link:hover {
	color: #fff;
}

.site-footer__name {
	color: #fff;
	font-weight: 700;
}

.site-footer__name:hover {
	color: var(--qf-accent);
}

.site-footer__brand-link .custom-logo-link {
	display: block;
}

.site-footer__brand-link .custom-logo {
	display: block;
	width: 62px;
	height: 62px;
	border-radius: 16px;
	object-fit: cover;
}

.site-footer__mark {
	display: grid;
	width: 62px;
	height: 62px;
	place-items: center;
	border-radius: 16px;
	background: var(--qf-accent);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--qf-accent) 26%, transparent);
	color: #fff;
	font-size: 28px;
	font-weight: 800;
}

.site-footer__brand p {
	max-width: 310px;
	margin: 20px 0 0;
	line-height: 1.8;
}

.site-footer__column h2 {
	margin: 3px 0 18px;
	color: #fff;
	font-size: 17px;
}

.footer-menu {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	padding: 0;
	border: 0;
}

.footer-menu a {
	color: #aeb4c0;
}

.footer-menu a:hover {
	color: var(--qf-accent);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 12px;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 980px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.qf-single-layout {
		grid-template-columns: 1fr;
	}

	.qf-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qf-ad-placeholder--sidebar {
		min-height: 160px;
	}
}

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

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

	.site-branding {
		margin-right: auto;
	}

	.site-branding__name {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		padding: 10px 20px 18px;
		border-top: 1px solid var(--qf-line);
		background: #fff;
		box-shadow: 0 14px 30px rgba(20, 33, 61, 0.08);
		display: none;
	}

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

	.primary-menu {
		display: block;
	}

	.primary-menu > li > a {
		padding: 10px 8px;
		border-bottom-width: 1px;
	}

	.primary-menu .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 18px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.qf-hero {
		min-height: 410px;
	}

	.qf-search-form {
		grid-template-columns: 1fr auto;
	}

	.qf-search-form select {
		grid-column: 1 / -1;
		grid-row: 2;
		border-top: 1px solid var(--qf-line);
		border-left: 0;
	}

	.qf-download {
		grid-template-columns: 1fr auto;
	}

	.qf-download__code {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.qf-container {
		width: min(100% - 24px, 1240px);
	}

	.qf-grid,
	.qf-sidebar {
		grid-template-columns: 1fr;
	}

	.qf-hero__inner {
		padding-top: 58px;
	}

	.qf-section-heading {
		align-items: start;
		flex-direction: column;
	}

	.qf-card__title,
	.qf-card__excerpt {
		min-height: 0;
	}

	.qf-single-layout {
		width: 100%;
		padding-top: 0;
	}

	.qf-single-main {
		border-radius: 0;
	}

	.qf-article {
		padding: 24px 18px;
	}

	.qf-sidebar {
		width: calc(100% - 24px);
		margin-inline: auto;
	}

	.qf-download {
		grid-template-columns: 1fr;
	}

	.qf-download__button,
	.qf-download__code {
		grid-column: auto;
	}

	.qf-download__button {
		text-align: center;
	}

	.site-footer {
		padding-top: 44px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 36px;
	}
}

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