/*
Theme Name: ColeMatch Caronas Blog
Theme URI: https://colematch.com.br/blog/
Author: ColeMatch Caronas
Author URI: https://colematch.com.br
Description: Tema oficial, responsivo e acessível para o blog do ColeMatch Caronas.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: colematch-caronas-blog
*/

:root {
	--cm-navy: #062e61;
	--cm-deep: #021e42;
	--cm-blue: #087cf0;
	--cm-green: #009d67;
	--cm-ink: #0a315f;
	--cm-muted: #60728b;
	--cm-line: #dce6ef;
	--cm-soft: #f6f9fc;
	--cm-white: #ffffff;
	--cm-yellow: #ffc41c;
	--cm-shadow: 0 14px 38px rgba(7, 45, 86, 0.11);
	--cm-radius: 18px;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	color: var(--cm-ink);
	font-synthesis: none;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	min-width: 320px;
	overflow-x: hidden;
	background: var(--cm-white);
	color: var(--cm-ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body.menu-is-open {
	overflow: hidden;
}

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

a {
	color: var(--cm-blue);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--cm-green);
}

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

figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--cm-deep);
	font-weight: 850;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.cm-shell {
	width: min(1240px, calc(100% - 64px));
	margin-inline: auto;
}

.section {
	padding: 70px 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	border-radius: 8px;
	background: var(--cm-white);
	padding: 12px 18px;
	color: var(--cm-deep);
	font-weight: 800;
	box-shadow: var(--cm-shadow);
}

:focus-visible {
	outline: 3px solid rgba(8, 124, 240, 0.4);
	outline-offset: 3px;
}

/* Header */
.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid #e7edf3;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px);
}

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

.site-brand {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 10px;
	color: var(--cm-deep);
	text-decoration: none;
}

.site-brand > img {
	width: 68px;
	height: 52px;
	object-fit: contain;
}

.site-brand__copy {
	display: grid;
	line-height: 1;
}

.site-brand__copy strong {
	font-size: 24px;
	letter-spacing: -1px;
}

.site-brand__copy strong span {
	color: var(--cm-green);
}

.site-brand__copy small {
	margin-top: 6px;
	color: var(--cm-deep);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 3.2px;
}

.site-brand__custom-logo .custom-logo-link {
	display: flex;
}

.site-brand__custom-logo img {
	width: auto;
	max-width: 230px;
	height: 58px;
	object-fit: contain;
}

.site-navigation {
	display: flex;
	margin-left: auto;
	align-items: center;
	gap: 20px;
}

.primary-menu,
.primary-menu ul {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 28px;
	list-style: none;
}

.primary-menu li {
	position: relative;
}

.primary-menu a,
.header-login {
	color: var(--cm-deep);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.header-login:hover {
	color: var(--cm-green);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: -16px;
	display: none;
	min-width: 210px;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--cm-line);
	border-radius: 12px;
	background: var(--cm-white);
	padding: 8px;
	box-shadow: var(--cm-shadow);
}

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

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: grid;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 8px;
	cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
	display: block;
	width: 25px;
	height: 2px;
	margin: 5px auto;
	border-radius: 2px;
	background: var(--cm-navy);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Buttons and forms */
.button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 9px;
	padding: 0 22px;
	font-weight: 850;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary {
	background: var(--cm-green);
	color: var(--cm-white);
	box-shadow: 0 8px 20px rgba(0, 157, 103, 0.22);
}

.button--primary:hover {
	background: #007f54;
	color: var(--cm-white);
}

.button--light {
	border-color: rgba(255, 255, 255, 0.65);
	background: var(--cm-white);
	color: var(--cm-navy);
}

.button--light:hover {
	background: #eef7ff;
	color: var(--cm-blue);
}

.search-form {
	display: flex;
	width: min(100%, 390px);
	gap: 8px;
}

.search-form label {
	min-width: 0;
	flex: 1;
}

