/* =============================================================================
   Canine Cab — Article-specific styles (long-form reading view)
   ============================================================================= */

.cc-article {
	background: #fff;
}

.cc-article__hero {
	margin-top: 0;
}

/* Featured image — cap height so wide screens don't blow it up to 1000px+
   The block markup already has aspectRatio:16/9 but on a 1900px screen
   that means 1067px tall. We cap at 480px and use object-fit cover. */
.wp-block-post-featured-image {
	max-width: 1280px;
	margin-inline: auto;
}

.wp-block-post-featured-image img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	object-position: center 35%;
	display: block;
}

@media (max-width: 768px) {
	.wp-block-post-featured-image img {
		max-height: 320px;
	}
}

/* =========================================================
   Inline CTAs (mid-article newsletter + quote prompts)
   ========================================================= */
.cc-inline-cta {
	max-width: 720px;
	margin: 2.5rem auto;
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--bg-alt);
}

.cc-inline-cta__inner {
	padding: 1.75rem 1.5rem;
}

.cc-inline-cta__placard {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #111;
	background: var(--wp--preset--color--accent);
	padding: 0.25rem 0.625rem;
	margin-bottom: 0.875rem;
}

.cc-inline-cta__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
	margin: 0 0 0.4rem;
	letter-spacing: -0.01em;
}

.cc-inline-cta__copy {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-soft);
	margin: 0 0 1rem;
}

/* Newsletter variant inputs */
.cc-inline-cta--newsletter .cc-newsletter-form__input {
	background: #fff;
	border-color: var(--wp--preset--color--line);
}

.cc-inline-cta--newsletter .cc-newsletter-form__btn {
	background: var(--wp--preset--color--ink);
	color: #fff;
	border-color: var(--wp--preset--color--ink);
}

.cc-inline-cta--newsletter .cc-newsletter-form__btn:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.cc-inline-cta--newsletter .cc-newsletter-form__note {
	color: var(--wp--preset--color--ink-soft);
}

/* Quote variant — flex layout */
.cc-inline-cta--quote .cc-inline-cta__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cc-inline-cta--quote .cc-inline-cta__copy-block {
	flex: 1 1 280px;
}

.cc-inline-cta--quote .cc-inline-cta__copy {
	margin-bottom: 0;
}

.cc-inline-cta__btn {
	display: inline-block;
	background: var(--wp--preset--color--ink);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.9375rem;
	padding: 0.875rem 1.5rem;
	border: 2px solid var(--wp--preset--color--ink);
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	min-height: 48px;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
}

.cc-inline-cta__btn:hover,
.cc-inline-cta__btn:focus {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink) !important;
}

@media (max-width: 600px) {
	.cc-inline-cta__inner { padding: 1.25rem 1rem; }
	.cc-inline-cta--quote .cc-inline-cta__btn { width: 100%; justify-content: center; }
}

.cc-article__byline {
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
}

.cc-meta-mono--sep {
	color: var(--wp--preset--color--accent-2);
	font-weight: 700;
}

/* Long-form content typography */
.cc-article .wp-block-post-content > p,
.cc-article .wp-block-post-content > ul,
.cc-article .wp-block-post-content > ol,
.cc-article .wp-block-post-content > h2,
.cc-article .wp-block-post-content > h3,
.cc-article .wp-block-post-content > h4 {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.cc-article .wp-block-post-content p {
	font-size: 1.125rem;
	line-height: 1.75;
	margin: 0 auto 1.25rem;
}

.cc-article .wp-block-post-content h2 {
	margin-top: 3rem;
	margin-bottom: 1rem;
	font-size: clamp(1.625rem, 3vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-weight: 700;
	position: relative;
	padding-top: 1rem;
}

.cc-article .wp-block-post-content h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 4px;
	background: var(--wp--preset--color--accent);
}

.cc-article .wp-block-post-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-size: 1.375rem;
	font-weight: 700;
}

.cc-article .wp-block-post-content blockquote,
.cc-article .wp-block-post-content .wp-block-quote {
	border-left: 4px solid var(--wp--preset--color--accent);
	padding-left: 1.5rem;
	margin: 2rem auto;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	font-style: normal;
	font-weight: 500;
}

.cc-article .wp-block-post-content ul,
.cc-article .wp-block-post-content ol {
	font-size: 1.0625rem;
	line-height: 1.7;
	padding-left: 1.5rem;
	margin: 0 auto 1.5rem;
}

.cc-article .wp-block-post-content li {
	margin-bottom: 0.5rem;
}

.cc-article .wp-block-post-content a {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.cc-article .wp-block-post-content a:hover {
	background: var(--wp--preset--color--accent);
}

.cc-article .wp-block-post-content figure {
	margin: 2rem 0;
}

.cc-article .wp-block-post-content figcaption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
	margin-top: 0.5rem;
	text-align: center;
}

/* Affiliate-marked links get a small subtle accent */
.cc-article .wp-block-post-content a.cc-affiliate {
	text-decoration-style: dashed;
}

.cc-article .wp-block-post-content a.cc-affiliate::after {
	content: '↗';
	display: inline-block;
	font-size: 0.85em;
	margin-left: 0.15em;
	vertical-align: super;
	color: var(--wp--preset--color--accent-2);
}

/* Author bio */
.cc-author-bio .wp-block-post-author__avatar img {
	border-radius: 0;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--ink);
}

.cc-author-bio .wp-block-post-author__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: 0.02em;
}

.cc-author-bio .wp-block-post-author__bio {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-soft);
	margin: 0.5rem 0 0;
}
