/* ==========================================================================
   Sutton Chiropractic Journal – listing + single post
   Everything is scoped under .stc-journal so the theme header/footer are untouched.
   ========================================================================== */

.stc-journal {
	--stc-bg: #f4f2ee;
	--stc-surface: #ffffff;
	--stc-band: #ebe8e2;
	--stc-navy: #1d4e6e;
	--stc-navy-dark: #163d57;
	--stc-text: #3b4046;
	--stc-muted: #6e7379;
	--stc-green: #3e8a6c;
	--stc-pill: #e2eee8;
	--stc-callout: #e6efeb;
	--stc-line: #e2ddd5;
	--stc-serif: "Lora", Georgia, "Times New Roman", serif;
	--stc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--stc-radius: 4px;

	background: var(--stc-bg);
	color: var(--stc-text);
	font-family: var(--stc-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

.stc-journal img { display: block; max-width: 100%; height: auto; }
.stc-journal a { color: var(--stc-navy); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
.stc-journal p { margin: 0; }
.stc-journal svg { flex-shrink: 0; }

.stc-journal h1, .stc-journal h2, .stc-journal h3, .stc-journal h4 {
	font-family: var(--stc-serif);
	font-weight: 400;
	color: var(--stc-navy);
	letter-spacing: -0.01em;
	text-transform: none;
	margin: 0;
}

.stc-wrap { width: 100%; max-width: 1344px; margin: 0 auto; padding: 0 48px; }

/* ---------- Shared bits ---------- */

.stc-breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	padding: 28px 0 0;
	font-size: 13px; color: var(--stc-muted);
}
.stc-breadcrumb a { color: var(--stc-muted); }
.stc-breadcrumb a:hover { color: var(--stc-navy); }
.stc-breadcrumb [aria-current] { color: var(--stc-navy); }
.stc-breadcrumb svg { opacity: .7; }

.stc-eyebrow {
	font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
	color: var(--stc-green);
}

.stc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stc-journal .stc-pill {
	display: inline-block; padding: 3px 11px; border-radius: 3px;
	background: var(--stc-pill); color: var(--stc-green);
	font-size: 12px; font-weight: 500; line-height: 1.6;
}
.stc-readtime { font-size: 12px; color: var(--stc-muted); }

.stc-journal .stc-textlink {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 500; color: var(--stc-navy);
}
.stc-journal .stc-textlink:hover { color: var(--stc-green); }

.stc-h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }

/* ---------- Card ---------- */

.stc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }

.stc-card {
	display: flex; flex-direction: column;
	background: var(--stc-surface);
	border: 1px solid var(--stc-line);
	border-radius: var(--stc-radius);
	overflow: hidden;
	transition: box-shadow .25s, transform .25s;
}
.stc-card:hover { box-shadow: 0 14px 30px -18px rgba(29, 78, 110, .35); transform: translateY(-2px); }

.stc-card__media { display: block; aspect-ratio: 400 / 218; overflow: hidden; background: var(--stc-band); }
.stc-journal .stc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.stc-card:hover .stc-card__media img { transform: scale(1.03); }
.stc-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe8e2, #ebe8e2); }

.stc-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.stc-card__title { font-size: 24px; line-height: 1.27; margin-top: 18px !important; }
.stc-journal .stc-card__title a { color: var(--stc-navy); }
.stc-journal .stc-card__title a:hover { color: var(--stc-navy-dark); }
.stc-card__excerpt { margin-top: 14px !important; font-size: 14px; line-height: 1.65; color: var(--stc-muted); }
.stc-journal .stc-card__link {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: auto; padding-top: 40px;
	font-size: 13px; font-weight: 500; color: var(--stc-navy);
}
.stc-journal .stc-card__link:hover { color: var(--stc-green); }

/* ==========================================================================
   LISTING
   ========================================================================== */

.stc-intro {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start;
	padding: 44px 0 52px;
}
.stc-intro .stc-eyebrow { margin-bottom: 14px; }
.stc-intro__title { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; }
.stc-intro__aside { padding-top: 34px; font-size: 16px; line-height: 1.8; color: var(--stc-muted); }
.stc-byline { display: flex; align-items: center; gap: 10px; margin-top: 12px !important; font-size: 12px; color: var(--stc-green); }
.stc-byline span { display: inline-block; width: 28px; height: 2px; background: var(--stc-green); }

