/* ==========================================================================
   XGNFB — shared inner pages
   Full-bleed and dark, matching the front page shell.
   The wrapper spans the viewport; only running text is held to a readable
   measure. Boxed white cards are gone.
   ========================================================================== */

body.xgn-inner-page {
	background: #070b12 !important;
	color: #e9eef7;
}

.xgn-inner-page .head {
	background: #070b12;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.8);
}

.xgn-body .inner-page {
	background: transparent;
	color: #e9eef7;
	min-height: 60vh;
	padding: calc(var(--head-h, 78px) + 34px) 0 96px;
}

/* Full width, same gutters as the home page sections. */
.inner-page__wrap {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0 var(--gut, clamp(20px, 3.6vw, 64px));
}

/* ---------- breadcrumb ---------- */

.inner-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	color: var(--muted-2, #6d7c92);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.5;
}

.inner-breadcrumb a {
	color: var(--muted, #93a1b5);
	text-decoration: none;
	transition: color 0.2s ease;
}

.inner-breadcrumb a:hover {
	color: var(--accent, #ff6b1a);
}

.inner-breadcrumb span[aria-current="page"] {
	color: #e9eef7;
}

/* ---------- page title ---------- */

.inner-page__head h1 {
	margin: 0 0 30px;
	color: #ffffff;
	font-size: clamp(34px, 4.6vw, 64px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.05;
	max-width: 26ch;
}

/* ---------- content body ---------- */

.inner-page__content {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #c3cddb;
	padding: 0;
}

.inner-page__content > :first-child {
	margin-top: 0;
}

.inner-page__content > :last-child {
	margin-bottom: 0;
}

.inner-page__content h1,
.inner-page__content h2 {
	color: #ffffff;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.inner-page__content h1 {
	font-size: clamp(30px, 4vw, 48px);
	margin: 0 0 22px;
}

.inner-page__content h2 {
	font-size: clamp(23px, 2.6vw, 34px);
	margin: 52px 0 16px;
	padding-top: 26px;
	border-top: 1px solid var(--line, rgba(148, 163, 184, 0.16));
	max-width: 34ch;
}

.inner-page__content > h2:first-child {
	padding-top: 0;
	border-top: 0;
	margin-top: 0;
}

.inner-page__content h3 {
	color: #ffffff;
	font-size: 21px;
	font-weight: 700;
	margin: 32px 0 12px;
	max-width: 40ch;
}

.inner-page__content p,
.inner-page__content li {
	color: #c3cddb;
	font-size: 16.5px;
	line-height: 1.78;
}

.inner-page__content p {
	max-width: 82ch;
}

.inner-page__content ul,
.inner-page__content ol {
	margin: 0 0 22px;
	padding-left: 22px;
	max-width: 82ch;
}

.inner-page__content li + li {
	margin-top: 7px;
}

.inner-page__content li strong {
	color: #ffffff;
}

.inner-page__content .pd__tag,
.inner-page__content .pd__hint,
.inner-page__content .pd__note {
	color: var(--muted, #93a1b5) !important;
}

.inner-page__content a {
	color: #ffaf83;
	text-decoration: none;
	transition: color 0.2s ease;
}

.inner-page__content a:hover {
	color: #ffd2b4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.inner-page__content img {
	max-width: 100%;
	height: auto;
}

/* ---------- tables ---------- */

.inner-page__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 26px 0;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.02);
}

.inner-page__content th,
.inner-page__content td {
	border: 1px solid var(--line, rgba(148, 163, 184, 0.16));
	padding: 11px 13px;
	text-align: left;
	vertical-align: top;
	color: #c9d3e0;
}

.inner-page__content th {
	background: rgba(255, 255, 255, 0.04);
	color: #ffffff !important;
	font-weight: 700;
}

/* ---------- catalogue variant ---------- */

.inner-page--catalog {
	padding: calc(var(--head-h, 78px) + 30px) 0 80px;
}

.inner-page--catalog .inner-page__wrap {
	width: 100%;
	max-width: none;
	padding: 0 var(--gut, clamp(20px, 3.6vw, 64px));
}

.inner-page--catalog .inner-page__head {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.inner-page--catalog .inner-breadcrumb {
	margin-bottom: 10px;
}

.inner-page--catalog .inner-page__head h1 {
	margin-bottom: 26px;
	max-width: 30ch;
}

.inner-page__content--catalog {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
	.xgn-body .inner-page {
		padding: calc(var(--head-h, 68px) + 26px) 0 62px;
	}

	.inner-page__wrap,
	.inner-page--catalog .inner-page__wrap {
		padding: 0 18px;
	}

	.inner-page__head h1 {
		margin-bottom: 22px;
	}

	.inner-page__content p,
	.inner-page__content li {
		font-size: 16px;
	}
}

/* ---------- table head cell colour ---------- */

.inner-page__content table td * {
	color: inherit !important;
}

.inner-page__content thead,
.inner-page__content thead th,
.inner-page__content thead td {
	background: #0b1220 !important;
	border-color: #273449 !important;
	color: #ffffff !important;
}

.inner-page__content thead * {
	color: #ffffff !important;
}

/* ---------- wide screens: title rail + body column ----------
   A single left-aligned column left a large void on the right at 1440px+.
   The heading moves into a sticky rail so the page fills the viewport the
   way the home page sections do, while the running text keeps a readable
   measure. The catalogue page keeps its own full-width grid. */

@media (min-width: 1024px) {
	.inner-page:not(.inner-page--catalog) .inner-page__wrap {
		display: grid;
		grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
		gap: clamp(32px, 4.6vw, 96px);
		align-items: start;
	}

	.inner-page:not(.inner-page--catalog) .inner-page__head {
		position: sticky;
		top: calc(var(--head-h, 78px) + 30px);
	}

	.inner-page:not(.inner-page--catalog) .inner-page__head h1 {
		margin-bottom: 0;
		font-size: clamp(32px, 3.1vw, 54px);
		max-width: 14ch;
	}

	.inner-page:not(.inner-page--catalog) .inner-page__content {
		padding-top: 4px;
	}

	.inner-page:not(.inner-page--catalog) .inner-page__content p,
	.inner-page:not(.inner-page--catalog) .inner-page__content ul,
	.inner-page:not(.inner-page--catalog) .inner-page__content ol {
		max-width: 74ch;
	}

	.inner-page:not(.inner-page--catalog) .inner-page__content h2 {
		max-width: 30ch;
	}
}

/* ==========================================================================
   About page (ID 7) — full-width layout, same as the front page sections.
   Kills the title-rail grid and the reading-measure caps so the whole page
   spans the viewport (minus the standard --gut gutters), like the home page.
   ========================================================================== */

body.page-id-7 .inner-page:not(.inner-page--catalog) .inner-page__wrap {
	display: block;
}

body.page-id-7 .inner-page__head {
	position: static;
}

body.page-id-7 .inner-page__head h1 {
	margin-bottom: 26px;
	max-width: none;
	font-size: clamp(32px, 3.6vw, 54px);
}

body.page-id-7 .inner-page .inner-page__content p,
body.page-id-7 .inner-page .inner-page__content li,
body.page-id-7 .inner-page .inner-page__content ul,
body.page-id-7 .inner-page .inner-page__content ol,
body.page-id-7 .inner-page .inner-page__content h1,
body.page-id-7 .inner-page .inner-page__content h2,
body.page-id-7 .inner-page .inner-page__content h3 {
	max-width: none;
}

body.page-id-7 .inner-page__content img {
	width: 100%;
	height: auto;
}

body.page-id-7 .inner-page__content .wp-block-video video {
	width: 100%;
}

/* Factory gallery: 3-up full-width grid instead of the narrow 2-up column. */
body.page-id-7 .inner-page__content .wp-block-gallery.is-layout-flex {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

body.page-id-7 .inner-page__content .wp-block-gallery.is-layout-flex > figure {
	width: auto !important;
	margin: 0 !important;
}

@media (max-width: 920px) {
	body.page-id-7 .inner-page__content .wp-block-gallery.is-layout-flex {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- post featured image and archive listings ---------- */
.inner-page__featured {
	margin: 4px 0 38px;
	overflow: hidden;
	border: 1px solid rgba(148,163,184,.18);
	border-radius: 18px;
	background: #0d1420;
	max-width: 1180px;
}
.inner-page__featured img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 620px;
	object-fit: cover;
}
.inner-page__meta a {
	color: #ffaf83;
	text-decoration: none;
}
.inner-page__archive-intro {
	max-width: 72ch;
	margin: -16px 0 32px;
	color: #93a1b5;
	font-size: 16px;
	line-height: 1.7;
}
.xgnfb-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 10px 0 38px;
}
.xgnfb-archive-card {
	overflow: hidden;
	border: 1px solid rgba(148,163,184,.18);
	border-radius: 16px;
	background: #0d1420;
	box-shadow: 0 18px 42px -30px rgba(0,0,0,.9);
}
.xgnfb-archive-media {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #111a2a;
}
.xgnfb-archive-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.xgnfb-archive-card:hover .xgnfb-archive-media img {
	transform: scale(1.025);
}
.xgnfb-archive-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #ff6b1a;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: .08em;
}
.xgnfb-archive-body {
	padding: 19px 20px 22px;
}
.xgnfb-archive-meta {
	margin: 0 0 8px !important;
	color: #ffaf83 !important;
	font-size: 10.5px !important;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.xgnfb-archive-body h2 {
	margin: 0 0 9px;
	padding: 0 !important;
	border: 0 !important;
	font-size: 21px !important;
	line-height: 1.25 !important;
}
.xgnfb-archive-body h2 a {
	color: #fff !important;
	text-decoration: none !important;
}
.xgnfb-archive-body > p:not(.xgnfb-archive-meta) {
	margin: 0;
	color: #9caabd !important;
	font-size: 13px !important;
	line-height: 1.65 !important;
}
.xgnfb-archive-link {
	display: inline-flex;
	margin-top: 15px;
	color: #ffaf83 !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
}
.xgnfb-archive-link:hover {
	color: #ffd2b4 !important;
}
.archive-page .navigation.pagination {
	margin-top: 28px;
}
.archive-page .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.archive-page .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid rgba(148,163,184,.24);
	border-radius: 8px;
	color: #dfe7f1;
	text-decoration: none;
}
.archive-page .page-numbers.current {
	border-color: #ff6b1a;
	background: #ff6b1a;
	color: #111a2a;
	font-weight: 800;
}
@media (max-width: 980px) {
	.xgnfb-archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
	.xgnfb-archive-grid { grid-template-columns: 1fr; }
	.inner-page__featured { margin-bottom: 28px; border-radius: 13px; }
}


/* Keep article body in the wide right-hand column on desktop. */
@media (min-width: 1024px) {
  body.single-post .inner-page:not(.inner-page--catalog) .inner-page__head {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  body.single-post .inner-page:not(.inner-page--catalog) .inner-page__featured {
    grid-column: 2;
    grid-row: 1;
  }
  body.single-post .inner-page:not(.inner-page--catalog) .inner-page__content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
}

/* Accessible author link contrast on article headers. */
.inner-page__date a{color:#9a3412!important;text-decoration:underline;text-underline-offset:2px}
.inner-page__date a:hover{color:#7c2d12!important}
