/* Editorial homepage only. OceanWP owns the outer container and site chrome. */
#cn-home {
	--primary: #2563eb;
	--heading: #172b4d;
	--accent: #0d9488;
	--surface: #f4f7fb;
	--white: #fff;
	--body: #334155;
	--muted: #52647a;
	--border: #e2e8f0;
	--warning: #92400e;
	--pad: 24px;
	--gap: 20px;
	--radius: 12px;
	--gutter: 32px;
	--section: 72px;
	box-sizing: border-box;
	max-width: 1080px;
	margin-inline: auto;
	color: var(--body);
	background: var(--white);
	font: 400 17px/1.8 system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
#cn-home *, #cn-home *::before, #cn-home *::after { box-sizing: inherit; }
#cn-home [id] { scroll-margin-top: calc(96px + var(--wp-admin--admin-bar--height, 0px)); }
#cn-home .cn-inner { padding-inline: var(--gutter); min-width: 0; }
#cn-home .cn-section { padding-block: var(--section); border-bottom: 1px solid var(--border); }
#cn-home h1, #cn-home h2, #cn-home h3, #cn-home dt, #cn-home summary {
	color: var(--heading);
	font-family: inherit;
	font-weight: 700;
	text-transform: none;
}
#cn-home h1, #cn-home h2, #cn-home h3 { letter-spacing: -.025em; line-height: 1.35; text-wrap: balance; }
#cn-home h1 { margin: 12px 0 24px; font-size: 44px; }
#cn-home h2 { margin: 0 0 24px; font-size: 30px; }
#cn-home h3 { margin: 32px 0 12px; font-size: 21px; }
#cn-home p { margin: 0 0 14px; }
#cn-home .cn-inner > p { max-width: 49em; }
#cn-home .cn-inner > :last-child, #cn-home p:last-child { margin-bottom: 0; }
#cn-home a { color: #194ebc; text-decoration: underline; text-underline-offset: .18em; }
#cn-home a:hover { color: #103b8e; }
#cn-home :focus-visible { outline: 3px solid #1849ac; outline-offset: 3px; }
#cn-home ul, #cn-home ol { margin: 12px 0 20px; padding-inline-start: 1.6em; }
#cn-home li + li { margin-top: 6px; }
#cn-home dd, #cn-home dl { margin: 0; }
#cn-home li::marker { color: var(--muted); }

/* Opening spread: no badges, illustrations, or promotional calls to action. */
#cn-home .cn-hero {
	border-top: 3px solid var(--primary);
	background: linear-gradient(115deg, #eff5ff, #f7fbfb 85%);
}
#cn-home .cn-eyebrow { margin: 0; color: #245397; font-size: 14px; font-weight: 700; letter-spacing: .035em; }
#cn-home .cn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
#cn-home .cn-actions a {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
	padding: 8px 18px; border: 1px solid #9fb8dd; border-radius: 8px;
	color: #194ebc; background: var(--white); font-weight: 700; text-decoration: none;
}
#cn-home .cn-actions a:first-child { background: var(--primary); border-color: var(--primary); color: var(--white); }
#cn-home .cn-actions a:hover, #cn-home .cn-toc a:hover { text-decoration: underline; }
#cn-home .cn-toc { padding-block: 26px; border-bottom: 1px solid var(--border); }
#cn-home .cn-toc-title, #cn-home figcaption { font-weight: 700; color: var(--heading); }
#cn-home .cn-toc ul, #cn-home .cn-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
	padding: 0; margin: 20px 0 0; list-style: none;
}
#cn-home .cn-toc ul { gap: 4px 20px; margin-top: 8px; }
#cn-home .cn-grid > *, #cn-home .cn-toc li { margin: 0; min-width: 0; }
#cn-home .cn-toc a { display: block; padding: 8px 0; min-height: 44px; text-decoration: none; border-bottom: 1px solid var(--border); }
#cn-home .cn-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#cn-home .cn-grid > * { padding: var(--pad); border: 1px solid var(--border); border-radius: var(--radius); }
#cn-home .cn-definition-cards > div { border-top: 3px solid var(--accent); background: var(--surface); }
#cn-home .cn-definition-cards dt { margin-bottom: 8px; }
#cn-home .cn-definition-cards dd, #cn-home .cn-support-list p { font-size: 1em; }
#cn-home .cn-support-list strong { color: var(--heading); }
#cn-home .cn-support-list p { margin: 8px 0; }
#cn-home .cn-caption, #cn-home .cn-cost-figure > p { font-size: 15px; color: var(--muted); }
#cn-home .cn-support-list + .cn-caption { margin-top: 14px; }
#cn-home .cn-guides-list h3 { margin: 6px 0 10px; }

