/*
Theme Name: CXR Pillar
Theme URI: https://cxr.works/
Author: CareerXroads
Description: Lean theme for CXR guide (pillar) pages. One layout, no page builder. Header, nav and footer are set by the theme; content is written in the block editor.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: cxr-pillar
*/

:root {
	--cxr-red: #CE1021;
	--cxr-red-dark: #9E0C19;
	--cxr-ink: #111111;
	--cxr-text: #1A1A1A;
	--cxr-muted: #5C5C5C;
	--cxr-line: #E6E6E6;
	--cxr-tint: #F7F6F4;
	--cxr-serif: Roboto, Arial, sans-serif;
	--cxr-sans: Roboto, Arial, sans-serif;
	--cxr-wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--cxr-sans); color: var(--cxr-text); background: #fff; font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--cxr-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cxr-red-dark); }
.wrap { max-width: var(--cxr-wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px 12px; display: inline-block; }

/* Header */
.site-header { border-bottom: 1px solid var(--cxr-line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.site-brand { text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: .5px; color: var(--cxr-ink); display: inline-flex; align-items: center; }
.site-brand .red { color: var(--cxr-red); }
.site-brand img, .custom-logo-link img { max-height: 60px; width: auto; display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.primary-nav a { color: var(--cxr-text); text-decoration: none; font-weight: 500; font-size: 15px; }
.primary-nav a:hover { color: var(--cxr-red); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px; border-radius: 4px; background: var(--cxr-red); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.2; }
.btn:hover { background: var(--cxr-red-dark); color: #fff; }
.btn-light { background: #fff; color: var(--cxr-red); font-weight: 700; }
.btn-light:hover { background: #fff; color: var(--cxr-red-dark); }

/* Hero */
.page-hero { position: relative; overflow: hidden; background: var(--cxr-tint); border-bottom: 1px solid var(--cxr-line); }
.page-hero .curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-hero .wrap { position: relative; padding-top: 40px; padding-bottom: 56px; }
.breadcrumbs { font-size: 14px; color: var(--cxr-muted); margin-bottom: 28px; }
.breadcrumbs a { color: var(--cxr-muted); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cxr-red); }
.page-title { margin: 0; max-width: 780px; font-family: var(--cxr-serif); font-weight: 800; letter-spacing: -0.5px; font-size: 46px; line-height: 1.15; color: var(--cxr-ink); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; line-height: 1.4; }
.byline img { border-radius: 50%; }
.byline .meta { color: var(--cxr-muted); }

/* Layout */
.page-body { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 48px; padding-bottom: 24px; }
.entry-content { flex: 999 1 560px; min-width: 0; }
.page-aside { flex: 1 1 260px; min-width: 0; }
.page-aside .sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.toc-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cxr-muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.toc a { color: var(--cxr-text); text-decoration: none; }
.toc a:hover { color: var(--cxr-red); }
.cta-box { background: var(--cxr-ink); color: #fff; border-radius: 8px; padding: 24px; }
.cta-box p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #D6D6D6; }
.cta-box .cta-title { margin: 0 0 8px; font-weight: 700; font-size: 18px; line-height: 1.35; color: #fff; }

/* Content */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-family: var(--cxr-serif); font-weight: 700; font-size: 28px; line-height: 1.25; margin: 48px 0 12px; color: var(--cxr-ink); scroll-margin-top: 24px; }
.entry-content h3 { font-size: 19px; line-height: 1.35; margin: 32px 0 8px; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 16px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 24px 0; padding: 24px 28px; background: var(--cxr-tint); border-radius: 8px; border: 0; border-left: 4px solid var(--cxr-red); font-family: var(--cxr-sans); font-size: 20px; font-style: italic; line-height: 1.5; color: var(--cxr-ink); }
.entry-content blockquote cite { display: block; margin-top: 12px; font-family: var(--cxr-sans); font-size: 15px; font-style: normal; color: var(--cxr-muted); }
.entry-content iframe, .entry-content video { max-width: 100%; }

/* Patterns */
.short-answer { border: 1px solid var(--cxr-line); border-radius: 8px; padding: 24px 28px; margin-bottom: 8px; }
.short-answer .label, .is-style-label { margin: 0 0 8px !important; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cxr-muted); }
.short-answer p:last-child { margin-bottom: 0; }
.research-cards, .research-cards > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 24px; }
.research-card { border: 1px solid var(--cxr-line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.research-cards > .wp-block-group__inner-container { margin: 0; grid-column: 1 / -1; }
.research-card > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 6px; }
.research-card p { margin: 0 !important; }
.research-card .meta { font-size: 13px; color: var(--cxr-muted); }
.research-card .title { font-weight: 700; font-size: 18px; line-height: 1.35; }
.research-card .link a { font-size: 15px; font-weight: 500; text-decoration: none; }
.wp-block-yoast-faq-block .schema-faq-section { padding: 20px 0; border-bottom: 1px solid var(--cxr-line); }
.wp-block-yoast-faq-block .schema-faq-question { display: block; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.wp-block-yoast-faq-block .schema-faq-answer { margin: 0; font-size: 17px; color: #333; }

/* Tables and embedded forms */
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--cxr-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content thead th { border-bottom: 2px solid #111; font-weight: 700; }
.entry-content .wp-block-table { overflow-x: auto; margin: 0; }
.entry-content .cxr-form iframe { width: 100% !important; border: 0; display: block; }
.entry-content .callout { background: #f6f5f3; border-left: 4px solid var(--cxr-red); padding: 16px 20px; margin: 24px 0; }
.entry-content .callout p { margin: 0 0 8px; }
.entry-content .callout p:last-child { margin: 0; }

/* Bands and footer */
.research-band { background: var(--cxr-red); color: #fff; margin-top: 48px; }
.research-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.research-band h2 { margin: 0 0 8px; font-family: var(--cxr-serif); font-size: 30px; line-height: 1.2; }
.research-band p { margin: 0; font-size: 17px; line-height: 1.5; }
.site-footer { background: var(--cxr-ink); color: #BDBDBD; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-footer a { color: #fff; }

/* Simple list (archives, search, 404) */
.simple-main { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.simple-main h1 { font-family: var(--cxr-serif); font-size: 36px; line-height: 1.2; margin: 0 0 24px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--cxr-line); }
.post-list a { font-weight: 700; text-decoration: none; color: var(--cxr-ink); }

@media (max-width: 700px) {
	body { font-size: 17px; }
	.wrap { padding-left: 20px; padding-right: 20px; }
	.page-title { font-size: 30px; line-height: 1.2; }
	.page-hero .wrap { padding-top: 24px; padding-bottom: 36px; }
	.entry-content h2 { font-size: 23px; margin-top: 36px; }
	.research-cards, .research-cards > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
	.primary-nav ul { gap: 18px; }
	.page-body { padding-top: 28px; gap: 32px; }
}
