/*
 * CW site polish (CWTS 1.0.5, 28 Nov 2026). Surgical fixes for four visual faults the CW Tools 2.1.3
 * live launch check found in page content that predates CW Tools (reports/2026-11-28-roadmap/
 * live-launch-verification/REPORT.md). Nothing in the Bricks pages or templates changes: each rule
 * either retunes a colour token inside one page or section, or moves one element on small screens.
 *
 * Every colour below was measured against the real backgrounds and clears WCAG AA (4.5:1) for small text:
 *   light parchment #FAF4E7 / #FEFBF4 / #F3EAD6 / #F2E7D0 and white, dark greens #0C1B10 to #142B1B.
 *
 * 1. Muted grey text in the data tables on the packing list (page 2014, .cwpk), snow odds (1562) and
 *    crowds (4829). Those pages print small text with two global Bricks tokens:
 *      --cw-ink45  rgba(25,28,19,.45)  ink at 45% on parchment        2.8:1  ->  ink at 66%      5.1 to 5.5:1
 *      --cw-dim2   #7E7767             the same grey on dark green    3.5:1  ->  #A79E88 (--cw-dim) 5.7 to 6.7:1
 *                                       and on parchment              4.3:1  ->  #69634F           4.9 to 6.0:1
 *    The tokens are retuned only inside these pages, and --cw-dim2 splits by background: dark sections
 *    (the heroes, .drk / .dk on the packing list, .cwsn-dark, .cwcr-dark) get the light grey.
 * 2. Gold scores beside city names on the homepage city cards (.cwhc): #9A7B37 3.6:1 -> #7D6128 5.3:1.
 * 3. Snow odds hero stat labels (.cwsn-mk on near-black): covered by the dark --cw-dim2 in 1.
 * 4. The round "Europe's best" seal on market pages (template 92, .cwh-seal) sits 34px left of the photo,
 *    which on a 390px phone puts a third of it off screen. Under 640px it now sits inside the photo's edge.
 */

/* 1. Light sections of the three data pages. .cwpk.cwpk outranks the tokens the packing list sets on .cwpk. */
body.page-id-2014,
body.page-id-1562,
body.page-id-4829,
.cwpk.cwpk {
	--cw-ink45: rgba(25, 28, 19, 0.66);
	--cw-dim2: #69634f;
}

/* 1 and 3. Their dark sections. */
.cwpk.cwpk .dk,
.cwpk.cwpk .drk,
.cwpk.cwpk .hero,
body.page-id-2014 .cwpk-dark,
.cwsn-hero,
.cwsn-dark,
.cwcr-hero,
.cwcr-dark {
	--cw-dim2: #a79e88;
}

/* The red "December weather" eyebrow on the packing list's dark band (2.3:1) takes the site's gold for dark grounds. */
.cwpk.cwpk .drk .cw-lbl,
.cwpk.cwpk .dk .cw-lbl {
	color: #e2b55a;
}

/* 2. Homepage city cards: the gold score next to each city, the "markets" unit and the country tags. */
.cwhc .cwhc-city b,
.cwhc .cwhc-best b,
.cwhc .cwhc-u,
.cwhc .cwhc-meter .cwhc-n {
	color: #7d6128;
}
.cwpc-card .cwpc-tn span {
	color: rgba(25, 28, 19, 0.7);
}

/* 4. The seal stays on screen on phones. Its 4 degree tilt adds about 8px each side, so 2px clears the edge. */
@media (max-width: 640px) {
	.cwh .cwh-photo > .cwh-seal {
		left: 2px !important;
		width: 118px !important;
		height: 118px !important;
	}
	.cwh .cwh-photo > .cwh-seal img {
		width: 100% !important;
		height: 100% !important;
	}
}

/* 5. Found while checking 1 to 4. The homepage's People's Choice seal (.cwpc-seal) and its glow reach 9px past
 *    the right edge between about 1240 and 1340px wide, which gave the whole page a sideways scroll at 1280. */
@media (min-width: 992px) and (max-width: 1365px) {
	.cwpc-sw > .cwpc-seal {
		translate: -14px 0;
	}
}

/* 6. The rest of the homepage's small muted text (quiz strip, pocket guide card, newsletter labels): ink at 54 to 58%,
 *    3.7 to 4.1:1 -> 70%, 5.8 to 6.1:1. And the packing list's grey "With kids" label (2.6:1). */
body.home .cwqs p.cwqs-m,
body.home .cwqs p.cwqs-b3,
body.home .nx-pg-cap,
body.home .nx-pg-m,
body.home .nx-pg-cities > span,
body.home #nx-pocket .brxe-form .form-group > label {
	color: rgba(25, 28, 19, 0.7);
}
.cwpk.cwpk .fld.who label {
	color: #45473d;
}
