/* Hiver éternel: presentation layer, loaded after the existing components.
 * Keep plugin controls and WordPress block colors scoped to their own surfaces. */
html { scroll-padding-top: calc(var(--site-header-height) + 1rem); }
body.cdg-site {
	--cdg-snow: #f4f8fc;
	--cdg-ice: #dceaf4;
	--cdg-frost: #8cafc8;
	--cdg-slate: #344e69;
	--cdg-night: #17283d;
	--cdg-amber: #c69b63;
	--cdg-amber-ink: #775027;
	--cdg-link: #28577b;
	--cdg-link-hover: #163a59;
	--cdg-border: #c4d6e5;
	--cdg-surface: #fff;
	--cdg-section-background: var(--cdg-snow);
	--cdg-separator-background: var(--cdg-ice);
	--cdg-section-texture-veil: 84%;
	--cdg-space-sm: .75rem;
	--cdg-space-md: 1.5rem;
	--cdg-space-lg: 3rem;
	--color-text: var(--cdg-night);
	--color-text-muted: var(--cdg-slate);
	--color-ink: var(--cdg-night);
	--color-parchment: var(--cdg-snow);
	--color-parchment-deep: var(--cdg-ice);
	--color-gold: var(--cdg-amber-ink);
	--color-gold-soft: var(--cdg-link);
	--color-red: var(--cdg-amber-ink);
	--color-red-deep: var(--cdg-amber-ink);
	--color-frost: var(--cdg-link);
	--color-bg-dark: var(--cdg-ice);
	--color-bg-dark-alt: var(--cdg-snow);
	--shadow-soft: 0 5px 22px rgb(39 74 104 / 8%);
	--shadow-panel: 0 10px 32px rgb(39 74 104 / 10%);
	--radius-panel: 10px;
	--radius-card: 7px;
	--container-max: 1440px;
	--hero-content-max: 1320px;
	--font-title: Georgia, "Times New Roman", serif;
	--font-body: Georgia, "Times New Roman", serif;
	background: var(--cdg-snow);
	color: var(--cdg-night);
	line-height: 1.65;
}
body.cdg-site a:hover { color: var(--cdg-link-hover); }
body.cdg-site :is(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--cdg-link);
	outline-offset: 3px;
}
body.cdg-site :is(a, h1, h2, h3, p) { overflow-wrap: break-word; }
body.cdg-site .header-search-panel {
	background: rgb(244 248 252 / 97%);
	border-color: var(--cdg-border);
	box-shadow: 0 2px 12px rgb(23 40 61 / 7%);
}
/* One translucent, fixed header across the whole site. */
body.cdg-site .site-header {
	position: fixed;
	top: 0;
	inset-inline: 0;
}
body.cdg-site .fantasy-navbar {
	padding: .65rem 0;
	background: rgb(244 248 252 / 60%);
	border-bottom: 0;
	box-shadow: none;
}
body.cdg-site .site-header.is-scrolled .fantasy-navbar {
	background: rgb(244 248 252 / 80%);
	box-shadow: 0 2px 12px rgb(23 40 61 / 7%);
}
body.cdg-site.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.cdg-site.admin-bar .site-header { top: 46px; }
}
body.cdg-site .brand-mark { background: var(--cdg-ice); border-color: var(--cdg-border); box-shadow: none; }
body.cdg-site :is(.brand-title, .navbar-nav .nav-link, .navbar-nav .dropdown-item) { color: var(--cdg-night); }
body.cdg-site .brand-title { font-size: 1.2rem; letter-spacing: .01em; }
body.cdg-site .brand-tagline { color: var(--cdg-slate); }
body.cdg-site .navbar-nav .nav-link { font-size: 1rem; letter-spacing: 0; }
body.cdg-site .navbar-nav .nav-item + .nav-item::before { display: none; }
body.cdg-site .navbar-nav :is(.nav-link:hover, .nav-link:focus, .nav-link.show, .current-menu-item > .nav-link, .current_page_item > .nav-link) { color: var(--cdg-amber-ink); }
body.cdg-site .navbar-nav .nav-link::after { background: var(--cdg-amber); }
/* Use the same clear chevron for menu and submenu disclosures. */
body.cdg-site #primaryNavigation .dropdown-toggle::after {
	content: "";
	display: inline-block;
	position: static;
	width: 8px;
	height: 8px;
	margin: 0 0 .15em .65rem;
	vertical-align: middle;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	background: none;
	transform: rotate(45deg);
}
body.cdg-site #primaryNavigation .dropdown-toggle[aria-expanded="true"]::after {
	transform: translateY(4px) rotate(225deg);
}
body.cdg-site .navbar-nav .dropdown-menu { background: var(--cdg-surface); border-color: var(--cdg-border); box-shadow: var(--shadow-panel); }
body.cdg-site .navbar-nav :is(.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active) { background: var(--cdg-ice); color: var(--cdg-night); }
body.cdg-site .navbar-nav :is(.current-menu-item, .current_page_item) > .dropdown-item,
body.cdg-site .navbar-nav .dropdown-item:is(.active, [aria-current="page"]) {
	background: var(--cdg-amber);
	color: var(--cdg-night);
}
body.cdg-site :is(.header-search-toggle, .navbar-toggler) { background: var(--cdg-snow); border-color: var(--cdg-border); color: var(--cdg-night); min-height: 44px; }
body.cdg-site .navbar-toggler-icon { filter: brightness(.25); }
body.cdg-site :is(.cdg-search-form-inner, #primaryNavigation) { background: var(--cdg-snow); border-color: var(--cdg-border); box-shadow: none; }
body.cdg-site :is(.search-field, .journal-filter-field select, .journal-filter-field input, .content-entry-body input:not([type=submit]):not([type=checkbox]):not([type=radio]), .content-entry-body textarea) {
	min-width: 0;
	max-width: 100%;
	min-height: 44px;
	padding: .7rem .85rem;
	border: 1px solid var(--cdg-border);
	border-radius: 5px;
	background: var(--cdg-surface);
	color: var(--cdg-night);
	font: inherit;
}
body.cdg-site .search-field::placeholder,
body.cdg-site .journal-filter-field input::placeholder { color: #526c84; opacity: 1; }
body.cdg-site .journal-filter-field select option { background: var(--cdg-surface); color: var(--cdg-night); }
body.cdg-site .journal-filter-field > span { color: var(--cdg-night); }

/* Panoramas stay behind their original copy and links. */
body.cdg-site .hero-section {
	min-height: 32rem;
	background-image: linear-gradient(90deg, rgb(12 33 54 / 80%), rgb(12 33 54 / 30%) 55%, transparent), var(--section-bg-image);
	background-position: center;
}
body.cdg-site .hero-section.has-hero-media { background-image: linear-gradient(90deg, rgb(12 33 54 / 82%), rgb(12 33 54 / 25%) 60%, transparent); }
body.cdg-site .hero-section::before {
	background: url("../hiver-eternel/decor/voile-flocons-banniere.webp") center / cover;
	opacity: .5;
	pointer-events: none;
}
body.cdg-site .hero-section.has-hero-media::before {
	background: url("../hiver-eternel/decor/voile-flocons-banniere.webp") center / cover, linear-gradient(90deg, rgb(12 33 54 / 82%), rgb(12 33 54 / 28%) 60%, transparent);
	opacity: 1;
}
body.cdg-site .hero-section::after { display: none; }
body.cdg-site .hero-section-inner { min-height: 32rem; padding-block: 4rem; }
body.cdg-site .hero-section-row { min-height: 0; }
/* Homepage and universe panoramas fill the entire viewport, including behind the header. */
body.cdg-site.home .hero-section,
body.cdg-site.home .hero-section-inner,
body.cdg-site .universe-landing-page .hero-section,
body.cdg-site .universe-landing-page .hero-section-inner {
	min-height: 100vh;
	min-height: 100svh;
}
body.cdg-site.home .hero-section-inner,
body.cdg-site .universe-landing-page .hero-section-inner {
	display: flex;
	align-items: center;
	padding-top: 8rem;
	padding-bottom: 4rem;
}
body.cdg-site.home .hero-section-row,
body.cdg-site .universe-landing-page .hero-section-row { flex: 1 1 auto; }
body.cdg-site .hero-content { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.cdg-site .hero-title { color: var(--cdg-snow); font-size: clamp(2.7rem, 4.3vw, 4.8rem); text-shadow: 0 2px 12px rgb(8 25 42 / 35%); font-weight: 500; }
body.cdg-site .hero-text { color: var(--cdg-snow); font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
body.cdg-site .hero-content .section-kicker { color: #e1edf8; font-size: .8rem; letter-spacing: .14em; }
body.cdg-site .hero-divider { height: 26px; filter: brightness(0) invert(1); opacity: .85; background: url("../hiver-eternel/decor/separateur-fin-losange.svg") left center / min(100%, 340px) 22px no-repeat; }
body.cdg-site .hero-divider::before { display: none; }
body.cdg-site .btn-fantasy {
	min-height: 44px;
	max-width: 100%;
	padding: .75rem 1.3rem;
	border: 1px solid var(--cdg-border);
	border-radius: 5px;
	font-size: 1rem;
	letter-spacing: 0;
	box-shadow: 0 3px 9px rgb(23 40 61 / 9%);
	white-space: normal;
}
body.cdg-site :is(.btn-cdg-primary, .btn-cdg-gold, .btn-fantasy-red) { background: var(--cdg-amber); border-color: #af834d; color: var(--cdg-night); }
body.cdg-site :is(.btn-cdg-primary:hover, .btn-cdg-gold:hover, .btn-fantasy-red:hover) { background: #d6af7d; color: var(--cdg-night); }
body.cdg-site :is(.btn-cdg-frost, .btn-fantasy-ice, .btn-fantasy-dark) { background: var(--cdg-surface); color: var(--cdg-night); border-color: var(--cdg-frost); }
body.cdg-site :is(.hero-actions, .feature-banner-content, .cta-content) :is(.btn-cdg-frost, .btn-fantasy-ice, .btn-fantasy-dark) { background: rgb(23 40 61 / 75%); color: var(--cdg-snow); border-color: #c4d6e5; }
body.cdg-site :is(.section-actions, .cdg-resource-card-action) > a.btn-fantasy {
	background: var(--cdg-slate);
	border-color: var(--cdg-slate);
	color: #fff;
}
body.cdg-site :is(.section-actions, .cdg-resource-card-action) > a.btn-fantasy:is(:hover, :focus-visible) {
	background: var(--cdg-night);
	border-color: var(--cdg-night);
	color: #fff;
}
body.cdg-site .btn-fantasy:disabled, body.cdg-site .btn-fantasy.disabled { opacity: .55; box-shadow: none; transform: none; }

/* Shared surfaces and title ornament across all theme pages. */
body.cdg-site .site-main { background: var(--cdg-separator-background); }
body.cdg-site .site-main:has(> section:not(.hero-section) + section) {
	background-image: linear-gradient(rgb(220 234 244 / 65%), rgb(220 234 244 / 65%)), url("../hiver-eternel/decor/texture-glace-fissuree-bleu-clair.webp");
	background-size: auto, 640px 640px;
	background-repeat: repeat;
}
body.cdg-site .content-shell {
	padding-block: clamp(2.5rem, 4vw, 4rem);
	background: linear-gradient(rgb(244 248 252 / var(--cdg-section-texture-veil)), rgb(244 248 252 / var(--cdg-section-texture-veil))), url("../hiver-eternel/decor/texture-givre-cristallise-bleu-clair.webp") center / 640px 640px repeat, var(--cdg-section-background);
}
body.cdg-site .site-main > .content-shell:first-child {
	padding-top: calc(var(--site-header-height) + clamp(2.5rem, 4vw, 4rem));
}
/* Place the separator in the space between sections, outside their frames. */
body.cdg-site .site-main > section:not(.hero-section) + section {
	--cdg-section-separator-space: clamp(2rem, 3vw, 3rem);
	--cdg-section-separator-height: clamp(3rem, 8vw, 5rem);
	margin-top: calc(2 * var(--cdg-section-separator-space) + var(--cdg-section-separator-height));
}
body.cdg-site .site-main > section:not(.hero-section) + section > .container::before {
	content: "";
	position: absolute;
	top: calc(-1 * var(--cdg-section-separator-space) - var(--cdg-section-separator-height));
	left: 50%;
	width: min(680px, 88%);
	height: var(--cdg-section-separator-height);
	transform: translateX(-50%);
	background: url("../hiver-eternel/decor/separateur-cristaux-et-flocons-de-glace.png") center / 100% auto no-repeat;
	pointer-events: none;
}
body.cdg-site .universe-landing-page[data-universe="frostgrave"] > section:not(.hero-section) + section {
	--cdg-section-separator-height: clamp(3.5rem, 9vw, 6rem);
}
body.cdg-site .universe-landing-page[data-universe="frostgrave"] > section:not(.hero-section) + section > .container::before {
	background-image: url("../hiver-eternel/decor/separateur-flocon-central-feuilles-givrees.png");
}
body.cdg-site :is(.content-shell)::before,
body.cdg-site :is(.content-shell)::after,
body.cdg-site .section-frame::after { display: none; }
body.cdg-site .section-frame { padding: clamp(1rem, 2.5vw, 2.5rem); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
/* Keep section frames only on the two highlighted homepage sections. */
body.cdg-site .front-page > section::after { display: none; }
body.cdg-site .front-page > section:is(#frostgrave-citadel, #rpg-combat-board)::after {
	content: "";
	display: block;
	position: absolute;
	inset: 1rem 1%;
	width: auto;
	height: auto;
	transform: none;
	border: 1px solid var(--cdg-frost);
	border-radius: 12px;
	background: none;
	opacity: 1;
	pointer-events: none;
	z-index: 2;
}
body.cdg-site .section-title { color: var(--cdg-night); font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 500; }
body.cdg-site .section-title::before { display: none; }
body.cdg-site .section-heading { margin-bottom: 2rem; }
/* One lantern welcomes visitors, attached to the introduction's frame. */
body.cdg-site .start-here-page .start-here-frame { overflow: visible; }
body.cdg-site .start-here-page .start-here-welcome {
	--cdg-welcome-lantern-size: clamp(120px, 18vw, 190px);
	position: relative;
	padding: 2.5rem calc(var(--cdg-welcome-lantern-size) + 1rem);
	border: 1px solid var(--cdg-slate);
	background: linear-gradient(135deg, var(--cdg-surface), var(--cdg-snow));
}
body.cdg-site .start-here-welcome::before,
body.cdg-site .start-here-welcome::after {
	content: "";
	position: absolute;
	top: calc(var(--cdg-welcome-lantern-size) * -.15);
	left: calc(var(--cdg-welcome-lantern-size) * -.04);
	width: var(--cdg-welcome-lantern-size);
	height: var(--cdg-welcome-lantern-size);
	pointer-events: none;
}
body.cdg-site .start-here-welcome::before {
	background: url("../hiver-eternel/decor/coin-gothique-givre-lanterne-argent.webp") center / contain no-repeat;
}
body.cdg-site .start-here-welcome::after {
	background: radial-gradient(circle at 87% 59%, rgb(255 239 177 / 65%), rgb(255 205 101 / 25%) 5%, transparent 20%);
	mix-blend-mode: screen;
}
@media (max-width: 767.98px) {
	body.cdg-site .start-here-page .start-here-welcome {
		padding: calc(var(--cdg-welcome-lantern-size) * .85 + 1rem) 1rem 1.5rem;
	}
}
body.cdg-site .section-title { display: block; }
body.cdg-site :is(.section-title, .home-intro-cta-title)::after,
body.cdg-site .universe-intro-body::after {
	content: "";
	position: static;
	display: block;
	transform: none;
	width: min(100%, 440px);
	height: 46px;
	margin: .6rem auto 0;
	background: url("../hiver-eternel/decor/ornement-titre-glace.svg") center / contain no-repeat;
	pointer-events: none;
}

body.cdg-site :is(.feature-banner, .cta-section) .section-title::after {
	filter: brightness(0) invert(1);
	opacity: .85;
}
body.cdg-site .rpgcb-promo-copy .section-title::after,
body.cdg-site .section-heading:not(.text-center) > .section-title::after { margin-left: 0; }

body.cdg-site .section-kicker { color: var(--cdg-slate); font-size: .8rem; }
body.cdg-site :is(.section-intro, .card-text, .article-card-excerpt, .article-card-meta, .universe-card-stats, .resource-post-list, .resource-post-list a, .universe-feature-card-body p, .universe-promo-card-body p) { color: var(--cdg-slate); }
body.cdg-site :is(.parchment-card, .start-here-card, .internal-link-panel, .campaign-related-preview) { background: var(--cdg-surface); border: 1px solid var(--cdg-border); color: var(--cdg-night); box-shadow: var(--shadow-soft); }
body.cdg-site :is(.parchment-card:hover, .start-here-card:hover) { color: var(--cdg-night); box-shadow: var(--shadow-panel); }
body.cdg-site :is(.card-title, .article-card-title, .resource-title) { font-size: 1.3rem; color: var(--cdg-night); }
body.cdg-site :is(.card-title a:hover, .article-card-title a:hover, .resource-title a:hover) { color: var(--cdg-link); }
body.cdg-site .card-media { aspect-ratio: 2 / 1; }
body.cdg-site .card-media::after,
body.cdg-site .article-card-media::after,
body.cdg-site .cdg-resource-card-cover .article-card-media::after { display: none; }
body.cdg-site :is(.card-body, .article-card-body) { padding: 1.1rem; }
body.cdg-site :is(.card-media-fallback, .resource-icon) { background: var(--cdg-ice); color: var(--cdg-slate); box-shadow: none; }
body.cdg-site :is(.article-card-type, .article-card-tag, .cdg-resource-badge, .rpgcb-promo-pill) { background: var(--cdg-ice); border: 1px solid var(--cdg-border); border-radius: 4px; color: var(--cdg-night); letter-spacing: 0; text-transform: none; }
body.cdg-site :is(.article-card-type:hover, .article-card-tag:hover, .cdg-resource-badge:hover) { color: var(--cdg-night); background: #c8deee; }
body.cdg-site :is(.journal-filters, .scenario-library-filters) { position: relative; background: var(--cdg-ice); border: 1px solid var(--cdg-border); border-radius: 7px; padding: var(--cdg-space-md); }
body.cdg-site :is(.journal-filter-title, .scenario-library-toolbar-title, .scenario-filter-title, .internal-link-title, .campaign-related-preview-title) { color: var(--cdg-night); }
body.cdg-site :is(.scenario-library-reset, .cdg-resource-reset) { color: var(--cdg-link); }
body.cdg-site :is(.scenario-filter-chip, .internal-link-chip-list a) { background: var(--cdg-snow); border-color: var(--cdg-border); color: var(--cdg-slate); }
body.cdg-site :is(.scenario-filter-chip.is-active, .scenario-filter-chip:hover) { background: var(--cdg-night); color: var(--cdg-snow); }
body.cdg-site .page-numbers { min-width: 44px; min-height: 44px; border-color: var(--cdg-border); border-radius: 4px; background: var(--cdg-surface); color: var(--cdg-night); }
body.cdg-site :is(.page-numbers.current, .page-numbers:hover, .page-numbers:focus) { background: var(--cdg-amber); color: var(--cdg-night); }

/* Catalogue header and filters use decorations independently of real covers. */
body.cdg-site :is(.cdg-journal, .cdg-resource-library) .section-frame > .section-heading,
body.cdg-site .section-frame > .cdg-illustrated-heading,
body.cdg-site .cdg-catalog-banner {
	padding: clamp(2rem, 4vw, 4rem) 1rem;
	border-radius: 7px;
	background: url("../hiver-eternel/decor/fond-section-brume-glace.webp") center / cover no-repeat,
		linear-gradient(0deg, rgb(244 248 252 / 98%), rgb(244 248 252 / 75%)),
		url("../img/hiver-eternel-home-hero.webp") center 45% / cover no-repeat, var(--cdg-ice);
}
body.cdg-site .site-main > .cdg-catalog-shell:first-child { padding-top: 0; }
body.cdg-site .cdg-catalog-banner {
	padding-top: calc(var(--site-header-height) + clamp(2rem, 4vw, 4rem));
	border-radius: 0;
	background:
		linear-gradient(180deg, rgb(244 248 252 / 10%) 0%, rgb(244 248 252 / 30%) 25%, rgb(244 248 252 / 74%) 62%, var(--cdg-snow) 100%),
		url("../img/hiver-eternel-home-hero.webp") center 45% / cover no-repeat, var(--cdg-snow);
}
body.cdg-site .cdg-catalog-banner .section-heading { margin-bottom: 0; }
/* WordPress pagination headings are labels for assistive technology. */
body.cdg-site :is(.pagination, .nav-links) .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

body.cdg-site .cdg-resource-card-cover { display: flex; min-height: 0; aspect-ratio: auto; background: var(--cdg-surface); color: var(--cdg-night); }
body.cdg-site .cdg-resource-card-cover .article-card-media { position: relative; inset: auto; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--cdg-border); background: var(--cdg-ice); }
body.cdg-site .cdg-resource-card-cover .article-card-media img { object-fit: contain; object-position: center; background: var(--cdg-ice); }
body.cdg-site .front-page #latest-scenarios .article-card-media img { object-position: center; }
body.cdg-site .cdg-resource-card-cover .cdg-resource-placeholder { padding: 1rem; background: var(--cdg-ice); color: var(--cdg-slate); font-size: 1.1rem; }
body.cdg-site .cdg-resource-card-cover .article-card-body { align-self: stretch; padding: 1rem; gap: .75rem; pointer-events: auto; }
body.cdg-site .cdg-resource-card-cover .article-card-title { font-size: 1.25rem; line-height: 1.25; text-shadow: none; }
body.cdg-site .cdg-resource-card-cover .article-card-title a { color: var(--cdg-night); }
body.cdg-site .cdg-resource-card-cover .cdg-resource-badge { background: var(--cdg-ice); color: var(--cdg-night); border-color: var(--cdg-border); }
body.cdg-site .cdg-resource-card-cover .cdg-resource-card-meta { color: var(--cdg-slate); }
body.cdg-site .cdg-resource-card-cover .cdg-resource-card-action { margin-top: auto; border-color: var(--cdg-border); }
body.cdg-site :is(.cdg-resource-card-link, .cdg-resource-card-download) { color: var(--cdg-link); }
body.cdg-site .cdg-resource-card-cover :is(a, button):focus-visible { outline: 3px solid var(--cdg-link); outline-offset: -3px; }
body.cdg-site .cdg-resource-reset-tooltip { background: var(--cdg-night); color: var(--cdg-snow); }

/* Readable inner pages without changing block semantics or status colors. */
body.cdg-site .content-entry-post { max-width: 960px; }
body.cdg-site .content-entry-body { color: var(--cdg-night); font-size: 1.06rem; line-height: 1.8; }
body.cdg-site :is(.content-entry-title, .content-entry-body h2, .content-entry-body h3, .content-entry-body h4, .cdg-content-toc-title, .scenario-panel-title) { color: var(--cdg-night); }
body.cdg-site :is(.cdg-breadcrumb-item, .cdg-breadcrumb-item.is-current, .content-entry-meta, .article-context-links, .taxonomy-archive-count, .internal-link-panel-heading span, .character-detail-label) { color: var(--cdg-slate); }
body.cdg-site :is(.cdg-breadcrumb-item a, .content-entry-body a, .article-context-links a) { color: var(--cdg-link); }
body.cdg-site .content-entry-body a { text-decoration: underline; text-underline-offset: .18em; }
body.cdg-site .content-entry-body a:hover { color: var(--cdg-link-hover); }
body.cdg-site :is(.cdg-content-toc-inner, .scenario-panel, .character-quote, .cdg-post-navigation .nav-previous a, .cdg-post-navigation .nav-next a) { background: var(--cdg-surface); color: var(--cdg-night); border-color: var(--cdg-border); box-shadow: var(--shadow-soft); }
body.cdg-site :is(.cdg-content-toc-item a, .character-quote p, .scenario-chip) { color: var(--cdg-slate); }
body.cdg-site .cdg-content-toc-item a:hover { color: var(--cdg-night); background: var(--cdg-ice); }
body.cdg-site .campaign-tabs .nav-link { background: var(--cdg-surface); color: var(--cdg-slate); border-color: var(--cdg-border); }
body.cdg-site .campaign-tabs .nav-link.active { background: var(--cdg-night); color: var(--cdg-snow); }
body.cdg-site .content-entry-body .wp-block-table { background: var(--cdg-surface); border-color: var(--cdg-border); }
body.cdg-site .content-entry-body .wp-block-table table { color: var(--cdg-night); }
body.cdg-site .content-entry-body .wp-block-table thead { background: var(--cdg-night); color: var(--cdg-snow); }
body.cdg-site .content-entry-body .wp-block-table tbody tr { background: var(--cdg-surface); }
body.cdg-site .content-entry-body .wp-block-table tbody tr:nth-child(odd) { background: var(--cdg-snow); }
body.cdg-site .content-entry-body .wp-block-table tbody tr:hover { background: var(--cdg-ice); }
body.cdg-site .content-entry-body .wp-block-table :is(th, td) { border-color: var(--cdg-border); }
body.cdg-site .content-entry-body .wp-block-table figcaption { color: var(--cdg-slate); }
body.cdg-site .content-entry-body .wp-block-table a { color: var(--cdg-link); }
body.cdg-site .content-entry-body .wp-block-table thead a { color: var(--cdg-snow); }
body.cdg-site .content-entry-body :is(.cdg-read-aloud, .cdg-md-note, .cdg-treasure-box) { background: #edf4fa; color: var(--cdg-night); }
body.cdg-site .content-entry-body :is(.cdg-monster-box, .cdg-encounter-box, .cdg-secret-box) { color: var(--cdg-snow); }
body.cdg-site .content-entry-body :is(.cdg-read-aloud, .cdg-md-note, .cdg-treasure-box)::before { color: var(--cdg-slate); }
body.cdg-site .content-entry-body :is(.cdg-monster-box, .cdg-encounter-box, .cdg-secret-box) :is(h2, h3, h4, a) { color: var(--cdg-snow); }

/* Light homepage introduction; illustrated promotions keep contrasting copy. */
body.cdg-site .home-intro-visual {
	min-height: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
body.cdg-site .home-intro-visual::after { display: none; }
body.cdg-site .home-intro-layout {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	min-height: 0;
	padding: 0;
}
body.cdg-site .home-intro-copy {
	min-height: 0;
	max-width: 65ch;
	justify-self: center;
	text-align: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cdg-slate);
	box-shadow: none;
}
body.cdg-site .home-intro-copy p { font-size: 1rem; line-height: 1.85; }
body.cdg-site .home-intro-copy p:first-of-type { font-weight: 400; }
body.cdg-site .home-intro-cta {
	padding: clamp(1.5rem, 3vw, 3rem);
	border: 1px solid var(--cdg-border);
	border-radius: var(--radius-panel);
	background: linear-gradient(145deg, rgb(255 255 255 / 87%), rgb(220 234 244 / 90%)), url("../hiver-eternel/decor/texture-givre-blanc-ivoire.webp") center / cover no-repeat, var(--cdg-ice);
	box-shadow: var(--shadow-soft);
}
body.cdg-site .home-intro-cta-title {
	color: var(--cdg-night);
	font-size: clamp(1.8rem, 2.6vw, 2.7rem);
	font-weight: 500;
	line-height: 1.2;
	text-shadow: none;
}
body.cdg-site :is(.home-intro-cta-kicker, .home-intro-cta-text) { color: var(--cdg-slate); }
body.cdg-site :is(.feature-banner .section-title, .cta-section .section-title, .feature-banner-content p, .cta-content p, .rpgcb-promo-text) { color: var(--cdg-snow); }
body.cdg-site .rpgcb-promo-label { color: #e3c69f; }
body.cdg-site .rpgcb-promo-section {
	background: linear-gradient(rgb(52 78 105 / 85%), rgb(52 78 105 / 85%)), url("../hiver-eternel/decor/texture-glace-fissuree-bleu-nuit.webp") center / 640px 640px repeat, var(--cdg-slate);
	color: var(--cdg-snow);
}
body.cdg-site .rpgcb-promo :is(.section-kicker, .section-title, .section-intro) { color: var(--cdg-snow); }
body.cdg-site .rpgcb-promo .section-title::after {
	filter: brightness(0) invert(1);
	opacity: .85;
}
body.cdg-site .rpgcb-promo-section :focus-visible { outline-color: var(--cdg-ice); }
body.cdg-site .site-main > section:last-of-type { margin-bottom: 0; }
body.cdg-site .site-footer {
	--color-text: var(--cdg-snow);
	margin-top: 0;
	padding-block: 3rem;
	background: linear-gradient(rgb(10 28 46 / 70%), rgb(10 28 46 / 70%)), url("../hiver-eternel/decor/panorama-montagnes-enneigees-brume.webp") center / cover no-repeat, var(--cdg-night);
	border-color: var(--cdg-frost);
	color: var(--cdg-snow);
}
body.cdg-site .site-footer::before { display: none; }
body.cdg-site :is(.footer-copy, .footer-meta, .footer-links a, .footer-socials a, .footer-title) { color: #e1edf8; }
body.cdg-site .footer-nav-title { color: #f1d9b6; }
body.cdg-site .site-footer a:hover { color: #fff; text-decoration: underline; }
body.cdg-site .site-footer a:focus-visible { outline-color: #e3c69f; }
body.cdg-site .return-to-top { background: var(--cdg-night); color: var(--cdg-snow); border-color: var(--cdg-frost); }
body.cdg-site .reveal-on-scroll { opacity: 1; transform: none; }
@media (max-width: 991.98px) {
	body.cdg-site .brand-tagline { display: none; }
	body.cdg-site .hero-section-inner { padding-block: 3rem; }
	body.cdg-site .home-intro-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
	body.cdg-site { --cdg-space-lg: 2rem; --cdg-section-texture-veil: 92%; }
	body.cdg-site .front-page > section:is(#frostgrave-citadel, #rpg-combat-board)::after {
		inset-block: .75rem;
		border-radius: 8px;
	}
	body.cdg-site .container { max-width: calc(100% - 1rem); }
	body.cdg-site .brand-title { font-size: .95rem; }
	body.cdg-site :is(.hero-section, .hero-section-inner) { min-height: 30rem; }
	body.cdg-site .hero-section { background-position: 60% center; }
	body.cdg-site .hero-section-media img { object-position: 60% center; }
	body.cdg-site .hero-content { padding-inline: .5rem; }
	body.cdg-site .hero-title { font-size: clamp(2.3rem, 9vw, 3.1rem); }
	body.cdg-site .hero-actions { gap: .75rem; }
	body.cdg-site .hero-actions .btn-fantasy { width: 100%; }
	body.cdg-site .section-frame { padding: .5rem; }
	body.cdg-site .hero-section::before { display: none; background-image: none; }
	body.cdg-site .hero-section.has-hero-media::before { display: block; background: linear-gradient(90deg, rgb(12 33 54 / 82%), rgb(12 33 54 / 35%)); }
	body.cdg-site :is(.section-title, .home-intro-cta-title)::after,
	body.cdg-site .universe-intro-body::after { width: min(100%, 250px); height: 27px; }
	body.cdg-site :is(.journal-filters, .scenario-library-filters) { padding: 1rem; }
	body.cdg-site :is(.cdg-journal, .cdg-resource-library) .section-frame > .section-heading { background: var(--cdg-ice); }
	body.cdg-site .content-entry-body { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	body.cdg-site :is(.universe-card, .article-card, .btn-fantasy):hover { transform: none; }
}

@media (min-width: 992px) {
	body.cdg-site .section-frame > .section-heading.cdg-lantern-heading {
		--cdg-heading-lantern-size: clamp(180px, 15vw, 220px);
		position: relative;
		padding-inline: calc(var(--cdg-heading-lantern-size) + 1rem);
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		overflow: visible;
	}
	body.cdg-site .cdg-lantern-heading::before,
	body.cdg-site .cdg-lantern-heading::after {
		content: "";
		position: absolute;
		/* Align the metal support with the banner; let its snow overhang. */
		top: calc(var(--cdg-heading-lantern-size) * -.15);
		left: calc(var(--cdg-heading-lantern-size) * -.06);
		width: calc(100% + var(--cdg-heading-lantern-size) * .12);
		height: var(--cdg-heading-lantern-size);
		pointer-events: none;
	}
	body.cdg-site .cdg-lantern-heading::before {
		background:
			url("../hiver-eternel/decor/coin-gothique-givre-lanterne-argent.webp") left center / var(--cdg-heading-lantern-size) 100% no-repeat,
			url("../hiver-eternel/decor/coin-gothique-givre-lanterne-argent-droite.webp") right center / var(--cdg-heading-lantern-size) 100% no-repeat;
	}
	body.cdg-site .cdg-lantern-heading::after {
		background:
			radial-gradient(circle at 87% 59%, rgb(255 239 177 / 85%) 0%, rgb(255 205 101 / 45%) 4%, rgb(255 190 76 / 18%) 10%, transparent 22%) left center / var(--cdg-heading-lantern-size) 100% no-repeat,
			radial-gradient(circle at 13% 59%, rgb(255 239 177 / 85%) 0%, rgb(255 205 101 / 45%) 4%, rgb(255 190 76 / 18%) 10%, transparent 22%) right center / var(--cdg-heading-lantern-size) 100% no-repeat;
		mix-blend-mode: screen;
	}
	body.cdg-site #primaryNavigation { background: transparent; }
	body.cdg-site .navbar-brand { flex-shrink: 0; }
	body.cdg-site .navbar-nav .nav-link { padding-inline: .65rem; font-size: .94rem; }
}

body.cdg-site .universe-intro-body { max-width: 70ch; }

/* Preserve contrast on the existing dark dice tool and illustrated promotions. */
body.cdg-site .duality-panel {
	--color-text: #f4f8fc;
	--color-text-muted: #c4d6e5;
	--color-gold-soft: #e3c69f;
	color: var(--color-text);
}
body.cdg-site :is(.cta-content, .feature-banner-content) .section-kicker { color: #e3c69f; }
body.cdg-site .scenario-adaptable-badge.is-true { color: #28577b; }
body.cdg-site .scenario-adaptable-badge.is-false { color: #7b231c; }

/* Library catalogue: compact illustrated cards and a quiet filter bar. */
body.cdg-site .cdg-library-card {
	border: 1px solid #e5eff6;
	border-radius: 5px;
	background: linear-gradient(125deg, #fff, #f3f9fe);
	box-shadow: 0 4px 16px rgb(90 143 184 / 9%);
	overflow: hidden;
}
body.cdg-site .cdg-library-card .article-card-media {
	flex: 0 0 auto;
	aspect-ratio: 8 / 3;
	margin: 3px 3px 0;
	border: 0;
	border-radius: 3px;
	overflow: hidden;
}
body.cdg-site .cdg-library-card .article-card-media img { object-fit: cover; object-position: center top; width: 100%; height: 100%; }
body.cdg-site .cdg-library-card .article-card-media :is(a, button) { display: block; width: 100%; height: 100%; }
body.cdg-site .cdg-library-card .article-card-body { padding: .45rem .85rem .35rem; gap: .4rem; flex: 1; }
body.cdg-site .cdg-library-card .cdg-resource-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
body.cdg-site .cdg-library-card .cdg-resource-badge {
	padding: .15rem .5rem;
	font-size: .75rem;
	line-height: 1.3;
	border: 0;
	border-radius: 4px;
	background: var(--cdg-amber);
	color: var(--cdg-night);
}
body.cdg-site .cdg-library-card .cdg-resource-badge.is-resource_system { background: var(--cdg-ice); }
body.cdg-site .cdg-library-card .cdg-resource-badge:hover { color: var(--cdg-night); box-shadow: inset 0 0 0 1px var(--cdg-frost); }
body.cdg-site .cdg-library-card .article-card-title { font-size: 1.1rem; line-height: 1.2; margin: 0; }
body.cdg-site .cdg-library-card .article-card-title a:hover { color: var(--cdg-link); }
body.cdg-site .cdg-library-card .article-card-excerpt {
	font-size: .92rem;
	line-height: 1.35;
	color: var(--cdg-slate);
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
body.cdg-site .cdg-library-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .15rem .6rem;
	margin-top: auto;
	padding-top: .3rem;
}
body.cdg-site .cdg-library-card-details { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; color: var(--cdg-slate); font-size: .71rem; }
body.cdg-site .cdg-library-card-details :is(a, time) { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; color: inherit; white-space: nowrap; }
body.cdg-site .cdg-library-file { text-decoration: none; }
body.cdg-site .cdg-library-file:hover { text-decoration: underline; }
body.cdg-site .cdg-library-card-details svg { flex-shrink: 0; }
body.cdg-site .cdg-library-card-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; color: var(--cdg-amber-ink); font-size: .88rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
body.cdg-site .cdg-resource-filters.journal-filters {
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.1rem;
	border: 1px solid var(--cdg-border);
	border-radius: 4px;
	background: linear-gradient(110deg, #f1f8fd, #f9fcff 55%, #eef7fd);
	box-shadow: none;
}
/* The same frost corners frame library and editorial filters. */
body.cdg-site .cdg-resource-library .cdg-resource-filters.journal-filters {
	border-radius: 0;
	border-image: none;
}
body.cdg-site :is(.cdg-filter-panel, .cdg-resource-library .cdg-resource-filters)::after {
	content: "";
	position: absolute;
	inset: -10px;
	clip-path: inset(10px);
	background:
		url("../hiver-eternel/decor/coin-filtre-givre-haut-gauche.svg") left top / 48px 48px no-repeat,
		url("../hiver-eternel/decor/coin-filtre-givre-haut-droit.svg") right top / 48px 48px no-repeat,
		url("../hiver-eternel/decor/coin-filtre-givre-bas-gauche.svg") left bottom / 48px 48px no-repeat,
		url("../hiver-eternel/decor/coin-filtre-givre-bas-droit.svg") right bottom / 48px 48px no-repeat;
	pointer-events: none;
}
body.cdg-site .cdg-resource-filters label { font-size: .86rem; line-height: 1.3; margin-bottom: .35rem; }
body.cdg-site .cdg-resource-filters :is(#resource-search, #resource_type, #resource_system, #resource_category) { min-height: 36px; height: 36px; padding-block: .35rem; font-size: .85rem; border-radius: 4px; background-color: #ffffffb3; }
body.cdg-site .cdg-library-search-control { position: relative; }
body.cdg-site .cdg-library-search-control svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--cdg-slate); pointer-events: none; }
body.cdg-site .cdg-library-search-control #resource-search { padding-left: 2.25rem; }
body.cdg-site .cdg-library-search-control input::placeholder { color: #526b83; opacity: 1; }
body.cdg-site .cdg-resource-filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
body.cdg-site .cdg-resource-filters .cdg-resource-reset { width: auto; height: auto; min-height: 36px; gap: .65rem; padding: 0; border: 0; border-radius: 0; color: var(--cdg-slate); font-size: .82rem; white-space: normal; }
body.cdg-site .cdg-resource-reset svg { width: 18px; height: 18px; flex-shrink: 0; }
body.cdg-site .cdg-resource-filters .cdg-resource-reset:hover { color: var(--cdg-night); text-decoration: underline; }
/* Editorial filter bands share the document library's compact, frosted design. */
body.cdg-site .cdg-filter-panel.journal-filters {
	padding: 1rem 1.25rem;
	margin-bottom: 1.1rem;
	border-radius: 0;
	background: linear-gradient(110deg, #f1f8fd, #f9fcff 55%, #eef7fd);
	box-shadow: none;
}
body.cdg-site .cdg-filter-panel .journal-filter-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	gap: 1rem;
}
body.cdg-site .cdg-filter-panel .journal-filter-field { min-width: 0; gap: .35rem; }
body.cdg-site .cdg-filter-panel .journal-filter-field > span {
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cdg-night);
}
body.cdg-site .cdg-filter-panel.journal-filters .journal-filter-field :is(select, input[type="search"]) {
	min-height: 36px;
	height: 36px;
	padding-block: .35rem;
	font-size: .85rem;
	font-weight: 400;
	border-radius: 4px;
	background-color: #ffffffb3;
}
body.cdg-site .cdg-filter-panel .cdg-library-search-control { display: block; }
body.cdg-site .cdg-filter-panel.journal-filters .journal-filter-field .cdg-library-search-control input[type="search"] { padding-left: 2.25rem; }
body.cdg-site .cdg-filter-actions { display: flex; align-items: center; }
body.cdg-site .cdg-filter-reset {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	min-height: 36px;
	color: var(--cdg-slate);
	font-size: .82rem;
	text-decoration: none;
}
body.cdg-site .cdg-filter-reset svg { flex-shrink: 0; }
body.cdg-site .cdg-filter-reset:hover { color: var(--cdg-night); text-decoration: underline; }
@media (min-width: 768px) and (max-width: 991px) {
	body.cdg-site .cdg-filter-panel .journal-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
	body.cdg-site .cdg-filter-panel .journal-filter-grid { display: flex; gap: 1.25rem; }
	body.cdg-site .cdg-filter-panel .journal-filter-field { flex: 1 1 0; }
	body.cdg-site .cdg-filter-panel .journal-filter-field:has(input[type="search"]) { flex-grow: 1.5; }
	body.cdg-site .cdg-filter-actions {
		flex: 0 0 auto;
		align-self: center;
		border-left: 1px solid var(--cdg-border);
		padding-left: 1.25rem;
		margin-left: .25rem;
	}
}
@media (max-width: 767px) {
	body.cdg-site .cdg-filter-reset { min-height: 44px; }
}
@media (min-width: 768px) {
	body.cdg-site .cdg-resource-filters.journal-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
	body.cdg-site .cdg-resource-filters.journal-filters { grid-template-columns: 1.5fr 1fr 1fr 1.05fr auto; gap: 1.25rem; }
	body.cdg-site .cdg-resource-filter-actions { grid-column: auto; align-self: center; border-left: 1px solid var(--cdg-border); padding-left: 1.25rem; margin-left: .25rem; }
}

body.cdg-site .cdg-library-card.cdg-resource-map .article-card-media img { object-position: center; }

/* Occasional pennants: never repeated on article or resource cards. */
body.cdg-site .cdg-pennant { display: none; pointer-events: none; user-select: none; }
@media (min-width: 768px) {
	body.cdg-site .cdg-pennant-heading {
		--cdg-pennant-width: clamp(64px, 7vw, 88px);
		position: relative;
	}
	body.cdg-site .cdg-pennant {
		display: block;
		position: absolute;
		width: var(--cdg-pennant-width, 88px);
		background-position: center top;
		background-size: contain;
		background-repeat: no-repeat;
	}
	body.cdg-site .cdg-pennant--bleu-nuit { aspect-ratio: 520 / 1176; background-image: url("../hiver-eternel/decor/fanion-bleu-nuit.webp"); }
	body.cdg-site .cdg-pennant--bleu-glacier { aspect-ratio: 516 / 1176; background-image: url("../hiver-eternel/decor/fanion-bleu-glacier.webp"); }
	body.cdg-site .cdg-pennant--blanc-givre { aspect-ratio: 520 / 1176; background-image: url("../hiver-eternel/decor/fanion-blanc-givre.webp"); }
	body.cdg-site .cdg-pennant--ivoire-ambre { aspect-ratio: 528 / 1176; background-image: url("../hiver-eternel/decor/fanion-ivoire-ambre.webp"); }
	body.cdg-site .cdg-pennant-title-group {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 1.25rem;
		margin-bottom: 1.25rem;
	}
	body.cdg-site .cdg-pennant-title-group > .section-title { min-width: 0; margin: 0; }
	body.cdg-site .cdg-journal .cdg-pennant-title-group > .section-title { width: 320px; }
	body.cdg-site .cdg-pennant-title-group > .cdg-pennant {
		position: static;
		flex: 0 0 auto;
		width: clamp(64px, 5vw, 72px);
	}
	body.cdg-site .cdg-universes-heading-lockup {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 1.5rem;
		margin-bottom: 1.25rem;
	}
	body.cdg-site .cdg-universes-heading-lockup > .cdg-pennant {
		position: static;
		flex: 0 0 auto;
		width: clamp(64px, 5vw, 72px);
	}
	body.cdg-site .cdg-universes-heading-lockup > .section-title {
		width: 320px;
		max-width: calc(100% - 6rem);
		margin: 0;
	}
}
@media (min-width: 768px) and (max-width: 991px) {
	body.cdg-site .section-frame > .cdg-lantern-heading.cdg-pennant-heading { padding-inline: calc(var(--cdg-pennant-width) + 2rem); }
}

/* The GM path shares the introduction panel's alignment and button styles. */
body.cdg-site .home-intro-mj-card {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--cdg-border);
	text-align: center;
}
body.cdg-site .home-intro-mj-card h2 {
	margin: 0 0 1rem;
	color: var(--cdg-night);
	font-family: var(--font-title);
	font-size: clamp(1.4rem, 1.9vw, 1.75rem);
	font-weight: 500;
	line-height: 1.3;
}

/* Advanced catalogue filters stay inline on desktop and fold on phones. */
body.cdg-site .cdg-library-advanced-filters { display: contents; }
body.cdg-site .cdg-library-more-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 44px;
	padding: .55rem .8rem;
	border: 1px solid var(--cdg-border);
	border-radius: 4px;
	background: var(--cdg-snow);
	color: var(--cdg-slate);
	font: inherit;
	font-size: .9rem;
	text-align: left;
}
body.cdg-site .cdg-library-more-filters[hidden],
body.cdg-site .cdg-library-advanced-filters[hidden] { display: none; }
@media (max-width: 767px) {
	body.cdg-site .cdg-library-advanced-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	body.cdg-site .gm-hub-shortcuts > a { width: 100%; justify-content: center; }
}
body.cdg-site .gm-hub-page > section[id] { scroll-margin-top: 120px; }

/* Latest publication: a compact frosted panel in the homepage hero copy. */
body.cdg-site .hero-latest-article {
	max-width: 32rem;
	margin-top: 1.75rem;
	padding: clamp(1rem, 2vw, 1.4rem);
	border: 1px solid var(--cdg-frost);
	border-radius: 12px;
	position: relative;
	isolation: isolate;
	background: linear-gradient(135deg, rgb(52 78 105 / 93%), rgb(23 40 61 / 94%));
	box-shadow: inset 0 0 0 1px rgb(220 234 244 / 12%), 0 5px 18px rgb(8 25 42 / 24%);
	color: var(--cdg-snow);
}
/* The same transparent corner is rotated for a perfectly matched pair. */
body.cdg-site .hero-latest-article::before,
body.cdg-site .hero-latest-article::after {
	content: "";
	position: absolute;
	z-index: 0;
	width: 88px;
	height: auto;
	aspect-ratio: 264 / 258;
	background: url("../hiver-eternel/decor/coin-givre-cristallin-encart.webp") center / contain no-repeat;
	pointer-events: none;
}
body.cdg-site .hero-latest-article::before { top: -1px; left: -1px; }
body.cdg-site .hero-latest-article::after { right: -1px; bottom: -1px; transform: rotate(180deg); }
body.cdg-site .hero-latest-article > * { position: relative; z-index: 1; }
body.cdg-site .hero-latest-label {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 .65rem;
	color: #b7d7e9;
	font-size: .72rem;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}
body.cdg-site .hero-latest-label svg { flex: 0 0 auto; }
body.cdg-site .hero-latest-label::after { content: ""; flex: 1; height: 1px; background: rgb(140 175 200 / 50%); }
body.cdg-site .hero-latest-article .hero-latest-title {
	margin: 0 0 .55rem;
	color: var(--cdg-snow);
	font-family: var(--font-title);
	font-size: clamp(1.15rem, 1.65vw, 1.45rem);
	font-weight: 500;
	line-height: 1.25;
	text-shadow: none;
}
body.cdg-site .hero-latest-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .45rem; margin: 0 0 .7rem; color: #b7d7e9; font-size: .82rem; line-height: 1.5; }
body.cdg-site .hero-latest-excerpt { margin: 0; color: var(--cdg-snow); font-size: .95rem; line-height: 1.5; }
/* Stretch the title's native link over the whole card, with one keyboard stop. */
body.cdg-site .hero-latest-article .hero-latest-title { position: static; }
body.cdg-site .hero-latest-link { color: inherit; text-decoration: none; }
body.cdg-site .hero-latest-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 12px; }
body.cdg-site .hero-latest-link:is(:hover, :focus-visible) { color: #fff; }
body.cdg-site .hero-latest-link:focus-visible { outline: none; }
body.cdg-site .hero-latest-link:focus-visible::after { outline: 3px solid var(--cdg-ice); outline-offset: 4px; }
@media (max-width: 767px) {
	body.cdg-site .hero-latest-article { margin-top: 1.5rem; width: 100%; }
}

/* Desktop panoramas occupy exactly one visible viewport, without an internal
 * scroll area. Smaller layouts keep their natural height. */
@media (min-width: 1200px) {
	body.cdg-site.home .hero-section,
	body.cdg-site .universe-landing-page .hero-section {
		height: 100vh;
		height: 100dvh;
		min-height: 0;
	}
	body.cdg-site.home .hero-section-inner,
	body.cdg-site .universe-landing-page .hero-section-inner {
		height: 100%;
		min-height: 0;
		padding-top: calc(var(--site-header-height) + 1rem);
		padding-bottom: clamp(1rem, 3vh, 3rem);
	}
	body.cdg-site.home .hero-section-row,
	body.cdg-site .universe-landing-page .hero-section-row { margin-block: auto; }
	/* WordPress reserves 32px above the page for its desktop admin toolbar. */
	body.cdg-site.admin-bar.home .hero-section,
	body.cdg-site.admin-bar .universe-landing-page .hero-section {
		height: calc(100vh - 32px);
		height: calc(100dvh - 32px);
	}
}
@media (min-width: 1200px) and (max-height: 850px) {
	body.cdg-site.home .hero-title,
	body.cdg-site .universe-landing-page .hero-title { font-size: clamp(2rem, 5.3vh, 3.4rem); margin-bottom: .65rem; }
	body.cdg-site.home .hero-content .section-kicker { margin-bottom: .5rem; }
	body.cdg-site.home .hero-text { font-size: 1.05rem; line-height: 1.5; margin-bottom: .5rem; }
	body.cdg-site.home .hero-divider { margin-top: .5rem; height: 22px; }
	body.cdg-site.home .hero-actions { margin-top: .65rem; }
	body.cdg-site.home .hero-latest-article { margin-top: 1rem; padding: .9rem 1.1rem; }
	body.cdg-site.home .hero-latest-article .hero-latest-title { font-size: 1.15rem; }
	body.cdg-site.home .hero-latest-label,
	body.cdg-site.home .hero-latest-meta { margin-bottom: .4rem; }
}
@media (min-width: 1200px) and (max-height: 650px) {
	body.cdg-site.home .hero-section-inner,
	body.cdg-site .universe-landing-page .hero-section-inner {
		padding-top: calc(var(--site-header-height) + .5rem);
		padding-bottom: .5rem;
	}
}
