/*
Theme Name:   Helmet Today
Theme URI:    https://helmettoday.com/
Description:  Modern, responsive redesign of Helmet Today. Child theme for Astra.
Author:       Helmet Today
Template:     astra
Version:      1.4.1
Requires at least: 6.0
Text Domain:  helmet-today
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--ht-bg: #f3f5f6;
	--ht-surface: #ffffff;
	--ht-ink: #14212b;
	--ht-muted: #5a6873;
	--ht-line: #dde3e7;
	--ht-accent: #f2a900;
	--ht-accent-ink: #1a1400;
	--ht-chip-bg: #fff4d6;
	--ht-chip-ink: #6b4a00;
	--ht-shell: #1d3a4d;
	--ht-shell-2: #2c566f;
	--ht-link: #1f5e86;
	--ht-display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ht-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ht-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
	--ht-radius: 14px;
	--ht-gutter: clamp(16px, 3vw, 24px);
}

/* =========================================================
   Base
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
body,
.ast-separate-container,
.ast-plain-container { background: var(--ht-bg); }
body { overflow-x: hidden; }
body, button, input, select, textarea { font-family: var(--ht-display); color: var(--ht-ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ht-display); color: var(--ht-ink); letter-spacing: -0.01em; text-wrap: balance; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--ht-accent);
	outline-offset: 3px;
}
.ast-container { padding-left: var(--ht-gutter); padding-right: var(--ht-gutter); }

/* =========================================================
   Header (Astra header builder)
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 99; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; position: relative; } }

.site-header .ast-primary-header-bar,
.site-header .main-header-bar,
.site-header .ast-above-header-bar,
.site-header .ast-below-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background: rgba(243, 245, 246, 0.94) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ht-line);
}
.site-header .ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row { min-height: 72px !important; }
.site-header .ast-primary-header-bar { padding-block: 0 !important; }
@media (max-width: 921px) {
	.site-header .ast-primary-header-bar .site-primary-header-wrap,
	.ast-primary-header-bar .ast-builder-grid-row { min-height: 60px !important; }
}

.site-title { font-size: clamp(19px, 2.2vw, 24px) !important; line-height: 1 !important; margin: 0 !important; }
.site-title a,
.site-title a:hover {
	font-size: inherit !important;
	font-family: var(--ht-display);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--ht-ink) !important;
}
.custom-logo-link img { max-height: 44px; width: auto; }

.main-header-menu .menu-item > .menu-link,
.ast-builder-menu .menu-item > .menu-link {
	font-family: var(--ht-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--ht-muted);
}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link { color: var(--ht-ink); }
.ast-desktop .main-header-menu .current-menu-item > .menu-link { box-shadow: inset 0 -2px 0 var(--ht-accent); }
.ast-desktop .main-header-menu .sub-menu {
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(20, 33, 43, 0.12);
	padding: 6px 0;
}

/* Mobile menu */
.ast-mobile-header-wrap .menu-toggle,
.ast-button-wrap .menu-toggle.main-header-menu-toggle {
	background: var(--ht-ink) !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 8px 10px !important;
}
.ast-mobile-header-wrap .menu-toggle .ast-mobile-svg { fill: #fff !important; }
.ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
	background: var(--ht-surface) !important;
	border-bottom: 1px solid var(--ht-line);
}
.ast-mobile-header-content .main-header-menu .menu-link,
.ast-mobile-popup-drawer .main-header-menu .menu-link {
	padding-block: 14px !important;
	font-size: 16px;
	color: var(--ht-ink);
	border-color: var(--ht-line) !important;
}

/* =========================================================
   Shared pieces
   ========================================================= */
.ht-home, .ht-article, .ht-page {
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
	padding-block: clamp(20px, 4vw, 36px) 24px;
}
.ht-home a, .ht-article a:not(.entry-content a), .ht-page .ht-crumbs a { text-decoration: none; }

.ht-helmet { display: block; }
.ht-helmet .ht-line { stroke: currentColor; }
.ht-helmet .ht-visor { fill: var(--ht-accent); }

