/**
 * TopDrop Theme — base reset + typography.
 *
 * Modern reset (lighter than Eric Meyer's, similar to josh-comeau's),
 * a few sensible defaults, and the type scale every page inherits.
 *
 * The customer-facing product description has its own typography in
 * the plugin's frontend/css/product-typography.css — that file is
 * scoped to .td-product-desc so it doesn't leak.
 */

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

html, body {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
		"Apple Color Emoji", "Segoe UI Emoji";
	font-size: 15px;
	line-height: 1.55;
	color: #1f2937;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

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

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

a {
	color: #2dc270;
	text-decoration: none;
	transition: color .15s ease;
}

a:hover {
	color: #1d9350;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 22px; }

/* The 1000px content shell — every section that wants centered content
 * wraps its inner markup in <div class="td-shell">. On desktop it has
 * no side padding (the body bg provides the visual edge against the
 * centered 1000px column). On mobile the viewport meets the shell
 * directly, so we add the standard 16px side gutter here. The header
 * rows align to the same 16px in chrome.css. */

.td-shell {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
}

@media (max-width: 900px) {
	.td-shell {
		padding-top: 16px;
		padding-left: 16px;
		padding-right: 16px;
	}
}

.td-shell .td-shell {
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* Main content gets vertical breathing room so pages don't feel cramped */

.td-main {
	padding: 32px 0 48px;
	min-height: calc(100vh - 320px);
}

@media (max-width: 900px) {
	/* Top inset now lives on .td-shell so the shell is symmetric
	 * (16px top + 16px sides). .td-main keeps only the bottom
	 * inset for footer breathing room. */
	.td-main {
		padding-top: 0;
	}
}

/* /register/ — hide the mobile guest CTA row (the user is already
 * on the registration page, no need to point them to it). Other
 * register-specific tweaks live in register.css, scoped to the
 * .td-register section itself rather than the global shell/main. */
body.td-is-register .td-header__row--mobile-cta {
	display: none;
}

.td-page,
.td-article {
	background: #fff;
}

.td-article + .td-article {
	margin-top: 32px;
}

.td-article__title {
	font-size: 28px;
	margin-bottom: 16px;
}

.td-empty {
	padding: 64px 24px;
	text-align: center;
	color: #7c7c7c;
	font-style: italic;
}

/* Default WP pagination styling */

.pagination,
.nav-links {
	margin: 24px 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers,
.nav-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #e4e7ea;
	background: #fff;
	color: #4e7184;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color .15s, border-color .15s, color .15s;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover,
.nav-links a:hover {
	background: #f2f6f9;
	border-color: #4e7184;
	color: #1f2937;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
	background: #4e7184;
	color: #fff;
	border-color: #4e7184;
}
