/*
 * GOZA Blog adaptation layer.
 *
 * The blog header/footer reuse the main-site brand styles (app/brand/actions),
 * whose layout is built on the main-site rem/vw baseline. Do NOT pin rem-based
 * containers, columns, logo size or gaps to fixed px here — that breaks the
 * responsive scaling. This layer only patches what the blog lacks versus the
 * main site: reveal visibility, the dark header surface, fixed-header offset,
 * and blog-content font sizing.
 */

/* --- Reveal elements: main site hides them until its scroll handler runs.
     The blog does not bundle that handler, so keep them visible. --- */
[data-reveal],
[data-title],
.setLeft,
.setUp {
	visibility: visible !important;
}

/* --- Dark header surface. The main site drives its deep slate through an
     inline style + scroll-state JS on .header:before; the blog does not run
     that JS, so lay the opaque slate on the header itself and hide the
     default white-glass pseudo element. --- */
.header.bc {
	background: #152630;
	color: #fff;
}
.header.bc:before {
	display: none;
}

/* Header chevron: the main-site svg is tuned for its light header; invert it
   to white on the blog's dark header. Scoped to this adaptation layer only,
   so the origin site is untouched. Dropdown panel arrows (.arr) keep their
   original dark color. */
.header .nav .chev img {
	filter: invert(1);
}

/* --- Fixed header reserves vertical space for blog content, using the
     main site's own --hdTop variable. --- */
.wp-site-blocks {
	padding-top: var(--hdTop, 70px);
}

/* --- Blog content stays on a normal 16px reading baseline. The main-site
     rem baseline (html font-size: min(4.6875vw,100px)) only serves the
     header/footer; WordPress post blocks must not inherit that enlarged rem
     scale. rem cannot be re-based per container, so the WP font-size presets
     are re-declared as px on main; descendant blocks resolve their var() to
     these values. Header/footer live outside main and are untouched. --- */
.wp-site-blocks main {
	--wp--preset--font-size--small: 14px;
	--wp--preset--font-size--medium: 16px;
	--wp--preset--font-size--normal: 16px;
	--wp--preset--font-size--large: 20px;
	--wp--preset--font-size--x-large: 28px;
	--wp--preset--font-size--xx-large: 34px;
	--wp--preset--font-size--huge: 42px;
	/* The main-site rem baseline inflates WP's large spacing presets; pull
	   them back to normal blog reading rhythm inside main. */
	--wp--preset--spacing--50: clamp(18px, 2.5vw, 28px);
	--wp--preset--spacing--60: clamp(20px, 3vw, 32px);
	--wp--preset--spacing--70: clamp(28px, 3.5vw, 40px);
	--wp--preset--spacing--80: clamp(36px, 4.5vw, 56px);
	/* Content fills the available column; the wide size aligns with the
	   header/footer row width. */
	--wp--style--global--content-size: 100%;
	--wp--style--global--wide-size: 1063px;
	font-size: 16px;
	line-height: 1.6;
}

/* --- Main container: drop the parent-theme global padding on main and its
   full-width inner groups; direct children follow the main-site .row width. --- */
.wp-site-blocks main.has-global-padding,
.wp-site-blocks main .alignfull.has-global-padding {
	padding-left: 0;
	padding-right: 0;
}
.wp-site-blocks main > * {
	/* Same measure as the main-site .row; max-width follows the global
	   content size (100%) instead of a fixed pixel cap. */
	width: min(17.2rem, 100% - .4rem);
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
}
/* Parent-theme alignfull/alignwide rely on a negative outer margin to offset
   the removed global padding; replace it with auto so groups stay centered
   in the row instead of drifting left. */
.wp-site-blocks main .alignfull,
.wp-site-blocks main .alignwide {
	margin-left: auto;
	margin-right: auto;
}

/* ===================== LIST: TWO-COLUMN LAYOUT ===================== */
.goza-list-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 48px;
	align-items: start;
}
.goza-list-main-col,
.goza-sidebar {
	min-width: 0;
}
/* The sidebar is emitted before the main column in the template for DOM
   order; order places the posts left and the categories right on desktop. */