/* Featured */
.stc-featured {
	display: grid; grid-template-columns: 53.2% 1fr;
	background: var(--stc-surface);
	border: 1px solid var(--stc-line);
	border-radius: var(--stc-radius);
	overflow: hidden;
}
.stc-featured__media { position: relative; display: block; min-height: 380px; background: var(--stc-band); }
.stc-journal .stc-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stc-featured__badge {
	position: absolute; top: 24px; left: 24px;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border-radius: 3px;
	background: rgba(255, 255, 255, .92); color: var(--stc-navy);
	font-size: 12px; font-weight: 500;
}
.stc-featured__body { display: flex; flex-direction: column; padding: 40px 40px 34px; }
.stc-featured__title { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.2; margin-top: 22px !important; }
.stc-journal .stc-featured__title a { color: var(--stc-navy); }
.stc-featured__excerpt { margin-top: 22px !important; font-size: 15px; line-height: 1.8; color: var(--stc-muted); max-width: 520px; }
.stc-journal .stc-featured__link {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: auto; padding-top: 22px; border-top: 1px solid var(--stc-line);
	font-size: 14px; font-weight: 500; color: var(--stc-navy);
}
.stc-featured__excerpt + .stc-featured__link { margin-top: auto; }
.stc-featured__body > .stc-featured__link { margin-top: auto; }
.stc-journal .stc-featured__link:hover { color: var(--stc-green); }

/* Explore */
.stc-explore { padding: 64px 0 64px; scroll-margin-top: 120px; }
.stc-explore__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.stc-explore__head p { font-size: 14px; color: var(--stc-muted); }

.stc-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding-bottom: 24px; border-bottom: 1px solid var(--stc-line);
}
.stc-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.stc-journal .stc-filter {
	display: inline-flex; align-items: center; height: 42px; padding: 0 17px;
	border: 1px solid var(--stc-line); border-radius: var(--stc-radius);
	background: transparent; color: var(--stc-text); font-size: 14px;
}
.stc-journal .stc-filter:hover { border-color: var(--stc-navy); color: var(--stc-navy); }
.stc-journal .stc-filter.is-active { background: var(--stc-navy); border-color: var(--stc-navy); color: #fff; }

.stc-search {
	position: relative; display: flex; align-items: center;
	width: 292px; max-width: 100%; height: 44px; margin: 0;
	background: var(--stc-band); border-radius: var(--stc-radius);
}
.stc-search svg { position: absolute; left: 16px; color: var(--stc-muted); pointer-events: none; }
.stc-journal .stc-search input[type="search"] {
	width: 100%; height: 100%; margin: 0; padding: 0 16px 0 46px;
	border: 1px solid transparent; border-radius: var(--stc-radius);
	background: transparent; box-shadow: none;
	font: inherit; font-size: 13px; color: var(--stc-text);
}
.stc-journal .stc-search input[type="search"]:focus { outline: none; border-color: var(--stc-navy); background: #fff; }

.stc-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 22px; font-size: 12px; color: var(--stc-muted); }
.stc-sort { position: relative; display: inline-flex; align-items: center; }
.stc-sort select {
	appearance: none; -webkit-appearance: none;
	height: auto; margin: 0; padding: 4px 22px 4px 4px;
	border: 0; background: transparent; box-shadow: none;
	font: inherit; font-size: 12px; color: var(--stc-text); cursor: pointer;
}
.stc-sort svg { position: absolute; right: 2px; pointer-events: none; color: var(--stc-text); }

/* Pagination */
.stc-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 40px; font-size: 13px; }
.stc-pagination__prev a, .stc-pagination__next a,
.stc-pagination .is-disabled { display: inline-flex; align-items: center; gap: 8px; }
.stc-pagination__next { justify-self: end; }
.stc-pagination .is-disabled { color: #b2b5b8; }
.stc-journal .stc-pagination__prev a, .stc-journal .stc-pagination__next a { color: var(--stc-navy); font-weight: 500; }
.stc-pagination__pages { display: flex; gap: 8px; }
.stc-journal .stc-pagination__pages .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 6px;
	border: 1px solid var(--stc-line); border-radius: var(--stc-radius);
	background: var(--stc-surface); color: var(--stc-text);
}
.stc-journal .stc-pagination__pages a.page-numbers:hover { border-color: var(--stc-navy); color: var(--stc-navy); }
.stc-journal .stc-pagination__pages .page-numbers.current { background: var(--stc-navy); border-color: var(--stc-navy); color: #fff; }
.stc-journal .stc-pagination__pages .page-numbers.dots { border: 0; background: none; min-width: 20px; }

.stc-empty { padding: 60px 0; text-align: center; }
.stc-empty h3 { font-size: 28px; }
.stc-empty p { margin: 10px 0 20px !important; color: var(--stc-muted); }

/* ==========================================================================
   SINGLE ARTICLE
   ========================================================================== */

.stc-article__layout,
.stc-article__head { display: grid; grid-template-columns: 216px minmax(0, 640px); gap: 0 56px; }

.stc-article__head { padding: 40px 0 32px; }
.stc-article__back { padding-top: 2px; }
.stc-article__intro .stc-meta { justify-content: flex-start; gap: 14px; }
.stc-article__title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.12; margin-top: 18px !important; }
.stc-article__lede { margin-top: 22px !important; font-size: 18px; line-height: 1.65; color: var(--stc-muted); }