.search-field {
	width: 100%;
	height: 48px;
	border: 1px solid var(--cm-line);
	border-radius: 10px;
	background: var(--cm-white);
	padding: 0 14px;
	color: var(--cm-deep);
	outline: none;
}

.search-field:focus {
	border-color: var(--cm-blue);
	box-shadow: 0 0 0 4px rgba(8, 124, 240, 0.11);
}

.search-submit {
	position: relative;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border: 0;
	border-radius: 10px;
	background: var(--cm-blue);
	cursor: pointer;
}

.search-submit span {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 16px;
	height: 16px;
	border: 2px solid var(--cm-white);
	border-radius: 50%;
}

.search-submit span::after {
	position: absolute;
	right: -6px;
	bottom: -4px;
	width: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--cm-white);
	content: "";
	transform: rotate(45deg);
}

/* Blog home */
.blog-hero {
	background: linear-gradient(120deg, var(--cm-deep), var(--cm-navy));
	color: var(--cm-white);
}

.blog-hero__inner {
	min-height: 420px;
	padding-block: 68px;
}

.blog-hero__copy {
	max-width: 920px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cm-green);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.blog-hero .eyebrow {
	color: #55e3ae;
}

.eyebrow::before {
	width: 24px;
	height: 3px;
	border-radius: 3px;
	background: currentColor;
	content: "";
}

.blog-hero h1 {
	max-width: 760px;
	margin: 16px 0 18px;
	color: var(--cm-white);
	font-size: clamp(2.5rem, 5.5vw, 4.8rem);
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.blog-hero p {
	max-width: 650px;
	margin: 0;
	color: #d7e6f5;
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.5;
}

.hero-actions {
	display: flex;
	margin-top: 30px;
	flex-wrap: wrap;
	gap: 12px;
}

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

.section-heading--bordered {
	border-bottom: 1px solid var(--cm-line);
	padding-bottom: 18px;
}

.section-heading h2,
.page-heading h1 {
	margin: 7px 0 0;
	font-size: clamp(2rem, 3.5vw, 3rem);
}

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

.post-card {
	overflow: hidden;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	background: var(--cm-white);
	box-shadow: 0 8px 24px rgba(7, 45, 86, 0.07);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #dcefff, #dcf8ed);
	text-decoration: none;
}

.post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.035);
}

.post-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background:
		radial-gradient(circle at 75% 25%, rgba(255, 196, 28, 0.48), transparent 5rem),
		linear-gradient(135deg, var(--cm-navy), var(--cm-blue));
	color: var(--cm-white);
	font-size: 1.2rem;
	font-weight: 900;
}

.post-card__body {
	display: grid;
	gap: 12px;
	padding: 24px;
}

.post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--cm-muted);
	font-size: 12px;
	font-weight: 750;
}

.category-chip {
	display: inline-flex;
	border-radius: 999px;
	background: #e9f4ff;
	padding: 5px 10px;
	color: var(--cm-blue);
	font-size: 11px;
	font-weight: 900;
	text-decoration: none;
	text-transform: uppercase;
}

.post-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.post-card__title a {
	color: var(--cm-deep);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--cm-blue);
}

.post-card__excerpt,
.post-card__excerpt p {
	margin: 0;
	color: var(--cm-muted);
}

.text-link {
	justify-self: start;
	color: var(--cm-blue);
	font-weight: 850;
	text-decoration: none;
}

.content-layout,
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	align-items: start;
	gap: 42px;
}

.content-column {
	min-width: 0;
}

/* Sidebar */
.sidebar {
	display: grid;
	gap: 20px;
}

.widget-card,
.app-card {
	border: 1px solid var(--cm-line);
	border-radius: 16px;
	background: var(--cm-white);
	padding: 22px;
}

.widget-card h2,
.app-card h2 {
	margin: 0 0 16px;
	font-size: 1.1rem;
}

.widget-card .search-form {
	width: 100%;
}

.recent-list,
.category-list,
.footer-menu {
	display: grid;
	margin: 0;
	padding: 0;
	gap: 12px;
	list-style: none;
}