.goza-list-main-col {
	order: 1;
	padding-left: 0;
	padding-right: 0;
}
.goza-sidebar {
	order: 2;
	padding-left: 0;
	padding-right: 0;
}
/* No remaining categories: drop the empty sidebar column and let the main
   column fill the 1063px row. */
.goza-list-layout.no-sidebar {
	grid-template-columns: 1fr;
}
/* List cards sit on the shared left edge; do not let the parent theme center
   title/date/content against the 720px content size. */
.goza-list-main-col .wp-block-post-title,
.goza-list-main-col .wp-block-post-date,
.goza-list-main-col .wp-block-query-title,
.goza-list-main-col .entry-content,
.goza-list-main-col .wp-block-post-content {
	margin-inline: 0;
	padding-left: 0;
	padding-right: 0;
}
.goza-list-main-col .wp-block-post-title,
.goza-list-main-col .wp-block-post-date,
.goza-list-main-col .wp-block-query-title {
	max-width: 100%;
}
.goza-list-main-col .entry-content p,
.goza-list-main-col .wp-block-post-content p {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100%;
}

/* Blog list cards: type scale, color and rhythm aligned to the main site
   editorial cards (ways/flex). Scoped to the list column; single-post content
   in .goza-single is untouched. */
.goza-list-main-col .wp-block-post .wp-block-group {
	padding-top: 24px !important;
	padding-bottom: 24px !important;
}
.goza-list-main-col .wp-block-post + .wp-block-post {
	border-top: 1px solid #ded9d0;
}
.goza-list-main-col .wp-block-post-title {
	font-size: 28px;
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -1.2px;
	color: #273638;
	margin: 0 0 15px;
}
.goza-list-main-col .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}
.goza-list-main-col .wp-block-post-title a:hover {
	color: #ff7d00;
}
.goza-list-main-col .wp-block-post-content {
	margin-top: 0;
}
.goza-list-main-col .wp-block-post-content p {
	font-size: 14px;
	line-height: 1.75;
	color: #5d6964;
	margin: 0;
}
.goza-list-main-col .wp-block-post-date {
	font-size: 12px !important;
	line-height: 1.6;
	color: #68746d;
	margin-top: 15px !important;
}
.goza-list-main-col .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}
.goza-list-main-col .wp-block-post-date a:hover {
	color: #ff7d00;
}
@media (max-width: 600px) {
	.goza-list-main-col .wp-block-post-title {
		font-size: 24px;
	}
}
.goza-sidebar__title {
    padding-top: 24px;
	font-size: clamp(16px, 1.33333333vw, 28px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #ff7d00;
}
.goza-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}
.goza-cats li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 12px;
	color: #686868;
	font-size: 13px;
}
.goza-cats a {
	flex: 1;
	color: #111;
	text-decoration: none;
	font-size: 16px;
}
.goza-cats a:hover {
	color: #ff7d00;
}
@media (max-width: 1024px) {
	.goza-list-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}
@media (max-width: 600px) {
	.goza-hero__inner {
		padding: 40px 0;
	}
	.goza-hero__title {
		font-size: 30px;
	}
	.goza-hero__lead {
		max-width: 100%;
	}
	.goza-list-layout {
		gap: 24px;
	}
	.goza-breadcrumbs {
		gap: 6px;
		font-size: 13px;
	}
	.goza-single__hero {
		margin-bottom: 20px;
	}
}

/* Remove the skip-link-target top offset that reserved space for the fixed
   header. */
.wp--skip-link--target,
#wp--skip-link--target {
	margin-top: 0 !important;
}
.wp-block-post-content p,
.wp-block-post-content li {
	font-size: 16px;
	line-height: 1.6;
}
.wp-site-blocks main .wp-block-heading {
	line-height: 1.25;
}

/* The parent theme sets rem-based top margins that the main-site large rem
   baseline inflates to ~74px. Reset the post title → author → content gaps
   to px inside main. */
