/**
 * Tattoo Ink Pro — main stylesheet
 *
 * Structure:
 *  1. Design tokens (CSS variables + dark mode)
 *  2. Base / reset
 *  3. Layout helpers
 *  4. Buttons, badges, forms
 *  5. Header + navigation + search + mobile drawer
 *  6. Hero
 *  7. Sections + grids + cards
 *  8. Category cards / hero
 *  9. Single article (meta, TOC, share, tags, author, post-nav, related)
 * 10. Sidebar + widgets
 * 11. Newsletter
 * 12. Footer
 * 13. Comments
 * 14. Pagination
 * 15. 404 + author archive
 * 16. Utilities, accessibility, animations
 *
 * Dynamic color/typography/radius/width variables are injected by the
 * Customizer via wp_add_inline_style (see inc/customizer.php). The
 * fallbacks below keep the theme fully styled even before customization.
 */

/* -------------------------------------------------------------------------
 * 1. Design tokens
 * ---------------------------------------------------------------------- */
:root {
	--tip-primary: #111111;
	--tip-secondary: #f5f5f5;
	--tip-accent: #e11d2a;
	--tip-bg: #ffffff;
	--tip-font-heading: "Playfair Display", Georgia, serif;
	--tip-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tip-btn-radius: 999px;
	--tip-card-radius: 18px;
	--tip-width: 1280px;

	/* Derived surface palette (light mode). */
	--tip-text: #16181d;
	--tip-text-soft: #565a63;
	--tip-text-faint: #8b8f98;
	--tip-surface: #ffffff;
	--tip-surface-2: #f6f7f9;
	--tip-surface-3: #eef0f3;
	--tip-border: #e6e8ec;
	--tip-border-strong: #d3d6dc;
	--tip-header-bg: rgba(255, 255, 255, 0.85);
	--tip-header-border: #ececec;
	--tip-inverse: #0d0e11;
	--tip-inverse-text: #f4f5f7;
	--tip-accent-contrast: #ffffff;
	--tip-accent-soft: rgba(225, 29, 42, 0.1);
	--tip-shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.06), 0 1px 3px rgba(16, 18, 22, 0.04);
	--tip-shadow: 0 6px 24px rgba(16, 18, 22, 0.08);
	--tip-shadow-lg: 0 18px 48px rgba(16, 18, 22, 0.14);
	--tip-ring: 0 0 0 3px var(--tip-accent-soft);

	--tip-gutter: 22px;
	--tip-radius-sm: 10px;
	--tip-section-y: clamp(56px, 8vw, 112px);
	--tip-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode — toggled via .tip-dark on <html>. */
html.tip-dark {
	--tip-bg: #0d0e11;
	--tip-secondary: #16181d;
	--tip-text: #eceef2;
	--tip-text-soft: #a7acb6;
	--tip-text-faint: #7b8089;
	--tip-surface: #16181d;
	--tip-surface-2: #1c1f26;
	--tip-surface-3: #23272f;
	--tip-border: #2a2e37;
	--tip-border-strong: #3a3f4a;
	--tip-header-bg: rgba(13, 14, 17, 0.82);
	--tip-header-border: #23262d;
	--tip-inverse: #f4f5f7;
	--tip-inverse-text: #0d0e11;
	--tip-accent-soft: rgba(225, 29, 42, 0.18);
	--tip-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--tip-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
	--tip-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------------------
 * 2. Base / reset
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

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

body {
	margin: 0;
	font-family: var(--tip-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--tip-text);
	background-color: var(--tip-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color var(--tip-transition), color var(--tip-transition);
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tip-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--tip-text);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1.25em;
}

a {
	color: var(--tip-accent);
	text-decoration: none;
	transition: color var(--tip-transition), opacity var(--tip-transition);
}

a:hover {
	color: var(--tip-text);
}

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

ul, ol {
	padding-left: 1.25em;
}

blockquote {
	margin: 1.75em 0;
	padding: 0.4em 0 0.4em 1.4em;
	border-left: 4px solid var(--tip-accent);
	font-family: var(--tip-font-heading);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--tip-text);
}

code, pre {
	font-family: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-radius-sm);
	padding: 1.1em 1.25em;
	overflow-x: auto;
}

:not(pre) > code {
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: 6px;
	padding: 0.1em 0.4em;
}

hr {
	border: 0;
	border-top: 1px solid var(--tip-border);
	margin: 2.5em 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.75em 0;
}

th, td {
	border: 1px solid var(--tip-border);
	padding: 0.65em 0.85em;
	text-align: left;
}

th {
	background: var(--tip-surface-2);
}

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

/* -------------------------------------------------------------------------
 * 3. Layout helpers
 * ---------------------------------------------------------------------- */
.tip-container {
	width: 100%;
	max-width: var(--tip-width);
	margin-inline: auto;
	padding-inline: var(--tip-gutter);
}

.tip-container--narrow {
	max-width: 820px;
}

.tip-site-content {
	min-height: 50vh;
}

.tip-section {
	padding-block: var(--tip-section-y);
}

.tip-section + .tip-section {
	padding-top: 0;
}

.tip-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 42px;
}

.tip-section-title {
	font-size: clamp(1.9rem, 3.8vw, 2.7rem);
	margin: 0;
	position: relative;
}