.stc-article__hero { margin: 0 0 56px; }
.stc-journal .stc-article__hero img { width: 100%; aspect-ratio: 1248 / 560; object-fit: cover; border-radius: var(--stc-radius); }
.stc-article__hero figcaption { margin-top: 12px; font-size: 12px; color: var(--stc-muted); }

/* TOC */
.stc-toc__inner { position: sticky; top: 120px; }
.stc-toc ol { list-style: none; margin: 18px 0 0; padding: 0 0 0 20px; border-left: 1px solid var(--stc-line); }
.stc-toc li { margin: 0 0 14px; padding: 0; }
.stc-toc li:last-child { margin-bottom: 0; }
.stc-journal .stc-toc a { display: block; font-size: 13px; line-height: 1.5; color: var(--stc-muted); position: relative; }
.stc-journal .stc-toc a:hover, .stc-journal .stc-toc a.is-active { color: var(--stc-navy); }
.stc-journal .stc-toc a.is-active::before {
	content: ""; position: absolute; left: -21px; top: 0; bottom: 0; width: 2px; background: var(--stc-green);
}
.stc-toc__note { margin-top: 24px !important; font-size: 12px; line-height: 1.6; color: var(--stc-muted); }

/* Article content (Gutenberg / classic output) */
.stc-content { font-size: 16px; line-height: 1.85; color: var(--stc-text); }
.stc-content > * + * { margin-top: 22px !important; }
.stc-content > *:first-child { margin-top: 0 !important; }
.stc-content p { margin: 0; }
.stc-content h2 { font-size: 30px; line-height: 1.25; margin-top: 52px !important; scroll-margin-top: 120px; }
.stc-content h3 { font-size: 24px; line-height: 1.3; margin-top: 40px !important; }
.stc-content h4 { font-size: 20px; margin-top: 32px !important; }
.stc-content h2 + *, .stc-content h3 + *, .stc-content h4 + * { margin-top: 18px !important; }
.stc-journal .stc-content a { color: var(--stc-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29, 78, 110, .35); }
.stc-journal .stc-content a:hover { color: var(--stc-green); text-decoration-color: currentColor; }
.stc-content ul, .stc-content ol { margin: 0; padding-left: 22px; }
.stc-content li + li { margin-top: 8px; }
.stc-content li::marker { color: var(--stc-green); }
.stc-content strong { color: var(--stc-navy); font-weight: 600; }
.stc-content img { border-radius: var(--stc-radius); }
.stc-content figure { margin-left: 0; margin-right: 0; }
.stc-content figcaption { margin-top: 10px; font-size: 12px; color: var(--stc-muted); text-align: left; }
.stc-content hr { border: 0; border-top: 1px solid var(--stc-line); margin: 40px 0 !important; }

/* Callout / quote: "A small thing to try"
   Use a Group block with the class "stc-callout", or a normal Quote block. */
.stc-content blockquote,
.stc-content .wp-block-quote,
.stc-content .stc-callout {
	margin-left: 0; margin-right: 0;
	padding: 30px 32px;
	background: var(--stc-callout);
	border: 0; border-left: 3px solid var(--stc-green);
	border-radius: 0 var(--stc-radius) var(--stc-radius) 0;
	font-style: normal;
	quotes: none;
}
.stc-content blockquote::before, .stc-content blockquote::after { content: none; display: none; }
.stc-content .stc-callout > * + *,
.stc-content blockquote > * + * { margin-top: 14px !important; }
.stc-content .stc-callout > *:first-child,
.stc-content blockquote > *:first-child { margin-top: 0 !important; }
.stc-content .stc-callout > p:first-child:not(:only-child) {
	font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--stc-green);
}
.stc-content .stc-callout h2,
.stc-content .stc-callout h3 { font-size: 26px; line-height: 1.3; margin-top: 10px !important; }
.stc-content .stc-callout p,
.stc-content blockquote p { font-size: 14px; line-height: 1.8; }
.stc-content .stc-callout > p:last-child:not(:first-child),
.stc-content blockquote cite { color: var(--stc-navy); font-style: normal; font-size: 14px; }