.wp-site-blocks main .wp-block-post-title + .wp-block-group {
	margin-top: 16px;
}
.wp-site-blocks main .wp-block-post-content {
	margin-top: 24px;
}
.wp-site-blocks main .wp-block-post-content + .wp-block-group {
	margin-top: 24px;
}
.wp-site-blocks main .wp-block-group.alignwide.has-global-padding {
	margin-top: 32px;
}
/* Detail: drop the parent-theme wide-size (1063px) cap on alignwide
   groups/headings/queries; let them follow the row width at 100%. */
.wp-site-blocks main .wp-block-group.alignwide,
.wp-site-blocks main .wp-block-heading.alignwide,
.wp-site-blocks main .wp-block-query.alignwide {
	max-width: 100%;
}
/* The main site sets html font-size to min(4.6875vw,100px) (~62px) for its
   own rem grid. Parent-theme block spacing and gaps are authored on a 16px
   rem base, so its 1.2rem margins/gaps inflate to ~74px. Reset the block
   spacing to px inside main only; header/footer keep the main-site rem geometry. */
.wp-site-blocks main {
	--wp--style--block-gap: 24px;
}
.wp-site-blocks main :where(.is-layout-flow) > *,
.wp-site-blocks main :where(.is-layout-constrained) > * {
	margin-block-start: 24px;
	margin-block-end: 0;
}
.wp-site-blocks main :where(.is-layout-flex),
.wp-site-blocks main :where(.is-layout-grid) {
	gap: 24px;
}

/* ============================ FONT ============================ */
/* Match the main site: Poppins across header, footer and blog content. */
body,
.wp-site-blocks,
.header,
.footer,
.wp-block-post-content,
button,
input,
textarea,
select {
	font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ============================ LIST HERO ============================ */
.goza-hero {
	position: relative;
	min-height: clamp(320px, 42vw, 520px);
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
}
.goza-hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--goza-hero-url, none);
	background-image: -webkit-image-set(
		url("images/blog-hero.avif?v=1.1.27") type("image/avif"),
		url("images/blog-hero.webp?v=1.1.27") type("image/webp"),
		url("images/blog-hero.jpg?v=1.1.27") type("image/jpeg")
	);
	background-image: image-set(
		url("images/blog-hero.avif?v=1.1.27") type("image/avif"),
		url("images/blog-hero.webp?v=1.1.27") type("image/webp"),
		url("images/blog-hero.jpg?v=1.1.27") type("image/jpeg")
	);
	background-size: cover;
	background-position: center 40%;
}
.goza-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(3, 18, 27, .92) 0%, rgba(3, 18, 27, .78) 30%, rgba(3, 18, 27, .25) 55%, rgba(3, 18, 27, .05) 75%),
		linear-gradient(180deg, rgba(2, 15, 22, .35) 0%, transparent 30%, transparent 70%, rgba(2, 15, 22, .4) 100%);
}
.goza-hero__inner {
	position: relative;
	z-index: 2;
	width: min(17.2rem, 100% - .4rem);
	margin: 0 auto;
	padding: 64px 0;
	padding-inline-end: min(8.6rem, 50% - .2rem);
}
.goza-hero__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #ff7d00;
	margin: 0 0 16px;
}
.goza-hero__title {
	font-size: clamp(34px, 4vw, 56px);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 14px;
}
.goza-hero__lead {
	font-size: 16px;
	max-width: 420px;
	color: rgba(255, 255, 255, .85);
	margin: 0;
}

/* ===================== SINGLE POST HERO IMAGE ===================== */
.goza-single__hero {
	margin-bottom: 32px;
}
.goza-single__hero img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: 12px;
}
.goza-single__hero svg {
	width: 100%;
	height: auto;
	display: block;
}

/* ===================== BREADCRUMB ===================== */
.goza-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 24px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: #686868;
}
.goza-breadcrumbs a {
	color: #062a53;
	text-decoration: none;
}
.goza-breadcrumbs a:hover, .goza-bc__current {
	color: #ff7d00;
}
.goza-bc__sep {
	color: #b8b8b8;
}

/* Hidden category terms: breadcrumb data source only, not visible on the page. */
.goza-hidden-terms {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