.tip-section-subtitle {
	color: var(--tip-text-soft);
	margin: 6px 0 0;
	width: 100%;
	font-size: 1.02rem;
}

.tip-section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--tip-text);
	white-space: nowrap;
}

.tip-section-link:hover {
	color: var(--tip-accent);
}

.tip-section-link svg {
	transition: transform var(--tip-transition);
}

.tip-section-link:hover svg {
	transform: translateX(3px);
}

.tip-layout--sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(32px, 5vw, 60px);
	padding-block: clamp(40px, 6vw, 72px);
}

.tip-layout__aside {
	min-width: 0;
}

.tip-layout__main {
	min-width: 0;
}

@media (min-width: 992px) {
	.tip-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

.tip-page-header {
	margin-bottom: 34px;
}

.tip-page-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--tip-accent);
	margin: 0 0 8px;
}

.tip-page-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0;
}

.tip-archive-description,
.tip-search-count {
	color: var(--tip-text-soft);
	margin-top: 12px;
}

.tip-page-header__search {
	margin-top: 20px;
	max-width: 520px;
}

/* -------------------------------------------------------------------------
 * 4. Buttons, badges, forms
 * ---------------------------------------------------------------------- */
.tip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--tip-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	padding: 0.85em 1.6em;
	border-radius: var(--tip-btn-radius);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform var(--tip-transition), background-color var(--tip-transition), color var(--tip-transition), border-color var(--tip-transition), box-shadow var(--tip-transition);
	background: var(--tip-primary);
	color: #fff;
	text-align: center;
}

.tip-btn:hover {
	transform: translateY(-2px);
	color: #fff;
	box-shadow: var(--tip-shadow);
}

.tip-btn--accent {
	background: var(--tip-accent);
	color: var(--tip-accent-contrast);
}

.tip-btn--accent:hover {
	background: var(--tip-accent);
	color: var(--tip-accent-contrast);
	filter: brightness(1.06);
}

.tip-btn--outline {
	background: transparent;
	border-color: currentColor;
	color: var(--tip-text);
}

.tip-btn--outline:hover {
	background: var(--tip-text);
	color: var(--tip-bg);
}

.tip-btn--lg {
	padding: 1.05em 2em;
	font-size: 1.02rem;
}

.tip-btn--block {
	display: flex;
	width: 100%;
}

.tip-btn--pinterest {
	background: #e60023;
	color: #fff;
	border-color: #e60023;
}

.tip-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.4em 0.85em;
	border-radius: 999px;
	background: var(--tip-surface-3);
	color: var(--tip-text);
	transition: background-color var(--tip-transition), color var(--tip-transition);
}

.tip-badge:hover {
	background: var(--tip-text);
	color: var(--tip-bg);
}

.tip-badge--accent {
	background: var(--tip-accent);
	color: #fff;
}

.tip-badge--accent:hover {
	background: var(--tip-accent);
	color: #fff;
	filter: brightness(1.08);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	color: var(--tip-text);
	background: var(--tip-surface);
	border: 1.5px solid var(--tip-border-strong);
	border-radius: 12px;
	padding: 0.75em 1em;
	transition: border-color var(--tip-transition), box-shadow var(--tip-transition);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--tip-accent);
	box-shadow: var(--tip-ring);
}

::placeholder {
	color: var(--tip-text-faint);
}

/* Search form */
.search-form {
	display: flex;
	gap: 10px;
}

.search-form .search-field {
	flex: 1;
}

.search-form .search-submit {
	flex-shrink: 0;
	border: none;
	background: var(--tip-accent);
	color: #fff;
	font-weight: 600;
	padding-inline: 1.35em;
	border-radius: 12px;
	cursor: pointer;
	transition: filter var(--tip-transition);
}

.search-form .search-submit:hover {
	filter: brightness(1.08);
}

/* -------------------------------------------------------------------------
 * 5. Header + navigation
 * ---------------------------------------------------------------------- */
.tip-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tip-header-bg);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--tip-header-border);
	transition: box-shadow var(--tip-transition), background-color var(--tip-transition);
}

.tip-header.is-scrolled {
	box-shadow: var(--tip-shadow-sm);
}

.tip-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 74px;
}

.tip-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.tip-logo img,
.custom-logo {
	max-height: 46px;
	width: auto;
}

.tip-site-title {
	font-family: var(--tip-font-heading);
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.tip-site-title a {
	color: var(--tip-text);
}

.tip-site-title a:hover {
	color: var(--tip-accent);
}

.tip-site-description {
	display: none;
	font-size: 0.8rem;
	color: var(--tip-text-soft);
}

.tip-primary-nav {
	margin-left: auto;
}

.tip-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-menu li {
	position: relative;
}

.tip-menu a {
	display: block;
	padding: 0.6em 0.95em;
	font-weight: 500;
	font-size: 0.96rem;
	color: var(--tip-text);
	border-radius: 10px;
}

.tip-menu a:hover,
.tip-menu .current-menu-item > a,
.tip-menu .current_page_item > a {
	color: var(--tip-accent);
	background: var(--tip-accent-soft);
}

/* Dropdown sub-menus */
.tip-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--tip-surface);
	border: 1px solid var(--tip-border);
	border-radius: 14px;
	box-shadow: var(--tip-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--tip-transition), transform var(--tip-transition), visibility var(--tip-transition);
	z-index: 20;
}

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

