/* ==========================================================================
   WW2 Grand Campaign: field-manual styling.
   Stencil headings (Black Ops One), typewriter text (Special Elite),
   condensed UI (Oswald), olive drab, khaki and manila paper.
   ========================================================================== */

.wgc-campaign {
	--wgc-paper: #ece2c6;
	--wgc-paper-2: #e2d5b0;
	--wgc-ink: #2b2416;
	--wgc-ink-soft: #5a4d33;
	--wgc-olive: #4b5320;
	--wgc-olive-dark: #2f3414;
	--wgc-khaki: #c8b682;
	--wgc-brass: #b8913a;
	--wgc-red: #8e1b17;
	--wgc-line: rgba(43, 36, 22, 0.22);
	--wgc-stencil: "Black Ops One", "Stencil", Impact, sans-serif;
	--wgc-typed: "Special Elite", "Courier New", Courier, monospace;
	--wgc-ui: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;

	/* Dark grey field the cards sit on, and the text colours used directly on it. */
	--wgc-bg: #2a2a2b;
	--wgc-bg-line: rgba(255, 255, 255, 0.16);
	--wgc-on-bg: #ebe4d0;
	--wgc-on-bg-soft: #bdb6a4;
	--wgc-on-bg-accent: #d8c58f;
	/* "Soft" text adapts: light on the grey, brown ink on paper (redefined on paper surfaces below). */
	--wgc-soft: var(--wgc-on-bg-soft);

	margin: 2em 0;
	padding: clamp(14px, 3vw, 32px);
	border-radius: 4px;
	background: var(--wgc-bg);
	color: var(--wgc-on-bg);
	font-family: var(--wgc-ui);
	font-size: 16px;
	line-height: 1.5;
}

/* Paper surfaces switch back to dark ink. */
.wgc-dossier,
.wgc-unit,
.wgc-scroll,
.wgc-front,
.wgc-faction-option,
.wgc-alert {
	--wgc-soft: var(--wgc-ink-soft);
	color: var(--wgc-ink);
}

.wgc-campaign *,
.wgc-campaign *::before,
.wgc-campaign *::after {
	box-sizing: border-box;
}

.wgc-campaign [hidden] {
	display: none !important;
}

/* Headings ---------------------------------------------------------------- */

.wgc-title {
	margin: 0 0 0.6em;
	padding-bottom: 0.35em;
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wgc-on-bg);
	border-bottom: 6px solid transparent;
	border-image: repeating-linear-gradient(-45deg, var(--wgc-olive) 0 10px, var(--wgc-khaki) 10px 20px) 6;
}

.wgc-section {
	margin: 2.4em 0 0;
}

.wgc-heading {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 1em;
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 1.45rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wgc-on-bg);
}

.wgc-heading::before {
	content: "";
	width: 0.5em;
	height: 1.1em;
	background: var(--wgc-on-bg-accent);
}

.wgc-heading::after {
	content: "";
	flex: 1;
	border-bottom: 2px dashed var(--wgc-bg-line);
}

/* Paper and dossier cards --------------------------------------------------- */

.wgc-dossier,
.wgc-unit,
.wgc-scroll {
	background-color: var(--wgc-paper);
	background-image:
		var(--wgc-texture, none),
		radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.35), transparent 60%),
		radial-gradient(ellipse at 90% 100%, rgba(120, 90, 40, 0.12), transparent 55%);
	background-size: auto, 100% 100%, 100% 100%;
}

.wgc-dossier {
	position: relative;
	margin: 1.6em 0 1.2em;
	padding: 1.6em 1.3em 1.2em;
	border: 1px solid var(--wgc-line);
	border-radius: 2px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 16px -8px rgba(30, 24, 10, 0.5);
}

.wgc-dossier-tab {
	position: absolute;
	top: -1.05em;
	left: 1em;
	padding: 0.2em 0.9em;
	background: var(--wgc-khaki);
	border: 1px solid var(--wgc-line);
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
	font-family: var(--wgc-stencil);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wgc-ink);
}

.wgc-typed {
	font-family: var(--wgc-typed);
	color: var(--wgc-ink-soft);
}

.wgc-small {
	font-size: 0.85em;
}

/* Alerts and stamps ---------------------------------------------------------- */

.wgc-alert {
	margin: 0 0 1em;
	padding: 0.8em 1em;
	border-left: 6px solid var(--wgc-olive);
	background: #dfe0c0;
	font-family: var(--wgc-typed);
}

.wgc-alert.is-error {
	border-left-color: var(--wgc-red);
	background: #efd2c8;
}

.wgc-stamp {
	display: inline-block;
	flex: 0 0 auto;
	padding: 0.05em 0.5em;
	border: 3px double currentColor;
	border-radius: 3px;
	font-family: var(--wgc-stencil);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transform: rotate(-5deg);
	opacity: 0.85;
	mix-blend-mode: multiply;
}

.wgc-stamp.is-pending {
	color: #9a6b12;
}

.wgc-stamp.is-approved {
	color: var(--wgc-olive);
}

.wgc-stamp.is-rejected,
.wgc-stamp.is-disputed {
	color: var(--wgc-red);
}

.wgc-stamp.is-open,
.wgc-stamp.is-reported {
	color: #24527a;
}

.wgc-stamp.is-cancelled {
	color: #6b6b6b;
}

/* Map ------------------------------------------------------------------------- */

.wgc-map-wrap {
	position: relative;
	overflow: hidden;
	border: 8px solid var(--wgc-olive-dark);
	border-radius: 3px;
	outline: 2px solid var(--wgc-khaki);
	outline-offset: -12px;
	background: #d9cfb6;
	box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.6);
}

.wgc-map {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-select: none;
	user-select: none;
}

.wgc-region {
	fill-opacity: 0.34;
	stroke: #1d1a16;
	stroke-opacity: 0.6;
	stroke-width: 1.4;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill-opacity 0.15s, opacity 0.15s;
}

.wgc-region:hover,
.wgc-region.is-hl {
	fill-opacity: 0.58;
}

.wgc-marker {
	cursor: pointer;
	transition: opacity 0.15s;
}

.wgc-marker:focus {
	outline: none;
}

.wgc-dot {
	stroke: #f4ecd8;
	stroke-width: 2.5;
	filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.55));
}

.wgc-marker:hover .wgc-dot,
.wgc-marker:focus .wgc-dot,
.wgc-marker.is-hl .wgc-dot {
	stroke: #111;
	stroke-width: 3.5;
}

