/*
 * Theme Name:  Revision Child
 * Theme URI:   https://revision.codesupply.co/
 * Description: Revision Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    revision
 * Version:     1.1.0
 */

/* Copy any classes from parent theme here. They will override the parent's version. */

/* --- Full-width article body on single posts -------------------------------
 * The single-post sidebar is turned off in Customizer > Post Settings >
 * Default Sidebar. With no sidebar the parent theme still centres the article
 * in a narrow 640px content wrapper, so posts look pinched on large screens.
 * Let the post body use the theme's full 1248px desktop content area.
 *
 * Scoped to .single so archives, the home page and pages keep their own
 * layout. Delete this block to restore the parent's narrow reading measure.
 */
@media (min-width: 992px) {
	.single .cs-entry__container {
		--cs-entry-content-width: var(--cs-entry-content-full);
	}

	.single .cs-entry__content-wrap {
		width: 100%;
		max-width: 100%;
	}
}

/* ==========================================================================
   Author name in post meta
   The parent theme renders the byline at the same size as the date and the
   view count, so the writer's name disappears into the row. Give it its own
   size and weight so it reads as the byline it is.
   ========================================================================== */

.cs-entry__post-meta .cs-meta-author-name {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.cs-entry__footer .cs-entry__post-meta .cs-meta-author-name,
.cs-entry__header .cs-entry__post-meta .cs-meta-author-name {
	font-size: 1.125rem;
	font-weight: 600;
}

.cs-entry__post-meta .cs-meta-author-avatar img {
	border-radius: 50%;
}

@media (max-width: 575px) {
	.cs-entry__post-meta .cs-meta-author-name,
	.cs-entry__footer .cs-entry__post-meta .cs-meta-author-name,
	.cs-entry__header .cs-entry__post-meta .cs-meta-author-name {
		font-size: 1rem;
	}
}

/* ==========================================================================
   Author archive page  (/blog/author/{name}/)
   Markup lives in inc/author.php.
   ========================================================================== */

.vl-author {
	position: relative;
	margin-bottom: 3rem;
	overflow: hidden;
	background: var(--cs-layout-background, #fff);
	border: 1px solid var(--cs-color-border);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(var(--cs-color-box-shadow-rgb, 16, 16, 16), 0.04),
		0 12px 32px -12px rgba(var(--cs-color-box-shadow-rgb, 16, 16, 16), 0.12);
}

/* Blurred banner behind the top of the card. */
.vl-author__cover {
	height: 150px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.vl-author__cover::after {
	content: "";
	display: block;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

@media (min-width: 768px) {
	.vl-author__cover {
		height: 200px;
	}
}

.vl-author__body {
	position: relative;
	padding: 0 1.5rem 2rem;
}

@media (min-width: 768px) {
	.vl-author__body {
		padding: 0 2.75rem 2.5rem;
	}
}

/* --- Identity: photo + name --------------------------------------------- */

.vl-author__identity {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.vl-author__identity {
		flex-direction: row;
		align-items: flex-end;
		gap: 1.75rem;
	}
}

.vl-author__photo {
	/* Lift the portrait so it straddles the edge of the banner. */
	margin-top: -68px;
	flex: 0 0 auto;
	width: 136px;
	height: 136px;
	border-radius: 50%;
	padding: 5px;
	background: var(--cs-layout-background, #fff);
	box-shadow: 0 8px 28px -10px rgba(var(--cs-color-box-shadow-rgb, 16, 16, 16), 0.45);
}

.vl-author__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 50%;
}

@media (min-width: 768px) {
	.vl-author__photo {
		margin-top: -76px;
		width: 172px;
		height: 172px;
		padding: 6px;
	}
}

/* Without a cover image the portrait must not hang off the top of the card. */
.vl-author--no-cover .vl-author__body {
	padding-top: 2rem;
}

.vl-author--no-cover .vl-author__photo {
	margin-top: 0;
}

.vl-author__intro {
	padding-bottom: 0.25rem;
	min-width: 0;
}

.vl-author__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cs-color-secondary);
	margin-bottom: 0.375rem;
}

.vl-author__name {
	margin: 0;
	font-size: 2rem;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--cs-color-primary);
}

@media (min-width: 768px) {
	.vl-author__name {
		font-size: 2.75rem;
	}
}

.vl-author__position {
	margin-top: 0.5rem;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--cs-color-accent);
}