.tip-menu .sub-menu .sub-menu {
	top: -8px;
	left: calc(100% + 8px);
}

.tip-menu .sub-menu a {
	padding: 0.55em 0.75em;
	font-size: 0.9rem;
}

.tip-menu-hint {
	margin: 0;
	font-size: 0.85rem;
	color: var(--tip-text-soft);
}

.tip-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	margin-left: auto;
}

.tip-primary-nav + .tip-header__actions {
	margin-left: 0;
}

.tip-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--tip-text);
	cursor: pointer;
	transition: background-color var(--tip-transition), color var(--tip-transition);
}

.tip-icon-btn:hover {
	background: var(--tip-surface-3);
	color: var(--tip-accent);
}

.tip-icon-btn svg {
	width: 22px;
	height: 22px;
}

/* Theme toggle: show only relevant glyph */
.tip-theme-toggle__moon {
	display: none;
}

html.tip-dark .tip-theme-toggle__sun {
	display: none;
}

html.tip-dark .tip-theme-toggle__moon {
	display: inline-flex;
}

.tip-header__cta {
	margin-left: 6px;
}

/* Search + menu toggles hidden/shown responsively */
.tip-menu-toggle {
	display: none;
}

.tip-menu-toggle__close {
	display: none;
}

.tip-menu-toggle.is-active .tip-menu-toggle__open {
	display: none;
}

.tip-menu-toggle.is-active .tip-menu-toggle__close {
	display: inline-flex;
}

/* Slide-down search panel */
.tip-search-panel {
	border-top: 1px solid var(--tip-header-border);
	background: var(--tip-header-bg);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	overflow: hidden;
}

.tip-search-panel[hidden] {
	display: block;
	max-height: 0;
	border-top-color: transparent;
}

.tip-search-panel {
	max-height: 180px;
	transition: max-height var(--tip-transition), border-color var(--tip-transition);
}

.tip-search-panel .tip-container {
	padding-block: 18px;
}

/* Mobile navigation drawer */
.tip-mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(86vw, 360px);
	z-index: 200;
	background: var(--tip-surface);
	border-left: 1px solid var(--tip-border);
	box-shadow: var(--tip-shadow-lg);
	transform: translateX(100%);
	transition: transform var(--tip-transition);
	overflow-y: auto;
	padding: 84px 24px 32px;
}

.tip-mobile-nav[hidden] {
	display: block;
}

.tip-mobile-nav.is-open {
	transform: translateX(0);
}

.tip-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-mobile-menu li {
	border-bottom: 1px solid var(--tip-border);
}

.tip-mobile-menu a {
	display: block;
	padding: 0.9em 0.2em;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--tip-text);
}

.tip-mobile-menu a:hover,
.tip-mobile-menu .current-menu-item > a {
	color: var(--tip-accent);
}

.tip-mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 14px;
}

.tip-mobile-menu .sub-menu a {
	font-size: 0.98rem;
	color: var(--tip-text-soft);
}

.tip-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(8, 9, 12, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--tip-transition), visibility var(--tip-transition);
}

.tip-mobile-overlay[hidden] {
	display: block;
}

.tip-mobile-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.tip-nav-open {
	overflow: hidden;
}

@media (max-width: 991px) {
	.tip-primary-nav {
		display: none;
	}

	.tip-menu-toggle {
		display: inline-flex;
	}

	.tip-header__cta {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * 6. Hero
 * ---------------------------------------------------------------------- */
.tip-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(420px, 62vh, 640px);
	padding-block: clamp(56px, 9vw, 120px);
	background: var(--tip-inverse);
	color: var(--tip-inverse-text);
	overflow: hidden;
	isolation: isolate;
}

.tip-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: -2;
	transform: scale(1.04);
}

.tip-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(8, 9, 12, 0.45) 0%, rgba(8, 9, 12, 0.75) 100%),
		radial-gradient(120% 120% at 20% 0%, rgba(225, 29, 42, 0.28) 0%, transparent 55%);
}

.tip-hero:not(.tip-hero--has-image) {
	background:
		radial-gradient(120% 120% at 85% 15%, rgba(225, 29, 42, 0.25) 0%, transparent 55%),
		var(--tip-inverse);
}

.tip-hero__content {
	max-width: 720px;
}

.tip-hero__title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: 1.05;
	color: #fff;
	margin: 0 0 0.4em;
}

.tip-hero__subtitle {
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 2em;
	max-width: 60ch;
}

.tip-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.tip-hero .tip-btn--outline {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}

.tip-hero .tip-btn--outline:hover {
	background: #fff;
	color: var(--tip-inverse);
}

/* -------------------------------------------------------------------------
 * 7. Grids + cards
 * ---------------------------------------------------------------------- */
.tip-grid {
	gap: clamp(22px, 2.6vw, 34px);
}

