/* TWC Blog Template — Little River Equipment Sales
   Scoped to .twc-page. Nothing here leaks into Elementor layouts. */

.twc-page {
	--rust: #7B250D;
	--rust-deep: #5C1B09;
	--ink: #1F1D1C;
	--ink-soft: #56504D;
	--rule: #E3DCD9;
	--rule-soft: #EFEAE7;
	--paper: #FFFFFF;
	--surface: #FAFAFA;

	--measure: 44rem;
	--gutter: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);

	--step-h1: clamp(2rem, 1.35rem + 2.5vw, 3.15rem);
	--step-h2: clamp(1.375rem, 1.15rem + 0.9vw, 1.8rem);
	--step-h3: clamp(1.1rem, 1.03rem + 0.3vw, 1.24rem);
	--step-body: 1.075rem;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	background: var(--paper);
	color: var(--ink);
	font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: var(--step-body);
	line-height: 1.7;
	display: block;
	padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) var(--gutter) clamp(3rem, 2rem + 4vw, 5rem);
}

.twc-page :where(h1, h2, h3) {
	font-family: inherit;
	color: var(--ink);
	text-wrap: balance;
	margin: 0;
}

/* ---------------------------------------------------------- article header */

.twc-article,
.twc-index__head,
.twc-more,
.twc-lead,
.twc-grid,
.twc-empty {
	max-width: var(--measure);
	margin-inline: auto;
}

.twc-page--wide { --measure: 68rem; }

.twc-article__head {
	padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
	border-bottom: 1px solid var(--rule);
	animation: twc-rise 0.55s var(--ease);
}

@keyframes twc-rise {
	from { opacity: 0; transform: translateY(10px); }
}

.twc-back {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--rust);
	text-decoration: none;
	margin-bottom: 1.35rem;
	transition: color 0.2s var(--ease);
}

.twc-back::before {
	content: "\2190";
	margin-right: 0.5em;
}

.twc-back:hover { color: var(--rust-deep); text-decoration: underline; text-underline-offset: 0.2em; }

.twc-page .twc-article__title {
	font-size: var(--step-h1);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.021em;
	margin-bottom: 1.1rem;
}

.twc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.855rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink-soft);
	letter-spacing: 0.005em;
}

.twc-meta a { color: var(--rust); text-decoration: none; }
.twc-meta a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.twc-meta__dot { color: var(--rule); }

/* ----------------------------------------------------------------- prose */

.twc-prose > * { max-width: 100%; }

.twc-prose p {
	margin: 0 0 1.2em;
	text-wrap: pretty;
}

.twc-prose h2 {
	font-size: var(--step-h2);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.014em;
	margin: 2.9rem 0 0.85rem;
}

.twc-prose h3 {
	font-size: var(--step-h3);
	font-weight: 700;
	line-height: 1.3;
	margin: 2rem 0 0.6rem;
}

.twc-prose :is(h2, h3):first-child { margin-top: 0; }

.twc-prose ul,
.twc-prose ol {
	margin: 0 0 1.45em;
	padding-left: 1.35em;
}

.twc-prose li { margin-bottom: 0.55em; }
.twc-prose li::marker { color: var(--rust); }
.twc-prose li:last-child { margin-bottom: 0; }

/* the "See our X inventory" line that follows a list needs air */
.twc-prose :is(ul, ol) + p { margin-top: 1.35em; }

.twc-prose strong { font-weight: 700; color: var(--ink); }

.twc-prose a {
	color: var(--rust);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
	text-decoration-color: rgba(123, 37, 13, 0.4);
	transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

.twc-prose a:hover {
	color: var(--rust-deep);
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
}

.twc-page :is(a, .twc-btn):focus-visible {
	outline: 2px solid var(--rust);
	outline-offset: 3px;
	border-radius: 2px;
}

/* --------------------------------------------------------- in stock now */

.twc-stock {
	max-width: 64rem;
	margin: clamp(3rem, 2rem + 3vw, 4.5rem) auto 0;
}

.twc-stock__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-bottom: 0.9rem;
	margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border-bottom: 2px solid var(--rust);
}

.twc-page .twc-stock__title {
	font-size: clamp(1.25rem, 1.08rem + 0.7vw, 1.55rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.014em;
	color: var(--ink);
}

.twc-stock__all {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--rust);
	text-decoration: none;
	white-space: nowrap;
}

.twc-stock__all::after { content: "\00a0\2192"; }
.twc-stock__all:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------------------------------------------------------------- contact */