.ht-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font: 500 11px/1 var(--ht-mono);
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--ht-muted);
}
.ht-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ht-accent); }
.ht-meta {
	font: 500 11px/1.3 var(--ht-mono);
	letter-spacing: 0.05em; text-transform: uppercase;
	color: var(--ht-muted);
}
.ht-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ht-chip {
	display: inline-block;
	padding: 5px 9px;
	border-radius: 6px;
	background: var(--ht-chip-bg);
	color: var(--ht-chip-ink) !important;
	font: 600 11px/1 var(--ht-mono);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
a.ht-chip:hover { background: var(--ht-accent); color: var(--ht-accent-ink) !important; }
.ht-avatar {
	flex: none;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ht-shell); color: #fff;
	font-weight: 800; font-size: 14px;
}
.ht-read {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 18px;
	border-radius: 8px;
	background: var(--ht-ink);
	color: #fff !important;
	font-weight: 700; font-size: 14px;
	white-space: nowrap;
	transition: background .15s;
}
.ht-read:hover { background: var(--ht-shell-2); }

.ht-sec-h {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	margin-bottom: 18px;
}
.ht-sec-h h2 {
	font: 800 13px/1 var(--ht-display);
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}
.ht-sec-h a { font-size: 13px; font-weight: 600; color: var(--ht-muted) !important; white-space: nowrap; }
.ht-sec-h a:hover { color: var(--ht-ink) !important; }

.ht-crumbs, .ht-crumbs .rank-math-breadcrumb p {
	display: flex; flex-wrap: wrap; gap: 6px;
	font-size: 13px; color: var(--ht-muted);
	margin: 0 0 18px;
}
.ht-crumbs a { color: var(--ht-muted); }
.ht-crumbs a:hover { color: var(--ht-ink); }
.ht-crumbs .is-current, .ht-crumbs .last { color: var(--ht-ink); }

/* Intro + category chips */
.ht-intro {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 18px 32px;
	padding-bottom: 22px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--ht-line);
}
.ht-intro > div { min-width: 0; max-width: 100%; }
.ht-intro h1 {
	font: 800 clamp(28px, 4vw, 42px)/1.05 var(--ht-display);
	font-stretch: 112%;
	letter-spacing: -0.02em;
	margin: 8px 0 8px;
}
.ht-intro p { margin: 0; color: var(--ht-muted); font-family: var(--ht-body); font-size: 16px; }
.ht-intro .ht-meta { font-family: var(--ht-mono); font-size: 11px; margin-top: 10px; }
.ht-archive-desc { font-family: var(--ht-body); color: var(--ht-muted); max-width: 62ch; }
.ht-archive-desc p { margin: 0 0 6px; }
.ht-chips {
	display: flex; gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: 100%;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
}
.ht-chips::-webkit-scrollbar { display: none; }
.ht-chips a {
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--ht-line);
	border-radius: 999px;
	background: var(--ht-surface);
	font-size: 13px; font-weight: 600;
	color: var(--ht-muted) !important;
	transition: border-color .15s, color .15s;
}
.ht-chips a:hover { border-color: var(--ht-ink); color: var(--ht-ink) !important; }
.ht-chips a.is-on { background: var(--ht-ink); border-color: var(--ht-ink); color: #fff !important; }

/* =========================================================
   Listing: lead post + card grid
   ========================================================= */
.ht-section { margin-bottom: clamp(40px, 6vw, 64px); }

.ht-lead {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 18px;
	overflow: hidden;
	margin-bottom: clamp(28px, 4vw, 40px);
}
.ht-lead-img {
	display: grid; place-items: center;
	min-height: 360px;
	background: linear-gradient(160deg, var(--ht-shell-2), var(--ht-shell));
	overflow: hidden;
}
.ht-lead-img .ht-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ht-lead:hover .ht-lead-img .ht-img { transform: scale(1.03); }
.ht-lead-img .ht-placeholder { width: 50%; color: rgba(255, 255, 255, .6); }
.ht-lead-body {
	display: flex; flex-direction: column; justify-content: center; gap: 16px;
	padding: clamp(20px, 3.5vw, 40px);
	min-width: 0;
}
.ht-lead h2 { font: 800 clamp(22px, 3vw, 36px)/1.14 var(--ht-display); letter-spacing: -0.02em; margin: 0; }
.ht-lead h2 a { color: var(--ht-ink); }
.ht-lead h2 a:hover { color: var(--ht-link); }
.ht-lead p { font-family: var(--ht-body); font-size: 17px; line-height: 1.6; color: var(--ht-muted); margin: 0; }
.ht-author {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin-top: 8px; padding-top: 18px;
	border-top: 1px solid var(--ht-line);
	font-size: 13px; color: var(--ht-muted); line-height: 1.35;
}
.ht-author b { color: var(--ht-ink); }
.ht-author .ht-read { margin-left: auto; }

.ht-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.5vw, 40px) clamp(16px, 2.5vw, 28px);
}
.ht-card {
	display: flex; flex-direction: column; gap: 12px;
	min-width: 0;
}
.ht-thumb {
	display: grid; place-items: center;
	aspect-ratio: 16 / 10;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--ht-radius);
	background: linear-gradient(160deg, var(--ht-shell-2), var(--ht-shell));
	margin-bottom: 4px;
}
.ht-thumb .ht-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ht-card:hover .ht-thumb .ht-img { transform: scale(1.04); }
.ht-thumb .ht-placeholder { width: 46%; color: rgba(255, 255, 255, .6); }
.ht-card h3 { font: 700 clamp(18px, 1.6vw, 20px)/1.25 var(--ht-display); margin: 0; }
.ht-card h3 a { color: var(--ht-ink); }
.ht-card h3 a:hover { color: var(--ht-link); }
.ht-card p {
	font-family: var(--ht-body);
	font-size: 15.5px; line-height: 1.55;
	color: var(--ht-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ht-card-foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--ht-line);
	font-size: 13px; color: var(--ht-muted);
}
.ht-more {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--ht-ink);
	border-radius: 8px;
	color: var(--ht-ink) !important;
	font-weight: 700; font-size: 13px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.ht-more span { transition: transform .15s; }