/* Two-up (blog listings — normally many posts) stays a strict grid */
.tip-grid--2 {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.tip-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Showcase rows (Latest / Popular / Categories / Related) use flex-wrap so a
 * single card centers instead of clinging to the left, while a full set fills
 * the row evenly. Cards grow between a comfortable basis and a max width.
 */
.tip-grid--3,
.tip-grid--4,
.tip-grid--categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.tip-grid--3 > *,
.tip-grid--4 > *,
.tip-grid--categories > * {
	min-width: 0;
}

.tip-grid--3 > * {
	flex: 1 1 300px;
	max-width: 420px;
}

/* A single post shouldn't leave a huge gap — make it a prominent centered card. */
.tip-grid--3 > :only-child,
.tip-grid--4 > :only-child {
	flex: 1 1 560px;
	max-width: 640px;
}

/* Two cards: keep them comfortably sized and centered as a pair. */
.tip-grid--3 > :first-child:nth-last-child(2),
.tip-grid--3 > :first-child:nth-last-child(2) ~ * {
	flex: 1 1 340px;
	max-width: 460px;
}

.tip-grid--4 > * {
	flex: 1 1 230px;
	max-width: 320px;
}

.tip-grid--categories > * {
	flex: 1 1 220px;
	max-width: 320px;
}

/* Article card */
.tip-card {
	display: flex;
	flex-direction: column;
	background: var(--tip-surface);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
	overflow: hidden;
	box-shadow: var(--tip-shadow-sm);
	transition: transform var(--tip-transition), box-shadow var(--tip-transition), border-color var(--tip-transition);
	height: 100%;
}

.tip-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--tip-shadow-lg);
	border-color: var(--tip-border-strong);
}

.tip-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tip-surface-3);
}

.tip-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tip-card:hover .tip-card__media img {
	transform: scale(1.06);
}

.tip-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(45deg, var(--tip-surface-3), var(--tip-surface-3) 12px, var(--tip-surface-2) 12px, var(--tip-surface-2) 24px);
}

.tip-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 26px 26px;
	gap: 13px;
}

.tip-card__body .tip-badge {
	align-self: flex-start;
}

.tip-card__title {
	font-size: 1.4rem;
	line-height: 1.26;
	margin: 0;
}

.tip-card__title a {
	color: var(--tip-text);
}

.tip-card__title a:hover {
	color: var(--tip-accent);
}

.tip-card__excerpt {
	color: var(--tip-text-soft);
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
	flex: 1;
}

.tip-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.82rem;
	color: var(--tip-text-faint);
	margin-top: auto;
}

.tip-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tip-meta-item svg {
	width: 15px;
	height: 15px;
	opacity: 0.85;
	flex-shrink: 0;
}

.tip-card__readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--tip-accent);
	align-self: flex-start;
}

.tip-card__readmore svg {
	transition: transform var(--tip-transition);
}

.tip-card__readmore:hover svg {
	transform: translateX(4px);
}

/* Featured grid — first item spans large */
.tip-grid--featured {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.tip-grid--featured {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 1fr;
	}

	.tip-featured__item.tip-card--large {
		grid-row: span 2;
	}

	.tip-featured__item.tip-card--large .tip-card__media {
		aspect-ratio: 4 / 3;
	}

	.tip-featured__item.tip-card--large .tip-card__title {
		font-size: 1.9rem;
	}
}

.tip-featured__item {
	height: 100%;
}

.tip-featured__item .tip-card {
	height: 100%;
}

/* -------------------------------------------------------------------------
 * 8. Category cards + category hero
 * ---------------------------------------------------------------------- */
.tip-cat-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 190px;
	padding: 20px;
	border-radius: var(--tip-card-radius);
	overflow: hidden;
	background: var(--tip-inverse);
	color: #fff;
	box-shadow: var(--tip-shadow-sm);
	transition: transform var(--tip-transition), box-shadow var(--tip-transition);
	isolation: isolate;
}

.tip-cat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--tip-shadow-lg);
	color: #fff;
}

.tip-cat-card:not(.tip-cat-card--image) {
	background:
		radial-gradient(120% 120% at 80% 20%, rgba(225, 29, 42, 0.35) 0%, transparent 60%),
		var(--tip-inverse);
}

.tip-cat-card__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.tip-cat-card:hover .tip-cat-card__media {
	transform: scale(1.07);
}

.tip-cat-card__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(8, 9, 12, 0.1) 0%, rgba(8, 9, 12, 0.78) 100%);
}

.tip-cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tip-cat-card__name {
	font-family: var(--tip-font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.15;
}

.tip-cat-card__count {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.78);
}

.tip-cat-card__explore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--tip-transition), transform var(--tip-transition);
}

.tip-cat-card:hover .tip-cat-card__explore {
	opacity: 1;
	transform: translateY(0);
}

/* Category archive hero banner */
.tip-cat-hero {
	position: relative;
	padding-block: clamp(48px, 8vw, 96px);
	background: var(--tip-inverse);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	margin-bottom: 8px;
}

.tip-cat-hero:not(.tip-cat-hero--image) {
	background:
		radial-gradient(120% 120% at 85% 10%, rgba(225, 29, 42, 0.28) 0%, transparent 55%),
		var(--tip-inverse);
}

.tip-cat-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
}

.tip-cat-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(8, 9, 12, 0.5) 0%, rgba(8, 9, 12, 0.8) 100%);
}

.tip-cat-hero__title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	color: #fff;
	margin: 0 0 10px;
}

.tip-cat-hero__desc {
	max-width: 60ch;
	color: rgba(255, 255, 255, 0.82);
}

