/* Jeju Kite Lab — Wingfoil Weather Motion 1.0.30
   A motion pass over the day cards of the Wingfoil Calendar. It loads after
   calendar.css, so it only has to say what changes: the sun of a clear day,
   the drift of the clouds, the fog, the way the rain answers the wind, and
   the wind dial whose streamlines run the way its arrow points.

   1.0.5: the straight beams of a clear day became droplets of light that
   spread out from the sun, the wind arrow turned gold and its streaks were
   lined up with the arrow and timed from that card's knots.
   1.0.6: the broken dots in the dial are gone. Each dial now carries a few
   short streamlines — bright at the head, fading to nothing behind — that
   slide along the arrow, and their number, length and pace all come from
   that card's knots.
   1.0.7: the arrow's shaft is a quarter thinner (2.5 → 1.875, its head and
   hub brought down with it), and the streamlines are spread across the whole
   dial instead of the band around the arrow.
   1.0.8: the sun's droplets are gone too. Clear cards now throw streamlines
   of light along their rays — the same bright head and faded tail as the
   dial's — so the two movements speak the same language. The arrow loses
   the dot in its middle and runs clean, and the weather badge above the
   date gets a deeper, more solid fill so CLEAR reads plainly.
   1.0.9: the wind reading becomes one instrument. The dial face is opaque,
   the direction letter sits under the circle, and the two of them plus the
   knots are held in a single dark plate.
   1.0.10: that plate is made compact again. The letter now sits on the dial
   itself, overlapping its bottom rim as an opaque pill, the dial is 36px,
   and the plate is 40px tall, so the day card comes back to 180px (see the
   last section).
   1.0.11: every value a designer would want to tune is read from a custom
   property (--jkl-*), each with the 1.0.10 value as its fallback, so a page
   without ?editor=1 renders exactly as before; with ?editor=1 the panel in
   the last section writes those properties on #jklwf.

   1.0.12: the designer's own seventeen values from that panel become the
   defaults. Only the fallbacks below change, so a page without ?editor=1
   now renders the tuned card while the editor opens on the same numbers:
   a 1px needle, a 30px dial, an 8px direction pill hanging 6.5px, a
   #435A75 pill, a 0.68 plate at 8.5px radius, dimmer but longer wind
   streamlines (×0.55 bright, ×1.15 long, ×1.10 fast, ×0.75 as many),
   a 0.58 badge and a faint sun (×0.20 bright, ×0.55 long, ×1.30 fast).

   1.0.13 changes nothing a visitor sees. It rebuilds the ?editor=1 editor
   as a free drag & resize tool (see the last section) and gives the sun the
   three custom properties that tool needs to move and grow it.

   1.0.14 is the layout the designer built by hand in that tool, made the
   default for everyone: one transform per part, written in the stylesheet,
   plus the sun's own three properties. Nothing else about the card moves.

   1.0.20 is one round of fixes from the phone: the sun's light is longer and
   travels at half speed, a drizzle card gets the clear day's blue sky, every
   card's date block sits on one left axis (and its wind plate reads as one
   instrument), the sky layers are drawn past the card's edge so no seam is
   left near the right border, and the island diorama's place under the grid
   belongs to the Windy.app map (styled at the end of this file).

   1.0.21 draws nothing new for a visitor: it only lets the editor (?editor=1)
   take the slot card's own twelve parts, and gives its bar the small day
   chooser that opens a slot panel. Every new rule waits behind
   .jklwxm-editing, so the page a visitor gets is the 1.0.20 one.

   1.0.22 draws nothing either. It splits one of those slot parts — the wind
   block, which was the dial, the knots, the compass chip and the direction
   badge in one lump — into those four parts, so each can be placed on its
   own. The only rule it adds is the z-index below, which keeps the part the
   designer has just moved in reach of the pointer.

   1.0.23 is the second hand-made layout, and this time it reaches the slot
   card as well. The day card's wind plate moves up and out and grows from
   62% to 71% (dx −26.5 → −21.8, dy −25.3 → −23.6); every other day part
   keeps its 1.0.14 number. The slot card's own parts carry the designer's
   placement from the editor, one transform each (see the 1.0.23 section at
   the end of this file), and the slot's knots — the "15 kt" beside the dial
   — are hidden for good: the designer put them aside and does not want them
   on the card. */

/* --- Clear: a white sun, no cloud, droplets of light spreading ------ */

.jklwf-day[data-wx="clear"] {
	--cloud: 0;
	--glow: 1;
}

.jklwf-day[data-wx="clear"] .jklwf-bg-clouds {
	display: none;
}