.recent-list li {
	display: grid;
	gap: 4px;
	border-bottom: 1px solid var(--cm-line);
	padding-bottom: 12px;
}

.recent-list li:last-child {
	border: 0;
	padding-bottom: 0;
}

.recent-list a,
.category-list a {
	color: var(--cm-ink);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.4;
	text-decoration: none;
}

.recent-list time {
	color: var(--cm-muted);
	font-size: 11px;
}

.category-list li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--cm-muted);
	font-size: 12px;
}

.app-card {
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 0, rgba(255, 196, 28, 0.26), transparent 8rem),
		linear-gradient(145deg, var(--cm-navy), var(--cm-deep));
	color: var(--cm-white);
}

.app-card img {
	width: 90px;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25));
}

.app-card h2 {
	margin-top: 12px;
	color: var(--cm-white);
}

.app-card p {
	color: #d7e6f5;
}

.app-card .button {
	width: 100%;
}

/* Archives and search */
.archive-hero {
	border-bottom: 1px solid var(--cm-line);
	background: linear-gradient(135deg, #f4f9fd, #eef9f6);
	padding: 62px 0;
}

.archive-hero h1 {
	margin: 8px 0 10px;
	font-size: clamp(2.3rem, 5vw, 4rem);
}

.archive-description {
	max-width: 720px;
	color: var(--cm-muted);
	font-size: 1.05rem;
}

.archive-description p {
	margin: 0;
}

.archive-hero .search-form {
	margin-top: 22px;
}

.pagination {
	margin-top: 36px;
}

.pagination .page-numbers {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--cm-line);
	border-radius: 9px;
	background: var(--cm-white);
	padding-inline: 12px;
	color: var(--cm-navy);
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
}

.pagination .current,
.pagination a:hover {
	border-color: var(--cm-blue);
	background: var(--cm-blue);
	color: var(--cm-white);
}

.empty-state {
	display: grid;
	place-items: center;
	border: 1px dashed #b9c9d8;
	border-radius: var(--cm-radius);
	background: var(--cm-soft);
	padding: 54px 30px;
	text-align: center;
}

.empty-state__icon {
	font-size: 2.5rem;
}

.empty-state h2 {
	margin: 12px 0 6px;
}

.empty-state p {
	max-width: 570px;
	margin: 0 0 22px;
	color: var(--cm-muted);
}