.vl-author__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	color: var(--cs-color-secondary);
}

.vl-author__fact {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: inherit;
	text-decoration: none;
}

a.vl-author__fact:hover {
	color: var(--cs-color-accent);
}

.vl-author__fact .cs-icon {
	font-size: 1.125rem;
}

/* --- Bio ----------------------------------------------------------------- */

.vl-author__bio {
	margin-top: 1.75rem;
	max-width: 68ch;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--cs-color-secondary);
}

.vl-author__bio p {
	margin: 0;
}

.vl-author__bio p + p {
	margin-top: 0.875rem;
}

@media (min-width: 768px) {
	.vl-author__bio {
		font-size: 1.125rem;
	}
}

/* --- Stats + social ------------------------------------------------------ */

.vl-author__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cs-color-border);
}

.vl-author__stats {
	display: flex;
	align-items: stretch;
	gap: 2rem;
}

.vl-author__stat {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.vl-author__stat + .vl-author__stat {
	padding-left: 2rem;
	border-left: 1px solid var(--cs-color-border);
}

.vl-author__stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--cs-color-primary);
}

.vl-author__stat-label {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cs-color-secondary);
}

/* The parent's social link list carries its own top margin; not wanted here. */
.vl-author__meta .cs-page__author-social-links {
	margin-top: 0;
}

/* --- "Articles by ..." heading ------------------------------------------- */

.vl-author__section-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.vl-author__section-heading h2 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--cs-color-primary);
	white-space: nowrap;
}

.vl-author__section-heading::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--cs-color-border);
}

/* ==========================================================================
   Author box at the end of a single post
   ========================================================================== */

.vl-author-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	margin: 2.5rem 0;
	padding: 1.75rem;
	background: var(--cs-color-highlight-background);
	border-radius: 16px;
}

@media (min-width: 576px) {
	.vl-author-box {
		flex-direction: row;
		gap: 1.75rem;
		padding: 2rem;
	}
}

.vl-author-box__photo {
	flex: 0 0 auto;
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	transition: 0.25s;
}

.vl-author-box__photo:hover {
	transform: translateY(-2px);
}

.vl-author-box__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 50%;
}

@media (min-width: 576px) {
	.vl-author-box__photo {
		width: 104px;
		height: 104px;
	}
}

.vl-author-box__content {
	min-width: 0;
}

.vl-author-box__eyebrow {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cs-color-secondary);
	margin-bottom: 0.25rem;
}

.vl-author-box__name {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.vl-author-box__name a {
	color: var(--cs-color-primary);
	text-decoration: none;
	transition: 0.25s;
}

.vl-author-box__name a:hover {
	color: var(--cs-color-accent);
}

.vl-author-box__position {
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--cs-color-accent);
}

.vl-author-box__bio {
	margin: 0.75rem 0 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cs-color-secondary);
}

.vl-author-box__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 1rem;
}

.vl-author-box__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--cs-color-accent);
	text-decoration: none;
	transition: 0.25s;
}

.vl-author-box__link::after {
	content: "\2192";
	transition: 0.25s;
}

.vl-author-box__link:hover {
	color: var(--cs-color-primary);
}

.vl-author-box__link:hover::after {
	transform: translateX(3px);
}

.vl-author-box__footer .cs-page__author-social-links {
	margin-top: 0;
	gap: 0.875rem;
}

.vl-author-box__footer .cs-page__author-social-links a svg {
	width: 22px;
	height: 22px;
}