.tip-cat-hero__count {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.tip-cat-hero .tip-breadcrumbs {
	color: rgba(255, 255, 255, 0.7);
}

.tip-cat-hero .tip-breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------------------------
 * 9. Single article
 * ---------------------------------------------------------------------- */
.tip-article__header {
	padding-top: clamp(28px, 4vw, 48px);
}

.tip-article__header .tip-badge {
	margin-bottom: 16px;
}

.tip-article__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.12;
	margin: 8px 0 20px;
}

.tip-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	color: var(--tip-text-soft);
	font-size: 0.92rem;
	padding-bottom: 8px;
}

.tip-article__meta .tip-meta-item {
	gap: 7px;
}

.tip-meta-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tip-meta-author img {
	border-radius: 50%;
	width: 32px;
	height: 32px;
}

.tip-meta-author a {
	color: var(--tip-text);
	font-weight: 600;
}

.tip-meta-author a:hover {
	color: var(--tip-accent);
}

.tip-article__featured {
	margin: 32px 0 0;
}

.tip-article__featured img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
	border-radius: var(--tip-card-radius);
}

.tip-article__featured figcaption {
	margin-top: 10px;
	font-size: 0.85rem;
	color: var(--tip-text-faint);
	text-align: center;
}

.tip-article__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(36px, 5vw, 60px);
	padding-block: clamp(36px, 5vw, 56px);
}

@media (min-width: 992px) {
	.tip-article__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

.tip-article__body {
	min-width: 0;
	position: relative;
}

/* Prose typography */
.tip-prose {
	font-size: 1.09rem;
	line-height: 1.8;
	color: var(--tip-text);
}

.tip-prose > * {
	margin-bottom: 1.35em;
}

.tip-prose h2 {
	font-size: clamp(1.55rem, 3vw, 2rem);
	margin-top: 1.6em;
}

.tip-prose h3 {
	font-size: clamp(1.3rem, 2.4vw, 1.55rem);
	margin-top: 1.4em;
}

.tip-prose img,
.tip-prose figure {
	border-radius: var(--tip-card-radius);
}

.tip-prose figure {
	margin-inline: 0;
}

.tip-prose figcaption {
	font-size: 0.85rem;
	color: var(--tip-text-faint);
	text-align: center;
	margin-top: 8px;
}

.tip-prose a {
	text-decoration: underline;
	text-decoration-color: var(--tip-accent-soft);
	text-underline-offset: 3px;
}

.tip-prose a:hover {
	text-decoration-color: var(--tip-accent);
}

.tip-prose ul li,
.tip-prose ol li {
	margin-bottom: 0.5em;
}

.tip-prose ul li::marker {
	color: var(--tip-accent);
}

/* Table of contents */
.tip-toc {
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: 16px;
	padding: 18px 22px;
	margin: 8px 0 32px;
}

.tip-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--tip-text);
}

.tip-toc__title {
	font-family: var(--tip-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
}

.tip-toc__chevron {
	width: 11px;
	height: 11px;
	border-right: 2px solid var(--tip-text-soft);
	border-bottom: 2px solid var(--tip-text-soft);
	transform: rotate(45deg);
	transition: transform var(--tip-transition);
}

.tip-toc__toggle[aria-expanded="false"] .tip-toc__chevron {
	transform: rotate(-45deg);
}

.tip-toc__list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	counter-reset: toc;
}

.tip-toc__list[hidden] {
	display: none;
}

.tip-toc__item {
	counter-increment: toc;
	margin: 0 0 8px;
}

.tip-toc__item a {
	display: flex;
	gap: 10px;
	color: var(--tip-text-soft);
	font-size: 0.95rem;
	line-height: 1.4;
}

.tip-toc__item a::before {
	content: counter(toc) ".";
	color: var(--tip-accent);
	font-weight: 700;
	flex-shrink: 0;
}

.tip-toc__item a:hover {
	color: var(--tip-accent);
}

.tip-toc__item--h3 {
	padding-left: 22px;
	font-size: 0.9rem;
}

.tip-toc__item--h3 a::before {
	content: "–";
}

/* Share buttons */
.tip-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 28px;
	flex-wrap: wrap;
}

.tip-share__label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tip-text-faint);
}

.tip-share__list {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid var(--tip-border-strong);
	background: var(--tip-surface);
	color: var(--tip-text);
	cursor: pointer;
	transition: transform var(--tip-transition), background-color var(--tip-transition), color var(--tip-transition), border-color var(--tip-transition);
}

.tip-share__btn svg {
	width: 19px;
	height: 19px;
}

.tip-share__btn:hover {
	transform: translateY(-3px);
	color: #fff;
	border-color: transparent;
}

.tip-share__btn--facebook:hover {
	background: #1877f2;
}

.tip-share__btn--twitter:hover {
	background: #000;
}

.tip-share__btn--pinterest:hover {
	background: #e60023;
}

.tip-share__btn--copy:hover {
	background: var(--tip-accent);
}

.tip-share__btn.is-copied {
	background: var(--tip-accent);
	color: #fff;
	border-color: transparent;
}

.tip-article__share-bottom {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--tip-border);
}

.tip-article__share-bottom .tip-share {
	margin-bottom: 0;
}