/* the sun itself: a white disc and a white halo instead of an amber core */
.jklwf-day[data-wx="clear"] .jklwf-bg-glow {
	background:
		radial-gradient(circle at 83% 22%, #FFFFFF 0 5.6px, #FFFEFB 5.6px 7.8px, rgba(255, 254, 250, 0.95) 7.8px 10px, rgba(255, 252, 243, 0.42) 10px 17px, rgba(255, 250, 236, 0) 27px),
		radial-gradient(ellipse 58% 36% at 84% 19%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 46%, rgba(255, 255, 255, 0) 80%);
	animation: jklwf-sun-breathe 9s ease-in-out infinite;
}

@keyframes jklwf-sun-breathe {
	0%,
	100% {
		opacity: var(--glow);
		transform: translate(var(--jkl-sun-x, 0px), var(--jkl-sun-y, 0px)) scale(var(--jkl-sun-k, 1));
	}
	50% {
		opacity: calc(var(--glow) * 0.84);
		transform: translate(var(--jkl-sun-x, 0px), var(--jkl-sun-y, 0px)) scale(calc(var(--jkl-sun-k, 1) * 1.05));
	}
}

/* The other half of the same statement, for the partly and shower cards:
   calendar.css's own jklwf-bg-glow keyframes, re-stated here so the editor's
   sun offset and scale ride on them too. This file loads later, so these win.
   --jkl-sun-x / -y / -k are 0px / 0px / 1 unless the editor writes them, so
   an ordinary visit breathes exactly as 1.0.12 did. */
@keyframes jklwf-bg-glow {
	0%,
	100% {
		transform: translate(var(--jkl-sun-x, 0px), var(--jkl-sun-y, 0px)) scale(var(--jkl-sun-k, 1));
		opacity: var(--glow);
	}
	50% {
		transform: translate(var(--jkl-sun-x, 0px), var(--jkl-sun-y, 0px)) scale(calc(var(--jkl-sun-k, 1) * 1.07));
		opacity: calc(var(--glow) * 0.8);
	}
}

/* the light: no droplets any more. What leaves the sun is a set of thin
   strands, one along each ray, each bright white at its head and faded to
   nothing behind it, sliding outwards until the card's edge takes it. They
   are laid on the same point as the sun (83% 22%) and each one is turned to
   its own angle, so a strand always runs along its own ray. wx-motion.js
   writes one <i> per strand and gives it its own --ra / --r0 / --rl / --rw /
   --rt / --rdur / --rdel / --ro, so no two strands run together.

   --ra  the angle of its ray, from straight up
   --r0  how far from the sun its tail already sits
   --rl  its length (the tail is the faded end, the head the white one)
   --rw  its thickness
   --rt  how far it travels before the loop begins again
   --ro  how bright it is allowed to get

   A strand is placed by its bottom edge (transform-origin 50% 100%), which
   is the sun's point, and then pushed out along its own ray by --r0. The
   animation slides it further out and the opacity lets it dissolve at both
   ends of its run, so nothing pops in or stops short. */

.jklwf-sun-rays {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	pointer-events: none;
	/* the strands are laid from the sun's point, so the editor's sun offset and
	   scale move and grow them with the glow (identity unless editing) */
	transform-origin: 83% 22%;
	transform: translate(var(--jkl-sun-x, 0px), var(--jkl-sun-y, 0px)) scale(var(--jkl-sun-k, 1));
}

/* --- 1.0.18: the light of a clear card runs to the rounded edge -----
   The strand layer used to be clipped by its own box, which sat a few pixels
   inside the card, so the rays stopped on a straight line short of the right
   edge while the sky carried on past it. Letting the card's own rounded clip
   do the work removes that line, and a clear day's halo now fades out just
   before the edge instead of ending on it. (No blur filter is involved: the
   gradients and the mask are enough.) */

.jklwf-day-bg > span {
	border-radius: inherit;
}

.jklwf-day .jklwf-sun-rays {
	inset: -3px;
	overflow: visible;
}

.jklwf-day[data-wx="clear"] .jklwf-bg-glow {
	-webkit-mask-image: radial-gradient(128% 128% at 83% 22%, #000 66%, rgba(0, 0, 0, 0.62) 82%, rgba(0, 0, 0, 0) 100%);
	mask-image: radial-gradient(128% 128% at 83% 22%, #000 66%, rgba(0, 0, 0, 0.62) 82%, rgba(0, 0, 0, 0) 100%);
}

.jklwf-sun-ray {
	position: absolute;
	left: 83%;
	top: 22%;
	width: var(--rw, 1.4px);
	/* the strand's own length, scaled by the editor's length multiplier.
	   1.0.20: the full length (0.55 → 1.0), so the light runs from the sun
	   to the edge of the card instead of stopping halfway. */
	height: calc(var(--rl, 46px) * var(--jkl-sun-len, 1));
	margin: calc(-1 * var(--rl, 46px) * var(--jkl-sun-len, 1)) 0 0 calc(var(--rw, 1.4px) / -2);
	border-radius: 999px;
	/* Almost nothing until the last third, then a bright head: the same
	   bright-front, gone-behind shape the dial's streamlines carry, so a
	   strand reads as a streak of light and not as a scratch on the card. */
	background: linear-gradient(
		to top,
		rgba(255, 245, 224, 0) 0%,
		rgba(255, 247, 230, 0.06) 30%,
		rgba(255, 249, 236, 0.19) 55%,
		rgba(255, 251, 242, 0.5) 75%,
		rgba(255, 253, 248, 0.86) 89%,
		#FFFFFF 100%
	);
	/* the glow follows the visible part of the gradient, so only the head
	   carries a halo */
	filter: drop-shadow(0 0 1.4px rgba(255, 252, 240, 0.5));
	opacity: 0;
	transform-origin: 50% 100%;
	transform: rotate(var(--ra, 200deg)) translateY(calc(-1 * var(--r0, 14px)));
	/* --jkl-sun-inv-speed is 1 / the speed multiplier, so the property only
	   ever has to be multiplied. 1.0.20: the multiplier is 0.65 instead of
	   1.3 — the same light, half the speed — and its inverse is 1.538. */
	animation: jklwf-sun-stream calc(var(--rdur, 4.4s) * var(--jkl-sun-inv-speed, 1.538)) linear infinite;
	animation-delay: var(--rdel, 0s);
}

@keyframes jklwf-sun-stream {
	0% {
		opacity: 0;
		transform: rotate(var(--ra)) translateY(calc(-1 * var(--r0)));
	}
	14% {
		opacity: calc(var(--ro, 0.8) * var(--jkl-sun-bright, 0.2));
	}
	58% {
		opacity: calc(var(--ro, 0.8) * 0.92 * var(--jkl-sun-bright, 0.2));
	}
	86% {
		opacity: 0;
	}
	100% {
		opacity: 0;
		transform: rotate(var(--ra)) translateY(calc(-1 * (var(--r0) + var(--rt, 20px))));
	}
}

/* a cached 1.0.7 script may still be in a browser; its droplets stay gone */
.jklwf-sun-drops {
	display: none !important;
}

/* --- 1.0.20: Drizzle, a fair day with fine rain on it ---------------
   A drizzle card used to be painted in slate (#485469 → #8A95A6) with the
   dark low deck over it, so a millimetre of rain read like a storm. The
   brief was to keep the light rain and give the card the clear day's blue.
   So the sky now runs from Clear's own blue (#2F86C6 → #97CDEA, a touch
   lighter than clear at the top), the deck is the white puff set at half
   strength instead of the grey one, and the dashes keep the lighter 0.45
   opacity. White text keeps its shadow and the card's own scrim, which is
   the same pair that carries white type on a clear day. */

.jklwf-day[data-wx="drizzle"] {
	--sky-1: #2F86C6;
	--sky-2: #5FA9DB;
	--sky-3: #97CDEA;
	--cloud: 0.5;
	--rain: 0.45;
}

.jklwf-day[data-wx="drizzle"] .jklwf-bg-clouds {
	filter: none;
	background:
		radial-gradient(30% 16% at 18% 12%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 74%),
		radial-gradient(34% 18% at 52% 6%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0) 76%),
		radial-gradient(26% 14% at 86% 16%, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.14) 52%, rgba(255, 255, 255, 0) 78%);
}

/* --- Partly: the same sun and cloud, the cloud on a slower walk ---- */

.jklwf-day[data-wx="partly"] .jklwf-bg-clouds {
	animation: jklwf-cloud-slow 56s ease-in-out infinite alternate;
}

@keyframes jklwf-cloud-slow {
	from {
		transform: translate3d(-9%, 2%, 0) scale(1.06);
	}
	to {
		transform: translate3d(9%, -2%, 0) scale(1.03);
	}
}

/* --- Fog: soft banks of cloud, drifting in two layers -------------
   1.0.18: the horizontal mist bands are gone. The card is filled with big
   round banks of cloud — each a radial-gradient that reaches 0% alpha well
   before its edge — over a pale haze, with one grey pocket between them so
   the banks have depth. Nothing here uses a blur filter: the gradients are
   already soft, and only opacity and transform animate. */

.jklwf-day[data-wx="fog"] {
	--cloud: 1;
	/* a paler sky, so the mist blends into it instead of sitting on a dark
	   card and leaving dark corners */
	--sky-1: #7C8899;
	--sky-2: #9EAAB9;
	--sky-3: #C6CFDA;
}

.jklwf-day[data-wx="fog"] .jklwf-bg-clouds {
	filter: none;
	opacity: 1;
	background:
		radial-gradient(30% 22% at 30% 30%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0) 74%),
		radial-gradient(26% 20% at 58% 20%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 44%, rgba(255, 255, 255, 0) 76%),
		radial-gradient(34% 26% at 26% 62%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.34) 32%, rgba(255, 255, 255, 0.10) 58%, rgba(255, 255, 255, 0) 78%),
		radial-gradient(38% 28% at 74% 58%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.28) 34%, rgba(255, 255, 255, 0.07) 60%, rgba(255, 255, 255, 0) 80%),
		radial-gradient(30% 22% at 52% 88%, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.32) 34%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0) 82%),
		radial-gradient(28% 20% at 92% 86%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0) 80%),
		radial-gradient(24% 18% at 6% 88%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 44%, rgba(255, 255, 255, 0) 82%),
		/* one grey pocket, so the banks read as cloud and not as a wash */
		radial-gradient(34% 24% at 60% 42%, rgba(120, 136, 156, 0.22) 0%, rgba(120, 136, 156, 0.08) 48%, rgba(120, 136, 156, 0) 78%),
		radial-gradient(130% 110% at 50% 50%, rgba(242, 247, 253, 0.26) 0%, rgba(242, 247, 253, 0.12) 54%, rgba(242, 247, 253, 0.03) 80%, rgba(242, 247, 253, 0) 100%);
	animation: jklwf-fog-drift 19s ease-in-out infinite alternate;
}

.jklwf-day[data-wx="fog"] .jklwf-bg-clouds::after {
	content: "";
	position: absolute;
	inset: -30%;
	filter: none;
	background:
		radial-gradient(24% 18% at 44% 36%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.10) 46%, rgba(255, 255, 255, 0) 76%),
		radial-gradient(22% 16% at 70% 78%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.11) 46%, rgba(255, 255, 255, 0) 78%),
		radial-gradient(20% 15% at 16% 48%, rgba(250, 253, 255, 0.26) 0%, rgba(250, 253, 255, 0.09) 48%, rgba(250, 253, 255, 0) 80%);
	animation: jklwf-fog-drift-back 27s ease-in-out infinite alternate;
}

@keyframes jklwf-fog-drift {
	from {
		transform: translate3d(-15%, 5%, 0);
	}
	to {
		transform: translate3d(15%, -5%, 0);
	}
}

@keyframes jklwf-fog-drift-back {
	from {
		transform: translate3d(13%, -4%, 0);
	}
	to {
		transform: translate3d(-13%, 4%, 0);
	}
}

/* --- Rain: the streaks lean harder and fall faster as the wind rises
   The calendar draws each card's dashes with a slope already, and the card
   carries that slope as --slant. wx-motion.js re-draws the dashes from the
   card's own knots, so --slant here is the card's real lean (6.5deg in a
   calm and up to 52deg in a gale) and the strokes grow with it. */

.jklwf-bg-rain {
	opacity: calc(var(--rain) * 1.05);
}

.jklwf-rain-svg path {
	stroke-width: calc(0.52px + var(--slant) * 0.026px);
	stroke-linecap: round;
}

/* the small glyph in a time-slot card leans with that slot's own wind */
.jklwf-wx-visual--slot .jklwf-drops {
	transform-box: fill-box;
	transform-origin: 50% 6%;
	transform: rotate(var(--slot-lean, 0deg));
}

/* --- The wind dial: a gold arrow, and streamlines that run with it ---
   The dial is a dark little instrument so the same two colours read on
   every sky: the arrow is gold, the streamlines a warm white (a light teal
   in the time slots). They lie in the same rotated group as the arrow, so
   they always run the way the arrow points. */

/* The face of the dial is set in the 1.0.9 section at the end of this file:
   it was a see-through navy here until 1.0.8, and is opaque from 1.0.9. */