.ht-more:hover { background: var(--ht-ink); color: #fff !important; }
.ht-more:hover span { transform: translateX(3px); }

/* Helmet types */
.ht-types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ht-type {
	display: flex; flex-direction: column; gap: 8px;
	padding: 18px;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	color: var(--ht-ink) !important;
	transition: border-color .15s, transform .15s;
}
.ht-type:hover { border-color: var(--ht-accent); transform: translateY(-2px); }
.ht-type .ht-helmet { width: 42px; height: 36px; margin-bottom: 4px; }
.ht-type b { font: 700 16px/1.2 var(--ht-display); }
.ht-type small { font-size: 12.5px; color: var(--ht-muted); }
.ht-count { font: 500 11px/1 var(--ht-mono); color: var(--ht-muted); margin-top: 6px; }

/* Guides */
.ht-guides {
	display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
	padding: clamp(22px, 3.5vw, 36px);
	margin-bottom: clamp(40px, 6vw, 56px);
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 18px;
}
.ht-guides-intro h2 { font: 800 clamp(24px, 3vw, 30px)/1.08 var(--ht-display); font-stretch: 115%; letter-spacing: -0.02em; margin: 10px 0 12px; }
.ht-guides-intro p { font-family: var(--ht-body); color: var(--ht-muted); margin: 0; max-width: 40ch; }
.ht-guides ul { list-style: none; margin: 0; padding: 0; }
.ht-guides li { margin: 0; }
.ht-guides li a {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding-block: 15px;
	border-top: 1px solid var(--ht-line);
	font: 600 16px/1.3 var(--ht-display);
	color: var(--ht-ink);
}
.ht-guides li:first-child a { border-top: 0; }
.ht-guides li a span:first-child { min-width: 0; }
.ht-guides li a span:last-child { color: var(--ht-muted); font: 500 11px/1 var(--ht-mono); white-space: nowrap; text-transform: uppercase; }
.ht-guides li a:hover span:first-child { color: var(--ht-link); }

/* Pagination */
.ht-pagination { margin-top: 40px; }
.ht-pagination .nav-links, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 14px;
	border: 1px solid var(--ht-line);
	border-radius: 8px;
	background: var(--ht-surface);
	color: var(--ht-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover { background: var(--ht-ink); border-color: var(--ht-ink); color: #fff; }
.nav-links .page-numbers.dots { border: 0; background: none; }

/* Empty, search, 404 */
.ht-empty, .ht-404 {
	display: flex; flex-direction: column; align-items: center; gap: 16px;
	text-align: center;
	padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 40px);
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 18px;
	margin-bottom: 48px;
}
.ht-empty h2, .ht-404 h1 { margin: 0; font: 800 clamp(26px, 4vw, 40px)/1.1 var(--ht-display); letter-spacing: -0.02em; }
.ht-empty p, .ht-404 p { margin: 0; font-family: var(--ht-body); color: var(--ht-muted); max-width: 52ch; }
.ht-404-art { width: 140px; color: var(--ht-ink); }
.ht-empty .ht-chips, .ht-404 .ht-chips { justify-content: center; flex-wrap: wrap; overflow: visible; }
.ht-search-box { width: 100%; max-width: 460px; }
.ht-search-box form, .ht-empty form { display: flex; gap: 8px; width: 100%; }
.ht-search-box label, .ht-empty form label { flex: 1; min-width: 0; margin: 0; }
.ht-search-box .search-field, .ht-empty .search-field {
	width: 100%;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--ht-line);
	border-radius: 10px;
	background: var(--ht-surface);
	font-size: 16px;
}
.ht-search-box .search-submit, .ht-empty .search-submit { height: 46px; padding: 0 18px; border-radius: 10px; }

/* =========================================================
   Single post
   ========================================================= */
.ht-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 100000; pointer-events: none; }
.ht-progress span { display: block; height: 100%; background: var(--ht-accent); transform-origin: 0 50%; transform: scaleX(0); }