/* Tags */
.tip-article__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
}

.tip-article__tags-label {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--tip-text-soft);
}

.tip-article__tags a {
	display: inline-flex;
	font-size: 0.82rem;
	padding: 0.4em 0.85em;
	border-radius: 999px;
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	color: var(--tip-text-soft);
}

.tip-article__tags a:hover {
	background: var(--tip-accent);
	color: #fff;
	border-color: transparent;
}

/* Author box */
.tip-author-box {
	display: flex;
	gap: 22px;
	margin-top: 44px;
	padding: 28px;
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
}

.tip-author-box__avatar img {
	border-radius: 50%;
	width: 84px;
	height: 84px;
}

.tip-author-box__eyebrow {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--tip-accent);
}

.tip-author-box__name {
	font-size: 1.35rem;
	margin: 4px 0 8px;
}

.tip-author-box__name a {
	color: var(--tip-text);
}

.tip-author-box__name a:hover {
	color: var(--tip-accent);
}

.tip-author-box__bio {
	color: var(--tip-text-soft);
	font-size: 0.96rem;
	margin: 0 0 10px;
}

.tip-author-box__link {
	font-weight: 600;
	font-size: 0.9rem;
}

/* Previous / next post navigation */
.tip-post-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 44px;
}

@media (min-width: 620px) {
	.tip-post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.tip-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px;
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
	background: var(--tip-surface);
	transition: border-color var(--tip-transition), transform var(--tip-transition), box-shadow var(--tip-transition);
}

.tip-post-nav__link:hover {
	border-color: var(--tip-accent);
	transform: translateY(-3px);
	box-shadow: var(--tip-shadow);
}

.tip-post-nav__next {
	text-align: right;
	align-items: flex-end;
}

.tip-post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var(--tip-text-faint);
}

.tip-post-nav__prev .tip-post-nav__label svg {
	transform: rotate(180deg);
}

.tip-post-nav__title {
	font-family: var(--tip-font-heading);
	font-weight: 700;
	color: var(--tip-text);
	line-height: 1.3;
}

.tip-post-nav__link:hover .tip-post-nav__title {
	color: var(--tip-accent);
}

/* Related posts */
.tip-related {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--tip-border);
}

.tip-related .tip-section-title {
	margin-bottom: 26px;
}

/* Page links (multi-page posts) */
.tip-page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 24px 0;
	font-weight: 600;
}

.tip-page-links a {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tip-border);
	border-radius: 8px;
}

.tip-page-links a:hover {
	background: var(--tip-accent);
	color: #fff;
	border-color: transparent;
}

/* -------------------------------------------------------------------------
 * 10. Sidebar + widgets
 * ---------------------------------------------------------------------- */
.tip-sidebar {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

@media (min-width: 992px) {
	.tip-sidebar {
		position: sticky;
		top: 96px;
		align-self: start;
	}
}

.widget,
.tip-widget {
	background: var(--tip-surface);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
	padding: 24px;
}

.widget-title {
	font-size: 1.1rem;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tip-border);
	position: relative;
}

.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 44px;
	height: 2px;
	background: var(--tip-accent);
}

.widget ul,
.tip-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--tip-border);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.widget li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.widget li a {
	color: var(--tip-text);
	font-weight: 500;
}

.widget li a:hover {
	color: var(--tip-accent);
}

.widget li .count {
	font-size: 0.78rem;
	color: var(--tip-text-faint);
}

/* Recent posts with thumbnails */
.tip-widget-posts {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tip-widget-post {
	display: flex;
	gap: 12px;
	border: none !important;
	padding: 0 !important;
}

.tip-widget-post__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--tip-surface-3);
}

.tip-widget-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tip-widget-post__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tip-widget-post__title {
	font-weight: 600;
	font-size: 0.94rem;
	line-height: 1.3;
	color: var(--tip-text);
}

.tip-widget-post__title:hover {
	color: var(--tip-accent);
}

.tip-widget-post__date {
	font-size: 0.78rem;
	color: var(--tip-text-faint);
}

/* Popular posts widget */
.tip-popular-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tip-popular-item {
	display: flex;
	gap: 12px;
	align-items: center;
	border: none !important;
	padding: 0 !important;
}

.tip-popular-thumb {
	flex-shrink: 0;
	width: 62px;
	height: 62px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--tip-surface-3);
}

.tip-popular-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tip-popular-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tip-popular-title {
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.3;
	color: var(--tip-text);
}

.tip-popular-title:hover {
	color: var(--tip-accent);
}

.tip-popular-meta {
	font-size: 0.76rem;
	color: var(--tip-text-faint);
}

/* Tag cloud */
.tip-tagcloud,
.tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tip-tagcloud a,
.tagcloud a {
	display: inline-flex;
	padding: 0.4em 0.8em;
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: 999px;
	color: var(--tip-text-soft);
	font-size: 0.82rem !important;
}

.tip-tagcloud a:hover,
.tagcloud a:hover {
	background: var(--tip-accent);
	color: #fff;
	border-color: transparent;
}

/* Sidebar newsletter */
.tip-widget-newsletter__text {
	color: var(--tip-text-soft);
	font-size: 0.92rem;
	margin-bottom: 14px;
}

.tip-widget-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Pinterest follow widget */
.tip-pinterest-follow {
	text-align: center;
}