.stc-article__foot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--stc-line); }
.stc-article__note { font-size: 13px; line-height: 1.7; color: var(--stc-muted); margin-bottom: 22px !important; }

.stc-pagelinks { margin-top: 32px; font-size: 14px; }

/* Related */
.stc-related { margin-top: 64px; padding: 48px 0 80px; border-top: 1px solid var(--stc-line); }
.stc-related__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }

/* ==========================================================================
   CTA + disclaimer
   ========================================================================== */

.stc-cta { background: var(--stc-band); padding: 72px 0 70px; margin-top: 16px; }
.stc-listing .stc-cta { margin-top: 0; }
.stc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.stc-cta .stc-eyebrow { margin-bottom: 18px; }
.stc-cta__title { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; }
.stc-cta__copy { margin-top: 20px !important; max-width: 650px; font-size: 16px; line-height: 1.8; color: var(--stc-muted); }
.stc-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; flex-shrink: 0; padding-right: 72px; }

.stc-journal .stc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 24px;
	min-width: 222px; height: 50px; padding: 0 24px;
	background: var(--stc-navy); color: #fff; border-radius: var(--stc-radius);
	font-size: 14px; font-weight: 500;
}
.stc-journal .stc-btn:hover { background: var(--stc-navy-dark); color: #fff; }
.stc-journal .stc-cta__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--stc-navy); }
.stc-journal .stc-cta__phone:hover { color: var(--stc-green); }

.stc-disclaimer { background: var(--stc-bg); border-top: 1px solid var(--stc-line); padding: 22px 0; }
.stc-disclaimer .stc-wrap { display: flex; align-items: flex-start; gap: 12px; }
.stc-disclaimer svg { margin-top: 2px; color: var(--stc-muted); }
.stc-disclaimer p { font-size: 11px; line-height: 1.6; color: var(--stc-muted); }

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

@media (max-width: 1100px) {
	.stc-wrap { padding: 0 32px; }
	.stc-grid { grid-template-columns: repeat(2, 1fr); }
	.stc-featured { grid-template-columns: 1fr 1fr; }
	.stc-toolbar { flex-direction: column; align-items: stretch; }
	.stc-search { width: 100%; }
	.stc-cta__actions { padding-right: 0; }
}

@media (max-width: 900px) {
	.stc-intro { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 40px; }
	.stc-intro__aside { padding-top: 0; }

	.stc-featured { grid-template-columns: 1fr; }
	.stc-featured__media { min-height: 0; aspect-ratio: 16 / 10; }
	.stc-featured__body { padding: 28px 24px 24px; }
	.stc-featured__excerpt { margin-bottom: 28px !important; }

	.stc-article__head,
	.stc-article__layout { grid-template-columns: 1fr; }
	.stc-article__head { padding: 28px 0 28px; }
	.stc-article__back { margin-bottom: 22px; }
	.stc-article__hero { margin-bottom: 36px; }
	.stc-journal .stc-article__hero img { aspect-ratio: 16 / 10; }

	.stc-toc { margin-bottom: 36px; }
	.stc-toc__inner { position: static; padding: 22px 24px; background: var(--stc-surface); border: 1px solid var(--stc-line); border-radius: var(--stc-radius); }
	.stc-toc__note { display: none; }
	.stc-article__main { max-width: 680px; }

	.stc-cta__inner { flex-direction: column; align-items: flex-start; }
	.stc-cta__actions { align-items: flex-start; }
}

@media (max-width: 640px) {
	.stc-wrap { padding: 0 16px; }
	.stc-grid { grid-template-columns: 1fr; }
	.stc-explore { padding: 48px 0; }
	.stc-explore__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.stc-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.stc-filters::-webkit-scrollbar { display: none; }
	.stc-journal .stc-filter { flex-shrink: 0; height: 38px; }
	.stc-pagination { grid-template-columns: auto 1fr auto; gap: 8px; }
	.stc-pagination__pages { justify-content: center; }
	.stc-pagination__prev span span, .stc-pagination__next span span,
	.stc-pagination__prev a span, .stc-pagination__next a span { display: none; }
	.stc-journal .stc-pagination__pages .page-numbers { min-width: 38px; height: 38px; }
	.stc-content h2 { font-size: 26px; margin-top: 40px !important; }
	.stc-content .stc-callout, .stc-content blockquote { padding: 24px 20px; }
	.stc-related__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.stc-related { padding-bottom: 56px; }
	.stc-cta { padding: 52px 0; }
	.stc-journal .stc-btn { width: 100%; }
	.stc-cta__actions { width: 100%; align-items: center; }
}