.ht-article-head { max-width: 860px; margin: 0 auto 28px; }
.ht-article-head h1 {
	font: 800 clamp(28px, 4.6vw, 50px)/1.08 var(--ht-display);
	font-stretch: 106%;
	letter-spacing: -0.02em;
	margin: 16px 0 14px;
}
.ht-dek { font-family: var(--ht-body); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ht-muted); margin: 0 0 22px; max-width: 64ch; }
.ht-byline-row {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
	padding-block: 16px;
	border-block: 1px solid var(--ht-line);
}
.ht-byline-row img { border-radius: 50%; flex: none; }
.ht-byline-row > div { display: flex; flex-direction: column; min-width: 0; }
.ht-byline-name { font-weight: 700; color: var(--ht-ink) !important; }
.ht-byline-date { font-size: 13px; color: var(--ht-muted); }
.ht-byline-row .ht-share { margin-left: auto; }

.ht-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ht-share-label { font: 500 11px/1 var(--ht-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ht-muted); margin-right: 4px; }
.ht-share a, .ht-share button {
	padding: 7px 11px;
	border: 1px solid var(--ht-line);
	border-radius: 8px;
	background: var(--ht-surface);
	color: var(--ht-ink) !important;
	font: 600 12.5px/1 var(--ht-display);
	cursor: pointer;
}
.ht-share a:hover, .ht-share button:hover { border-color: var(--ht-ink); background: var(--ht-surface); color: var(--ht-ink) !important; }

.ht-hero-img { max-width: 1100px; margin: 0 auto clamp(28px, 4vw, 44px); }
.ht-hero-img img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 18px; }
.ht-hero-img--page { max-width: 860px; }

.ht-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(32px, 5vw, 64px);
	max-width: 1100px;
	margin: 0 auto;
	align-items: start;
}
.ht-article-body { min-width: 0; }
.ht-note {
	font-size: 13.5px; line-height: 1.5; color: var(--ht-muted);
	padding: 12px 14px;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 10px;
	margin: 0 0 28px;
}
.ht-note a { color: var(--ht-link); }