.tip-pinterest-text {
	color: var(--tip-text-soft);
	font-size: 0.92rem;
	margin-bottom: 14px;
}

/* -------------------------------------------------------------------------
 * 11. Newsletter section
 * ---------------------------------------------------------------------- */
.tip-newsletter {
	background: var(--tip-inverse);
	color: var(--tip-inverse-text);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.tip-newsletter::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(120% 130% at 90% 10%, rgba(225, 29, 42, 0.3) 0%, transparent 55%);
}

.tip-newsletter__inner {
	display: grid;
	gap: 28px;
	padding-block: clamp(48px, 7vw, 84px);
	align-items: center;
}

@media (min-width: 820px) {
	.tip-newsletter__inner {
		grid-template-columns: 1.1fr 1fr;
	}
}

.tip-newsletter__title {
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	color: #fff;
	margin: 0 0 10px;
}

.tip-newsletter__subtitle {
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	max-width: 48ch;
}

.tip-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 480px) {
	.tip-newsletter__form {
		flex-direction: row;
	}
}

.tip-newsletter__field {
	flex: 1;
}

.tip-newsletter__form input {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.tip-newsletter__form input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.tip-newsletter__form input:focus {
	border-color: var(--tip-accent);
	background: rgba(255, 255, 255, 0.12);
}

/* -------------------------------------------------------------------------
 * 12. Footer
 * ---------------------------------------------------------------------- */
.tip-footer {
	background: var(--tip-secondary);
	border-top: 1px solid var(--tip-border);
	color: var(--tip-text);
}

.tip-footer__top {
	display: grid;
	gap: 40px;
	padding-block: clamp(48px, 6vw, 72px);
}

@media (min-width: 820px) {
	.tip-footer__top {
		grid-template-columns: 1.3fr 2fr;
	}
}

.tip-footer__logo img {
	max-height: 52px;
	width: auto;
	margin-bottom: 16px;
}

.tip-footer__site-title {
	font-family: var(--tip-font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	display: block;
	margin-bottom: 16px;
}

.tip-footer__about {
	color: var(--tip-text-soft);
	font-size: 0.95rem;
	max-width: 42ch;
	margin-bottom: 20px;
}

.tip-footer__widgets {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

@media (min-width: 620px) {
	.tip-footer__widgets {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tip-footer__col h3,
.tip-footer__col .widget-title {
	font-size: 1rem;
	margin-bottom: 14px;
	padding-bottom: 0;
	border-bottom: none;
}

.tip-footer__col .widget-title::after {
	display: none;
}

.tip-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-footer__col li {
	padding: 6px 0;
	border: none;
	display: block;
}

.tip-footer__col a {
	color: var(--tip-text-soft);
	font-size: 0.94rem;
}

.tip-footer__col a:hover {
	color: var(--tip-accent);
}

.tip-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-footer__bottom {
	border-top: 1px solid var(--tip-border);
}

.tip-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 22px;
}

.tip-copyright {
	margin: 0;
	font-size: 0.88rem;
	color: var(--tip-text-soft);
}

.tip-footer__legal .tip-footer-legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-footer__legal a {
	font-size: 0.85rem;
	color: var(--tip-text-soft);
}

.tip-footer__legal a:hover {
	color: var(--tip-accent);
}

/* Social icons */
.tip-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tip-social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tip-surface);
	border: 1px solid var(--tip-border);
	color: var(--tip-text);
	transition: transform var(--tip-transition), background-color var(--tip-transition), color var(--tip-transition);
}

.tip-social-icons a:hover {
	transform: translateY(-3px);
	background: var(--tip-accent);
	color: #fff;
	border-color: transparent;
}

.tip-social-icons svg {
	width: 18px;
	height: 18px;
}

/* -------------------------------------------------------------------------
 * 13. Comments
 * ---------------------------------------------------------------------- */
.tip-comments {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--tip-border);
}

.tip-comments__title,
.tip-comment-form__title {
	font-size: 1.5rem;
	margin-bottom: 24px;
}

.tip-comment-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.tip-comment-list ol.children {
	list-style: none;
	margin: 20px 0 0;
	padding-left: clamp(18px, 4vw, 46px);
}

.tip-comment-body {
	padding: 20px 22px;
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
	margin-bottom: 20px;
}

.tip-comment__body {
	padding: 20px 22px;
	background: var(--tip-surface-2);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
	margin-bottom: 20px;
}

.tip-comment__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.tip-comment__avatar img,
.tip-comment__meta .avatar {
	border-radius: 50%;
	display: block;
}

.tip-comment__author {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.tip-comment__name {
	font-weight: 700;
	color: var(--tip-text);
}

.tip-comment__name a {
	color: var(--tip-text);
}

.tip-comment__name a:hover {
	color: var(--tip-accent);
}

.tip-comment__date {
	font-size: 0.82rem;
	color: var(--tip-text-faint);
}

.tip-comment__content {
	color: var(--tip-text);
	font-size: 0.98rem;
}

.tip-comment__content p:last-child {
	margin-bottom: 0;
}

.tip-comment__reply a,
.comment-reply-link {
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--tip-accent);
	margin-top: 8px;
}

.tip-comment__moderation {
	font-size: 0.82rem;
	font-style: italic;
	color: var(--tip-text-faint);
	margin: 6px 0 0;
}

.tip-comment-form,
.comment-respond {
	background: var(--tip-surface);
	border: 1px solid var(--tip-border);
	border-radius: var(--tip-card-radius);
	padding: 28px;
}

.tip-comment-form__notes,
.comment-notes {
	font-size: 0.88rem;
	color: var(--tip-text-soft);
	margin-bottom: 18px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
	margin-bottom: 16px;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 0.9rem;
}

.comment-form-cookies-consent input {
	width: auto;
}

@media (min-width: 640px) {
	.comment-form-author,
	.comment-form-email {
		display: inline-block;
		width: calc(50% - 8px);
	}

	.comment-form-author {
		margin-right: 16px;
	}
}

/* -------------------------------------------------------------------------
 * 14. Pagination
 * ---------------------------------------------------------------------- */
.tip-pagination,
.pagination {
	margin-top: 44px;
}

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

.tip-pagination .page-numbers,
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tip-border);
	border-radius: 12px;
	background: var(--tip-surface);
	color: var(--tip-text);
	font-weight: 600;
	transition: background-color var(--tip-transition), color var(--tip-transition), border-color var(--tip-transition);
}