/* Home base: a fort-like square frame in the home faction's colour. */
.wgc-home-ring {
	fill: rgba(244, 236, 216, 0.88);
	stroke-width: 3.5;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Active front: a pulsing red ring. */
.wgc-front-ring {
	fill: none;
	stroke: #b3170f;
	stroke-width: 3;
	stroke-dasharray: 6 4;
	transform-box: fill-box;
	transform-origin: center;
	animation: wgc-pulse 1.6s ease-in-out infinite;
}

@keyframes wgc-pulse {
	50% { opacity: 0.35; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
	.wgc-front-ring { animation: none; }
}

/* Map layers (toolbar toggles). */
.wgc-hide-control .wgc-region { display: none; }
.wgc-hide-control .wgc-dot { fill: #8f8676; }
.wgc-hide-control .wgc-code { fill: #f4ecd8; }
.wgc-hide-homes .wgc-home-ring { display: none; }
.wgc-hide-fronts .wgc-front-ring { display: none; }
.wgc-hide-labels .wgc-name { display: none; }

.wgc-map.is-frozen image {
	filter: sepia(0.35) grayscale(0.3);
}

.wgc-code {
	text-anchor: middle;
	dominant-baseline: central;
	font-family: var(--wgc-stencil, Impact, sans-serif);
	pointer-events: none;
}

.wgc-name {
	text-anchor: middle;
	font-family: var(--wgc-stencil, Impact, sans-serif);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	fill: #241c12;
	stroke: #f1e7cc;
	stroke-width: 3.5px;
	stroke-linejoin: round;
	paint-order: stroke;
	pointer-events: none;
}

.wgc-bonus-badge circle {
	fill: var(--wgc-brass, #b8913a);
	stroke: #2b2416;
	stroke-width: 1.2;
}

.wgc-bonus-badge text {
	fill: #2b2416;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
}

.wgc-dim .wgc-marker:not(.is-hl),
.wgc-dim .wgc-region:not(.is-hl) {
	opacity: 0.2;
}

.wgc-tip {
	position: absolute;
	z-index: 5;
	max-width: 260px;
	padding: 0.7em 0.85em;
	border: 1px solid var(--wgc-khaki);
	border-radius: 2px;
	background: rgba(32, 30, 18, 0.95);
	color: #efe6cc;
	font-family: var(--wgc-ui);
	font-size: 13px;
	line-height: 1.45;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.wgc-tip > * {
	display: block;
}

.wgc-tip-name {
	margin-bottom: 0.2em;
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.wgc-tip-bonus {
	margin-top: 0.35em;
	color: #e8c766;
	font-weight: 500;
}

.wgc-tip-rule {
	font-family: var(--wgc-typed);
	font-size: 12px;
	opacity: 0.9;
}

.wgc-tip-borders {
	margin-top: 0.35em;
	opacity: 0.7;
}

/* Faction bits ------------------------------------------------------------------ */

.wgc-swatch {
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-right: 0.4em;
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 50%;
	vertical-align: -0.05em;
}

.wgc-faction {
	white-space: nowrap;
}

.wgc-emblem {
	flex: 0 0 auto;
	object-fit: contain;
}

.wgc-emblem.wgc-roundel,
.wgc-unit-head .wgc-roundel {
	color: var(--wgc-fi, #fff);
}

.wgc-roundel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wgc-fc);
	color: var(--wgc-fi, #fff);
	border: 3px double rgba(244, 236, 216, 0.9);
	box-shadow: 0 0 0 2px var(--wgc-fc), 0 2px 5px rgba(0, 0, 0, 0.35);
	font-family: var(--wgc-stencil);
	font-size: 1rem;
	letter-spacing: 0.04em;
}

/* Rank badge images (assets/ranks). */
.wgc-rank-badge {
	display: inline-block;
	flex: 0 0 auto;
	width: auto;
	height: 30px;
	border: 1px solid rgba(43, 36, 22, 0.35);
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	vertical-align: middle;
}

.wgc-roster-rank .wgc-rank-badge {
	height: 20px;
	margin-right: 0.25em;
}

.wgc-service-rank .wgc-rank-badge {
	height: 36px;
	margin-right: 0.3em;
}

/* Portraits (assets/avatars). */
.wgc-portrait {
	display: inline-block;
	flex: 0 0 auto;
	border-radius: 50%;
	border: 2px solid var(--wgc-olive-dark, #2f3414);
	box-shadow: 0 0 0 2px var(--wgc-khaki, #c8b682), 0 2px 5px rgba(0, 0, 0, 0.35);
	background: #d9cfb6;
	object-fit: cover;
	vertical-align: middle;
}

.wgc-service-portrait {
	position: relative;
	flex: 0 0 auto;
}

.wgc-service-portrait .wgc-emblem {
	position: absolute;
	right: -6px;
	bottom: -4px;
	font-size: 0.65rem;
}

.wgc-who-cell {
	white-space: nowrap;
}

.wgc-who-cell .wgc-portrait {
	margin-right: 0.5em;
}

.wgc-portrait-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
	gap: 0.6em;
	margin: 0.3em 0 1em;
}

.wgc-portrait-picker label {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3em;
	padding: 0.4em 0.2em;
	border: 2px solid transparent;
	text-align: center;
	cursor: pointer;
}

.wgc-portrait-picker input {
	position: absolute;
	opacity: 0;
}

.wgc-portrait-picker span {
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-portrait-picker label:hover .wgc-portrait {
	transform: scale(1.05);
}

.wgc-portrait-picker label:has(input:checked) {
	border-color: var(--wgc-olive);
	background: rgba(75, 83, 32, 0.12);
}

.wgc-portrait-picker label:has(input:checked) .wgc-portrait {
	box-shadow: 0 0 0 3px var(--wgc-brass), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.wgc-portrait-picker label:has(input:focus-visible) {
	outline: 2px solid var(--wgc-ink);
}

.wgc-change-portrait {
	margin-top: 1em;
}

.wgc-change-portrait summary {
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wgc-olive-dark);
	cursor: pointer;
}

/* Rank insignia fallback SVGs: khaki for enlisted, brass for officers, red and brass for generals. */
.wgc-insignia {
	flex: 0 0 auto;
	color: #6d5d33;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 0;
	vertical-align: middle;
}

.wgc-insignia.is-officer {
	color: var(--wgc-brass);
}

.wgc-insignia.is-general {
	color: var(--wgc-red);
}

/* Buttons and fields -------------------------------------------------------------- */

.wgc-button,
.wgc-signin #wp-submit {
	display: inline-block;
	padding: 0.55em 1.4em;
	border: 2px solid var(--wgc-olive-dark);
	border-radius: 2px;
	background: var(--wgc-olive);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 0 var(--wgc-olive-dark);
	color: #efe6cc;
	font-family: var(--wgc-stencil);
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.wgc-button:hover,
.wgc-button:focus,
.wgc-signin #wp-submit:hover {
	background: var(--wgc-olive-dark);
	color: #fff;
}

.wgc-button.is-secondary {
	background: transparent;
	color: var(--wgc-olive-dark);
	box-shadow: none;
}

.wgc-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wgc-red);
	font: inherit;
	font-size: 0.85em;
	text-decoration: underline;
	cursor: pointer;
}

.wgc-field {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	margin: 0 0 1em;
	border: 0;
	padding: 0;
}

.wgc-field > span,
.wgc-field > legend,
.wgc-signin label {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-field input[type="text"],
.wgc-field input[type="date"],
.wgc-field select,
.wgc-field textarea,
.wgc-signin input[type="text"],
.wgc-signin input[type="password"] {
	width: 100%;
	padding: 0.45em 0.6em;
	border: 0;
	border-bottom: 2px solid var(--wgc-ink-soft);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.45);
	color: var(--wgc-ink);
	font-family: var(--wgc-typed);
	font-size: 1rem;
}

.wgc-field input:focus,
.wgc-field select:focus,
.wgc-field textarea:focus,
.wgc-signin input:focus {
	outline: 2px solid var(--wgc-olive);
	outline-offset: 1px;
	background: rgba(255, 255, 255, 0.7);
}

.wgc-field small {
	font-family: var(--wgc-typed);
	color: var(--wgc-ink-soft);
}

.wgc-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0 1em;
}

.wgc-outcome {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
}

.wgc-outcome legend {
	width: 100%;
	margin-bottom: 0.3em;
}

.wgc-outcome label {
	font-family: var(--wgc-stencil);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Sign in ------------------------------------------------------------------------- */

.wgc-signin {
	max-width: 920px;
}

.wgc-signin form p {
	margin: 0 0 1em;
}

.wgc-signin .login-remember label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.95rem;
}

.wgc-signin-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
	margin: 1em 0 0;
}

/* Enlistment ----------------------------------------------------------------------- */

.wgc-faction-picker {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.8em;
	margin: 0 0 1.2em;
}

.wgc-faction-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	padding: 1em 0.6em 0.8em;
	border: 2px solid var(--wgc-line);
	border-top: 6px solid var(--wgc-fc);
	background: rgba(255, 255, 255, 0.3);
	text-align: center;
	cursor: pointer;
	transition: transform 0.1s, box-shadow 0.1s;
}

.wgc-faction-option input {
	position: absolute;
	opacity: 0;
}

.wgc-faction-option strong {
	font-family: var(--wgc-stencil);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
}

.wgc-faction-option span:last-child {
	font-size: 0.8rem;
	color: var(--wgc-ink-soft);
}

.wgc-faction-option:hover {
	transform: translateY(-2px);
}

.wgc-faction-option:has(input:checked) {
	border-color: var(--wgc-fc);
	box-shadow: 0 0 0 3px var(--wgc-fc);
	background: rgba(255, 255, 255, 0.6);
}

.wgc-faction-option:has(input:focus-visible) {
	outline: 2px solid var(--wgc-ink);
	outline-offset: 3px;
}

/* Player HQ -------------------------------------------------------------------------- */

.wgc-hq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 0 1.4em;
	align-items: start;
}

.wgc-service {
	border-top: 6px solid var(--wgc-fc);
}

.wgc-service-head {
	display: flex;
	align-items: center;
	gap: 0.9em;
	margin-bottom: 1em;
}

.wgc-service-rank {
	display: flex;
	align-items: center;
	gap: 0.3em;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-service-name {
	font-family: var(--wgc-stencil);
	font-size: 1.5rem;
	line-height: 1.1;
}

.wgc-service-faction {
	font-family: var(--wgc-typed);
	color: var(--wgc-ink-soft);
}

.wgc-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5em;
	margin: 0 0 0.8em;
}

.wgc-stats div {
	padding: 0.4em;
	border: 1px solid var(--wgc-line);
	background: rgba(255, 255, 255, 0.3);
	text-align: center;
}

.wgc-stats dt {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-stats dd {
	margin: 0;
	font-family: var(--wgc-stencil);
	font-size: 1.6rem;
	line-height: 1.1;
}

.wgc-report-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wgc-report-list li {
	display: flex;
	align-items: center;
	gap: 0.9em;
	padding: 0.6em 0;
	border-bottom: 1px dashed var(--wgc-line);
}

.wgc-report-list li > span:not(.wgc-stamp) {
	flex: 1;
}

.wgc-report-list form {
	margin: 0;
}

.wgc-date {
	font-family: var(--wgc-typed);
	white-space: nowrap;
	color: var(--wgc-ink-soft);
}

/* Deployment block (HQ and Order of Battle) ---------------------------------------- */

.wgc-deploy {
	display: flex;
	flex-direction: column;
	padding: 0.8em 1em;
	background: var(--wgc-olive-dark);
	color: #efe6cc;
	border-left: 6px solid var(--wgc-fc, var(--wgc-khaki));
}

.wgc-deploy-label {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.75;
}

.wgc-deploy-total {
	font-family: var(--wgc-stencil);
	font-size: 2.2rem;
	line-height: 1.1;
	letter-spacing: 0.03em;
}

.wgc-deploy-total small {
	font-size: 0.45em;
	letter-spacing: 0.1em;
}

.wgc-deploy-calc {
	font-family: var(--wgc-typed);
	font-size: 0.85rem;
	opacity: 0.85;
}

.wgc-deploy.is-out .wgc-deploy-total {
	color: #d98b80;
}

.wgc-bonus-list {
	margin: 0.6em 0 0;
	padding: 0.6em 0 0;
	border-top: 1px dashed rgba(239, 230, 204, 0.3);
	list-style: none;
	font-size: 0.85rem;
}

.wgc-bonus-list li + li {
	margin-top: 0.45em;
}

.wgc-bonus-list strong {
	color: #e8c766;
	font-weight: 500;
}

.wgc-bonus-where {
	opacity: 0.7;
}

.wgc-bonus-rule {
	font-family: var(--wgc-typed);
	font-size: 0.8rem;
	opacity: 0.9;
}

.wgc-chip {
	display: inline-block;
	padding: 0 0.4em;
	border-radius: 2px;
	background: var(--wgc-brass);
	color: var(--wgc-ink);
	font-size: 0.75rem;
	font-weight: 700;
}

/* Order of Battle --------------------------------------------------------------------- */

.wgc-roster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.2em;
}

.wgc-unit {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wgc-line);
	border-top: 8px solid var(--wgc-fc);
	box-shadow: 0 6px 16px -8px rgba(30, 24, 10, 0.5);
}

.wgc-unit.is-out {
	filter: grayscale(0.8);
	opacity: 0.7;
}

.wgc-unit-head {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.9em 1em;
}

.wgc-unit-head h4 {
	margin: 0;
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 1.15rem;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wgc-unit-head span {
	font-size: 0.85rem;
	color: var(--wgc-ink-soft);
}

.wgc-unit-roster {
	margin: 0;
	padding: 0.3em 0;
	list-style: none;
}

.wgc-unit-roster li {
	display: grid;
	grid-template-columns: 44px 1fr auto auto;
	align-items: center;
	gap: 0.6em;
	padding: 0.45em 1em;
	border-bottom: 1px dashed var(--wgc-line);
}

.wgc-unit-roster li:last-child {
	border-bottom: 0;
}

.wgc-roster-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.wgc-roster-rank {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-roster-name {
	overflow: hidden;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wgc-roster-record {
	font-family: var(--wgc-typed);
	font-size: 0.85rem;
	white-space: nowrap;
}

.wgc-roster-pts {
	padding: 0.1em 0.45em;
	background: var(--wgc-olive-dark);
	color: #efe6cc;
	font-size: 0.8rem;
	white-space: nowrap;
}

.wgc-unit-empty {
	margin: 0;
	padding: 1em;
	font-family: var(--wgc-typed);
	color: var(--wgc-ink-soft);
}

/* Tables -------------------------------------------------------------------------------- */

.wgc-scroll {
	overflow-x: auto;
	border: 1px solid var(--wgc-line);
}

.wgc-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.wgc-table th {
	padding: 0.55em 0.7em;
	background: var(--wgc-olive);
	color: #efe6cc;
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.wgc-table td {
	padding: 0.55em 0.7em;
	border-bottom: 1px solid var(--wgc-line);
	text-align: left;
	vertical-align: top;
}

.wgc-table tbody tr:nth-child(even) td {
	background: rgba(120, 100, 50, 0.06);
}

.wgc-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wgc-rank-cell {
	white-space: nowrap;
}

.wgc-leaderboard tbody tr:nth-child(-n + 3) td:first-child {
	font-family: var(--wgc-stencil);
	color: #6e5214; /* Dark brass: readable on parchment. */
}

.wgc-standings tr.is-out {
	opacity: 0.5;
}

.wgc-player {
	font-size: 0.9em;
}

.wgc-pts {
	font-size: 0.85em;
	opacity: 0.7;
	white-space: nowrap;
}

.wgc-note,
.wgc-empty {
	margin: 0.8em 0 0;
	font-family: var(--wgc-typed);
	font-size: 0.85em;
	color: var(--wgc-soft, #5a4d33);
}

/* Map editor (admin) ----------------------------------------------------------------------- */

.wgc-handle {
	fill: #fff;
	stroke: #b00;
	stroke-width: 1.5;
	pointer-events: none;
}

.wgc-handle.is-first {
	fill: #b00;
}

.is-border-mode {
	cursor: crosshair;
}

.is-border-mode .wgc-marker {
	pointer-events: none;
	opacity: 0.5;
}

/* Map toolbar and legend --------------------------------------------------------------------- */

.wgc-map-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	margin: 0 0 0.6em;
	padding: 0.5em 0.8em;
	background: var(--wgc-olive-dark);
	color: #efe6cc;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wgc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	cursor: pointer;
}

.wgc-toggle input {
	accent-color: var(--wgc-khaki);
}

.wgc-chips {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em;
	margin-left: auto;
}

.wgc-chips-label {
	opacity: 0.7;
}

.wgc-chip-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.15em 0.55em;
	border: 1px solid rgba(239, 230, 204, 0.4);
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.wgc-chip-btn[aria-pressed="true"] {
	background: var(--wgc-fc);
	border-color: #efe6cc;
	color: #fff;
}

.wgc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.4em;
	margin: 0.5em 0 0;
	font-size: 0.8rem;
	color: var(--wgc-soft, #5a4d33);
}

.wgc-legend i {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.35em;
	font-style: normal;
	text-align: center;
	line-height: 1;
	vertical-align: -0.15em;
}

.wgc-legend-home {
	border: 3px solid var(--wgc-ink);
	border-radius: 2px;
	background: var(--wgc-paper);
}

.wgc-legend-bonus {
	border-radius: 50%;
	background: var(--wgc-brass);
	color: var(--wgc-ink);
	font-size: 0.75em;
	line-height: 1.35 !important;
}

.wgc-legend-front {
	border: 2px dashed #b3170f;
	border-radius: 50%;
}

.wgc-tip-home {
	color: #f0d9a0;
	font-weight: 500;
}

.wgc-tip-front {
	color: #ff9b8f;
}

/* Victory banner -------------------------------------------------------------------------------- */

.wgc-victory {
	display: flex;
	align-items: center;
	gap: 1em;
	margin: 0 0 1.2em;
	padding: 1em 1.3em;
	background: var(--wgc-olive-dark);
	border-left: 10px solid var(--wgc-fc);
	color: #efe6cc;
}

.wgc-victory > div {
	display: flex;
	flex-direction: column;
}

.wgc-victory-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.75;
}

.wgc-victory strong {
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: clamp(1.3rem, 3vw, 2rem);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Battle orders (fronts and HQ) ------------------------------------------------------------------- */

.wgc-fronts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1em;
}

.wgc-front {
	position: relative;
	padding: 1em;
	border: 1px solid var(--wgc-line);
	border-top: 4px solid #b3170f;
	background: var(--wgc-paper);
}

.wgc-front > .wgc-stamp,
.wgc-live > .wgc-stamp {
	position: absolute;
	top: 0.8em;
	right: 0.8em;
}

.wgc-orders-kicker {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-orders-where strong {
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wgc-orders-vs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.6em;
	margin: 0.8em 0;
}

.wgc-orders-side {
	display: flex;
	align-items: center;
	gap: 0.5em;
	min-width: 0;
}

.wgc-orders-side > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.wgc-orders-side strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wgc-orders-side .wgc-faction {
	font-size: 0.8rem;
}

.wgc-orders-pts {
	font-family: var(--wgc-stencil);
	font-size: 1rem;
}

.wgc-orders-pts s {
	font-family: var(--wgc-ui);
	font-size: 0.8em;
	opacity: 0.6;
}

.wgc-vs {
	font-family: var(--wgc-stencil);
	font-size: 1.1rem;
	color: #b3170f;
}

.wgc-orders-scenario {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.4em;
	margin: 0 0 0.8em;
}

.wgc-orders-scenario div {
	padding: 0.4em 0.6em;
	border-left: 3px solid var(--wgc-olive);
	background: rgba(255, 255, 255, 0.35);
}

.wgc-orders-scenario dt {
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-orders-scenario dd {
	margin: 0;
	font-weight: 500;
}

.wgc-orders-rules ul {
	margin: 0.3em 0 0.8em;
	padding-left: 1.1em;
	font-size: 0.85rem;
}

.wgc-hq-orders > .wgc-dossier:first-child {
	margin-top: 1.6em;
}

.wgc-live {
	border-top: 6px solid #b3170f;
}

.wgc-report {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 2px dashed var(--wgc-line);
}

.wgc-field input[type="number"],
.wgc-field input[type="file"] {
	width: 100%;
	padding: 0.45em 0.6em;
	border: 0;
	border-bottom: 2px solid var(--wgc-ink-soft);
	background: rgba(255, 255, 255, 0.45);
	font-family: var(--wgc-typed);
	font-size: 1rem;
}

.wgc-result-line {
	margin: 0.6em 0;
	font-weight: 500;
}

.wgc-live blockquote {
	margin: 0 0 0.8em;
	padding: 0.5em 0.8em;
	border-left: 3px solid var(--wgc-khaki);
	background: rgba(255, 255, 255, 0.3);
}

.wgc-confirm {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1em;
}

.wgc-confirm details {
	flex: 1 1 220px;
}

.wgc-confirm summary,
.wgc-bootcamp > summary {
	cursor: pointer;
}

.wgc-inline-form {
	display: inline-block;
	margin: 0.6em 0 0;
}

.wgc-challenge .wgc-preview {
	margin: 0 0 1em;
	padding: 0.5em 0.8em;
	border-left: 4px solid var(--wgc-olive);
	background: rgba(75, 83, 32, 0.12);
	font-family: var(--wgc-typed);
}

.wgc-challenge .wgc-preview:empty {
	display: none;
}

.wgc-bootcamp {
	padding-top: 1.2em;
}

.wgc-bootcamp > summary {
	list-style: none;
}

.wgc-bootcamp > summary::-webkit-details-marker {
	display: none;
}

.wgc-bootcamp[open] > summary {
	background: var(--wgc-olive);
	color: #efe6cc;
}

.wgc-photo img {
	display: block;
	margin-top: 0.4em;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
	transform: rotate(-2deg);
}

/* Roster extras */

.wgc-unit-home,
.wgc-unit-bases {
	display: block;
	font-size: 0.8rem;
}

.wgc-unit-home b {
	color: var(--wgc-red);
}

.wgc-unit-bases {
	color: #b3170f;
	font-weight: 500;
}

/* Rules page */

.wgc-rules h4,
.wgc-subheading {
	margin: 1.2em 0 0.3em;
	font-family: var(--wgc-stencil);
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wgc-olive-dark);
}

.wgc-subheading {
	color: var(--wgc-on-bg);
}

.wgc-rules h4:first-of-type {
	margin-top: 0.2em;
}

.wgc-rules ol {
	padding-left: 1.3em;
}

.wgc-rules li + li {
	margin-top: 0.35em;
}

.wgc-ladder {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 0.6em;
	margin: 0.6em 0 0;
	padding: 0;
	list-style: none;
}

.wgc-ladder li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2em;
	margin: 0 !important;
	text-align: center;
	font-size: 0.8rem;
	line-height: 1.2;
}

.wgc-ladder .wgc-rank-badge {
	height: 54px;
}

.wgc-ladder-title {
	margin: 1.2em 0 0;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wgc-soft, #5a4d33);
}

/* Portrait picker groups (general + faction sets). */
.wgc-portrait-group-title {
	display: block;
	margin: 0.6em 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wgc-soft, #5a4d33);
}

.wgc-ladder small {
	color: var(--wgc-ink-soft);
}

.wgc-history {
	padding-left: 1.2em;
	font-family: var(--wgc-typed);
	color: var(--wgc-soft, #5a4d33);
}

/* Whole page in dark grey (Settings > "Dark grey page"), on pages with a campaign shortcode.
   Block themes take their colours from these presets. Classic themes keep their own header and
   footer colours (their text is designed for them); there the full-width campaign section,
   which spans the screen, provides the dark grey. */
body.wgc-dark-page.wgc-block-theme {
	--wp--preset--color--base: #232324;
	--wp--preset--color--contrast: #ebe4d0;
	--wp--preset--color--accent-1: #d8c58f;
	--wp--preset--color--accent-2: #c8b682;
	--wp--preset--color--accent-3: #d8c58f;
	--wp--preset--color--accent-4: #bdb6a4;
	--wp--preset--color--accent-5: #2f2f30;
	--wp--preset--color--accent-6: #3a3a3b;
	background: #232324;
	color: #ebe4d0;
}

/* Theme text is only recoloured on block themes, where the whole page really goes dark.
   Classic themes draw their own (often white) boxes, so their text keeps its own colours. */
body.wgc-dark-page.wgc-block-theme :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, figcaption, blockquote, .wp-block-site-title, .wp-block-post-title):not(.wgc-campaign *) {
	color: #ebe4d0;
}

body.wgc-dark-page.wgc-block-theme a:not(.wgc-campaign a, .wp-element-button) {
	color: #d8c58f;
}

body.wgc-dark-page.wgc-block-theme a:not(.wgc-campaign a, .wp-element-button):hover {
	color: #f3e6bd;
}

body.wgc-dark-page.wgc-block-theme :is(header, footer) {
	background-color: transparent;
}

/* Full-width and standalone campaign pages (Settings > Page layout) ------------------------- */

body.wgc-layout-full,
body.wgc-layout-canvas {
	overflow-x: hidden; /* The full-bleed area below is 100vw wide. */
	overflow-x: clip;
}

.wgc-page {
	box-sizing: border-box;
	padding: clamp(16px, 3vw, 40px) clamp(10px, 3vw, 40px);
	background: #232324;
}

/* Break out of whatever boxed container the theme's header opened. */
.wgc-page-full {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 0 -50vw;
	float: none;
	clear: both;
}

.wgc-page .wgc-campaign {
	max-width: var(--nmw-w, 1680px); /* Lines up with the Newsmag Wide Layout plugin if it is active. */
	margin: 0 auto;
}

body.wgc-layout-canvas {
	margin: 0;
	background: #232324;
	color: #ebe4d0;
}

.wgc-canvas-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6em 2em;
	padding: 0.8em clamp(12px, 3vw, 40px);
	background: #1a1a1b;
	border-bottom: 3px solid #4b5320;
	font-family: "Oswald", "Arial Narrow", sans-serif;
}

.wgc-canvas-home,
.wgc-canvas-home:hover {
	color: #ebe4d0;
	font-family: "Black Ops One", Impact, sans-serif;
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.wgc-canvas-logo {
	display: block;
	width: auto;
	max-height: 48px;
}

.wgc-canvas-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.4em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wgc-canvas-menu li {
	margin: 0;
}

.wgc-canvas-menu a {
	color: #d8c58f;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

.wgc-canvas-menu a:hover,
.wgc-canvas-menu .current-menu-item > a {
	color: #fff;
}

.wgc-canvas-foot {
	padding: 1.2em;
	background: #1a1a1b;
	color: #bdb6a4;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 0.85rem;
	text-align: center;
}

.wgc-canvas-foot a {
	color: #d8c58f;
}

/* Hide the theme's page title where the campaign shows its own (block themes and common classic themes). */
body.wgc-own-title :is(.wp-block-post-title, .entry-title, .page-title, h1.entry-title, .page-header .page-title):not(.wgc-campaign *) {
	display: none;
}

body.wgc-own-title .wgc-campaign {
	margin-top: 0;
}

/* Block themes leave room above the content for the (now hidden) title, set as inline
   block styles, hence !important. Only on campaign pages, only the space above the campaign. */
body.wgc-own-title main.wp-block-group:has(.wgc-campaign) {
	margin-top: 1.5rem !important;
}

body.wgc-own-title main .wp-block-group:has(> .wp-block-post-content .wgc-campaign) {
	padding-top: 0 !important;
}

body.wgc-own-title .wp-block-post-content:has(.wgc-campaign) {
	margin-top: 0 !important;
}

body.wgc-dark-page .wgc-campaign {
	background: #2d2d2e;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Folder tabs and the briefing document ------------------------------------------------------ */

.wgc-desk {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	margin: 0 auto;
}

.wgc-tabs {
	display: flex;
	gap: 3px;
	padding: 0 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.wgc-tabs::-webkit-scrollbar {
	display: none;
}

.wgc-tab {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 7px 14px 6px;
	border: 1px solid #6e6650;
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
	background: #c8b682;
	color: var(--wgc-ink);
	font-family: "Courier Prime", "Courier New", monospace;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 -6px 8px -6px rgba(43, 36, 22, 0.35);
}

.wgc-tab:hover,
.wgc-tab:focus-visible {
	background: #d8c896;
	color: var(--wgc-ink);
}

.wgc-tab.is-active {
	z-index: 2;
	margin-top: 0;
	padding-top: 10px;
	top: 1px;
	background: var(--wgc-doc, #e6dabb);
	box-shadow: none;
}

.wgc-tab-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wgc-tab-badge {
	min-width: 18px;
	padding: 0 6px;
	border-radius: 9px;
	background: #8e1b17;
	color: #fff;
	font-family: var(--wgc-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 18px;
	text-align: center;
}

.wgc-doc {
	--wgc-doc: #e6dabb;
	/* Text sitting directly on the document is dark ink again. */
	--wgc-on-bg: var(--wgc-ink);
	--wgc-on-bg-soft: var(--wgc-ink-soft);
	--wgc-on-bg-accent: var(--wgc-olive);
	--wgc-bg-line: var(--wgc-line);
	--wgc-soft: var(--wgc-ink-soft);
	position: relative;
	padding: clamp(18px, 3vw, 38px);
	border: 1px solid #6e6650;
	background-color: var(--wgc-doc);
	background-image:
		var(--wgc-texture, none),
		radial-gradient(ellipse at 15% 5%, rgba(255, 255, 255, 0.35), transparent 55%),
		radial-gradient(ellipse at 85% 100%, rgba(120, 90, 40, 0.14), transparent 60%);
	color: var(--wgc-ink);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 3px 6px rgba(0, 0, 0, 0.35);
}

.wgc-doc .wgc-title {
	color: var(--wgc-ink);
}

.wgc-campaign[data-tab] .wgc-section {
	margin-top: 0;
}

.wgc-clip {
	position: absolute;
	top: -34px;
	right: 8%;
	z-index: 3;
	width: 30px;
	height: auto;
	transform: rotate(8deg);
	filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.45));
	pointer-events: none;
}

/* The briefing table: a fixed photo the briefing scrolls over, clipped to the campaign area. */
body .wgc-campaign.wgc-briefing {
	position: relative;
	margin: 0;
	padding: clamp(48px, 6vw, 96px) clamp(10px, 3vw, 40px) clamp(64px, 9vw, 140px);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	clip-path: inset(0);
}

.wgc-briefing .wgc-desk {
	width: min(1200px, 70vw);
}

.wgc-table-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #2b2118 var(--wgc-table) center / cover no-repeat;
	pointer-events: none;
}

.wgc-prop-map {
	position: absolute;
	width: 38vw;
	max-width: 760px;
	height: auto;
	opacity: 0;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
	transition: opacity 0.45s ease;
}

.wgc-prop-map.is-on {
	opacity: 1;
}

.wgc-prop-map.is-left {
	left: -9vw;
	bottom: -10vw;
	transform: rotate(9deg);
}

.wgc-prop-map.is-right {
	right: -10vw;
	bottom: -8vw;
	transform: rotate(-11deg);
}

/* Full-width / standalone page layouts: the table spans the screen. */
.wgc-page:has(.wgc-briefing) {
	padding: 0;
	background: #2b2118;
}

.wgc-page .wgc-campaign.wgc-briefing {
	max-width: none;
}

/* Recon print on the battle orders. */
.wgc-orders-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.wgc-recon {
	position: relative;
	flex: 0 0 auto;
	width: 220px;
	margin: -4px 4px 8px 0;
	padding: 6px 6px 4px;
	background: #f3ecd8;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
	transform: rotate(2.5deg);
}

.wgc-recon img {
	display: block;
	width: 100%;
	height: auto;
	filter: sepia(0.18) contrast(1.05);
}

.wgc-recon-mark {
	position: absolute;
	left: 38%;
	top: 26%;
	width: 32%;
	height: 36%;
	border: 3px solid #b3170f;
	border-radius: 50%;
	opacity: 0.85;
	transform: rotate(-12deg);
}

.wgc-recon figcaption {
	margin-top: 3px;
	font-family: var(--wgc-typed);
	font-size: 11px;
	color: var(--wgc-ink-soft);
	text-transform: uppercase;
}

.wgc-front .wgc-recon {
	width: 130px;
}

@media (max-width: 900px) {
	.wgc-prop-map,
	.wgc-clip {
		display: none;
	}

	.wgc-briefing .wgc-desk {
		width: 100%;
	}

	body .wgc-campaign.wgc-briefing {
		padding: 28px 8px 40px;
	}

	.wgc-tab {
		padding: 6px 10px 5px;
		font-size: 13px;
	}
}

@media (max-width: 600px) {
	.wgc-orders-head {
		flex-direction: column;
	}

	.wgc-recon {
		width: 170px;
	}
}

/* Roll of Honour races, tickets, Quartermaster ------------------------------------------------ */

.wgc-races {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 1.6em;
}

.wgc-race {
	position: relative;
	padding: 16px 18px;
	border: 1px solid var(--wgc-line);
	border-top: 6px solid var(--wgc-brass);
	background: var(--wgc-paper);
	box-shadow: 0 6px 16px -8px rgba(30, 24, 10, 0.5);
}

.wgc-race.is-faction {
	border-top-color: var(--wgc-fc);
}

.wgc-race-kicker {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wgc-ink-soft);
}

.wgc-race-who {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 10px 0;
}

.wgc-race-who > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wgc-race-who strong {
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 1.35rem;
	line-height: 1.1;
	letter-spacing: 0.03em;
}

.wgc-race-who .wgc-rank-badge {
	height: 22px;
}

.wgc-race-score {
	font-family: var(--wgc-stencil);
	color: #6e5214;
}

.wgc-race-prize {
	margin: 6px 0 4px;
	padding: 8px 10px;
	background: var(--wgc-olive-dark);
	color: #efe6cc;
	font-weight: 500;
}

.wgc-race-prize span {
	display: block;
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.75;
}

/* A ticket: a little torn stub. */
.wgc-ticket {
	display: inline-block;
	min-width: 2.2em;
	padding: 0 0.45em;
	border: 1px dashed #6e5214;
	border-radius: 3px;
	background: #f1dc9a;
	color: #2b2416;
	font-family: "Courier Prime", var(--wgc-typed);
	font-weight: 700;
	text-align: center;
}

.wgc-ticket.is-top {
	background: #8e1b17;
	border-color: #8e1b17;
	color: #fff;
}

.wgc-ticket.is-big {
	font-size: 1.5rem;
	padding: 0.05em 0.5em;
}

.wgc-ticket-box {
	margin: 0 0 0.8em;
	padding: 10px 12px;
	border: 1px dashed var(--wgc-line);
	background: rgba(255, 255, 255, 0.3);
}

.wgc-ticket-count {
	color: var(--wgc-ink);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.wgc-ticket-box ul {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--wgc-typed);
	font-size: 0.85rem;
	color: var(--wgc-ink-soft);
}

.wgc-ticket-box b {
	display: inline-block;
	min-width: 2em;
	color: var(--wgc-ink);
}

.wgc-ticket-stub {
	margin: 0.6em 0 0;
	font-size: 0.85rem;
	color: var(--wgc-ink-soft);
}

.wgc-qm-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0 18px;
}

.wgc-qm-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wgc-qm-list li {
	display: grid;
	grid-template-columns: 9em 1fr;
	gap: 2px 10px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--wgc-line);
}

.wgc-qm-earn .wgc-qm-list li {
	grid-template-columns: 3em 1fr;
}

.wgc-qm-list strong {
	font-family: var(--wgc-stencil);
	font-weight: 400;
}

.wgc-qm-list small {
	grid-column: 2;
	font-family: var(--wgc-typed);
	color: var(--wgc-ink-soft);
}

.wgc-qm-balance {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 0.4em 0 1.2em;
	padding: 12px 16px;
	background: var(--wgc-olive-dark);
	color: #efe6cc;
}

.wgc-qm-balance span {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.wgc-qm-balance strong {
	font-family: var(--wgc-stencil);
	font-weight: 400;
	font-size: 2rem;
	line-height: 1;
}

.wgc-qm-balance em {
	font-family: var(--wgc-typed);
	font-size: 0.85rem;
	opacity: 0.85;
}

.wgc-qm-rewards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}

.wgc-qm-reward {
	display: flex;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--wgc-line);
	background: var(--wgc-paper);
}

.wgc-qm-reward p {
	margin: 4px 0 10px;
	font-size: 0.9rem;
	color: var(--wgc-ink-soft);
}

.wgc-qm-reward strong {
	font-weight: 500;
	font-size: 1.05rem;
}

.wgc-qm-cost {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 2px dashed #6e5214;
	border-radius: 4px;
	background: #f1dc9a;
	font-family: var(--wgc-stencil);
	font-size: 1.6rem;
	line-height: 1;
}

.wgc-qm-cost small {
	margin-top: 4px;
	font-family: var(--wgc-ui);
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* Medals. */
.wgc-medal-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 4px;
	vertical-align: -4px;
}

.wgc-medal-count {
	white-space: nowrap;
	font-family: "Courier Prime", var(--wgc-typed);
	font-weight: 700;
}

.wgc-medal-count.is-top {
	color: #8e1b17;
}

.wgc-medal-big {
	width: 64px;
	height: 64px;
	margin: -8px 4px -8px -4px;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}

.wgc-qm-balance {
	align-items: center;
}

/* Best General prize options. */
.wgc-qm-grand-lead {
	margin: 0 0 12px;
	font-size: 1.05rem;
}

.wgc-prizes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wgc-prizes li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.wgc-prizes img {
	display: block;
	width: 100%;
	height: auto;
	padding: 6px;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.wgc-prizes.is-large li:nth-child(odd) img {
	transform: rotate(-1.5deg);
}

.wgc-prizes.is-large li:nth-child(even) img {
	transform: rotate(1.5deg);
}

.wgc-prizes.is-large strong {
	margin-top: 6px;
	font-weight: 500;
}

.wgc-prizes small {
	font-family: var(--wgc-typed);
	color: var(--wgc-ink-soft);
}

.wgc-prizes.is-small {
	margin-top: 8px;
	gap: 6px;
}

.wgc-prizes.is-small img {
	padding: 3px;
}

.wgc-prizes.is-small strong {
	font-size: 0.68rem;
	font-weight: 400;
	line-height: 1.2;
}

@media (max-width: 600px) {
	.wgc-prizes.is-large {
		grid-template-columns: 1fr 1fr;
	}
}

.wgc-qm-value {
	display: block;
	font-family: var(--wgc-typed);
	font-size: 0.8rem;
	color: #6e5214;
}

.wgc-qm-worth {
	margin: 10px 0 0;
	padding: 6px 10px;
	border: 1px dashed #6e5214;
	background: #f1dc9a;
	font-size: 0.9rem;
}

.wgc-qm-short {
	font-family: var(--wgc-typed);
	font-size: 0.85rem;
	color: var(--wgc-ink-soft);
}

/* Small screens ---------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.wgc-campaign {
		font-size: 15px;
	}

	.wgc-map-wrap {
		border-width: 4px;
		outline: 0;
	}

	.wgc-dossier {
		padding: 1.5em 1em 1em;
	}

	.wgc-unit-roster li {
		grid-template-columns: 44px 1fr auto;
	}

	.wgc-roster-pts {
		grid-column: 2 / -1;
		justify-self: start;
	}

	.wgc-orders-vs {
		grid-template-columns: 1fr;
	}

	.wgc-vs {
		justify-self: start;
	}

	.wgc-chips {
		margin-left: 0;
	}
}

/* ==========================================================================
   WW2 Grand Campaign additions: world and theatre maps, sea zones, events,
   games, alliances.
   ========================================================================== */

.wgc-map[hidden] { display: none !important; }

.wgc-map-toolbar .wgc-views { margin-left: 0; }
.wgc-map-toolbar .wgc-layers { display: inline-flex; flex-wrap: wrap; gap: 0.4em 1em; margin-left: auto; }
.wgc-view-btn[aria-pressed="true"] { --wgc-fc: var(--wgc-olive); background: var(--wgc-khaki); color: var(--wgc-ink); }

/* World map: theatre boxes. */
.wgc-theatre-box { cursor: pointer; }
.wgc-box-rect {
	fill: rgba(43, 36, 22, 0.06);
	stroke: #3a2f1c;
	stroke-width: 3;
	stroke-dasharray: 12 7;
	transition: fill 0.15s, stroke-width 0.15s;
}
.wgc-theatre-box:hover .wgc-box-rect,
.wgc-theatre-box:focus .wgc-box-rect { fill: rgba(184, 145, 58, 0.22); stroke-width: 5; }
.wgc-theatre-box:focus { outline: none; }
.wgc-box-name {
	font-family: var(--wgc-stencil, Impact, sans-serif);
	font-size: 26px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	fill: #241c12;
	stroke: #f1e7cc;
	stroke-width: 5px;
	stroke-linejoin: round;
	paint-order: stroke;
	pointer-events: none;
}
.wgc-world-bar rect { stroke: #f1e7cc; stroke-width: 1.5; }
.wgc-world-count { font: 600 12px var(--wgc-ui, sans-serif); fill: #fff; pointer-events: none; }
.wgc-world-count.is-right { text-anchor: end; }
.wgc-pip { fill: rgba(241, 231, 204, 0.85); stroke: #3a2f1c; stroke-width: 1.5; }
.wgc-pip.is-on { stroke-width: 3; r: 8; }
.wgc-pip.is-on.is-allies { fill: #4f7cac; }
.wgc-pip.is-on.is-axis { fill: #8a4a32; }
.wgc-pip.is-on:not(.is-allies):not(.is-axis) { fill: #8f8676; }
.wgc-world-event circle { fill: #b3170f; stroke: #f1e7cc; stroke-width: 2.5; }
.wgc-world-event text { fill: #fff; font: 700 18px var(--wgc-ui, sans-serif); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.wgc-world-capital { cursor: pointer; }
.wgc-cap-frame { fill: rgba(244, 236, 216, 0.92); stroke-width: 4; }
.wgc-hide-homes .wgc-world-capitals { display: none; }

/* Theatre maps: sea zones. */
.wgc-sea-dot { stroke: #f4ecd8; stroke-width: 2.5; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45)); }
.wgc-sea.is-unclaimed .wgc-sea-dot { stroke-dasharray: 5 3; fill-opacity: 0.75; }
.wgc-name.is-sea { font-family: var(--wgc-typed, "Courier New", monospace); font-style: italic; text-transform: none; fill: #1f4a5c; }
.wgc-region.is-sea { fill-opacity: 0.18; stroke-dasharray: 8 5; }
.wgc-hide-seas .wgc-seas,
.wgc-hide-seas .wgc-region.is-sea { display: none; }
.wgc-closed { stroke: #b3170f; stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.wgc-marker.is-closed .wgc-dot { opacity: 0.55; }
.wgc-siege-badge circle { fill: #b3170f; stroke: #f4ecd8; stroke-width: 1.5; }
.wgc-siege-badge text { fill: #fff; text-anchor: middle; dominant-baseline: central; font-family: var(--wgc-ui, sans-serif); font-weight: 700; pointer-events: none; }
.wgc-legend-sea { border-radius: 4px; background: #7d97a3; color: #fff; font-size: 0.8em; line-height: 1.2 !important; }
.wgc-legend-closed { color: #b3170f; font-weight: 700; }
.wgc-tip-theatre { opacity: 0.7; font-size: 12px; }

/* Theatre summary under the map. */
.wgc-theatres { margin-top: 1em; }
.wgc-air-track { display: inline-flex; gap: 3px; vertical-align: middle; }
.wgc-air-track i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(43, 36, 22, 0.5); background: rgba(43, 36, 22, 0.08); }
.wgc-air-track i.is-on { background: #8f8676; transform: scale(1.25); }
.wgc-air-track i.is-on.is-allies { background: #4f7cac; }
.wgc-air-track i.is-on.is-axis { background: #8a4a32; }

/* This week's event. */
.wgc-event-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em 0.8em;
	margin: 0 0 1.2em;
	padding: 0.7em 1em;
	border: 1px dashed var(--wgc-khaki);
	border-left: 8px solid #b3170f;
	background: rgba(239, 230, 204, 0.08);
	color: var(--wgc-on-bg);
}
.wgc-event-banner.is-quiet { border-left-color: var(--wgc-olive); }
.wgc-event-kicker { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.wgc-event-banner strong { font-family: var(--wgc-stencil); font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.wgc-event-banner span:last-child { flex-basis: 100%; font-family: var(--wgc-typed); font-size: 0.92rem; }

/* Games and alliances. */
.wgc-game-chip {
	display: inline-block;
	margin: 0 0.4em 0.25em 0;
	padding: 0.05em 0.5em;
	border-radius: 2px;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: #5a5236;
}
.wgc-game-chip.is-vas { background: #2b5f74; }
.wgc-game-chip.is-brs { background: #6a4c7d; }
.wgc-alliance-chip { display: inline-block; padding: 0 0.45em; border-radius: 2px; color: #fff; font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; }
.wgc-alliance-chip.is-allies { background: #4f7cac; }
.wgc-alliance-chip.is-axis { background: #8a4a32; }
.wgc-orders-theatre { display: block; font-size: 0.8rem; opacity: 0.75; letter-spacing: 0.06em; text-transform: uppercase; }

.wgc-game-picker { display: flex; flex-wrap: wrap; gap: 0.5em; border: 0; padding: 0; }
.wgc-game-picker legend { padding: 0; }
.wgc-game-option { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.35em 0.7em; border: 1px solid var(--wgc-line); border-radius: 2px; background: rgba(255, 255, 255, 0.35); cursor: pointer; }
.wgc-game-option:has(input:checked) { border-color: var(--wgc-ink); background: var(--wgc-khaki); }
.wgc-game-option:has(input:disabled) { opacity: 0.5; cursor: default; }

/* Enlistment: two alliances side by side. */
.wgc-alliance-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1em; margin: 1em 0; }
.wgc-alliance-col { margin: 0; padding: 0.8em; border: 2px solid var(--wgc-line); border-radius: 3px; min-width: 0; }
.wgc-alliance-col.is-allies { border-top: 6px solid #4f7cac; }
.wgc-alliance-col.is-axis { border-top: 6px solid #8a4a32; }
.wgc-alliance-col.is-short { box-shadow: 0 0 0 3px rgba(184, 145, 58, 0.55); }
.wgc-alliance-col legend { padding: 0 0.4em; font-family: var(--wgc-stencil); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wgc-alliance-col legend small { font-family: var(--wgc-ui); font-size: 0.75rem; letter-spacing: 0.04em; opacity: 0.7; }
.wgc-alliance-col .wgc-faction-picker { grid-template-columns: 1fr; }
.wgc-faction-option.is-minor { margin-left: 1.2em; }
.wgc-recruit { margin: 0.6em 0; padding: 0.5em 0.8em; border-left: 6px solid var(--wgc-brass); background: rgba(184, 145, 58, 0.15); }

/* Portraits stand-in: initials on the nation's colour. */
.wgc-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--wgc-fc);
	color: var(--wgc-fi);
	border: 2px solid rgba(244, 236, 216, 0.85);
	font-family: var(--wgc-stencil);
	letter-spacing: 0.04em;
	line-height: 1;
}

/* Recon photo still to come. */
.wgc-recon.is-pending {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	background: repeating-linear-gradient(-45deg, rgba(43, 36, 22, 0.08) 0 10px, rgba(43, 36, 22, 0.02) 10px 20px), var(--wgc-paper-2);
}
.wgc-recon.is-pending > span { font-family: var(--wgc-stencil); color: rgba(142, 27, 23, 0.75); border: 3px solid rgba(142, 27, 23, 0.6); padding: 0.2em 0.6em; transform: rotate(-6deg); letter-spacing: 0.08em; text-transform: uppercase; }

/* Order of Battle: one column per alliance. */
.wgc-roster-alliances { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4em; }
.wgc-roster-col { min-width: 0; }
.wgc-roster-col .wgc-roster { grid-template-columns: 1fr; }
.wgc-alliance-head { display: flex; flex-direction: column; margin: 0 0 0.8em; padding: 0.4em 0.8em; border-left: 10px solid var(--wgc-fc); background: rgba(239, 230, 204, 0.08); font-family: var(--wgc-stencil); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wgc-on-bg); }
.wgc-alliance-head small { font-family: var(--wgc-ui); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: none; opacity: 0.8; }
.wgc-unit-minors { display: block; font-size: 0.8rem; opacity: 0.8; }
.wgc-roster-nation { display: inline-flex; align-items: center; gap: 0.25em; font-size: 0.75rem; opacity: 0.85; }

/* Roll of Honour: the war card. */
.wgc-war-row { display: flex; flex-direction: column; margin: 0.4em 0; padding-left: 0.6em; border-left: 6px solid #4f7cac; }
.wgc-war-row.is-axis { border-left-color: #8a4a32; }
.wgc-war-row strong { font-family: var(--wgc-stencil); font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.wgc-war-row span { font-size: 0.85rem; }
.wgc-standings tr.is-alliance td { background: rgba(43, 36, 22, 0.08); }
.wgc-standings tr.is-alliance.is-allies td:first-child { border-left: 6px solid #4f7cac; }
.wgc-standings tr.is-alliance.is-axis td:first-child { border-left: 6px solid #8a4a32; }

@media (max-width: 640px) {
	.wgc-box-name { font-size: 34px; }
	.wgc-faction-option.is-minor { margin-left: 0.5em; }
}
/* Long nation names wrap instead of running into the 'vs'. */
.wgc-orders-side .wgc-faction { white-space: normal; }
.wgc-orders-side > div { min-width: 0; }

/* Supply: cut-off territories. */
.wgc-cut-badge circle { fill: #f4ecd8; stroke: #b3170f; stroke-width: 2; }
.wgc-cut-badge path { stroke: #b3170f; stroke-width: 2.5; stroke-linecap: round; }
.wgc-marker.is-cut .wgc-dot { stroke-dasharray: 4 3; }
.wgc-legend-cut { border: 2px solid #b3170f; border-radius: 50%; background: linear-gradient(45deg, transparent 44%, #b3170f 44% 56%, transparent 56%); }
.wgc-deploy-cut { display: block; margin-top: 0.3em; color: #f0b3aa; font-size: 0.85rem; }

/* Field HQ: itemised challenge preview. */
.wgc-preview:empty { display: none; }
.wgc-preview { margin: 0.6em 0 1em; padding: 0.7em 0.8em; border: 1px dashed var(--wgc-line); background: rgba(255, 255, 255, 0.35); font-size: 0.92rem; }
.wgc-pv-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6em 1.2em; }
.wgc-pv-side { min-width: 0; }
.wgc-pv-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.wgc-pv-side strong { font-family: var(--wgc-stencil); font-weight: 400; letter-spacing: 0.03em; }
.wgc-pv-cap { display: block; font-size: 0.8rem; color: #8e1b17; }
.wgc-pv-side ul, .wgc-pv-cond { margin: 0.3em 0 0; padding-left: 1.1em; font-family: var(--wgc-typed); font-size: 0.85rem; }
.wgc-pv-cond { margin-top: 0.7em; padding-top: 0.5em; border-top: 1px dashed var(--wgc-line); }
.wgc-pv-note { margin: 0; font-family: var(--wgc-typed); }
/* Deadline for an unplayed challenge. */
.wgc-deadline { margin: 0.6em 0; padding: 0.4em 0.7em; border-left: 5px solid var(--wgc-brass); background: rgba(184, 145, 58, 0.15); font-family: var(--wgc-typed); font-size: 0.88rem; }
.wgc-deadline.is-close { border-left-color: #b3170f; background: rgba(179, 23, 15, 0.1); }
.wgc-stamp.is-forfeit { color: #8e1b17; }

/* 1.4: bigger recon photos, click to enlarge. */
.wgc-recon { width: 300px; }
.wgc-front .wgc-recon { width: 180px; }
.wgc-recon-zoom { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.wgc-recon-zoom:focus-visible { outline: 3px solid var(--wgc-brass); outline-offset: 2px; }
@media (max-width: 900px) { .wgc-recon, .wgc-front .wgc-recon { width: 100%; max-width: 340px; transform: none; } }
.wgc-recon-box { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 9, 6, 0.86); cursor: zoom-out; }
.wgc-recon-box figure { margin: 0; max-width: min(1100px, 100%); padding: 10px 10px 6px; background: #f3ecd8; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.wgc-recon-frame { position: relative; display: block; }
.wgc-recon-box img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; filter: sepia(0.18) contrast(1.05); }
.wgc-recon-box figcaption { margin-top: 4px; font-family: "Special Elite", "Courier New", monospace; font-size: 13px; color: #5a4d33; text-transform: uppercase; }

/* 1.4: games a player plays. */
.wgc-games-pick { display: flex; flex-wrap: wrap; gap: 0.5em; border: 0; padding: 0; }
.wgc-games-pick legend { padding: 0; }
.wgc-games-pick small { flex-basis: 100%; font-size: 0.8rem; opacity: 0.8; }
.wgc-game-option:has(input[type="checkbox"]:checked) { border-color: var(--wgc-ink); background: var(--wgc-khaki); }
.wgc-game-minis { display: inline-flex; gap: 3px; margin-left: auto; margin-right: 0.5em; }
.wgc-game-mini { padding: 0 0.35em; border-radius: 2px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; color: #fff; background: #5a5236; }
.wgc-game-mini.is-vas { background: #2b5f74; }
.wgc-game-mini.is-brs { background: #6a4c7d; }

/* 1.4: What's new. */
.wgc-tab-badge.is-new { background: var(--wgc-brass); color: #2b2416; font-size: 0.6rem; letter-spacing: 0.06em; }
.wgc-whats-new ul { margin: 0.3em 0 0.6em; padding-left: 1.2em; }
.wgc-whats-new li { margin: 0.2em 0; }
.wgc-cl { margin: 0.4em 0; }
.wgc-cl-version { font-family: var(--wgc-stencil); letter-spacing: 0.05em; text-transform: uppercase; }
.wgc-cl-date { font-family: var(--wgc-typed); font-size: 0.8rem; opacity: 0.7; }
.wgc-cl summary { cursor: pointer; }
/* 1.5: weekly event popup (moved to <body> by the script, so no campaign variables here). */
html.wgc-ev-open { overflow: hidden; }
.wgc-ev-pop { position: fixed; inset: 0; z-index: 99998; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; background: rgba(10, 9, 6, 0.82); }
.wgc-ev-pop[hidden] { display: none; }
.wgc-ev-card { width: 100%; max-width: 620px; margin: auto 0; background: #ece2c6; color: #2b2416; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6); font-family: "Oswald", "Arial Narrow", sans-serif; }
.wgc-ev-sheet { padding: 16px 16px 12px; }
.wgc-ev-photo { display: block; width: 100%; height: auto; }
.wgc-ev-headline { margin: 0; line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; }
/* Newspaper: The War Gazette front page. */
.wgc-ev-sheet.is-news { background: #f1ead6 linear-gradient(180deg, rgba(120, 100, 60, 0.06), rgba(120, 100, 60, 0.14)); color: #1d1a14; }
.wgc-ev-mast { font-family: "Old English Text MT", "UnifrakturMaguntia", "Times New Roman", Georgia, serif; font-size: clamp(30px, 8vw, 52px); font-weight: 700; text-align: center; line-height: 1; padding-bottom: 6px; border-bottom: 3px double #1d1a14; }
.wgc-ev-edition { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; margin-bottom: 10px; border-bottom: 1px solid #1d1a14; font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.wgc-ev-edition span:nth-child(2) { font-weight: 700; letter-spacing: 0.2em; }
.wgc-ev-sheet.is-news .wgc-ev-headline { font-family: "Oswald", Impact, "Arial Narrow", sans-serif; font-weight: 700; font-size: clamp(26px, 6.5vw, 42px); text-align: center; margin-bottom: 10px; }
.wgc-ev-figure { margin: 0; padding: 4px; border: 1px solid #1d1a14; }
.wgc-ev-sheet.is-news .wgc-ev-photo { filter: grayscale(1) contrast(1.1) sepia(0.15); }
.wgc-ev-sub { margin: 8px 0 0; font-family: Georgia, serif; font-style: italic; text-align: center; }
/* Poster: stencil headline band and slogan band. */
.wgc-ev-sheet.is-poster { padding: 0; background: #1f1b14; }
.wgc-ev-band { padding: 12px 14px; background: #8e1b17; color: #f3ecd8; text-align: center; }
.wgc-ev-sheet.is-poster .wgc-ev-headline { font-family: "Black Ops One", "Stencil", Impact, sans-serif; font-weight: 400; font-size: clamp(26px, 7vw, 44px); }
.wgc-ev-band.is-foot { background: #e9dcb6; color: #2b2416; font-family: "Black Ops One", "Stencil", Impact, sans-serif; font-size: clamp(16px, 4vw, 22px); text-transform: uppercase; letter-spacing: 0.04em; }
.wgc-ev-details { padding: 12px 16px 4px; border-top: 1px dashed rgba(43, 36, 22, 0.35); }
.wgc-ev-details .wgc-event-kicker { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #5a4d33; }
.wgc-ev-details strong { display: block; font-size: 20px; margin: 2px 0; }
.wgc-ev-details p { margin: 0; font-family: "Special Elite", "Courier New", monospace; font-size: 15px; line-height: 1.45; }
.wgc-ev-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; }
.wgc-ev-pop .wgc-ev-btn { min-height: 40px; padding: 8px 18px; border: 2px solid #2f3414; border-radius: 2px; background: #4b5320; color: #f3ecd8; font: 600 15px/1 "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.wgc-ev-pop .wgc-ev-btn.is-ghost { background: transparent; color: #2f3414; }
.wgc-ev-pop .wgc-ev-btn:hover, .wgc-ev-pop .wgc-ev-btn:focus-visible { outline: 2px solid #b8913a; outline-offset: 2px; }
@media (max-width: 480px) {
	.wgc-ev-pop { padding: 12px 8px; }
	.wgc-ev-edition span:first-child, .wgc-ev-edition span:last-child { display: none; }
	.wgc-ev-edition { justify-content: center; }
	.wgc-ev-actions .wgc-ev-btn { flex: 1 1 auto; }
}
/* 1.6: the Field Telegraph (Field HQ). */
.wgc-telegraph { margin-top: 18px; }
.wgc-tg-count { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 2px; background: var(--wgc-red); color: #f3ecd8; font-size: 0.85em; }
.wgc-tg-compose { margin: 4px 0 14px; }
.wgc-tg-compose > summary { display: inline-flex; list-style: none; cursor: pointer; }
.wgc-tg-compose > summary::-webkit-details-marker { display: none; }
.wgc-tg-compose[open] > summary { margin-bottom: 10px; }
.wgc-tg-form { max-width: 640px; }
.wgc-wire-icon { vertical-align: -3px; margin-right: 4px; }
.wgc-tg-empty { margin: 8px 0 0; }
.wgc-tg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wgc-line); }
.wgc-tg-list > li { border-bottom: 1px solid var(--wgc-line); }
.wgc-tg-head { display: flex; align-items: center; gap: 10px; padding: 9px 4px; cursor: pointer; list-style: none; }
.wgc-tg-head::-webkit-details-marker { display: none; }
.wgc-tg-head:hover { background: rgba(43, 36, 22, 0.05); }
.wgc-tg-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wgc-tg-name { font-weight: 600; }
.wgc-tg-subject { color: var(--wgc-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--wgc-typed); font-size: 14px; }
.wgc-tg-thread.is-unread .wgc-tg-name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--wgc-red); vertical-align: 2px; }
.wgc-tg-when { flex: none; text-align: right; font-size: 13px; color: var(--wgc-soft); }
.wgc-tg-new { display: inline-block; margin-right: 6px; padding: 1px 5px; border: 2px solid var(--wgc-red); color: var(--wgc-red); font-family: var(--wgc-stencil); font-size: 12px; letter-spacing: 0.08em; transform: rotate(-4deg); }
.wgc-tg-kind { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 2px; font-family: var(--wgc-ui); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #f3ecd8; background: var(--wgc-olive); }
.wgc-tg-kind.is-battle { background: var(--wgc-red); }
.wgc-tg-thread.is-closed .wgc-tg-head { opacity: 0.75; }
.wgc-tg-stack { display: grid; gap: 12px; padding: 6px 0 12px; }
.wgc-tg-reply { max-width: 640px; }
.wgc-tg-delete { margin: 4px 0 12px; }
.wgc-tg-closed { margin: 0 0 8px; }
.wgc-tg-link-row { margin: 8px 0; }
.wgc-tg-link { font-weight: 600; }

/* A telegram form: grey-beige stock, engraved masthead, class-of-service box and time-filed strip. */
.wgc-telegram { max-width: 680px; padding: 14px 16px 16px; background: #d8d1bd linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(120, 105, 70, 0.08)); color: #23262c; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.18); font-family: Georgia, "Times New Roman", serif; }
.wgc-tg-top { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.wgc-tg-class { list-style: none; margin: 0; padding: 0; min-width: 132px; border: 1.5px solid #23262c; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); font-family: var(--wgc-ui); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.wgc-tg-class li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 6px; border-top: 1px solid #23262c; }
.wgc-tg-class li.is-cap { justify-content: center; border-top: 0; font-weight: 700; }
.wgc-tg-class i { display: inline-block; width: 14px; border-left: 1px solid #23262c; text-align: center; font-style: normal; font-weight: 700; color: #7a1d18; }
.wgc-tg-mast { text-align: center; }
.wgc-tg-brand { display: block; font-family: "Times New Roman", Georgia, serif; font-size: clamp(24px, 5.4vw, 40px); font-weight: 700; letter-spacing: 0.1em; line-height: 1; }
.wgc-tg-sub { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.wgc-tg-strip { display: grid; grid-template-columns: 0.6fr 1.2fr 1.2fr 1.3fr; margin: 12px 0 0; border: 1.5px solid #23262c; }
.wgc-tg-strip > div { padding: 2px 6px 4px; border-left: 1px solid #23262c; min-width: 0; }
.wgc-tg-strip > div:first-child { border-left: 0; }
.wgc-tg-strip dt { font-family: var(--wgc-ui); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; border-bottom: 1px solid #23262c; margin: 0 -6px 3px; }
.wgc-tg-strip dd { margin: 0; font-family: var(--wgc-typed); font-size: 13px; overflow-wrap: anywhere; }
.wgc-tg-re { margin: 10px 0 0; font-family: var(--wgc-typed); font-size: 14px; }
.wgc-tg-text { margin: 10px 0 0; font-family: "Courier Prime", var(--wgc-typed); font-size: 16px; line-height: 1.55; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.wgc-tg-sig { margin: 10px 0 0; text-align: right; font-family: var(--wgc-typed); font-size: 13px; }
@media (max-width: 560px) {
	.wgc-tg-top { grid-template-columns: 1fr; }
	.wgc-tg-class { display: none; }
	.wgc-tg-strip { grid-template-columns: 1fr 1fr; }
	.wgc-tg-strip > div:nth-child(3) { border-left: 0; }
	.wgc-tg-strip > div:nth-child(n+3) { border-top: 1px solid #23262c; }
	.wgc-tg-when { font-size: 12px; }
}

/* 1.6: Military ID cards from the Order of Battle. */
.wgc-id-hint { margin: 0 0 8px; font-family: var(--wgc-typed); font-size: 13px; color: var(--wgc-soft); }
.wgc-unit-roster li.wgc-id-open { cursor: pointer; border-radius: 3px; }
.wgc-unit-roster li.wgc-id-open:hover, .wgc-unit-roster li.wgc-id-open:focus-visible { background: rgba(184, 145, 58, 0.16); outline: none; }
.wgc-unit-roster li.wgc-id-open:focus-visible { box-shadow: 0 0 0 2px var(--wgc-brass); }
.wgc-id-pop { --wgc-olive: #4b5320; --wgc-olive-dark: #2f3414; --wgc-stencil: "Black Ops One", "Stencil", Impact, sans-serif; --wgc-typed: "Special Elite", "Courier New", Courier, monospace; position: fixed; inset: 0; z-index: 99998; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; background: rgba(10, 9, 6, 0.8); }
.wgc-idcard { width: 100%; max-width: 520px; margin: auto 0; padding: 14px 16px 12px; border-radius: 10px; background: #efe6cc linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(160, 130, 70, 0.12)); color: #2b2416; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(43, 36, 22, 0.3), inset 0 0 0 6px #efe6cc, inset 0 0 0 7px rgba(43, 36, 22, 0.25); font-family: "Oswald", "Arial Narrow", sans-serif; }
.wgc-id-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 8px; border-bottom: 3px solid var(--wgc-fc, #4b5320); }
.wgc-id-title { font-family: "Black Ops One", "Stencil", Impact, sans-serif; font-size: clamp(17px, 4.6vw, 23px); letter-spacing: 0.04em; text-transform: uppercase; }
.wgc-id-side { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #5a4d33; }
.wgc-idcard.is-axis .wgc-id-side { color: #6e2a20; }
.wgc-id-body { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 12px 4px 4px; }
.wgc-id-photo { position: relative; align-self: start; padding: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transform: rotate(-1.2deg); }
.wgc-id-photo .wgc-portrait { display: block; width: 124px; height: 124px; object-fit: cover; filter: sepia(0.25) contrast(1.05); }
.wgc-id-stamp { position: absolute; right: -14px; bottom: -14px; opacity: 0.9; transform: rotate(12deg); }
.wgc-id-stamp .wgc-emblem { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.wgc-id-fields { margin: 0; display: grid; gap: 4px; }
.wgc-id-fields > div { display: grid; grid-template-columns: 82px 1fr; gap: 6px; align-items: baseline; border-bottom: 1px dotted rgba(43, 36, 22, 0.35); padding-bottom: 2px; }
.wgc-id-fields dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #5a4d33; }
.wgc-id-fields dd { margin: 0; font-family: "Special Elite", "Courier New", monospace; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.wgc-id-fields .is-name dd { font-family: "Black Ops One", "Stencil", Impact, sans-serif; font-size: 19px; letter-spacing: 0.02em; }
.wgc-id-fields dd small { display: block; font-size: 12px; color: #5a4d33; }
.wgc-id-fields .wgc-rank-badge, .wgc-id-fields .wgc-insignia { width: 22px; height: 22px; vertical-align: -5px; }
.wgc-id-number { letter-spacing: 0.06em; }
.wgc-id-record { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0 0; border: 1.5px solid rgba(43, 36, 22, 0.6); }
.wgc-id-record > div { padding: 4px 2px; text-align: center; border-left: 1px solid rgba(43, 36, 22, 0.4); }
.wgc-id-record > div:first-child { border-left: 0; }
.wgc-id-record dt { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #5a4d33; }
.wgc-id-record dd { margin: 0; font-family: "Black Ops One", "Stencil", Impact, sans-serif; font-size: 20px; }
.wgc-id-motto { margin: 12px 0 0; padding: 8px 10px; border: 2px solid var(--wgc-fc, #4b5320); text-align: center; font-family: "Special Elite", "Courier New", monospace; font-size: 18px; transform: rotate(-0.6deg); }
.wgc-id-motto span { font-size: 13px; color: #8a7c5c; }
.wgc-id-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.wgc-id-fine { flex: 1 1 140px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a7c5c; }
@media (max-width: 480px) {
	.wgc-id-pop { padding: 12px 8px; }
	.wgc-id-body { grid-template-columns: 1fr; justify-items: center; }
	.wgc-id-fields { width: 100%; }
	.wgc-id-record dd { font-size: 17px; }
	.wgc-id-foot .wgc-button { flex: 1 1 auto; justify-content: center; text-align: center; }
}/* Replies in a thread: the same form, with a slim masthead. */
.wgc-telegram.is-reply .wgc-tg-top { grid-template-columns: 1fr; }
.wgc-telegram.is-reply .wgc-tg-class { display: none; }
.wgc-telegram.is-reply .wgc-tg-brand { display: inline; font-size: 18px; }
.wgc-telegram.is-reply .wgc-tg-sub { display: inline; margin-left: 10px; font-size: 11px; }
.wgc-telegram.is-reply .wgc-tg-mast { text-align: left; }.wgc-id-fine { flex-basis: 100%; }
.wgc-id-foot .wgc-id-wire { margin-left: auto; }
.wgc-id-foot .wgc-id-close:first-of-type:not(.wgc-id-wire ~ .wgc-id-close) { margin-left: auto; }
/* 1.6.1: sign in or create an account, side by side. */
.wgc-signin-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 10px; }
.wgc-signin-path { padding: 12px 14px 4px; border: 1px solid var(--wgc-line); background: rgba(255, 255, 255, 0.25); }
.wgc-signin-path.is-new { border-style: dashed; }
.wgc-signin-head { margin: 0 0 4px; font-family: var(--wgc-stencil); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wgc-ink); }
.wgc-signin-path > .wgc-small { margin: 0 0 10px; }
.wgc-signin-lost { margin: 0 0 10px; font-size: 0.95rem; }
.wgc-signin-steps { margin: 6px 0 14px; padding: 0; list-style: none; counter-reset: wgc-step; font-family: var(--wgc-typed); line-height: 1.5; }
.wgc-signin .wgc-signin-steps li { position: relative; margin: 0 0 8px; padding-left: 34px; list-style: none; counter-increment: wgc-step; }
.wgc-signin-steps li::before { content: counter(wgc-step); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--wgc-olive); color: #efe6cc; font-family: var(--wgc-stencil); font-size: 14px; line-height: 24px; text-align: center; }
.wgc-signin-unsure { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--wgc-brass); background: rgba(184, 145, 58, 0.12); font-family: var(--wgc-typed); font-size: 0.95rem; }