.jklwf-day .jklwf-needle {
	stroke: var(--jkl-arrow, #FFD166);
	animation: jklwf-needle-glow 2.6s ease-in-out infinite;
}

.jklwf-day .jklwf-needle-head {
	fill: var(--jkl-arrow, #FFD166);
	stroke: var(--jkl-arrow, #FFD166);
	filter: drop-shadow(0 0 1px rgba(8, 18, 34, 0.5));
}

/* 1.0.8 takes the dot out of the arrow's middle: the calendar draws a hub at
   the centre and older builds of this plugin drew one too, but an arrow with
   a dot on it reads as a pin. The shaft and head are left exactly as they are
   and the hub is simply not drawn; this rule also hides one an older cached
   script might still add. */
.jklwf-hub {
	display: none !important;
}

/* The shaft a quarter thinner than the calendar draws it (2.5 → 1.875), so
   the arrow reads as a slim needle. The head keeps the same 75% so it does
   not sit heavy on a thinner shaft, and wx-motion.js draws the hub at r 1.6
   so the centre stays a dot on the shaft rather than a knot. */
.jklwf-wind .jklwf-needle {
	stroke-width: var(--jkl-needle-w, 1);
}

/* the head keeps the 0.64 : 1 ratio the shaft has always carried; the editor
   writes the head's own width so no browser has to work out a calc() in an
   SVG geometry property */
.jklwf-wind .jklwf-needle-head {
	stroke-width: var(--jkl-needle-head-w, 0.64);
}

@keyframes jklwf-needle-glow {
	0%,
	100% {
		opacity: 0.86;
	}
	50% {
		opacity: 1;
	}
}

/* The streamlines. Each one is a single short stroke whose head is bright
   and whose tail is already gone, so it reads as a ribbon of air instead of
   a dash. wx-motion.js builds them: how many (2 in a calm, up to 7 in a
   gale), how long, how thick, where, how bright, and how fast each one runs.
   They travel along the arrow and dissolve at both ends of their run, so no
   line ever pops in or stops short inside the dial.

   --flow-dur is the card's base pass time (slow in 1 kt, quick in 20 kt) and
   --sf is that one line's share of it, so the whole dial still answers the
   wind even though no two lines move together.

   1.0.26 hangs this off the dial rather than off .jklwf-wind: a slot card's
   dial is carried into the band's middle cell, where .jklwf-wind is no
   longer above it, and the rule only matched a day card's lines — the 42
   slot dials were still and unlit. The dial is the one wrapper every line
   keeps, so the rule follows it. */

.jklwf-wind .jklwf-flow,
.jklwf-wind-dial .jklwf-flow {
	fill: none;
	stroke-linecap: round;
	stroke-dasharray: none;
	opacity: 0;
	animation: jklwxm-stream calc(var(--flow-dur, 2s) * var(--sf, 1) * var(--jkl-stream-inv-speed, 0.909)) linear infinite;
	animation-delay: var(--sdl, 0s);
}

@keyframes jklwxm-stream {
	0% {
		transform: translateY(var(--st, 20px));
		opacity: 0;
	}
	16% {
		opacity: calc(var(--sp, 0.8) * var(--jkl-stream-bright, 0.55));
	}
	74% {
		opacity: calc(var(--sp, 0.8) * var(--jkl-stream-bright, 0.55));
	}

	/* (a line is in the dial for the middle of its run, not all of it) */
	84% {
		opacity: calc(var(--sp, 0.8) * var(--jkl-stream-bright, 0.55));
	}
	100% {
		transform: translateY(calc(var(--st, 20px) * -1));
		opacity: 0;
	}
}

/* --- The weather in words, as a solid little chip ------------------
   The calendar sets this badge as white 9px caps on rgba(9, 21, 38, 0.2),
   which over a bright clear sky is barely a box at all. 1.0.8 deepens the
   fill to 0.48 and adds a hairline inside the edge, so the chip reads as one
   piece with the dark dials and CLEAR stays crisp against the sun behind it.
   The same fill is used for every weather, so the row of cards stays even. */

.jklwf .jklwf-wx-tag {
	background: rgba(9, 21, 38, var(--jkl-badge-op, 0.58));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.55);
}

/* --- The name of the score, in the cards --------------------------- */

.jklwf .jklwf-score-kicker {
	font-size: 8px;
	letter-spacing: 0.01em;
	word-spacing: normal;
	text-transform: none;
}

/* --- A past day keeps its own colours -----------------------------
   The calendar greys a finished day out (opacity .72 on the card, a grayscale
   filter on its background). The statement under the stars already says so,
   and the grey makes the weather colour of an earlier day read wrong, so it
   comes back as it was. */

.jklwf-day.is-past .jklwf-day-bg {
	filter: none !important;
}

.jklwf-day.is-past {
	opacity: 1 !important;
}

/* --- 1.0.9: the wind reading as one instrument ---------------------
   A day card used to read [dial] [20 kt] [NW] — three things in a row, and
   the dial itself was a 0.28 alpha navy, so the card's own sky (and on a
   clear day the sun's light) showed through the circle and the gold arrow
   had to be read against them. Three changes:

   1. The dial face is an opaque deep navy with a clean rim. Nothing behind
      the card comes through it, so the gold arrow and the white
      streamlines read the same on every sky — bright sun, fog, drizzle.
   2. The direction letter (SW, NW, W, S …) moves under the circle as a
      small bold capsule, where it belongs to the dial instead of reading
      as a third value in the row.
   3. The three are one plate: a frosted dark panel holds the dial with its
      direction capsule beneath it in the left column and the knots
      centred against that whole left block in the right, with a hairline
      between the two. The card's markup is untouched — the same three
      spans are laid out as a two-column grid.

   The time-slot rows inside the detail panel keep their horizontal
   layout: they sit on a white panel where nothing shows through the dial,
   and a three-part row suits that narrower line. This whole section is
   scoped to the day card, so no slot rule is touched. */

/* the instrument face: opaque, with a rim that reads on any sky */
.jklwf-day .jklwf-dial-bg {
	fill: var(--jkl-dial-bg, #16273F);
	stroke: rgba(255, 255, 255, 0.42);
	stroke-width: 1.1;
}

/* a hair of depth inside the glass, so the face sits behind its rim */
.jklwf-day .jklwf-wind-dial {
	position: relative;
	border-radius: 50%;
}

.jklwf-day .jklwf-wind-dial::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 7px rgba(3, 9, 18, 0.55);
}

/* --- 1.0.10: the same instrument, compact --------------------------
   The 1.0.9 plate put the dial and its direction capsule in two rows, so
   the wind module stood 74px tall and every day card grew with it (178 →
   214). The three pieces and the markup are unchanged; 1.0.10 just lets
   them share the space they actually need:

   1. The direction capsule moves onto the dial itself — the same grid cell,
      anchored to the dial's bottom edge and pulled 10px below it — so the
      letter sits on the rim of the circle instead of under it. It is an
      opaque slate pill (#4C6785 → #3B5168) with a light hairline, so no
      arrow or streamline shows through it, and its letter is 11px/800, big
      enough to read plainly under a 36px dial.
   2. The plate is 40px tall (36px dial, 1px padding, 1px border) and the
      knots sit beside it across a thin hairline, so the day card comes back
      to 180px at the desktop 7-column width — the size it had before 1.0.9.
   3. The capsule hangs 10px below the plate into the card's own bottom
      padding, clear of the `v` chevron.

   1.0.12 keeps all three with the designer's own numbers: a 30px dial on a
   34px plate, an 8px letter pulled 6.5px below the rim, on a #435A75 pill
   whose foot is that colour 9% darker (#3D526A) — the exact pair the editor
   wrote when #435A75 was picked. */

.jklwf-day .jklwf-wind--card {
	position: relative;
	display: grid;
	grid-template-columns: calc(var(--jkl-dial, 30) * 1px) minmax(0, 1fr);
	grid-template-areas: "dial val";
	align-items: center;
	justify-items: center;
	column-gap: 9px;
	row-gap: 0;
	width: 100%;
	/* 1.0.10's plate was 36px dial + 4px; from 1.0.12 it is 30 + 4 = 34px, and
	   it still grows with the dial */
	height: calc(var(--jkl-dial, 30) * 1px + 4px);
	box-sizing: border-box;
	padding: 1px 9px 1px 3px;
	border-radius: calc(var(--jkl-mod-radius, 8.5) * 1px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: linear-gradient(180deg, rgba(12, 26, 46, var(--jkl-mod-op, 0.68)) 0%, rgba(6, 14, 28, var(--jkl-mod-op2, 0.654)) 100%);
	box-shadow: 0 1px 3px rgba(6, 15, 29, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.09);
	/* 1.0.17 drops the 3px blur that used to sit here. The fill above is
	   already 0.68 → 0.654 opaque, so nothing visible changes, but the plate
	   is no longer a backdrop layer: opening a day's panel used to make iOS
	   Safari re-composite all fourteen plates (with their dials and
	   streamlines) before it could show the panel. */
}

/* the hairline between the dial well and the value well */
.jklwf-day .jklwf-wind--card::after {
	content: "";
	position: absolute;
	left: calc(var(--jkl-dial, 30) * 1px + 9px);
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.16) 20%, rgba(255, 255, 255, 0.16) 80%, rgba(255, 255, 255, 0.03));
}

.jklwf-day .jklwf-wind--card > .jklwf-wind-dial {
	grid-area: dial;
	width: calc(var(--jkl-dial, 30) * 1px);
	height: calc(var(--jkl-dial, 30) * 1px);
}

.jklwf-day .jklwf-wind--card > .jklwf-wind-val {
	grid-area: val;
	align-self: center;
	justify-self: center;
	gap: 2px;
}

/* 1.0.20: one instrument, whatever the number or the wind
   The reading used to be centred as a whole, so "1 kt" sat a few pixels
   right of "20 kt" and the dial's letter pill changed width between S and
   NW. The number now owns a fixed two-digit field (right-aligned, tabular
   digits) so the group is the same width on every card and "kt" lands in
   the same place, and the letter pill is exactly as wide as the dial it
   hangs on, so S and NW share their left and right edges too. */
.jklwf-day .jklwf-wind--card > .jklwf-wind-val b {
	font-variant-numeric: tabular-nums;
	min-width: 2ch;
	text-align: right;
}

.jklwf-day .jklwf-wind--card > .jklwf-wind-val b {
	font-size: 24px;
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 2px rgba(6, 14, 28, 0.55);
}

.jklwf-day .jklwf-wind--card > .jklwf-unit {
	font-size: 10.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

/* the direction letter, on the rim of the dial */
.jklwf-day .jklwf-wind--card > .jklwf-compass {
	grid-area: dial;
	align-self: end;
	justify-self: center;
	position: relative;
	z-index: 2;
	margin: 0 0 calc(var(--jkl-chip-over, 6.5) * -1px);
	font-size: calc(var(--jkl-chip-fs, 8) * 1px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.05em;
	font-variant-numeric: tabular-nums;
	/* 1.0.20: the pill spans the dial, so S and NW sit on the same edges */
	width: calc(var(--jkl-dial, 30) * 1px);
	box-sizing: border-box;
	text-align: center;
	color: #F5FAFF;
	background: linear-gradient(180deg, var(--jkl-chip-hi, #435A75) 0%, var(--jkl-chip-lo, #3D526A) 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	padding: 1.5px 0 2px;
	text-shadow: 0 1px 1px rgba(6, 14, 28, 0.6);
	box-shadow: 0 1px 3px rgba(4, 10, 20, 0.45);
}

/* --- Anyone who asked for less motion gets the still version ------- */

@media (prefers-reduced-motion: reduce) {
	.jklwf-day[data-wx="clear"] .jklwf-bg-glow,
	.jklwf-day[data-wx="partly"] .jklwf-bg-clouds,
	.jklwf-day[data-wx="fog"] .jklwf-bg-clouds,
	.jklwf-day[data-wx="fog"] .jklwf-bg-clouds::after {
		animation: none !important;
	}

	.jklwf-sun-ray,
	.jklwf-wind .jklwf-flow,
	.jklwf-wind-dial .jklwf-flow,
	.jklwf-day .jklwf-needle {
		animation: none !important;
	}

	/* the still card keeps the light, just held in place */
	.jklwf-sun-ray {
		opacity: calc(var(--ro, 0.8) * 0.6 * var(--jkl-sun-bright, 0.2));
	}

	/* the dial keeps its streamlines, just still */
	.jklwf-wind .jklwf-flow,
	.jklwf-wind-dial .jklwf-flow {
		opacity: calc(var(--sp, 0.6) * var(--jkl-stream-bright, 0.55)) !important;
	}
}

/* --- 1.0.13: a free drag & resize editor, only with ?editor=1 -------
   The seventeen-slider panel is gone; what is left is one small bar and the
   parts of the cards themselves. Nothing here draws anything unless
   wx-motion.js has put the .jklwxm-editing class on <body>, which it only
   does when the URL carries ?editor=1, so on any other visit every rule
   below matches nothing and the page is the 1.0.12 one.

   The parts are moved with a transform written by the script. Two of them
   need help from the stylesheet:

   the sun    its paint is the glow's background and its transform belongs to
              the breathing animation, so the editor writes --jkl-sun-x / -y /
              -k (0px / 0px / 1 when untouched) and the keyframes, re-stated
              in the Clear section above, carry them.
   the v      the card's chevron is a ::after and cannot be dragged, so it is
              hidden here and a real span of the same shape takes its place. */

.jklwxm-editing .jklwf-grid {
	-webkit-user-select: none;
	user-select: none;
}

/* 1.0.21: the slot panels sit beside the grid, not in it, and their own parts
   are dragged the same way, so they take no text selection either. A part
   inside a closed panel is simply marked and waits. */
.jklwxm-editing .jklwf-detail {
	-webkit-user-select: none;
	user-select: none;
}

.jklwxm-editing .jklwf-detail .jklwf-select {
	cursor: grab;
}

.jklwxm-editing .jklwf-day {
	cursor: default;
}

/* the calendar's own "there is more inside" cue, replaced by .jklwxm-chev */
.jklwxm-editing .jklwf-day::after {
	display: none;
}

.jklwxm-editing [data-jkl-el] {
	cursor: grab;
}

/* Only the part that is already picked takes a touch for itself, so a finger
   on a phone can still scroll the page over the grid, and a scroll never
   drags a part by accident. On a mouse, which has no such choice to make,
   the first grab already moves the part. */
.jklwxm-editing .jklwxm-on {
	touch-action: none;
}

.jklwxm-editing .jklwxm-on:active {
	cursor: grabbing;
}

/* 1.0.22: the dial, the knots, the compass chip and the direction badge are
   four siblings in one inline-grid, and the badge spans the whole second row
   under the other three. Once one of them has been dragged across another,
   the one painted last (the badge) would sit over the one on top — so the
   part that is picked is lifted, and it stays grabbable where it was put.
   z-index reaches a grid item without positioning it. */
.jklwxm-editing .jklwf-wind--slot [data-jkl-el].jklwxm-on {
	z-index: 3;
}

/* the sun: the offset and the scale are anchored on the sun's own point, so
   growing it does not drag the disc across the card. Outside the editor the
   animation keeps its own centre and nothing here applies. */
.jklwxm-editing .jklwf-bg-glow {
	transform-origin: 83% 22%;
	transform: translate(var(--jkl-sun-x, 0px), var(--jkl-sun-y, 0px)) scale(var(--jkl-sun-k, 1));
}

.jklwxm-chev {
	position: absolute;
	left: 50%;
	bottom: 8px;
	z-index: 2;
	display: block;
	width: 6px;
	height: 6px;
	margin-left: -4px;
}

.jklwxm-chev::before {
	content: "";
	position: absolute;
	inset: 0;
	border-right: 1.7px solid rgba(255, 255, 255, 0.72);
	border-bottom: 1.7px solid rgba(255, 255, 255, 0.72);
	transform: rotate(45deg);
}

/* the sun's point as a handle: the glow takes no pointer events, so this
   ring is the thing that gets picked up and dragged */
.jklwxm-sun {
	position: absolute;
	left: calc(83% + var(--jkl-sun-x, 0px));
	top: calc(22% + var(--jkl-sun-y, 0px));
	z-index: 2;
	display: block;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	border: 1px dashed rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 0 1px rgba(10, 46, 92, 0.42), 0 0 10px rgba(255, 255, 255, 0.38);
	cursor: grab;
	touch-action: none;
}

/* --- the selection: a dashed box and its corner handle --------------- */

.jklwxm-sel {
	position: fixed;
	z-index: 2147482000;
	display: none;
	border: 1px dashed #4DA3FF;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(6, 24, 46, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
	pointer-events: none;
}

.jklwxm-sel__tag {
	position: absolute;
	left: -1px;
	bottom: calc(100% + 3px);
	padding: 1px 5px;
	border-radius: 4px;
	color: #fff;
	background: #2C7BE5;
	box-shadow: 0 1px 4px rgba(3, 12, 24, 0.4);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.jklwxm-sel__h {
	position: absolute;
	right: -10px;
	bottom: -10px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #4DA3FF;
	border: 2px solid #fff;
	box-shadow: 0 1px 5px rgba(3, 12, 24, 0.45);
	pointer-events: auto;
	cursor: nwse-resize;
	touch-action: none;
}

.jklwxm-sel__h::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-right: 1.6px solid #fff;
	border-bottom: 1.6px solid #fff;
}

/* --- the bar --------------------------------------------------------- */

.jklwxm-bar {
	position: fixed;
	z-index: 2147483000;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	max-width: calc(100vw - 16px);
	padding: 6px 8px;
	border-radius: 12px;
	color: #EAF2FB;
	background: rgba(9, 17, 30, 0.94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(140, 190, 255, 0.26);
	box-shadow: 0 10px 30px rgba(3, 9, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-align: left;
	animation: jklwxm-bar-in 0.2s ease-out both;
}

.jklwxm-bar *,
.jklwxm-bar *::before,
.jklwxm-bar *::after {
	box-sizing: border-box;
}

@keyframes jklwxm-bar-in {
	from {
		opacity: 0;
		transform: translate(-50%, -6px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.jklwxm-bar__name {
	flex: 0 0 auto;
	max-width: 92px;
	overflow: hidden;
	font-size: 11.5px;
	font-weight: 700;
	color: #7FA6CC;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jklwxm-bar.is-on .jklwxm-bar__name {
	color: #FFFFFF;
}

.jklwxm-bar__sep {
	flex: 0 0 auto;
	width: 1px;
	height: 17px;
	background: rgba(140, 190, 255, 0.2);
}

.jklwxm-bar__xy {
	display: flex;
	flex: 0 0 auto;
	align-items: baseline;
	gap: 4px;
	font-variant-numeric: tabular-nums;
}

.jklwxm-bar__xy i {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	color: #7FA6CC;
}

.jklwxm-bar__xy b {
	min-width: 32px;
	font-size: 11.5px;
	font-weight: 700;
	color: #FFD166;
	text-align: right;
}

.jklwxm-bar__pct {
	flex: 0 0 auto;
	min-width: 38px;
	font-size: 11.5px;
	font-weight: 700;
	color: #FFD166;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.jklwxm-bar__range {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	display: block;
	width: 92px;
	height: 16px;
	margin: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.jklwxm-bar__range:disabled {
	cursor: default;
	opacity: 0.4;
}

.jklwxm-bar__range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(255, 209, 102, 0.6), rgba(120, 170, 220, 0.35));
}

.jklwxm-bar__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 13px;
	height: 13px;
	margin-top: -4.5px;
	border-radius: 50%;
	background: #FFD166;
	border: 1px solid rgba(8, 18, 34, 0.6);
	box-shadow: 0 1px 3px rgba(3, 9, 18, 0.5);
}

.jklwxm-bar__range::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(120, 170, 220, 0.4);
}

.jklwxm-bar__range::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #FFD166;
	border: 1px solid rgba(8, 18, 34, 0.6);
}

.jklwxm-bar button {
	flex: 0 0 auto;
	margin: 0;
	padding: 5px 8px;
	border-radius: 7px;
	border: 1px solid rgba(150, 195, 245, 0.28);
	background: rgba(90, 140, 200, 0.22);
	color: #DCEAF9;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.12s ease;
}

.jklwxm-bar button:hover {
	background: rgba(110, 165, 230, 0.36);
}

.jklwxm-bar button[data-act="copy"] {
	border-color: rgba(255, 209, 102, 0.42);
	background: rgba(255, 209, 102, 0.16);
	color: #FFE7AC;
}

.jklwxm-bar button[data-act="copy"]:hover {
	background: rgba(255, 209, 102, 0.3);
}

/* --- the slot card chooser (1.0.21) ---------------------------------
   ◀ · [슬롯 28 Nov] · ▶. The arrows open the day before or after, the middle
   button opens or closes the day it names; while a panel is open the middle
   button turns teal so it is clear which day is on screen. */

.jklwxm-bar__slotm {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	gap: 3px;
}

.jklwxm-bar__slotm button {
	padding: 5px 6px;
}

.jklwxm-bar__sbtn {
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: 106px;
}

.jklwxm-bar__sbtn i {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	color: #7FA6CC;
}

.jklwxm-bar__sbtn b {
	overflow: hidden;
	font-size: 11px;
	font-weight: 700;
	color: #DCEAF9;
	font-variant-numeric: tabular-nums;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jklwxm-bar__sbtn.is-open {
	border-color: rgba(90, 226, 220, 0.5);
	background: rgba(30, 190, 185, 0.24);
}

.jklwxm-bar__sbtn.is-open i {
	color: #7FE4DE;
}

.jklwxm-bar__hint {
	flex: 1 0 100%;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;
	color: #7E9CBA;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* the copy, when the clipboard is refused */
.jklwxm-raw {
	position: fixed;
	z-index: 2147483001;
	top: 78px;
	left: 50%;
	transform: translateX(-50%);
	display: none;
	width: calc(100vw - 16px);
	max-width: 560px;
	height: 150px;
	padding: 8px;
	border-radius: 10px;
	border: 1px solid rgba(150, 195, 245, 0.32);
	background: #0C1728;
	color: #EAF2FB;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1.45;
	resize: vertical;
}

/* the copy confirmation, outside the bar so nothing can cover it */
.jklwxm-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 2147483001;
	max-width: calc(100vw - 32px);
	padding: 9px 16px;
	border-radius: 999px;
	color: #EAF2FB;
	background: #101C2E;
	border: 1px solid rgba(150, 195, 245, 0.32);
	box-shadow: 0 12px 34px rgba(3, 9, 18, 0.55);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.jklwxm-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* phones: the same bar, one notch tighter, so it covers as little of the
   card as it can while still being easy to hit */
@media (max-width: 760px) {
	.jklwxm-bar {
		top: 6px;
		gap: 5px;
		padding: 5px 7px;
		border-radius: 11px;
		font-size: 11px;
	}

	.jklwxm-bar__name {
		max-width: 66px;
		font-size: 11px;
	}

	.jklwxm-bar__sep {
		height: 15px;
	}

	.jklwxm-bar__range {
		width: 62px;
	}

	.jklwxm-bar button {
		padding: 5px 7px;
		font-size: 10.5px;
	}

	.jklwxm-bar__slotm button {
		padding: 5px 5px;
	}

	.jklwxm-bar__sbtn {
		max-width: 82px;
	}

	.jklwxm-bar__hint {
		font-size: 9.5px;
	}

	.jklwxm-raw {
		top: 74px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jklwxm-bar {
		animation: none;
	}

	.jklwxm-toast {
		transition: none;
	}
}

/* --- 1.0.14: the layout the designer set by hand --------------------
   The designer opened ?editor=1 and moved and sized the card's own parts
   until the card read the way they wanted, then copied the numbers out.
   This section is those numbers, baked in, so every visitor sees the same
   card and the editor opens on it instead of on the 1.0.13 drawing.

   Each part is moved by one transform — translate(dx, dy) then scale(k) —
   written here and nowhere else. The editor's HOME table in wx-motion.js
   carries the same thirteen numbers; while nothing is dragged it writes no
   transform at all (a part whose value is still 0 / 0 / 1 is simply left to
   this rule), and once a part is dragged again its inline transform replaces
   this declaration rather than stacking on top of it. That is what keeps the
   design from being applied twice: there is one place a part's offset can
   come from at any moment, and the cascade picks it.

   0.1px steps, the same unit the editor counts in; transform-origin stays
   the element's own centre, exactly as the editor drew it. */

/* the sun: the glow and the light strands both read these three, so the
   designer's -4.4 / -0.1 (scale 1, untouched) reaches the clear day's glow
   and its rays together. They are the defaults for everyone, so an ordinary
   visit draws the sun where the editor had it. */
#jklwf {
	--jkl-sun-x: -4.4px;
	--jkl-sun-y: -0.1px;
	--jkl-sun-k: 1;
}

/* 요일 — the weekday line under the top edge
   1.0.20: the three parts of the date share one left axis. .jklwf-mon used
   to be scaled about its centre after a +41px shift, so its left edge moved
   with the width of the date box (37.5px on a five-letter "Today", 39px on
   a three-letter "Tue") and SAT/DEC never lined up under TODAY/NOV. Now the
   weekday, the number and the month are all scaled from their left edge and
   the month starts on the weekday's own 37.5px line, so the axis is the same
   on every card whatever the day's name or the number's digits. */
.jklwf-day .jklwf-dow {
	transform-origin: 0 50%;
	transform: translate(37.5px, 8.2px);
	font-variant-numeric: tabular-nums;
}

/* 날짜 숫자 */
.jklwf-day .jklwf-num {
	transform-origin: 0 50%;
	transform: translate(2.6px, -5.6px) scale(1.09);
	font-variant-numeric: tabular-nums;
}

/* 월 — the same 37.5px line as the weekday, and its tracking brought back to
   what the weekday shows once the 1.19 scale is counted (0.08 / 1.19). */
.jklwf-day .jklwf-mon {
	transform-origin: 0 50%;
	transform: translate(37.5px, -19.1px) scale(1.19);
	letter-spacing: 0.067em;
	font-variant-numeric: tabular-nums;
}

/* 라벨 문구 — Will it be good weather? */
.jklwf-day .jklwf-score-kicker {
	transform: translate(-0.1px, -16.1px);
}

/* 별점 */
.jklwf-day .jklwf-stars {
	transform: translate(-0.5px, -14.2px);
}

/* 등급 문구 */
.jklwf-day .jklwf-rating {
	transform: translate(1.9px, -14.9px);
}

/* 바람 모듈 — the whole plate, dial and knots with it, at 71% (1.0.23:
   it sat a little too far out and read a little too small — −21.8 / −23.6,
   0.71) */
.jklwf-day .jklwf-wind--card {
	transform: translate(-21.8px, -23.6px) scale(0.71);
}

/* 방향 칩 — the direction pill, on the plate's own (62%) grid */
.jklwf-day .jklwf-wind--card .jklwf-compass {
	transform: translate(40.2px, -14.4px) scale(1.25);
}

/* 풍속 */
.jklwf-day .jklwf-wind--card .jklwf-wind-val {
	transform: translate(17.1px, 1px);
}

/* 화살표 — the designer left the v 0.1px to the right (dx 0.1, dy 0, scale
   1), which is where the editor's own span puts it from its inline
   transform; the calendar's ::after needs the same 0.1px said out loud. */
.jklwf-day::after {
	transform: translate(0.1px, 0) rotate(45deg);
}

.jklwf-day:hover::after,
.jklwf-day.is-active::after {
	transform: translate(0.1px, 0) rotate(45deg) translate(1px, 1px);
}

/* --- 1.0.15: one line of copy rather than one word ------------------
   The line under the stars is a sentence now ("Low tide! Longer walk out
   🐚" is the longest of them, 134.4px in the card's own Poppins 600). It
   has to stay on one line: the next line would drop straight into the wind
   plate, which sits 4.1px below it in the designer's layout, so nowrap is
   what keeps the card the designer set.

   9.5px is the size at which every sentence ends inside the card's border
   (4.0px spare on the longest, measured in the 154px card), and the line
   height is put back to the 15.225px the old 10.5px word occupied, so the
   card stays 174.02px tall and the wind plate does not move a pixel. The
   tracking the calendar set (0.02em) comes off and the word gap tightens a
   hundredth of an em: across a sentence that is 5px of width the long
   ones needed, and at this size neither is visible. The text may reach into
   the card's 12px right padding, where nothing else sits; the card's own
   overflow clips only at the border, which none of the seven sentences
   reaches. */
.jklwf-day .jklwf-rating {
	font-size: 9.5px;
	letter-spacing: 0;
	word-spacing: -0.04em;
	line-height: 15.225px;
	white-space: nowrap;
}

/* A phone two columns wide leaves the card about 138px at a 320px screen,
   where even 9.5px would push the longest sentence's shell over the border.
   Below 341px the same sentences are set a size down; the line box stays
   15.225px, so the card keeps the height the designer gave it. */
@media (max-width: 340px) {
	.jklwf-day .jklwf-rating {
		font-size: 8.5px;
	}
}

/* --- 1.0.17: what a tap costs --------------------------------------
   Nothing here draws anything new. Three statements take work away from
   the tap that opens a day's three slots:

   touch-action  the card answers the finger itself. Without it a phone
                 browser holds the touch back for a possible double-tap
                 zoom, which is the delay a tap on a card used to carry
                 before its panel began to open.
   contain       a card's inside is a world of its own (an absolutely
                 placed sky, a dial drawn as SVG, dozens of animated
                 spans). `layout style` tells the browser that nothing
                 inside can change the page around it, so a card that
                 animates or is redrawn does not make the grid, the row or
                 the panel beside it lay out again. `overflow: hidden` stays
                 as the calendar set it, and the card is already isolated.
                 The panel gets the same: its three slot cards are drawn
                 inside their own box, and the grid never has to measure
                 them against the page. */
.jklwf-day {
	touch-action: manipulation;
	contain: layout style;
}

.jklwf-detail {
	contain: layout style;
}

/* --- 1.0.20: the sky reaches every edge -----------------------------
   From the phone: a vertical seam a few pixels inside the right edge of
   every card. Measured in the live DOM, it was the edge of a layer and not
   a border. .jklwf-bg-clouds drifts by ±7% of the card's width and the fog
   by ±15%, while the layer is exactly the size of the card, so at one end
   of the drift its far edge sat 8–11px inside the right border (23px for
   fog); the sun's halo, which carries the designer's −4.4px offset, ended
   5px inside it. The card's own rounded clip is meant to be the only edge
   anyone sees, so from now on every painted sky layer is drawn on a canvas
   larger than the card:

     · the drifting layers take a base scale inside their keyframes and
       drift a little less, so neither end of the drift exposes an edge
       (the scale is what the drift costs: 152px × 12% ≈ 9px of margin
       each side against 6.8px of travel);
     · the sun's layer is a band 12px wider than the card on the right and
       its gradients are re-anchored to that wider box (76.5% instead of
       83%, and its ellipses narrowed by the same 0.9213) so the sun, its
       rays and its halo are painted exactly where the designer put them,
       while the paint itself now runs past the card's right edge.

   No colour, size or position on the card changes; only what covers what. */

@keyframes jklwf-bg-clouds {
	from {
		transform: translate3d(-4.5%, 1.2%, 0) scale(1.12);
	}
	to {
		transform: translate3d(4.5%, -1.2%, 0) scale(1.11);
	}
}

@keyframes jklwf-fog-drift {
	from {
		transform: translate3d(-7%, 3%, 0) scale(1.16);
	}
	to {
		transform: translate3d(7%, -3%, 0) scale(1.15);
	}
}

/* the glow is a band wider than the card, and it grows from the sun */
.jklwf-day .jklwf-bg-glow {
	right: -12px;
	transform-origin: 76.5% 22%;
}

/* the same disc, the same veil, on the wider box */
.jklwf-day[data-wx="clear"] .jklwf-bg-glow {
	background:
		radial-gradient(circle at 76.5% 22%, #FFFFFF 0 5.6px, #FFFEFB 5.6px 7.8px, rgba(255, 254, 250, 0.95) 7.8px 10px, rgba(255, 252, 243, 0.42) 10px 17px, rgba(255, 250, 236, 0) 27px),
		radial-gradient(ellipse 53.4% 36% at 77.4% 19%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 46%, rgba(255, 255, 255, 0) 80%);
	-webkit-mask-image: radial-gradient(118% 128% at 76.5% 22%, #000 66%, rgba(0, 0, 0, 0.62) 82%, rgba(0, 0, 0, 0) 100%);
	        mask-image: radial-gradient(118% 128% at 76.5% 22%, #000 66%, rgba(0, 0, 0, 0.62) 82%, rgba(0, 0, 0, 0) 100%);
}

.jklwf-day[data-wx="partly"] .jklwf-bg-glow {
	background:
		radial-gradient(circle at 76.5% 24%, #FFFDF3 0 4.5px, #FFEFB4 4.5px 7px, rgba(255, 209, 116, 0.95) 7px 9px, rgba(255, 196, 92, 0.4) 9px 16px, rgba(255, 190, 84, 0) 24px),
		radial-gradient(ellipse 42.4% 26% at 77.4% 20%, rgba(255, 236, 178, 0.55) 0%, rgba(255, 210, 128, 0.24) 44%, rgba(255, 198, 110, 0) 80%);
}

.jklwf-day[data-wx="shower"] .jklwf-bg-glow {
	background:
		radial-gradient(circle at 77.4% 34%, #FFFDF3 0 3.6px, #FFEFB4 3.6px 6px, rgba(255, 209, 116, 0.9) 6px 8px, rgba(255, 196, 92, 0.32) 8px 14px, rgba(255, 190, 84, 0) 21px),
		radial-gradient(ellipse 40.5% 26% at 79.2% 29%, rgba(255, 244, 210, 0.45) 0%, rgba(255, 216, 146, 0.22) 44%, rgba(255, 200, 120, 0) 78%);
}

/* --- 1.0.20: the Windy.app map under the grid -----------------------
   The island diorama is gone from the plugin, and this is what sits in its
   place: Windy.app's own map embed for Sinyang Beach (spot 409680), full
   width of the calendar, in a frame that matches the cards. The embed draws
   itself inside the div (a canvas plus its own controls), so the frame owns
   the size and the radius, and the canvas is told to fill it. */

.jklwf-windy {
	position: relative;
	margin: 14px 0 4px;
	padding: 0;
	background: #0E1B28;
	border: 1px solid rgba(16, 30, 52, 0.16);
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(20, 38, 68, 0.14);
	overflow: hidden;
}

.jklwf-windy-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px 8px;
	background: linear-gradient(180deg, rgba(10, 24, 40, 0.92) 0%, rgba(10, 24, 40, 0.72) 100%);
	color: #fff;
}

.jklwf-windy-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jklwf-windy-note {
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.66);
	white-space: nowrap;
}

.jklwf-windy-map {
	position: relative;
	width: 100%;
	height: 420px;
	background: #16324A;
}

/* whatever the embed brings (a canvas, an iframe, its own wrapper) fills the
   frame instead of setting its own height */
.jklwf-windy-map > * {
	width: 100% !important;
	height: 100% !important;
	border-radius: 0 !important;
}

.jklwf-windy-map iframe {
	display: block;
	border: 0;
}

@media (max-width: 760px) {
	.jklwf-windy {
		border-radius: 14px;
	}

	.jklwf-windy-head {
		padding: 9px 12px 7px;
	}

	.jklwf-windy-map {
		height: 300px;
	}
}

@media (max-width: 420px) {
	.jklwf-windy-map {
		height: 250px;
	}
}

/* --- 1.0.23: the slot card, placed by hand ---------------------------
   The designer opened ?editor=1 again, this time on the slot card under a
   day, and moved its parts until the row read the way they wanted. These are
   those numbers, baked in, so the forty-two slot cards every visitor gets are
   the card the designer built, and the editor opens on it.

   Same rule as the day card in 1.0.14: one transform per part, written here
   and nowhere else, translate(dx, dy) then scale(k) in 0.1px steps, about the
   element's own centre. The editor's HOME table carries the same numbers; a
   part still at home gets no inline transform from the editor, and a part the
   designer moved gets an inline transform equal to the rule below, which
   replaces this declaration in the cascade rather than stacking on it. One
   offset, one place it comes from, whether or not ?editor=1 is on.

   The parts left untouched by the designer (time, stars, the chips, Select
   Slot) are at 0 / 0 / 1 and have no rule here.

   A word on what these numbers mean: like every part in the editor they are
   offsets from where the calendar's own grid puts the part, so they are baked
   on the part itself and never on its parent. The slot wind block is an
   inline-grid of dial, knots, compass chip and (on a second row) the
   direction badge; each of them is placed on its own below. */

/* 슬롯 점수 — the 79/100 line, a hair left and down */
.jklwf-slot .jklwf-slot-score {
	transform: translate(-3.1px, 2.3px);
}

/* The band's six parts (weather cell, rain label, dial, compass chip,
   direction badge, window range) are not placed here: 1.0.25 lays them out
   in three columns of a grid (see the last section of this file). The
   hand-placed numbers 1.0.23 and 1.0.24 carried for them are gone with it. */

/* 물때 평가 — the sentence over the chart, brought down under it */
.jklwf-slot .jklwf-tide-eval {
	transform: translate(4.6px, 118.2px);
}

/* 물때 그래프 — the tide curve, raised 29.3px */
.jklwf-slot .jklwf-tide-svg {
	transform: translate(1.2px, -29.3px);
}

/* 물때 수치 — phase, height, trend and label, raised 31.5px */
.jklwf-slot .jklwf-meter-foot {
	transform: translate(1.3px, -31.5px);
}

/* 슬롯 풍속 — the knots, taken off the card -------------------------
   The designer pulled "15 kt" out of the dial's row and asked for it gone.
   Hiding the span outright (display: none) would take its grid column with
   it, and the 32px that column holds is part of what stands between the dial
   and the compass chip above: measured on the live card, the dial would jump
   9.4px right and the chip 21.5px left, back onto the dial's rim, so the
   placement above would no longer be the one the designer made. The span
   therefore keeps its place in the grid and is simply never painted:
   geometry unchanged, and nothing of it reaches a visitor. */
.jklwf-slot .jklwf-wind--slot .jklwf-wind-val {
	visibility: hidden;
}

/* --- 1.0.24: the designer's third pass, and a card that keeps its shape --
   Three things in one section.

   1. The day card. The wind plate grew and moved in (62% → 93%, and back
      toward the middle: −3.8 / −15.9 / 0.93), the compass pill grew with it
      (153%) and the knots stepped 18px right. The pill's own drag value was
      41.2px, which measured 4.7px into the "6 kt" — the pill is 42.7px wide
      at 153% and the knots start at 86.3px — so it is set at 34.5px and the
      two clear each other by 1.5px in the 154px card.

   2. The slot card, baked from the same editor (the numbers in HOME below).
      Every value is the designer's, with two exceptions, both measured:

      · srain. With calendar.css 1.4.8 the rain label is out of the grid
        (position: absolute, left 33px, top 26px, transform: none), and that
        rule is more specific than this plugin's `.jklwf-slot .jklwf-slot-rain`
        — which is why the 1.0.23 value stopped working the moment 1.4.8 went
        live. The value sent from the editor (−396.8px) is read against the
        old grid position and puts the label 354px left of the card on the
        live rule; the label is put at the card's own left edge instead, under
        the weather word, which is where the vertical value (−0.8px, i.e. just
        below the word) says it belongs. One number changes it.

      · sstars and sdirtag carry a cap, because both are pushed toward the
        right edge of a card whose width is not fixed: the same day's panel is
        360px wide in a two-column row and 270px in a three-column one. The
        caps are the values at which each part still clears its neighbour
        (the score for the stars, the card's right edge for the wind tag) —
        at the designer's own 360px card both caps are above the baked value,
        so nothing moves there.

   3. Narrow cards. The slot card is a container (calendar.css), so a card
      that reports under 300px — a three-column panel, or a phone — is laid
      out by the calendar itself: the weather line folds, the rain label goes
      back into the flow on its right and the wind block takes a row of its
      own. The hand-made offsets above are positions on the wide grid and
      cannot survive that fold, so below 300px the parts that the fold moves
      return to the calendar's own places (`transform: none`) and the dial,
      compass and rain keep only a modest enlargement. Measured at 250, 280,
      305, 330 and 360px: no part leaves the card and no two parts touch. */

/* --- the day card ------------------------------------------------------ */

/* 바람 모듈 — the whole plate, dial and knots with it, at 93% */
.jklwf-day .jklwf-wind--card {
	transform: translate(-3.8px, -15.9px) scale(0.93);
}

/* 방향 칩 — the direction pill at 153%, clear of the knots (1.0.26: the
   owner's own 39.4, with the knots stepped 2.8px right to keep the gap) */
.jklwf-day .jklwf-wind--card .jklwf-compass {
	transform: translate(39.4px, -14.4px) scale(1.53);
}

/* 풍속 */
.jklwf-day .jklwf-wind--card .jklwf-wind-val {
	transform: translate(20.8px, 1px);
}

/* A phone two columns wide gives a day card about 175px, and the smallest
   (320px screen) about 140px, where the 153% pill comes back onto the knots.
   Below a 400px window the pill and the knots each give a little ground: the
   pill to 145% and 32.8px, the knots to 18.8px — the same 4.8px the wide
   card gives up — which leaves 5px between them in the 140px card. */
@media (max-width: 400px) {
	.jklwf-day .jklwf-wind--card .jklwf-compass {
		transform: translate(32.8px, -14.4px) scale(1.45);
	}

	.jklwf-day .jklwf-wind--card .jklwf-wind-val {
		transform: translate(18.8px, 1px);
	}
}

/* --- the slot card ----------------------------------------------------- */

/* 슬롯 시간 — 1.0.26: the owner's own value, 203% and right/down under the
   stars. Above 300px of content the stars are pushed out along the score
   line (and capped), so the grown time has the left half of the card to
   itself; under 300px they return to their own place and the time goes back
   with them (see the container block above). 360.7px card, measured: the
   time's box 17.4 → 192.8 across, 22.8 → 63.9 down, clear of the stars at
   228.5 and of the band at 74.1. */
.jklwf-slot .jklwf-slot-time {
	transform: translate(46.9px, 18.3px) scale(2.03);
}

/* 슬롯 별점 — out along the score line, stopped short of the score:
   `100cqw` is the card's own content width, so the cap follows the card. */
.jklwf-slot .jklwf-stars {
	transform: translate(min(213.5px, calc(100cqw - 110px)), -12.4px);
}

/* 슬롯 점수 — a hair left, a line and a half up */
.jklwf-slot .jklwf-slot-score {
	transform: translate(-1px, -12px);
}

/* The weather cell, the dial, the compass chip, the direction badge and the
   window range used to be placed here by hand, one translate each. 1.0.25
   puts them in the band's three columns instead — see the last section of
   this file. */

/* 물때 평가 — the sentence under the chart. 1.0.24 gives that sentence the
   slot's own wind, sky, temperature, gusts and tide (see wx-motion.js), so it
   may run to two lines; 1.28 keeps two of them inside the 34px the layout
   leaves between the chart and the chips. */
.jklwf-slot .jklwf-tide-eval {
	transform: translate(4.6px, 118.2px);
	line-height: 1.28;
}

/* 물때 그래프 */
.jklwf-slot .jklwf-tide-svg {
	transform: translate(1.2px, -29.4px);
}

/* 물때 수치 */
.jklwf-slot .jklwf-meter-foot {
	transform: translate(1.3px, -31.5px);
}

/* 칩 6개 — a tenth of a pixel down */
.jklwf-slot .jklwf-factors {
	transform: translate(0, 0.1px);
}

/* --- a card the calendar has folded -----------------------------------
   Under 300px of content the weather line becomes a wrapped flex row and the
   wind block takes its own full-width row, so the wide-grid offsets above
   would push parts off the card. Each returns to the calendar's own place;
   the dial, the compass and the rain keep a smaller enlargement. */
@container (max-width: 300px) {
	.jklwf-slot .jklwf-stars {
		transform: none;
	}

	/* 1.0.26: the grown time goes back to the calendar's own place here.
	   Under 300px the stars are at their natural spot at the left of the
	   score line, and a 203% time dropped 18px lands right on them; the card
	   keeps the calendar's own top line instead. */
	.jklwf-slot .jklwf-slot-time {
		transform: none;
	}

	.jklwf-slot .jklwf-slot-score {
		transform: none;
	}

	.jklwf-slot .jklwf-tide-eval {
		transform: none;
	}

	.jklwf-slot .jklwf-tide-svg {
		transform: none;
	}

	.jklwf-slot .jklwf-meter-foot {
		transform: none;
	}

	.jklwf-slot .jklwf-factors {
		transform: none;
	}
}

/* --- 1.0.25: the slot card's middle band, on a made-up three-column grid
   The designer sketched the band under the score line with three boxes and
   said the dotted lines were the box edges, not something to draw: the
   weather cell on the left (cloud over umbrella, condition over millimetres
   — four small cells of its own), the wind dial in the middle, and on the
   right the compass chip with its direction badge over the window range.

   Three columns are given to the band, not one hand-written offset per
   part. A translate is one number, and the same card is 360px wide in a
   two-column row, 270px in a three-column row and about 320px inside a
   phone's panel; one number is right at one of those widths and wrong at
   the others. A grid divides whatever width the card has, so every card
   gets the same three cells, and only the type steps down under 300px.

   The markup is the calendar's (calendar.css 1.4.8), so wx-motion.js moves
   the parts into the cells once — the same nodes, listeners and all — and
   this section is what places them there. The emptied wrappers are set
   aside, and the editor still finds each part inside .jklwf-slot. */

/* the calendar's own three-column line is one block now: the band fills it */
.jklwf .jklwf-slot .jklwf-slot-wx {
	display: block;
}

/* the wrappers the parts left — the calendar's inline-grid of dial, knots,
   compass and badge, and the column that held it */
.jklwxm-bandready .jklwf-slot-wind,
.jklwxm-bandready .jklwf-wind--slot {
	display: none;
}

/* the band: three cells, the first and last taking the room the dial leaves */
.jklwxm-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(min-content, 1.15fr);
	align-items: center;
	column-gap: 8px;
	min-width: 0;
}

/* --- the first cell: a 2x2 of weather icon over umbrella, word over mm --- */
.jklwxm-cell--wx {
	min-width: 0;
}

.jklwxm-band .jklwf-slot-wxmain {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	justify-items: start;
	column-gap: 5px;
	row-gap: 1px;
	min-width: 0;
}

.jklwxm-band .jklwf-slot-wxmain > .jklwf-wx-visual--slot {
	grid-area: 1 / 1;
	justify-self: center;
}

/* The condition and the millimetres are one pair of labels, so they are one
   type: same size, same weight, same colour, one line each — the designer's
   "구름 칸 아래에 우산, drizzle 칸 아래에 0.1mm, 폰트 통일". */
.jklwxm-band .jklwf-slot-wxmain > .jklwf-slot-cond,
.jklwf .jklwf-slot .jklwxm-band .jklwf-slot-rain {
	grid-area: 1 / 2;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	color: #4A5478;
	white-space: nowrap;
}

/* the umbrella sits in the column under the cloud, centred on it */
.jklwxm-band .jklwf-slot-wxmain > .jklwf-rain-ico {
	grid-area: 2 / 1;
	justify-self: center;
	font-size: 14px;
	line-height: 1;
	color: var(--rain);
}

/* the millimetres: the rain label, out of the calendar's absolute corner and
   into the cell under the condition. The extra `.jklwf` outranks 1.4.8's
   `position: absolute; left: 33px; top: 26px; transform: none`. */
.jklwf .jklwf-slot .jklwxm-band .jklwf-slot-rain {
	grid-area: 2 / 2;
	position: static;
	justify-self: start;
	transform: none;
}

/* --- the second cell: the dial, centred, half again as large ------------- */
.jklwxm-cell--dial {
	display: grid;
	place-items: center;
	width: 47px;
	height: 47px;
}

.jklwxm-band .jklwf-wind-dial {
	width: 32px;
	height: 32px;
	transform: scale(1.44);
}

/* --- the third cell: the chip and badge, then the window range ----------- */
.jklwxm-cell--wind {
	display: grid;
	row-gap: 4px;
	justify-items: start;
	min-width: 0;
}

.jklwxm-chips {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

/* the two chips keep the size the designer gave them (118% / 127% of the
   calendar's pill) as type rather than as a scale, so they take their room
   in the row instead of spilling out of it */
.jklwxm-band .jklwf-compass {
	font-size: 11.5px;
	letter-spacing: 0.04em;
	padding: 1px 6px;
	border-radius: 5px;
}

.jklwxm-band .jklwf-wind-tag {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	padding: 1px 8px;
}

.jklwxm-band .jklwf-wind-sub {
	font-size: 10.5px;
	line-height: 1.25;
	color: #97A0B8;
	white-space: nowrap;
	justify-self: start;
	text-align: left;
}

/* --- a card under 300px of content ------------------------------------
   A three-column panel gives the card 240px of content and a phone about
   270px. The same three cells hold there too; the dial comes down a step,
   the two labels drop half a point, and the two chips with them, so the
   three cells still clear each other (measured, see BUILD-1.0.25.md). */
@container (max-width: 300px) {
	.jklwxm-band {
		column-gap: 6px;
	}

	.jklwxm-cell--dial {
		width: 42px;
		height: 42px;
	}

	.jklwxm-band .jklwf-wind-dial {
		transform: scale(1.3);
	}

	.jklwxm-band .jklwf-slot-wxmain > .jklwf-wx-visual--slot {
		width: 24px;
		height: 24px;
	}

	.jklwxm-band .jklwf-slot-wxmain > .jklwf-slot-cond,
	.jklwf .jklwf-slot .jklwxm-band .jklwf-slot-rain {
		font-size: 10px;
	}

	/* the longest sky — "Partly cloudy" — is wider than the 240px card's
	   first cell can give one line at this size, so it takes two inside the
	   cell; the millimetres stay on one line under it */
	.jklwxm-band .jklwf-slot-wxmain > .jklwf-slot-cond {
		white-space: normal;
		line-height: 1.25;
	}

	.jklwxm-band .jklwf-slot-wxmain > .jklwf-rain-ico {
		font-size: 12.5px;
	}

	.jklwxm-chips {
		gap: 4px;
	}

	.jklwxm-band .jklwf-compass {
		font-size: 10.5px;
		padding: 1px 5px;
	}

	.jklwxm-band .jklwf-wind-tag {
		font-size: 9.5px;
		padding: 1px 6px;
	}

	.jklwxm-band .jklwf-wind-sub {
		font-size: 9.5px;
	}
}

/* --- a card the three columns cannot hold -----------------------------
   A slot card is not always 360px: the three-column row at a 1000px window
   gives it 247px, and at 900px it is 181px. Below 240px of content the
   window range alone is wider than a third of the card, so the three cells
   fold: the weather cell and the dial keep the first row, and the compass
   chip with its badge and the range take the rows under them, each on a
   line of its own. Nothing is dropped or cut — the same six parts, the same
   type sizes as the 300px step, just stacked. */
@container (max-width: 239px) {
	.jklwxm-band {
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: 4px;
	}

	.jklwxm-cell--wx {
		grid-area: 1 / 1;
	}

	.jklwxm-cell--dial {
		grid-area: 1 / 2;
	}

	.jklwxm-cell--wind {
		grid-area: 2 / 1 / 3 / 3;
	}
}

/* --- 1.0.28: the ideal level, written on both edges of the band --------
   The chart's yellow band runs the full 340 units and its caption used to be
   stretched across 272 of them, so the words read as a rule of letters. The
   caption now names the band's two edges: IDEAL TIDE LEVEL, 68 units wide at
   6.0, centred on the top edge and again on the bottom edge, with the
   calendar's own dashed boundary line running edge to edge through the middle
   of the words. The halo is gone so that rule is not cut in two behind the
   letters — the dashes pass behind the letterforms and show through the gaps
   between them — and the boundary dashes carry the dash-dot rhythm of the
   sketch: long, two short, long. Nothing here changes the band, the curve,
   the stamps, the hours or the readings under the chart. */
.jklwf-tide-svg .jklwf-tide-depth-label {
	fill-opacity: 0.94;
	stroke: none;
}

.jklwf-tide-svg .jklwf-tide-ref {
	stroke: #D97706;
	stroke-opacity: 0.55;
	stroke-width: 1.05;
	stroke-dasharray: 4 2.5 1 2.5;
}

/* --- 1.0.29: no lesson box, one thin frame on the whole chart ----------
   The chart used to draw every lesson window as a box of its own: a sky-blue
   rectangle with a 10% fill and a 38% rim (rect.jklwf-tide-band, rx 3) and a
   dashed upright at each end of it (path.jklwf-tide-grid, 2 4). With three
   slots per day and fourteen days that is 42 shaded boxes over a chart whose
   curve and gold band already say what the water is doing, and the owner
   asked for them gone. Both are hidden here rather than taken out of the
   calendar's markup, so the calendar plugin itself is untouched; the round
   stamps on the curve (.jklwf-tide-dot, one at each end and one in the
   middle of the window) stay exactly where they were.

   What is left of that box now wraps the chart once: the same sky-blue rim,
   the same 1px, drawn by 1.0.32's frame pass — the water's floor alone, one
   level line at 0 cm, from the view box's left edge to its right and set in
   far enough that the non-scaling stroke is never clipped. The two walls
   went at 1.0.32, the owner's reading of the chart as open water under an
   open sky. It is a non-scaling stroke, so it stays 1px on a full-width
   slot card and on the 181px one alike. */
.jklwf-tide-svg .jklwf-tide-band,
.jklwf-tide-svg .jklwf-tide-grid {
	display: none;
}

/* --- 1.0.30: one stamp on the chart, the one the lesson holds ----------
   The chart stamps the window's high water and its low water. A lesson that
   runs through one of them keeps just that one: the script reads the slot's
   09:00 – 12:00 (and the other two windows) against each stamp's own time,
   marks the others, and this hides them with nothing but a class, so the
   calendar's markup keeps both stamps it always drew. A lesson that holds
   neither stamp keeps both, exactly as before. */
.jklwf-tide-svg .jklwf-tide-peak.jklwxm-tide-peak-off {
	display: none;
}

.jklwf-tide-svg .jklwxm-tide-frame {
	fill: none;
	stroke: rgba(14, 165, 233, 0.38);
	stroke-width: 1;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}