/* Article text */
.ht-prose {
	font-family: var(--ht-body);
	font-size: clamp(17px, 1.4vw, 18.5px);
	line-height: 1.75;
	color: var(--ht-ink);
	overflow-wrap: break-word;
}
.ht-prose > * { max-width: 72ch; }
.ht-prose > .wp-block-table, .ht-prose > figure, .ht-prose > .wp-block-image, .ht-prose > .alignwide, .ht-prose > .alignfull, .ht-prose > table, .ht-prose > div { max-width: 100%; }
.ht-prose p { margin: 0 0 1.25em; }
.ht-prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.ht-prose h3 { font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; line-height: 1.3; margin: 1.5em 0 .5em; scroll-margin-top: 100px; }
.ht-prose h4 { font-size: 18px; font-weight: 700; margin: 1.3em 0 .4em; }
.ht-prose ul, .ht-prose ol { margin: 0 0 1.25em 1.3em; padding: 0; }
.ht-prose li { margin-bottom: .45em; }
.ht-prose li::marker { color: var(--ht-accent); font-weight: 700; }
.ht-prose a {
	color: var(--ht-link);
	text-decoration: underline;
	text-decoration-color: var(--ht-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.ht-prose a:hover { color: var(--ht-ink); }
.ht-prose img { border-radius: 12px; }
.ht-prose figcaption { font-family: var(--ht-display); font-size: 13px; color: var(--ht-muted); text-align: center; margin-top: 8px; }
.ht-prose blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--ht-accent);
	background: var(--ht-surface);
	border-radius: 0 12px 12px 0;
	font-style: normal;
}
.ht-prose blockquote p:last-child { margin: 0; }
.ht-prose hr { border: 0; border-top: 1px solid var(--ht-line); margin: 2.4em 0; }
.ht-prose code { font-family: var(--ht-mono); font-size: .85em; background: var(--ht-surface); padding: 2px 6px; border-radius: 5px; }