.twc-contact {
	max-width: 64rem;
	margin: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) auto 0;
	background: var(--rust);
	color: #fff;
	border-radius: 4px;
	padding: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem) clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.twc-contact__line {
	margin: 0;
	font-size: 1.01rem;
	font-weight: 600;
	line-height: 1.6;
	color: #fff;
	text-wrap: pretty;
}

.twc-contact__line a {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.18em;
	text-decoration-color: rgba(255, 255, 255, 0.55);
	transition: text-decoration-color 0.2s var(--ease);
}

.twc-contact__line a:hover { text-decoration-color: #fff; }
.twc-page .twc-contact a:focus-visible { outline-color: #fff; }

/* -------------------------------------------------------- related guides */

.twc-more { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }

.twc-page .twc-more__title {
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	margin-bottom: 1.1rem;
	color: var(--ink-soft);
}

.twc-more__list { list-style: none; margin: 0; padding: 0; }

.twc-more__item {
	padding: 1.15rem 0;
	border-top: 1px solid var(--rule-soft);
}

.twc-more__item:last-child { border-bottom: 1px solid var(--rule-soft); }

.twc-more__link {
	display: inline-block;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.011em;
	color: var(--ink);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

.twc-more__link:hover { color: var(--rust); }

.twc-more__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--ink-soft);
}

/* ----------------------------------------------------------------- index */

.twc-index__head {
	padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	margin-bottom: clamp(0.5rem, 0.25rem + 1vw, 1rem);
	border-bottom: 2px solid var(--rust);
	animation: twc-rise 0.55s var(--ease);
}

.twc-page .twc-index__title {
	font-size: var(--step-h1);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.021em;
}

.twc-index__intro {
	margin-top: 0.9rem;
	color: var(--ink-soft);
	max-width: 38rem;
}

.twc-index__intro p { margin: 0; text-wrap: pretty; }

/* shared media treatment */

.twc-lead__media,
.twc-card__media {
	display: block;
	overflow: hidden;
	border-radius: 3px;
	background: var(--surface);
	aspect-ratio: 16 / 10;
}

.twc-media__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.twc-lead:hover .twc-media__img,
.twc-card:hover .twc-media__img { transform: scale(1.03); }

/* lead guide */

.twc-lead {
	display: grid;
	gap: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
	align-items: center;
	padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) 0;
	border-bottom: 1px solid var(--rule);
}

@media (min-width: 46rem) {
	.twc-lead { grid-template-columns: 1.1fr 1fr; }
}

.twc-page .twc-lead__title {
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -0.018em;
	margin: 0.55rem 0 0.65rem;
}

.twc-lead__title a,
.twc-card__title a {
	color: var(--ink);
	text-decoration: none;
	background-image: linear-gradient(var(--rust), var(--rust));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}

.twc-lead__title a:hover,
.twc-card__title a:hover {
	color: var(--rust);
	background-size: 100% 2px;
}

.twc-lead__excerpt {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1.03rem;
	text-wrap: pretty;
}

/* grid of guides */

.twc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
	padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) 0 0;
}

.twc-card { display: flex; flex-direction: column; }

.twc-card .twc-meta { margin-top: 0.85rem; font-size: 0.8rem; }

.twc-page .twc-card__title {
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.012em;
	margin: 0.4rem 0 0.45rem;
}

.twc-card__excerpt {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.945rem;
	line-height: 1.6;
	text-wrap: pretty;
}

.twc-tax__cards { padding-top: clamp(1.5rem, 1.15rem + 1vw, 2.25rem); }

.twc-tax__all {
	max-width: var(--measure);
	margin: 1.75rem auto 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.twc-tax__all a { color: var(--rust); text-decoration: none; }
.twc-tax__all a::after { content: "\00a0\2192"; }
.twc-tax__all a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.twc-empty {
	margin: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) auto 0;
	color: var(--ink-soft);
	font-size: 1.03rem;
	line-height: 1.7;
}
.twc-empty a { color: var(--rust); }

/* ------------------------------------------------------------ pagination */

.twc-page .pagination,
.twc-page .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.25rem;
	font-weight: 700;
	font-size: 0.95rem;
}

.twc-page .nav-links :is(a, span) {
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--rule);
	border-radius: 3px;
	text-decoration: none;
	color: var(--ink);
}

.twc-page .nav-links a:hover { border-color: var(--rust); color: var(--rust); }
.twc-page .nav-links .current { background: var(--rust); border-color: var(--rust); color: #fff; }
.twc-page .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.twc-page *,
	.twc-page *::before,
	.twc-page *::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.twc-lead:hover .twc-media__img,
	.twc-card:hover .twc-media__img { transform: none; }

	.twc-lead__title a:hover,
	.twc-card__title a:hover { background-size: 100% 2px; }
}