/* Preserve the existing focusable scroll regions, caption and header cells. */
#cn-home .cn-table-wrap { margin: 26px 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
#cn-home table { width: 100%; min-width: 560px; margin: 0; border: 0; border-collapse: collapse; font-size: 1em; }
#cn-home #fee table { min-width: 360px; }
#cn-home caption { caption-side: top; padding: 14px 16px; color: var(--heading); background: var(--white); font-weight: 700; text-align: start; }
#cn-home th, #cn-home td { padding: 12px 16px; border: 0; border-top: 1px solid var(--border); text-align: start; vertical-align: top; }
#cn-home th { color: var(--heading); font-size: inherit; letter-spacing: normal; text-transform: none; }
#cn-home thead th { background: #ebf1fa; }
#cn-home tbody th { background: var(--surface); min-width: 6.5em; }
#cn-home .cn-note { margin: 24px 0 0; padding: var(--pad); border-inline-start: 4px solid #b45309; border-radius: 0 var(--radius) var(--radius) 0; color: var(--warning); background: #fff7ed; }
#cn-home .cn-note p + p { margin-top: 6px; }
#cn-home .cn-checklist, #cn-home .cn-steps, #cn-home .cn-references { padding-inline-start: 1.7em; }
#cn-home .cn-checklist li, #cn-home .cn-steps li { padding: 7px 4px; border-bottom: 1px solid var(--border); }
#cn-home .cn-checklist li::marker { color: var(--accent); }
#cn-home .cn-steps li::marker { color: #194ebc; font-weight: 700; }

/* A glossary diagram, not a stacked bar: the two amounts have no proportional encoding. */
#cn-home .cn-cost-figure { margin: 24px 0; padding: var(--pad); background: var(--surface); border-radius: var(--radius); }
#cn-home .cn-cost-total { margin: 14px 0 10px; padding: 12px 16px; border-inline-start: 3px solid var(--accent); background: var(--white); color: var(--heading); font-weight: 700; }
#cn-home .cn-cost-total small { color: var(--muted); font-size: 15px; font-weight: 400; }
#cn-home .cn-cost-split { display: grid; gap: 4px; padding-inline-start: 16px; border-inline-start: 1px solid #9cb4bc; }
#cn-home .cn-cost-split > div { padding-inline-start: 8px; }
#cn-home .cn-cost-figure > p { margin: 14px 0 0; }

#cn-home .cn-faq-list { margin-top: 24px; }
#cn-home details { margin: 0; border-bottom: 1px solid var(--border); }
#cn-home details:first-child { border-top: 1px solid var(--border); }
#cn-home summary { display: list-item; padding: 16px 10px; min-height: 48px; cursor: pointer; }
#cn-home summary::marker { color: var(--primary); }
#cn-home details[open] { background: var(--surface); }
#cn-home details > div { padding: 0 var(--pad) 18px; }
#cn-home .cn-business, #cn-home .cn-contact dl { border-top: 1px solid var(--border); }
#cn-home .cn-business > div, #cn-home .cn-contact dl > div { display: grid; grid-template-columns: minmax(6em, 1fr) minmax(0, 3fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
#cn-home .cn-contact { margin-top: 28px; padding: var(--pad); background: var(--surface); border-radius: var(--radius); }
#cn-home .cn-contact h3 { margin-top: 0; }
#cn-home .cn-contact dl { margin-bottom: 14px; }
#cn-home .cn-references { font-size: 16px; }
#cn-home .cn-references li { padding: 4px 0; }

@media (max-width: 900px) {
	#cn-home .cn-grid, #cn-home .cn-toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	/* Count OceanWP's outer margins toward the 20px mobile gutter. */
	#cn-home { --section: 40px; --pad: 20px; --gap: 12px; --gutter: clamp(0px, calc(20px - (100vw - 100%) / 2), 20px); font-size: 16px; }
	#cn-home h1 { font-size: 30px; margin-bottom: 18px; }
	#cn-home h2 { font-size: 24px; margin-bottom: 18px; }
	#cn-home h3 { font-size: 19px; margin-top: 24px; }
	#cn-home .cn-grid { grid-template-columns: minmax(0, 1fr); }
	#cn-home .cn-toc ul { gap: 4px 12px; }
	#cn-home .cn-hero .cn-inner { padding-inline: max(12px, var(--gutter)); }
	#cn-home .cn-actions { margin-top: 20px; }
}
@media (max-width: 380px) {
	#cn-home .cn-toc ul { grid-template-columns: minmax(0, 1fr); }
	#cn-home .cn-business > div, #cn-home .cn-contact dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	#cn-home a, #cn-home summary { animation: none; transition: none; }
}

/* OceanWP Separate + Full Width sets padding: 30px !important.
   Override only the top and mobile inline edges on the static homepage. */
body.home.page-id-5.separate-layout.content-full-width #primary { padding-top: var(--cn-home-top, 12px) !important; }
@media (max-width: 767px) {
	body.home.page-id-5.separate-layout.content-full-width #primary {
		--cn-edge: 24px;
		--cn-home-top: 4px;
		/* Count the centered parent margin toward the outer gutter. */
		padding-inline: clamp(0px, calc(var(--cn-edge) - (100vw - 100%) / 2), var(--cn-edge)) !important;
	}
}
@media (max-width: 480px) {
	body.home.page-id-5.separate-layout.content-full-width #primary { --cn-edge: 20px; }
}
@media (max-width: 360px) {
	body.home.page-id-5.separate-layout.content-full-width #primary { --cn-edge: 16px; }
}
