/* ==========================================================================
   Crown Office Supplies — single Business Blog article.

   Loads after cos-home.css (tokens + primitives) and cos-blog.css (the shared
   Net 30 closing band). Scoped to body.cos-blog-post, so the legal documents —
   which are also posts — are untouched.
   ========================================================================== */

/* Electro's #primary is a Bootstrap 75% column because a sidebar is expected.
   The sidebar on these posts held one search box and nothing else, so it cost
   a quarter of the page to show a field the header already provides. */
body.cos-blog-post .content-area {
	flex: 0 0 100%;
	max-width: 100%;
}

body.cos-blog-post {
	overflow-x: clip;
}

body.cos-blog-post #sidebar,
body.cos-blog-post .sidebar-blog,
body.cos-blog-post #comments,
body.cos-blog-post #respond,
body.cos-blog-post .comment-respond,
body.cos-blog-post .comments-link,
body.cos-blog-post .post-navigation,
body.cos-blog-post .author-info,
body.cos-blog-post #blog-navigation {
	display: none !important;
}

body.cos-blog-post .site-main {
	padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Measure

   Electro ran the body text across the full 870px column — about 110
   characters per line, roughly half as long again as anything comfortable.
   Long-form prose gets a real measure; the hero image gets a little more so
   it still reads as an image rather than an inline thumbnail.
   -------------------------------------------------------------------------- */
.cos-postpage .cos-post__measure {
	max-width: 760px;
	margin-inline: auto;
}

.cos-postpage .cos-post__hero .cos-post__measure {
	max-width: 900px;
}

/* --------------------------------------------------------------------------
   1 — Masthead
   -------------------------------------------------------------------------- */
.cos-postpage .cos-post__head {
	padding-block: 30px 0;
}

.cos-postpage .cos-post__back {
	display: inline-block;
	margin-bottom: 18px;
	font-family: var(--cos-font-display);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cos-muted);
	text-decoration: none;
	transition: color .2s var(--cos-ease);
}

.cos-postpage .cos-post__back:hover,
.cos-postpage .cos-post__back:focus-visible {
	color: var(--cos-navy);
	text-decoration: none;
}

/* Electro styles .entry-title through more specific single-post selectors, so
   the headline rendered SMALLER than the article's own <h2> section headings —
   an inverted hierarchy on every post. This is the same failure the legal
   documents had; it needs the same explicit claim. */
.cos-postpage .cos-post__title,
body.cos-blog-post .site-main .cos-postpage .cos-post__title {
	font-family: var(--cos-font-display);
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.08;
	color: var(--cos-ink);
	margin: 0 0 16px;
}

.cos-postpage .cos-post__meta {
	margin: 0;
	font-size: .85rem;
	font-weight: 500;
	color: var(--cos-muted);
	font-variant-numeric: tabular-nums;
}

.cos-postpage .cos-post__meta > * + * {
	margin-left: 7px;
}

/* --------------------------------------------------------------------------
   2 — Hero image

   The source images are square-ish stock photos; at full column width the
   "Avoid scam calls" photo ran 620px tall and pushed the headline itself below
   the fold. A fixed ratio caps it regardless of what is uploaded next.
   -------------------------------------------------------------------------- */
.cos-postpage .cos-post__hero {
	margin: 30px 0 0;
}

.cos-postpage .cos-post__heroimg {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--cos-r-lg);
	background: var(--cos-surface-3);
}

/* --------------------------------------------------------------------------
   3 — Article body
   -------------------------------------------------------------------------- */
.cos-postpage .cos-post__bodyzone {
	padding-block: 34px 10px;
}

.cos-postpage .cos-post__body {
	font-size: 1.06rem;
	line-height: 1.75;
	color: var(--cos-text);
}

.cos-postpage .cos-post__body p {
	margin: 0 0 1.25em;
}

/* The generated posts open with a paragraph that carries the whole argument;
   giving it a little more presence separates article from index. */
.cos-postpage .cos-post__body > p:first-of-type {
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--cos-ink);
}

.cos-postpage .cos-post__body h2 {
	font-family: var(--cos-font-display);
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -.028em;
	line-height: 1.25;
	color: var(--cos-ink);
	margin: 2.1em 0 .6em;
	scroll-margin-top: 110px;
}

.cos-postpage .cos-post__body h3 {
	font-family: var(--cos-font-display);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--cos-ink);
	margin: 1.7em 0 .45em;
}

.cos-postpage .cos-post__body ul,
.cos-postpage .cos-post__body ol {
	margin: 0 0 1.35em;
	padding-left: 1.3em;
}

.cos-postpage .cos-post__body li {
	margin-bottom: .55em;
	line-height: 1.7;
}

.cos-postpage .cos-post__body li::marker {
	color: var(--cos-yellow-600);
}

.cos-postpage .cos-post__body strong,
.cos-postpage .cos-post__body b {
	font-weight: 700;
	color: var(--cos-ink);
}