/* ==========================================================================
   CafeSeva branding - matches cafeseva.com (Tabler 1.6.1 "light & airy" skin:
   Plus Jakarta Sans, primary #066fd1, page #f5f6fa, white borderless 16px cards).
   Orange #f76707 is for money actions only (price badges), never the main button.
   Light mode only.
   ========================================================================== */

:root {
	--cafes-primary: #066fd1;
	--cafes-primary-hover: #0559a8;
	--cafes-primary-lt: #e6f1fa;
	--cafes-accent: #f76707;
	--cafes-text: #182433;
	--cafes-muted: #667382;
	--cafes-border: rgba(24, 36, 51, 0.1);
	--cafes-shadow: 0 1px 2px rgba(24, 36, 51, 0.06), 0 8px 24px -12px rgba(24, 36, 51, 0.14);
}

body {
	background: #f5f6fa;
}

body,
.cs-entry__content {
	font-family: "Plus Jakarta Sans", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Logo: blue camera tile + bold "CafeSeva", same as the main site header. */
.cs-header__logo.cafes-logo,
.cs-footer__logo.cafes-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--cafes-text);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.cafes-logo__tile {
	flex: 0 0 auto;
	display: block;
	width: 2rem !important;
	height: 2rem !important;
	max-height: none !important;
}

.cafes-logo__sub {
	color: var(--cafes-muted);
	font-weight: 600;
}

/* Header: white sticky bar with a hairline, like .cafe-site-nav. */
.cs-header {
	border-bottom: 1px solid var(--cafes-border);
	box-shadow: none;
}

.cs-header__nav-inner > li > a,
.cs-header__nav-inner > li > a > span {
	color: var(--cafes-muted);
}

.cs-header__nav-inner > li > a:hover > span,
.cs-header__nav-inner > li.current-menu-item > a > span {
	color: var(--cafes-text);
}

/* Right side: "Log in" (ghost) + "Get started" (primary). */
.cafes-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.cs-button.cafes-btn-ghost {
	background: transparent;
	color: var(--cafes-muted);
	box-shadow: none;
}

.cs-button.cafes-btn-ghost:hover {
	background: #eef0f4;
	color: var(--cafes-text);
}

.cs-button,
.cs-header__custom-button {
	border-radius: 0.625rem;
	font-weight: 600;
}

.cs-header__custom-button {
	box-shadow: 0 4px 12px rgba(6, 111, 209, 0.25);
}

@media (max-width: 575px) {
	.cafes-btn-ghost {
		display: none !important;
	}
}

/* Hero highlight: brand blue instead of the parent's hard-coded purple gradient. */
:root .cs-hero-type-1 .cs-hero__content .cs-hero__heading span,
body[data-scheme=light] .cs-hero-type-1 .cs-hero__content .cs-hero__heading span {
	background: none;
	-webkit-background-clip: initial;
	-webkit-text-fill-color: var(--cafes-primary);
	color: var(--cafes-primary);
}

/* Footer: white with a hairline on top, like .cafe-site-footer. */
.cs-footer {
	background: #fff;
	border-top: 1px solid var(--cafes-border);
}

.cs-footer__desc,
.cs-footer__copyright {
	color: var(--cafes-muted);
}

.cs-footer__copyright {
	font-size: 0.8125rem;
}

.cs-footer__nav > li > a {
	color: var(--cafes-text);
}

.cs-footer__nav > li > ul > li > a,
.cs-footer__copyright a {
	color: var(--cafes-muted);
}

.cs-footer__nav > li > ul > li > a:hover,
.cs-footer__copyright a:hover {
	color: var(--cafes-primary);
	opacity: 1;
}

/* Price badge for posts: orange only for money. */
.cafes-price {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 6px;
	background: rgba(247, 103, 7, 0.1);
	color: var(--cafes-accent);
	font-weight: 700;
}