.tip-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
	border-color: var(--tip-accent);
	color: var(--tip-accent);
}

.tip-pagination .page-numbers.current,
.pagination .page-numbers.current {
	background: var(--tip-accent);
	border-color: var(--tip-accent);
	color: #fff;
}

.tip-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* -------------------------------------------------------------------------
 * 15. 404 + author archive hero
 * ---------------------------------------------------------------------- */
.tip-404 {
	padding-block: clamp(48px, 8vw, 96px);
}

.tip-404__hero {
	text-align: center;
	margin-bottom: 64px;
}

.tip-404__code {
	font-family: var(--tip-font-heading);
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 800;
	line-height: 1;
	margin: 0;
	background: linear-gradient(135deg, var(--tip-text) 0%, var(--tip-accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tip-404__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	margin: 8px 0 14px;
}

.tip-404__text {
	color: var(--tip-text-soft);
	max-width: 52ch;
	margin: 0 auto 26px;
}

.tip-404__search {
	max-width: 460px;
	margin: 0 auto 22px;
}

.tip-404__suggestions,
.tip-404__categories {
	margin-top: 48px;
}

.tip-404__suggestions .tip-section-title,
.tip-404__categories .tip-section-title {
	text-align: center;
	margin-bottom: 26px;
}

.tip-404__cat-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Author archive hero */
.tip-author-hero {
	margin-bottom: 34px;
}

.tip-author-hero__inner {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 14px;
}

.tip-author-hero__avatar img {
	border-radius: 50%;
	width: 96px;
	height: 96px;
}

.tip-author-hero__bio {
	color: var(--tip-text-soft);
	max-width: 60ch;
	margin: 8px 0 10px;
}

.tip-author-hero__website {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
 * 16. Utilities, accessibility, back-to-top
 * ---------------------------------------------------------------------- */
.tip-breadcrumbs {
	font-size: 0.85rem;
	color: var(--tip-text-faint);
	margin-bottom: 18px;
}

.tip-breadcrumbs a {
	color: var(--tip-text-soft);
}

.tip-breadcrumbs a:hover {
	color: var(--tip-accent);
}

.tip-crumb-sep {
	margin: 0 8px;
	opacity: 0.5;
}

.tip-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: var(--tip-accent);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--tip-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity var(--tip-transition), visibility var(--tip-transition), transform var(--tip-transition), filter var(--tip-transition);
}

.tip-back-to-top svg {
	transform: rotate(180deg);
}

.tip-back-to-top[hidden] {
	display: inline-flex;
}

.tip-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tip-back-to-top:hover {
	filter: brightness(1.1);
	transform: translateY(-3px);
}

/* Skip link */
.tip-skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 999;
	background: var(--tip-accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	transition: top var(--tip-transition);
}

.tip-skip-link:focus {
	top: 12px;
	color: #fff;
}

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

.screen-reader-text:focus {
	background: var(--tip-accent);
	color: #fff;
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	padding: 12px 18px;
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 999;
	border-radius: 8px;
}

.tip-no-results {
	text-align: center;
	padding: 40px 0;
}

/* WP alignment + captions */
.alignwide {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.aligncenter {
	margin-inline: auto;
}

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

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

.wp-caption-text,
.wp-element-caption {
	font-size: 0.85rem;
	color: var(--tip-text-faint);
	text-align: center;
	margin-top: 8px;
}

.sticky .tip-card {
	border-color: var(--tip-accent);
}

/* Entrance animation for cards (respecting reduced motion) */
@media (prefers-reduced-motion: no-preference) {
	.tip-grid .tip-card,
	.tip-grid .tip-cat-card,
	.tip-grid .tip-featured__item {
		animation: tip-fade-up 0.5s both;
	}

	@keyframes tip-fade-up {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

/* Print */
@media print {
	.tip-header,
	.tip-footer,
	.tip-share,
	.tip-back-to-top,
	.tip-sidebar,
	.tip-related,
	.tip-newsletter,
	.tip-post-nav {
		display: none !important;
	}
}