/* Single article and pages */
.single-header {
	background: linear-gradient(135deg, #f5f9fc, #eef9f5);
	padding: 72px 0 52px;
}

.single-header__inner {
	max-width: 960px;
}

.single-header h1 {
	margin: 16px 0;
	font-size: clamp(2.5rem, 5.7vw, 5rem);
	letter-spacing: -0.05em;
	line-height: 1.02;
}

.single-deck {
	max-width: 780px;
	margin: 0;
	color: var(--cm-muted);
	font-size: 1.22rem;
}

.single-featured {
	overflow: hidden;
	margin-top: 42px;
	border-radius: 22px;
	background: var(--cm-soft);
}

.single-featured img {
	display: block;
	width: 100%;
	max-height: 650px;
	object-fit: cover;
}

.single-layout {
	padding-top: 55px;
	padding-bottom: 80px;
}

.single-content {
	min-width: 0;
	max-width: none;
	border-right: 1px solid var(--cm-line);
	padding-right: clamp(24px, 3vw, 42px);
	color: #173d68;
	font-size: 1.08rem;
	line-height: 1.84;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: 1.5rem;
}

.entry-content a {
	font-weight: 700;
}

.entry-content blockquote {
	margin: 2em 0;
	border-left: 5px solid var(--cm-green);
	border-radius: 0 12px 12px 0;
	background: #effaf6;
	padding: 20px 26px;
	color: var(--cm-navy);
	font-size: 1.14rem;
}

.entry-content img {
	border-radius: 12px;
}

.single-content .wp-block-image:not(.alignleft):not(.alignright) {
	display: grid;
	justify-items: center;
}

.single-content .wp-block-image:not(.alignleft):not(.alignright) img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

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

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

.entry-content th {
	background: var(--cm-soft);
}

.alignwide {
	width: min(1120px, 100vw - 40px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 6px;
	color: var(--cm-muted);
	font-size: 0.82rem;
	text-align: center;
}

.single-taxonomy {
	display: grid;
	margin-top: 38px;
	border-top: 1px solid var(--cm-line);
	padding-top: 20px;
	gap: 8px;
	color: var(--cm-muted);
	font-size: 14px;
}

.article-editorial {
	margin-top: 46px;
	border-top: 4px solid var(--cm-green);
	border-radius: var(--cm-radius);
	background: var(--cm-soft);
	padding: 28px;
}

.article-editorial > h2 {
	margin: 0 0 20px;
	font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.article-editorial ol {
	margin: 0;
	padding-left: 1.55rem;
}

.article-related li {
	padding: 9px 0;
	color: var(--cm-green);
	font-weight: 850;
}

.article-related li + li {
	border-top: 1px solid var(--cm-line);
}

.article-related a {
	color: var(--cm-navy);
	text-decoration: none;
}

.article-related a:hover {
	color: var(--cm-blue);
	text-decoration: underline;
}

.article-faq {
	border-top-color: var(--cm-blue);
	background: var(--cm-white);
	box-shadow: 0 8px 26px rgba(7, 45, 86, 0.08);
}

.article-faq li {
	padding: 10px 0 14px 8px;
}

.article-faq li::marker {
	color: var(--cm-green);
	font-weight: 900;
}

.article-faq li + li {
	border-top: 1px solid var(--cm-line);
}

.article-faq h3 {
	margin: 0 0 7px;
	font-size: 1.18rem;
}

.article-faq__answer,
.article-faq__answer p:last-child {
	margin-bottom: 0;
}

.article-cta {
	display: flex;
	margin-top: 42px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-radius: var(--cm-radius);
	background: linear-gradient(135deg, #e7f4ff, #e3f9f0);
	padding: 28px;
}

.article-cta h2 {
	margin: 6px 0;
	font-size: 1.55rem;
}

.article-cta p {
	margin: 0;
	color: var(--cm-muted);
}

.article-cta__actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 8px;
}

.article-cta__secondary {
	border-color: var(--cm-blue);
	background: var(--cm-white);
	color: var(--cm-blue);
}

.article-cta__secondary:hover {
	background: #eef7ff;
	color: var(--cm-navy);
}

.post-navigation {
	margin-top: 42px;
	border-top: 1px solid var(--cm-line);
	padding-top: 24px;
}

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

.post-navigation a {
	display: grid;
	border: 1px solid var(--cm-line);
	border-radius: 12px;
	padding: 18px;
	color: var(--cm-ink);
	text-decoration: none;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation span {
	color: var(--cm-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.post-navigation strong {
	line-height: 1.35;
}

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

.narrow-content {
	max-width: 900px;
}

.page-heading {
	margin-bottom: 30px;
}

.page-featured {
	overflow: hidden;
	margin-bottom: 35px;
	border-radius: 18px;
}

.page-article .entry-content {
	font-size: 1.06rem;
	line-height: 1.8;
}

/* 404 */
.not-found-page {
	display: grid;
	min-height: 68vh;
	place-items: center;
	background: linear-gradient(135deg, #f5f9fc, #eef9f5);
	padding: 70px 0;
}

.not-found-card {
	display: grid;
	max-width: 760px;
	place-items: center;
	border: 1px solid var(--cm-line);
	border-radius: 24px;
	background: var(--cm-white);
	padding: 54px;
	text-align: center;
	box-shadow: var(--cm-shadow);
}

.error-code {
	color: var(--cm-blue);
	font-size: clamp(4rem, 13vw, 8rem);
	font-weight: 950;
	letter-spacing: -0.08em;
	line-height: 0.9;
}

.not-found-card h1 {
	margin: 14px 0 8px;
	font-size: clamp(2rem, 4vw, 3rem);
}

.not-found-card p {
	max-width: 560px;
	margin: 0 0 22px;
	color: var(--cm-muted);
}

.not-found-card .search-form {
	margin-bottom: 18px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--cm-line);
	background: var(--cm-white);
	padding: 46px 0 18px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 48px;
}

.footer-brand p {
	margin: 10px 0 0;
	color: var(--cm-muted);
}

.footer-grid > div:not(.footer-brand) {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-grid h2 {
	margin: 6px 0;
	font-size: 14px;
}

.footer-grid a,
.footer-grid li {
	color: #46617c;
	font-size: 13px;
	text-decoration: none;
}

.footer-grid a:hover {
	color: var(--cm-green);
}

.footer-bottom {
	display: flex;
	margin-top: 34px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid var(--cm-line);
	padding-top: 16px;
	color: #73849a;
	font-size: 11px;
}

.footer-bottom a {
	font-weight: 750;
	text-decoration: none;
}

/* WordPress utility classes */
.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

.gallery-caption {
	color: var(--cm-muted);
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

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

@media (max-width: 1080px) {
	.cm-shell {
		width: min(100% - 40px, 1240px);
	}

	.primary-menu,
	.primary-menu ul {
		gap: 16px;
	}

	.header-signup {
		display: none;
	}

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

@media (max-width: 900px) {
	.site-header__inner {
		min-height: 72px;
	}

	.menu-toggle {
		display: block;
		margin-left: auto;
	}

	.site-navigation {
		position: fixed;
		top: 72px;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - 72px);
		margin: 0;
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		overflow-y: auto;
		border-top: 1px solid var(--cm-line);
		background: var(--cm-white);
		padding: 18px 24px 24px;
		box-shadow: 0 16px 30px rgba(2, 30, 66, 0.14);
	}

	.site-navigation.is-open {
		display: flex;
	}

	.primary-menu,
	.primary-menu ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.primary-menu a,
	.header-login {
		display: block;
		border-bottom: 1px solid var(--cm-line);
		padding: 12px 4px;
	}

	.primary-menu .sub-menu {
		position: static;
		display: grid;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 16px;
	}

	.header-signup {
		display: inline-flex;
		width: 100%;
	}

	.blog-hero__inner {
		min-height: 0;
		padding-block: 62px;
	}

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

	.single-content {
		border-right: 0;
		padding-right: 0;
	}

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

	.sidebar .app-card {
		grid-column: 1 / -1;
	}

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

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.cm-shell {
		width: min(100% - 24px, 1240px);
	}

	.section {
		padding: 48px 0;
	}

	.site-brand > img {
		width: 56px;
		height: 44px;
	}

	.site-brand__copy strong {
		font-size: 20px;
	}

	.site-brand__copy small {
		font-size: 8px;
		letter-spacing: 2.5px;
	}

	.blog-hero h1 {
		font-size: clamp(2.45rem, 13vw, 3.7rem);
	}

	.blog-hero p {
		font-size: 1.04rem;
	}

	.hero-actions,
	.hero-actions .button {
		width: 100%;
	}

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

	.section-heading .search-form {
		width: 100%;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

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

	.sidebar .app-card {
		grid-column: auto;
	}

	.single-header {
		padding: 52px 0 36px;
	}

	.single-header h1 {
		font-size: clamp(2.3rem, 12vw, 3.5rem);
	}

	.single-featured {
		margin-top: 24px;
		border-radius: 12px;
	}

	.single-layout {
		padding-top: 36px;
	}

	.article-cta {
		align-items: stretch;
		flex-direction: column;
	}

	.article-editorial {
		padding: 22px 18px;
	}

	.article-cta__actions,
	.article-cta__actions .button {
		width: 100%;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.footer-brand {
		grid-column: auto;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.not-found-card {
		padding: 38px 20px;
	}

	.alignwide,
	.alignfull {
		width: 100%;
		margin-left: 0;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