/* Tables (spec + comparison tables) scroll sideways on small screens */
.ht-prose .wp-block-table, .ht-prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; }
.ht-prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--ht-display);
	font-size: 15px;
	line-height: 1.45;
	background: var(--ht-surface);
	border-radius: 12px;
	overflow: hidden;
}
.ht-prose > table { display: block; overflow-x: auto; }
.ht-prose th { background: var(--ht-shell); color: #fff; text-align: left; font-weight: 700; }
.ht-prose th, .ht-prose td { padding: 11px 14px; border: 1px solid var(--ht-line); vertical-align: top; }
.ht-prose tr:nth-child(even) td { background: var(--ht-bg); }

/* Buttons in content (affiliate "Check price" buttons etc.) */
.ht-prose .wp-block-button__link,
.ht-prose .button,
.ht-prose .aawp-button {
	display: inline-block;
	background: var(--ht-accent) !important;
	color: var(--ht-accent-ink) !important;
	border-radius: 8px;
	padding: 12px 22px;
	font-family: var(--ht-display);
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
}
.ht-prose .wp-block-button__link:hover,
.ht-prose .button:hover { background: var(--ht-ink) !important; color: #fff !important; }

/* Rank Math FAQ / HowTo blocks */
.ht-prose .rank-math-list-item, .ht-prose .schema-faq-section {
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
}
.ht-prose .rank-math-question, .ht-prose .schema-faq-question { font-family: var(--ht-display); font-size: 18px; margin: 0 0 6px; }

.ht-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.ht-tags a { padding: 6px 12px; border-radius: 999px; background: var(--ht-surface); border: 1px solid var(--ht-line); font-size: 13px; color: var(--ht-muted) !important; }
.ht-tags a:hover { color: var(--ht-ink) !important; border-color: var(--ht-ink); }

.ht-share-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 32px; padding: 18px 20px;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	font-weight: 600;
}

.ht-authorbox {
	display: flex; gap: 20px; align-items: flex-start;
	margin-top: 24px; padding: clamp(18px, 3vw, 26px);
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
}
.ht-authorbox img { border-radius: 50%; flex: none; }
.ht-authorbox h2 { font-size: 20px; margin: 6px 0 6px; }
.ht-authorbox h2 a { color: var(--ht-ink); }
.ht-authorbox p { margin: 0; font-family: var(--ht-body); color: var(--ht-muted); }

.ht-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.ht-postnav a {
	display: flex; flex-direction: column; gap: 6px;
	padding: 16px 18px;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	color: var(--ht-ink) !important;
	min-width: 0;
}
.ht-postnav a:hover { border-color: var(--ht-ink); }
.ht-postnav span { font: 500 11px/1 var(--ht-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ht-muted); }
.ht-postnav b { font-size: 15px; line-height: 1.35; }
.ht-postnav-next { grid-column: 2; text-align: right; }

/* Sidebar */
.ht-article-side { min-width: 0; }
.ht-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .ht-sticky { top: 132px; }
.ht-side-h {
	display: block;
	font: 800 12px/1 var(--ht-display);
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 12px;
}
.ht-toc, .ht-side-box {
	padding: 18px;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
}
.ht-toc ol { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.ht-toc li { margin: 0; }
.ht-toc a {
	display: block;
	padding: 7px 0 7px 12px;
	border-left: 2px solid var(--ht-line);
	font-size: 14px; line-height: 1.35;
	color: var(--ht-muted) !important;
}
.ht-toc a:hover { color: var(--ht-ink) !important; }
.ht-toc a.is-on { border-left-color: var(--ht-accent); color: var(--ht-ink) !important; font-weight: 600; }
.ht-side-list { list-style: none; margin: 0; padding: 0; }
.ht-side-list li { margin: 0; }
.ht-side-list a {
	display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
	padding-block: 10px;
	border-top: 1px solid var(--ht-line);
	font-size: 14px; font-weight: 600; line-height: 1.3;
	color: var(--ht-ink) !important;
}
.ht-side-list li:first-child a { border-top: 0; padding-top: 0; }
.ht-side-list a:hover span:last-child { color: var(--ht-link); }
.ht-side-thumb {
	display: grid; place-items: center;
	width: 56px; height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(160deg, var(--ht-shell-2), var(--ht-shell));
}
.ht-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ht-side-thumb .ht-placeholder { width: 70%; color: rgba(255, 255, 255, .6); }

.ht-related { max-width: 1100px; margin: clamp(48px, 7vw, 72px) auto 0; padding-top: 32px; border-top: 1px solid var(--ht-line); }

/* Comments */
.ht-comments { max-width: 1100px; margin: 48px auto 0; }
.ht-comments .comments-area { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; max-width: 760px; }
.ht-comments .comments-title, .ht-comments .comment-reply-title { font-size: 22px; font-weight: 800; }
.ht-comments .comment-respond,
.ht-comments .ast-comment {
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	padding: clamp(16px, 3vw, 24px) !important;
	margin-bottom: 14px;
}
.ht-comments .ast-comment-list { margin: 0 0 24px; padding: 0; }
.ht-comments textarea, .ht-comments input[type="text"], .ht-comments input[type="email"], .ht-comments input[type="url"] {
	width: 100%;
	border: 1px solid var(--ht-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	background: var(--ht-bg);
}

/* =========================================================
   Pages (About, Contact, policies)
   ========================================================= */
.ht-page-head { max-width: 860px; margin: 0 auto 28px; }
.ht-page-head h1 { font: 800 clamp(30px, 4.6vw, 48px)/1.08 var(--ht-display); font-stretch: 108%; letter-spacing: -0.02em; margin: 0 0 12px; }
.ht-page-card {
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(20px, 4.5vw, 52px);
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	border-radius: 18px;
}
.ht-page-card .ht-prose > *:last-child { margin-bottom: 0; }
.ht-page .ht-comments { max-width: 860px; }

/* Forms on pages (Contact Form 7, WPForms, etc.) */
.ht-prose input[type="text"], .ht-prose input[type="email"], .ht-prose input[type="tel"],
.ht-prose input[type="url"], .ht-prose select, .ht-prose textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ht-line);
	border-radius: 10px;
	background: var(--ht-bg);
	font-family: var(--ht-display);
	font-size: 16px;
	color: var(--ht-ink);
}
.ht-prose input:focus, .ht-prose textarea:focus, .ht-prose select:focus { border-color: var(--ht-ink); outline: none; }
.ht-prose input[type="submit"], .ht-prose button[type="submit"], .ht-prose .wpforms-submit {
	background: var(--ht-ink) !important;
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	padding: 13px 24px;
	font-family: var(--ht-display);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.ht-prose input[type="submit"]:hover, .ht-prose button[type="submit"]:hover { background: var(--ht-shell-2) !important; }

/* =========================================================
   Buttons + sidebar widgets (Astra default screens)
   ========================================================= */
.ast-button, button, input[type="submit"], .search-submit {
	background: var(--ht-accent);
	color: var(--ht-accent-ink);
	border-radius: 8px;
	font-family: var(--ht-display);
	font-weight: 700;
	border: 0;
}
.ast-button:hover, button:hover, input[type="submit"]:hover, .search-submit:hover { background: var(--ht-ink); color: #fff; }
.widget-title, .widget .wp-block-heading {
	font: 800 12px/1.2 var(--ht-display) !important;
	font-stretch: 125% !important;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 14px;
}
.widget ul { margin-left: 0; list-style: none; }
.widget ul li { padding-block: 8px; border-top: 1px solid var(--ht-line); margin: 0; }
.widget ul li:first-child { border-top: 0; }
.widget ul li a { color: var(--ht-ink); font-weight: 600; }
.widget ul li a:hover { color: var(--ht-link); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer,
.site-footer .site-primary-footer-wrap,
.site-footer .site-above-footer-wrap {
	background: var(--ht-shell) !important;
	color: rgba(255, 255, 255, .78);
}
.site-footer a { color: rgba(255, 255, 255, .85) !important; }
.site-footer a:hover { color: var(--ht-accent) !important; }
.site-footer .widget-title, .site-footer .wp-block-heading, .site-footer strong, .site-footer b { color: #fff; }
.site-footer .widget ul li { border-top-color: rgba(255, 255, 255, .12); }
.site-footer .site-below-footer-wrap {
	background: #14293a !important;
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .ast-footer-copyright, .site-footer .ast-footer-copyright p {
	font: 500 12px/1.6 var(--ht-mono);
	letter-spacing: .03em;
	color: rgba(255, 255, 255, .65);
}
.site-footer .footer-widget-area, .site-footer .ast-builder-footer-grid-columns { row-gap: 24px; }
#ast-scroll-top { background: var(--ht-accent); color: var(--ht-accent-ink); border-radius: 8px; }

/* =========================================================
   Responsive
   ========================================================= */

/* Large screens */
@media (min-width: 1440px) {
	.ht-grid { gap: 44px 32px; }
}

/* Laptops / small desktops */
@media (max-width: 1200px) {
	.ht-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ht-article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

/* Tablets (landscape + portrait) */
@media (max-width: 1024px) {
	.ht-lead { grid-template-columns: 1fr 1fr; }
	.ht-lead-img { min-height: 300px; }
	.ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ht-guides { grid-template-columns: 1fr; gap: 20px; }
	.ht-article-layout { grid-template-columns: minmax(0, 1fr); }
	.ht-article-side { order: -1; }
	.ht-sticky { position: static; }
	.ht-side-box { display: none; }
	.ht-toc ol { max-height: none; columns: 2; column-gap: 24px; }
	.ht-toc li { break-inside: avoid; }
	.ht-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 800px) {
	.ht-lead { grid-template-columns: 1fr; }
	.ht-lead-img { min-height: 0; aspect-ratio: 16 / 9; }
	.ht-byline-row .ht-share { margin-left: 0; width: 100%; }
	.ht-toc ol { columns: 1; }
	.ht-hero-img img, .ht-lead, .ht-page-card, .ht-guides { border-radius: 14px; }
}

/* Phones */
@media (max-width: 600px) {
	.ht-grid { grid-template-columns: minmax(0, 1fr); }
	.ht-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ht-type { padding: 14px; }
	.ht-lead p { font-size: 16px; }
	.ht-author .ht-read { margin-left: 0; width: 100%; }
	.ht-guides li a { flex-direction: column; align-items: flex-start; gap: 6px; }
	.ht-postnav { grid-template-columns: 1fr; }
	.ht-postnav-next { grid-column: auto; text-align: left; }
	.ht-authorbox { flex-direction: column; }
	.ht-share-bottom { flex-direction: column; align-items: flex-start; }
	.ht-hero-img { margin-inline: calc(var(--ht-gutter) * -1); }
	.ht-hero-img img { border-radius: 0; }
	.ht-search-box form, .ht-empty form { flex-direction: column; }
	.ht-search-box .search-submit, .ht-empty .search-submit { width: 100%; }
	.ht-prose table { font-size: 14px; }
	.ht-prose th, .ht-prose td { padding: 9px 10px; }
}

/* Small phones */
@media (max-width: 380px) {
	.ht-types { grid-template-columns: minmax(0, 1fr); }
	.ht-card-foot { flex-direction: column; align-items: stretch; }
	.ht-more { justify-content: center; }
	.ht-share a, .ht-share button { padding: 7px 9px; }
}

/* Touch devices: no hover lift */
@media (hover: none) {
	.ht-type:hover { transform: none; }
	.ht-card:hover .ht-thumb .ht-img, .ht-lead:hover .ht-lead-img .ht-img { transform: none; }
}

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

html { scroll-behavior: smooth; }