.cos-postpage .cos-post__body a {
	color: var(--cos-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--cos-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.cos-postpage .cos-post__body a:hover {
	color: var(--cos-navy-700);
}

.cos-postpage .cos-post__body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--cos-r);
}

.cos-postpage .cos-post__body figure {
	margin: 1.8em 0;
}

.cos-postpage .cos-post__body blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--cos-yellow);
	font-size: 1.1rem;
	color: var(--cos-ink);
}

/* Generator artefacts repaired in cos_blog_clean_generator_artifacts(). */
.cos-postpage .cos-post__body .cos-post__rule {
	width: 64px;
	height: 2px;
	margin: 2.4em 0;
	border: 0;
	background: var(--cos-yellow);
	opacity: 1;
}

/* The asterisk-wrapped paragraphs are all sign-offs — a boilerplate "about
   Crown" line or a call for replies — so they read as a closing note. */
.cos-postpage .cos-post__body .cos-post__note {
	display: block;
	font-style: italic;
	font-size: .96rem;
	color: var(--cos-muted);
}

/* --------------------------------------------------------------------------
   WPBakery leftovers (the 2020 posts)

   "Avoid scam calls" is built from a vc_hoverbox whose FRONT face has an empty
   title and a lazy-loaded background that never initialises — so the component
   renders as a black slab showing its BACK face, whose text is repeated
   verbatim in the paragraph directly beneath it. It also forces min-height:250px,
   which left a large empty area under the text.

   It cannot hover on a phone anyway. Presented as what it actually is: a
   standfirst callout. No text is added or removed.
   -------------------------------------------------------------------------- */
.cos-postpage .cos-post__body .vc-hoverbox-inner {
	min-height: 0 !important;
}

.cos-postpage .cos-post__body .vc-hoverbox-front {
	display: none;
}

.cos-postpage .cos-post__body .vc-hoverbox-back,
.cos-postpage .cos-post__body .vc-hoverbox-block.vc-hoverbox-back {
	position: static;
	transform: none;
	background: var(--cos-surface-2) !important;
	border: 1px solid var(--cos-line-strong);
	border-left: 3px solid var(--cos-yellow);
	border-radius: var(--cos-r);
	padding: 22px 24px;
}

.cos-postpage .cos-post__body .vc-hoverbox-back-inner {
	padding: 0;
}

.cos-postpage .cos-post__body .vc-hoverbox-back h2,
.cos-postpage .cos-post__body .vc-hoverbox-back p,
.cos-postpage .cos-post__body .vc-hoverbox-back * {
	color: var(--cos-ink) !important;
	text-align: left !important;
}

.cos-postpage .cos-post__body .vc-hoverbox-back h2 {
	font-size: 1.15rem;
	margin: 0 0 .4em;
}

.cos-postpage .cos-post__body .vc-hoverbox-back p:last-child {
	margin-bottom: 0;
}

/* WPBakery rows use negative gutters that pull content out of the measure. */
.cos-postpage .cos-post__body .vc_row {
	margin-left: 0;
	margin-right: 0;
}

.cos-postpage .cos-post__body .vc_column_container > .vc_column-inner {
	padding-left: 0;
	padding-right: 0;
}

/* --------------------------------------------------------------------------
   4 — Keep reading
   -------------------------------------------------------------------------- */
.cos-postpage .cos-post__related {
	padding-block: 22px 46px;
}

.cos-postpage .cos-post__relatedhead {
	font-family: var(--cos-font-display);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cos-muted);
	margin: 0 0 4px;
	padding-top: 26px;
	border-top: 1px solid var(--cos-line);
}

.cos-postpage .cos-post__relatedlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cos-postpage .cos-post__relateditem {
	margin: 0;
	border-bottom: 1px solid var(--cos-line);
}

.cos-postpage .cos-post__relatedlink {
	display: block;
	padding: 18px 12px 18px 4px;
	text-decoration: none;
	color: inherit;
	transition: background-color .22s var(--cos-ease), padding-left .22s var(--cos-ease);
}

.cos-postpage .cos-post__relatedlink:hover,
.cos-postpage .cos-post__relatedlink:focus-visible {
	background: var(--cos-surface-2);
	padding-left: 12px;
	text-decoration: none;
}

.cos-postpage .cos-post__relatedmeta {
	display: block;
	font-size: .76rem;
	font-weight: 500;
	color: var(--cos-muted);
	font-variant-numeric: tabular-nums;
	margin-bottom: 4px;
}

.cos-postpage .cos-post__relatedtitle {
	display: block;
	font-family: var(--cos-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.3;
	color: var(--cos-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.cos-postpage .cos-post__head {
		padding-block: 20px 0;
	}

	.cos-postpage .cos-post__body {
		font-size: 1rem;
	}

	.cos-postpage .cos-post__body > p:first-of-type {
		font-size: 1.06rem;
	}

	.cos-postpage .cos-post__heroimg {
		aspect-ratio: 4 / 3;
		border-radius: var(--cos-r);
	}
}
