/* TGCC Wind Constraint Map 1.0.1. Styled to match TGCC Energy Map 1.0.6 (solar farm map). */
.tgcc-wcm {
	--tgcc-wcm-bg: #0b0814;
	--tgcc-wcm-panel: #150e1f;
	--tgcc-wcm-lav: #A5B4FC;
	--tgcc-wcm-purple: #8e43f0;
	--tgcc-wcm-muted: #b4abc6;
	--tgcc-wcm-red: #F2665A;
	--tgcc-wcm-gold: #F5A524;
	--tgcc-wcm-green: #3DDC84;
	--tgcc-wcm-h: min(74vh, 760px);
	background: var(--tgcc-wcm-bg);
	color: #fff;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	border-radius: 18px;
	padding: clamp(18px, 3vw, 40px);
	box-sizing: border-box;
	line-height: 1.5;
}
.tgcc-wcm *, .tgcc-wcm *::before, .tgcc-wcm *::after { box-sizing: border-box; }
.tgcc-wcm p { margin: 0; }
.tgcc-wcm__head { text-align: center; max-width: 920px; margin: 0 auto 22px; }
.tgcc-wcm__eyebrow { color: var(--tgcc-wcm-lav); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px !important; }
.tgcc-wcm__live { display: inline-flex; align-items: center; gap: 6px; color: #ffb4ac; }
.tgcc-wcm__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--tgcc-wcm-red); box-shadow: 0 0 0 0 rgba(242, 102, 90, .7); animation: tgcc-wcm-pulse 2s infinite; }
@keyframes tgcc-wcm-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 102, 90, .7); } 70% { box-shadow: 0 0 0 8px rgba(242, 102, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 102, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .tgcc-wcm__live i { animation: none; } }
.tgcc-wcm .tgcc-wcm__title { color: #fff; font-family: inherit; font-weight: 800; font-size: clamp(30px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 12px; }
.tgcc-wcm__sub { color: var(--tgcc-wcm-muted); font-size: clamp(15px, 1.6vw, 18px); }
.tgcc-wcm__intro { text-align: left; color: #e9e4f5; font-size: 17px; line-height: 1.65; max-width: 780px; margin: 18px auto 0; }
.tgcc-wcm__intro p { margin: 0 0 12px; }

/* Super graphics: the headline stat cards */
.tgcc-wcm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 auto 10px; max-width: 1100px; }
@media (min-width: 1000px) { .tgcc-wcm__cards { grid-template-columns: repeat(4, 1fr); } }
.tgcc-wcm__card { background: var(--tgcc-wcm-panel); border: 1px solid rgba(165, 180, 252, .22); border-radius: 14px; padding: 18px 20px; text-align: center; box-shadow: 0 0 24px rgba(142, 67, 240, .12); }
.tgcc-wcm__card-label { color: var(--tgcc-wcm-lav); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tgcc-wcm__card-num { color: #fff; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1.15; margin: 4px 0 2px !important; font-variant-numeric: tabular-nums; }
.tgcc-wcm__card-sub { color: var(--tgcc-wcm-muted); font-size: 15px; font-weight: 600; }
.tgcc-wcm__card-back { color: #ffb4ac; font-size: 13px; font-weight: 600; margin: 3px 0 0 !important; }
.tgcc-wcm__card-back:empty { display: none; }
.tgcc-wcm-card__back { font-size: 11px; color: #ffb4ac; margin: -3px 0 7px !important; line-height: 1.35; }
.tgcc-wcm__card--hl { border-color: rgba(242, 102, 90, .6); box-shadow: 0 0 26px rgba(242, 102, 90, .16); }
.tgcc-wcm__card--hl .tgcc-wcm__card-label { color: #ff8f85; }
.tgcc-wcm__updated { text-align: center; color: var(--tgcc-wcm-muted); font-size: 13px; font-weight: 600; margin: 0 auto 14px !important; }

/* Map */
.tgcc-wcm__mapwrap { position: relative; border-radius: 14px; overflow: hidden; overflow: clip; border: 1px solid rgba(165, 180, 252, .25); background: #2c1752; }
.tgcc-wcm__map { width: 100%; height: var(--tgcc-wcm-h); min-height: 380px; background: #2c1752; z-index: 0; }
.tgcc-wcm__map:focus-visible { outline: 3px solid var(--tgcc-wcm-lav); outline-offset: -3px; }
.tgcc-wcm__loading { position: absolute; inset: auto 0 45% 0; text-align: center; color: #fff; font-weight: 600; pointer-events: none; z-index: 500; }
.tgcc-wcm__loading[hidden] { display: none; }
.tgcc-wcm .leaflet-container { background: #2c1752; font-family: Montserrat, system-ui, sans-serif; }
/* Same trick as the solar map 1.0.6: invert the OSM raster so place names come out soft white
   (#EDE9F7) with a subtle dark halo, then screen a deep purple over the map pane. */
.tgcc-wcm .tgcc-wcm__tiles img { filter: invert(1) grayscale(1) contrast(1.6); }
.tgcc-wcm .leaflet-map-pane::after { content: ""; position: absolute; width: 32768px; height: 32768px; left: -16384px; top: -16384px; background: #2c1752; mix-blend-mode: screen; pointer-events: none; z-index: 250; }
.tgcc-wcm .leaflet-bar { border: 1px solid rgba(165, 180, 252, .3); }
.tgcc-wcm .leaflet-bar a, .tgcc-wcm .leaflet-bar a:hover { background: var(--tgcc-wcm-panel); color: #fff; border-bottom-color: rgba(165, 180, 252, .25); text-decoration: none; }
.tgcc-wcm .leaflet-control-attribution { background: rgba(11, 8, 20, .8); color: #b4abc6; font-size: 10px; }
.tgcc-wcm .leaflet-control-attribution a { color: #d6cbef; }

/* On-map key (as solar 1.0.4) */
.tgcc-wcm__keybox { position: absolute; left: 10px; bottom: 28px; z-index: 600; width: min(272px, calc(100% - 20px)); background: rgba(21, 14, 31, .94); color: #e9e4f5; border: 1px solid rgba(165, 180, 252, .4); border-top: 3px solid var(--tgcc-wcm-purple); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); font-size: 12px; line-height: 1.35; overflow: hidden; }
.tgcc-wcm .tgcc-wcm__keybox-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; color: #fff; font: 800 13px/1 inherit; font-family: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; text-align: left; }
.tgcc-wcm .tgcc-wcm__keybox-toggle::after { content: ''; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid var(--tgcc-wcm-lav); border-bottom: 2px solid var(--tgcc-wcm-lav); transform: rotate(45deg) translateY(-2px); transition: transform .18s; flex: none; }
.tgcc-wcm__keybox.is-open .tgcc-wcm__keybox-toggle::after { transform: rotate(-135deg) translateY(-2px); }
.tgcc-wcm .tgcc-wcm__keybox-toggle:hover, .tgcc-wcm .tgcc-wcm__keybox-toggle:focus { background: rgba(165, 180, 252, .12); color: #fff; }
.tgcc-wcm__keybox-body { display: none; padding: 0 12px 11px; }
.tgcc-wcm__keybox.is-open .tgcc-wcm__keybox-body { display: block; }
.tgcc-wcm .tgcc-wcm__keybox-h { color: var(--tgcc-wcm-lav); font-weight: 800; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin: 8px 0 3px !important; }
.tgcc-wcm .tgcc-wcm__keybox-h:first-child { margin-top: 0 !important; }
.tgcc-wcm__keybox-list { list-style: none; margin: 0; padding: 0; }
.tgcc-wcm__keybox-list li { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #fff; font-weight: 600; }
.tgcc-wcm__keybox-list small { color: var(--tgcc-wcm-muted); font-weight: 600; font-size: 11px; }
.tgcc-wcm .tgcc-wcm__keybox-note { color: var(--tgcc-wcm-muted); font-size: 11px; margin: 8px 0 0 !important; }

/* Legend chips */
.tgcc-wcm__legend { margin: 16px 0 0; }
.tgcc-wcm__keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-bottom: 8px; }
.tgcc-wcm .tgcc-wcm__key { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(165, 180, 252, .3); background: var(--tgcc-wcm-panel); color: #fff; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; transition: opacity .15s, border-color .15s; text-transform: none; letter-spacing: 0; }
.tgcc-wcm .tgcc-wcm__key:hover { border-color: var(--tgcc-wcm-lav); background: var(--tgcc-wcm-panel); color: #fff; }
.tgcc-wcm .tgcc-wcm__key[aria-pressed="false"] { opacity: .45; }
.tgcc-wcm .tgcc-wcm__key[aria-pressed="false"] .tgcc-wcm__key-label { text-decoration: line-through; }
.tgcc-wcm .tgcc-wcm__key:focus-visible { outline: 2px solid var(--tgcc-wcm-lav); outline-offset: 2px; }
.tgcc-wcm__dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); }
.tgcc-wcm__dot--ring { box-shadow: 0 0 0 2px #fff; background: transparent; }
.tgcc-wcm__key-n { color: var(--tgcc-wcm-muted); font-weight: 600; }
.tgcc-wcm__note { text-align: center; color: var(--tgcc-wcm-muted); font-size: 14px; max-width: 780px; margin: 4px auto 0 !important; }

/* Info cards (popups). 1.0.1: about 25-30% smaller than 1.0.0, solar map card size (264 px wide content). */
.tgcc-wcm-pop .leaflet-popup-content-wrapper, .tgcc-wcm-gpop .maplibregl-popup-content { background: #150e1f; color: #fff; border: 1px solid rgba(165, 180, 252, .35); border-radius: 11px; box-shadow: 0 8px 26px rgba(0, 0, 0, .55); }
.tgcc-wcm-pop .leaflet-popup-content { margin: 10px 12px 9px; font-family: Montserrat, system-ui, sans-serif; line-height: 1.35; width: 244px !important; }
.tgcc-wcm-gpop .maplibregl-popup-content { padding: 10px 12px 9px; font-family: Montserrat, system-ui, sans-serif; line-height: 1.35; width: 270px; }
.tgcc-wcm-pop .leaflet-popup-tip { background: #150e1f; }
.tgcc-wcm-pop a.leaflet-popup-close-button { color: #fff; font-size: 20px; width: 30px; height: 30px; top: 2px; right: 2px; line-height: 28px; }
.tgcc-wcm-gpop .maplibregl-popup-close-button { color: #fff; font-size: 20px; width: 30px; height: 30px; right: 2px; top: 2px; background: transparent; padding: 0; line-height: 1; }
.tgcc-wcm-gpop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .tgcc-wcm-gpop.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .tgcc-wcm-gpop.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #150e1f; }
.tgcc-wcm-gpop.maplibregl-popup-anchor-top .maplibregl-popup-tip, .tgcc-wcm-gpop.maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .tgcc-wcm-gpop.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #150e1f; }
.tgcc-wcm-gpop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #150e1f; }
.tgcc-wcm-gpop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #150e1f; }
/* Flipped below the dot (no room above): tip on top, pointing up. */
.tgcc-wcm-pop.is-below .leaflet-popup-tip-container { top: -20px; transform: rotate(180deg); }
.tgcc-wcm-card p { margin: 0; }
.tgcc-wcm-card__name { font-weight: 800; font-size: 14px; line-height: 1.2; padding-right: 22px; }
.tgcc-wcm-card__where { color: #b4abc6; font-size: 11px; font-weight: 600; margin-top: 1px !important; }
.tgcc-wcm-card__status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 6px; margin: 7px 0 3px !important; padding: 5px 8px 6px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-weight: 800; font-size: 12px; }
.tgcc-wcm-card__status .tgcc-wcm__dot { width: 10px; height: 10px; }
.tgcc-wcm-card__pct { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tgcc-wcm-card__bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 99px; background: rgba(61, 220, 132, .35); overflow: hidden; margin-top: 4px; }
.tgcc-wcm-card__bar span { display: block; height: 100%; background: #F2665A; }
.tgcc-wcm-card__est { color: #b4abc6; font-size: 10px; line-height: 1.3; margin-bottom: 6px !important; }
.tgcc-wcm-card__k { color: #b4abc6; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px !important; }
.tgcc-wcm-card__money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 7px; }
.tgcc-wcm-card__m { background: rgba(242, 102, 90, .1); border: 1px solid rgba(242, 102, 90, .3); border-radius: 6px; padding: 3px 2px 2px; text-align: center; }
.tgcc-wcm-card__m b { display: block; font-size: 12.5px; font-weight: 800; color: #fff; line-height: 1.25; font-variant-numeric: tabular-nums; }
.tgcc-wcm-card__m small { display: block; font-size: 8.5px; font-weight: 700; color: #ffb4ac; text-transform: uppercase; letter-spacing: .05em; }
.tgcc-wcm-card__dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; margin: 0; font-size: 11.5px; line-height: 1.3; }
.tgcc-wcm-card__dl dt { color: #b4abc6; font-weight: 600; margin: 0; }
.tgcc-wcm-card__dl dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.tgcc-wcm-card__extra { margin-top: 4px; font-size: 10.5px; }
.tgcc-wcm-card__extra[hidden] { display: none; }
.tgcc-wcm .tgcc-wcm-card__more, .tgcc-wcm-card__more { display: inline-block; margin: 5px 0 0; padding: 0; min-height: 0; border: 0; background: none; color: #A5B4FC; font: 700 10.5px/1.4 Montserrat, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.tgcc-wcm-card__more:hover, .tgcc-wcm-card__more:focus { background: none; color: #fff; }

/* Leaderboard */
.tgcc-wcm__board, .tgcc-wcm__grid { max-width: 1100px; margin: 26px auto 0; background: var(--tgcc-wcm-panel); border: 1px solid rgba(165, 180, 252, .22); border-radius: 14px; padding: 18px 20px; }
.tgcc-wcm__board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tgcc-wcm .tgcc-wcm__h3 { color: #fff; font-family: inherit; font-size: 20px; font-weight: 800; margin: 0; line-height: 1.2; }
.tgcc-wcm__views { display: flex; gap: 6px; flex-wrap: wrap; }
.tgcc-wcm .tgcc-wcm__view { min-height: 38px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(165, 180, 252, .4); background: var(--tgcc-wcm-bg); color: #fff; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tgcc-wcm .tgcc-wcm__view:hover { border-color: var(--tgcc-wcm-lav); background: var(--tgcc-wcm-bg); color: #fff; }
.tgcc-wcm .tgcc-wcm__view[aria-pressed="true"] { background: var(--tgcc-wcm-lav); border-color: var(--tgcc-wcm-lav); color: #0b0814; }
.tgcc-wcm__top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; counter-reset: tgccwcm; }
.tgcc-wcm__top li { counter-increment: tgccwcm; margin: 0; }
.tgcc-wcm .tgcc-wcm__top-btn { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(165, 180, 252, .14); border-radius: 10px; background: rgba(255, 255, 255, .02); color: #fff; font: 600 14px/1.25 inherit; font-family: inherit; text-align: left; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tgcc-wcm .tgcc-wcm__top-btn:hover, .tgcc-wcm .tgcc-wcm__top-btn:focus { border-color: var(--tgcc-wcm-lav); background: rgba(165, 180, 252, .06); color: #fff; }
.tgcc-wcm__top-btn::before { content: counter(tgccwcm); color: var(--tgcc-wcm-lav); font-weight: 800; text-align: center; }
.tgcc-wcm__top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgcc-wcm__top-name small { display: block; color: var(--tgcc-wcm-muted); font-size: 12px; }
.tgcc-wcm__top-gbp { font-weight: 800; color: #ffb4ac; font-variant-numeric: tabular-nums; }
.tgcc-wcm__top-empty { grid-column: 1 / -1; color: var(--tgcc-wcm-muted); font-weight: 600; padding: 6px 0; }
.tgcc-wcm__board-note { color: var(--tgcc-wcm-muted); font-size: 13px; margin-top: 10px !important; }

/* Grid strip (from UK Grid Live) */
.tgcc-wcm__tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tgcc-wcm__tile { background: var(--tgcc-wcm-bg); border: 1px solid rgba(165, 180, 252, .18); border-radius: 12px; padding: 12px 14px; }
.tgcc-wcm__tile-label { color: var(--tgcc-wcm-lav); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tgcc-wcm__tile-num { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 2px 0 !important; font-variant-numeric: tabular-nums; }
.tgcc-wcm__tile-sub { color: var(--tgcc-wcm-muted); font-size: 13px; font-weight: 600; }
.tgcc-wcm .tgcc-wcm__grid-link { color: var(--tgcc-wcm-lav); font-weight: 700; font-size: 14px; }

/* Source, share, continue */
.tgcc-wcm__source { color: var(--tgcc-wcm-muted); font-size: 13px; text-align: center; max-width: 900px; margin: 18px auto 0 !important; }
.tgcc-wcm a { color: var(--tgcc-wcm-lav); text-decoration: underline; text-underline-offset: 2px; }
.tgcc-wcm a:hover { color: #C4B5FD; }
.tgcc-wcm__share { margin-top: 26px; text-align: center; }
.tgcc-wcm__share-label { font-weight: 700; font-size: 15px; margin-bottom: 10px !important; }
.tgcc-wcm__share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tgcc-wcm .tgcc-wcm__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; color: #fff; text-decoration: none; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tgcc-wcm .tgcc-wcm__btn:hover { filter: brightness(1.12); color: #fff; }
.tgcc-wcm .tgcc-wcm__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tgcc-wcm .tgcc-wcm__btn--facebook { background: #1559c4; }
.tgcc-wcm .tgcc-wcm__btn--x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.tgcc-wcm .tgcc-wcm__btn--whatsapp { background: #0f7a3d; }
.tgcc-wcm .tgcc-wcm__btn--email, .tgcc-wcm .tgcc-wcm__btn--link { background: #6b2fd0; }
.tgcc-wcm__continue { text-align: center; font-weight: 700; font-size: 16px; margin-top: 22px !important; }
.tgcc-wcm .tgcc-wcm__continue a { color: #fff; text-decoration-color: var(--tgcc-wcm-purple); }

/* Phone layout */
@media (max-width: 767px) {
	.tgcc-wcm { border-radius: 0; padding: 22px 14px 26px; --tgcc-wcm-h: min(62svh, 62vh, 500px); }
	.tgcc-wcm__map { min-height: 260px; }
	.tgcc-wcm__intro { font-size: 16px; }
	.tgcc-wcm__cards { grid-template-columns: 1fr; gap: 10px; }
	.tgcc-wcm__card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label num" "sub num" "back back"; align-items: center; column-gap: 10px; text-align: left; padding: 14px 16px; }
	.tgcc-wcm__card-label { grid-area: label; }
	.tgcc-wcm__card-sub { grid-area: sub; font-size: 13px; }
	.tgcc-wcm__card-back { grid-area: back; font-size: 12.5px; }
	.tgcc-wcm__card-num { grid-area: num; margin: 0 !important; font-size: 30px; }
	.tgcc-wcm__keys { justify-content: flex-start; }
	.tgcc-wcm .tgcc-wcm__key { font-size: 13px; padding: 7px 12px; }
	.tgcc-wcm__note { text-align: left; }
	.tgcc-wcm__keybox { left: 8px; bottom: 24px; }
	.tgcc-wcm__keybox:not(.is-open) { width: auto; max-width: calc(100% - 16px); }
	.tgcc-wcm__board, .tgcc-wcm__grid { padding: 14px 12px; }
	.tgcc-wcm__top { grid-template-columns: 1fr; }
	.tgcc-wcm__tiles { grid-template-columns: repeat(2, 1fr); }
	.tgcc-wcm__tile:first-child { grid-column: 1 / -1; }
	.tgcc-wcm__tile-num { font-size: 22px; }
	.tgcc-wcm .tgcc-wcm__btn span { font-size: 13px; }
	.tgcc-wcm .tgcc-wcm__btn { padding: 10px 14px; }
	.tgcc-wcm-pop .leaflet-popup-content { width: 228px !important; margin: 9px 10px 8px; }
	.tgcc-wcm-gpop .maplibregl-popup-content { width: 250px; padding: 9px 10px 8px; }
}
/* One-finger drag scrolls the page on phones; two fingers move the map (as the solar map 1.0.5). */
@media (pointer: coarse), (max-width: 767px) {
	.tgcc-wcm .leaflet-container,
	.tgcc-wcm .leaflet-container.leaflet-touch-drag,
	.tgcc-wcm .leaflet-container.leaflet-touch-zoom,
	.tgcc-wcm .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom,
	.tgcc-wcm__mapwrap,
	.tgcc-wcm__map { touch-action: pan-y pinch-zoom; }
}

/* 1.0.1: maps, MapLibre controls in the purple style (as the solar map) */
.tgcc-wcm .maplibregl-map { overflow: hidden; overflow: clip; font-family: Montserrat, system-ui, sans-serif; }
.tgcc-wcm .maplibregl-ctrl-group { background: var(--tgcc-wcm-panel); }
.tgcc-wcm .maplibregl-ctrl-group button + button { border-top-color: rgba(165, 180, 252, .25); }
.tgcc-wcm .maplibregl-ctrl-icon { filter: invert(1) brightness(1.4); }
.tgcc-wcm .maplibregl-ctrl-attrib { background: rgba(11, 8, 20, .8); color: #b4abc6; }
.tgcc-wcm .maplibregl-ctrl-attrib a { color: #d6cbef; }
.tgcc-wcm .maplibregl-ctrl-attrib-button { filter: invert(1); }
.tgcc-wcm .maplibregl-cooperative-gesture-screen { font-family: Montserrat, system-ui, sans-serif; background: rgba(11, 8, 20, .55); }

/* 1.0.1: 'Super graphics map' switch and help (same as TGCC Energy Map 1.0.6) */
.tgcc-wcm__gfxrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.tgcc-wcm__gfx { position: relative; display: inline-flex; align-items: center; gap: 8px; z-index: 30; }
.tgcc-wcm .tgcc-wcm__switch { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid rgba(165, 180, 252, .4); background: var(--tgcc-wcm-panel); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.1; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tgcc-wcm .tgcc-wcm__switch:hover, .tgcc-wcm .tgcc-wcm__switch:focus { background: var(--tgcc-wcm-panel); color: #fff; border-color: var(--tgcc-wcm-lav); }
.tgcc-wcm .tgcc-wcm__switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tgcc-wcm__switch-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #3b2f52; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .18s; }
.tgcc-wcm__switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .18s; }
.tgcc-wcm .tgcc-wcm__switch[aria-checked="true"] .tgcc-wcm__switch-track { background: var(--tgcc-wcm-purple); }
.tgcc-wcm .tgcc-wcm__switch[aria-checked="true"] .tgcc-wcm__switch-knob { transform: translateX(18px); }
.tgcc-wcm .tgcc-wcm__switch[aria-disabled="true"] { opacity: .55; }
.tgcc-wcm .tgcc-wcm__switch[aria-disabled="true"] .tgcc-wcm__switch-label { color: var(--tgcc-wcm-muted); }
.tgcc-wcm .tgcc-wcm__help { flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid var(--tgcc-wcm-lav); background: transparent; color: var(--tgcc-wcm-lav); font-family: inherit; font-weight: 800; font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tgcc-wcm .tgcc-wcm__help:hover, .tgcc-wcm .tgcc-wcm__help:focus, .tgcc-wcm .tgcc-wcm__help[aria-expanded="true"] { background: var(--tgcc-wcm-lav); color: #0b0814; border-color: var(--tgcc-wcm-lav); }
.tgcc-wcm .tgcc-wcm__help:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tgcc-wcm__pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: min(420px, calc(100vw - 48px)); max-height: min(calc(100vh - 80px), 740px); overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px 14px; background: #150e1f; color: #e9e4f5; border: 1px solid rgba(165, 180, 252, .45); border-top: 3px solid var(--tgcc-wcm-purple); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .6); text-align: left; font-size: 14px; line-height: 1.5; }
.tgcc-wcm__pop[hidden] { display: none; }
.tgcc-wcm__pop:focus { outline: none; }
.tgcc-wcm .tgcc-wcm__pop p { margin: 0 0 6px; }
.tgcc-wcm .tgcc-wcm__pop-title { color: #fff; font-weight: 800; font-size: 16px; padding-right: 36px; }
.tgcc-wcm .tgcc-wcm__pop-status { font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(61, 220, 132, .12); color: #9ff0c4; }
.tgcc-wcm .tgcc-wcm__pop-status.is-off { background: rgba(246, 199, 194, .12); color: #f6c7c2; }
.tgcc-wcm__pop-browsers { margin: 0 0 8px; padding-left: 18px; }
.tgcc-wcm__pop-browsers li { margin: 0 0 6px; }
.tgcc-wcm .tgcc-wcm__pop-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-family: inherit; font-weight: 400; font-size: 26px; line-height: 1; cursor: pointer; }
.tgcc-wcm .tgcc-wcm__pop-close:hover, .tgcc-wcm .tgcc-wcm__pop-close:focus { background: rgba(165, 180, 252, .15); color: #fff; }
.tgcc-wcm .tgcc-wcm__pop a.tgcc-wcm__browser { color: var(--tgcc-wcm-lav); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.tgcc-wcm .tgcc-wcm__pop a.tgcc-wcm__browser:hover, .tgcc-wcm .tgcc-wcm__pop a.tgcc-wcm__browser:focus { color: #fff; }
.tgcc-wcm__copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; }
.tgcc-wcm__addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.3; color: var(--tgcc-wcm-lav); background: rgba(165, 180, 252, .12); border: 1px solid rgba(165, 180, 252, .28); border-radius: 6px; padding: 4px 7px; word-break: break-all; }
.tgcc-wcm .tgcc-wcm__copy { flex: none; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--tgcc-wcm-lav); background: transparent; color: var(--tgcc-wcm-lav); font-family: inherit; font-weight: 700; font-size: 12px; line-height: 1; cursor: pointer; letter-spacing: 0; text-transform: none; }
.tgcc-wcm .tgcc-wcm__copy:hover, .tgcc-wcm .tgcc-wcm__copy:focus { background: rgba(165, 180, 252, .15); color: #fff; }
.tgcc-wcm .tgcc-wcm__pop-hint { color: var(--tgcc-wcm-muted); font-size: 13px; }
.tgcc-wcm__gfxnote { text-align: center; color: #f6c7c2; font-size: 14px; font-weight: 600; margin: -2px auto 12px !important; max-width: 640px; }
.tgcc-wcm__gfxnote[hidden] { display: none; }

/* 1.0.1: daily £ chart (same look as the UK Grid Live history chart) */
.tgcc-wcm__hist { background: var(--tgcc-wcm-panel); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; padding: 16px 18px 18px; margin: 18px 0 0; }
.tgcc-wcm__hist-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tgcc-wcm__hist-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c79bff; font-weight: 700; margin: 0 0 4px !important; }
.tgcc-wcm__hist .tgcc-wcm__h3 { margin: 0; }
.tgcc-wcm__hist-switch { display: inline-flex; gap: 4px; padding: 4px; background: #0b0814; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
.tgcc-wcm .tgcc-wcm__hist-btn { appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1; min-width: 52px; padding: 9px 14px; margin: 0; color: #b3aac4; background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: none; text-transform: none; transition: background-color .2s ease, color .2s ease; }
.tgcc-wcm .tgcc-wcm__hist-btn:hover { color: #f3f1f6; background: rgba(255, 255, 255, .05); }
.tgcc-wcm .tgcc-wcm__hist-btn:focus { outline: none; }
.tgcc-wcm .tgcc-wcm__hist-btn:focus-visible { outline: 2px solid #00ccff; outline-offset: 2px; }
.tgcc-wcm .tgcc-wcm__hist-btn.is-on { color: #fff; background: var(--tgcc-wcm-purple); box-shadow: 0 0 0 1px rgba(199, 155, 255, .35) inset, 0 6px 18px rgba(142, 67, 240, .35); }
.tgcc-wcm__hist-cap { color: #b3aac4; font-size: 12px; margin: 0 0 10px !important; }
.tgcc-wcm__hist-chart { position: relative; width: 100%; min-height: 230px; touch-action: pan-y; }
.tgcc-wcm__hist-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tgcc-wcm__hist-chart.is-loading { border-radius: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .04) 100%); background-size: 200% 100%; animation: tgcc-wcm-shimmer 1.4s ease-in-out infinite; }
@keyframes tgcc-wcm-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.tgcc-wcm__haxis { fill: #b3aac4; font-size: 11px; font-family: Montserrat, Arial, sans-serif; }
.tgcc-wcm__hgrid { stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.tgcc-wcm__hcur { fill: rgba(255, 255, 255, .1); }
.tgcc-wcm__htip { position: absolute; top: 6px; z-index: 3; pointer-events: none; min-width: 180px; max-width: 240px; background: rgba(21, 14, 31, .96); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.35; color: #ddd6e8; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); display: none; }
.tgcc-wcm__htip.is-on { display: block; }
.tgcc-wcm__htip b { display: block; color: #f3f1f6; font-weight: 700; margin-bottom: 4px; }
.tgcc-wcm__htip div { display: flex; justify-content: space-between; gap: 10px; }
.tgcc-wcm__htip em { font-style: normal; }
.tgcc-wcm__htip span { font-variant-numeric: tabular-nums; color: #f3f1f6; font-weight: 600; }
.tgcc-wcm__htip i, .tgcc-wcm__hist-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tgcc-wcm__htip .tgcc-wcm__htot { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 4px; padding-top: 4px; }
.tgcc-wcm__hist-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tgcc-wcm .tgcc-wcm__hist-key { appearance: none; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; min-height: 32px; margin: 0; padding: 6px 11px; color: #ddd6e8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; text-transform: none; letter-spacing: 0; }
.tgcc-wcm .tgcc-wcm__hist-key:hover { color: #fff; border-color: rgba(199, 155, 255, .5); background: rgba(142, 67, 240, .14); }
.tgcc-wcm .tgcc-wcm__hist-key.is-off { opacity: .45; text-decoration: line-through; }
.tgcc-wcm__hist-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .tgcc-wcm__hist-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tgcc-wcm__hist-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tgcc-wcm__hcard { background: #1d1430; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 14px 14px 12px; min-width: 0; }
.tgcc-wcm__hcard:first-child { background: radial-gradient(500px 240px at 0 0, rgba(142, 67, 240, .22), transparent 70%), #1d1430; }
.tgcc-wcm__hcard-h { margin: 0 0 6px !important; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #b3aac4; font-weight: 700; }
.tgcc-wcm__hcard-big { font-size: 1.65rem; font-weight: 800; line-height: 1.15; color: #f3f1f6; font-variant-numeric: tabular-nums; }
.tgcc-wcm__hcard-p { margin: 6px 0 0 !important; color: #ddd6e8; font-size: 13px; line-height: 1.45; }
.tgcc-wcm__hist-src { color: #b3aac4; font-size: 12px; }
.tgcc-wcm__hist-src a { color: #c79bff; }
@media (max-width: 767px) {
	.tgcc-wcm__gfxrow { justify-content: flex-start; }
	.tgcc-wcm .tgcc-wcm__switch { font-size: 14px; }
	.tgcc-wcm__gfx { position: static; }
	.tgcc-wcm__gfxrow { position: relative; }
	.tgcc-wcm__pop { left: 0; right: 0; width: auto; max-width: none; }
	.tgcc-wcm__gfxnote { text-align: left; }
	.tgcc-wcm__hist { padding: 14px 12px; }
	.tgcc-wcm__hist-head { flex-direction: column; align-items: stretch; }
	.tgcc-wcm__hist-switch { display: flex; width: 100%; }
	.tgcc-wcm .tgcc-wcm__hist-btn { flex: 1 1 0; min-width: 0; padding: 10px 6px; }
	.tgcc-wcm__hcard-big { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .tgcc-wcm__hist-chart.is-loading { animation: none; } }
/* One-finger drag scrolls the page on phones, in the super graphics map too (as the solar map 1.0.5). */
@media (pointer: coarse), (max-width: 767px) {
	.tgcc-wcm .maplibregl-map,
	.tgcc-wcm .maplibregl-canvas-container,
	.tgcc-wcm .maplibregl-canvas,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-interactive,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-touch-drag-pan,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-touch-zoom-rotate,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-cooperative-gestures,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas,
	.tgcc-wcm .maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas {
		touch-action: pan-y pinch-zoom;
	}
}

/* 1.0.1: the on-map key steps aside while an info card is open, so it never covers the card. */
.tgcc-wcm__mapwrap.has-card .tgcc-wcm__keybox { visibility: hidden; }
