/* Jeju Kite Lab Kitesurfing Calendar (front end) v1.0.0
   Day cards stay visual: the whole card is the weather (an Apple Weather
   style scene), plus the rating, the winning spot and the moving wind.
   The numbers live in the three time-slot cards that open on tap. */

.jklks,
.jklks * {
	box-sizing: border-box;
}

.jklks {
	--ink: #1C244B;
	--muted: #6B7699;
	--faint: #8A93AE;
	--line: #E4E8F1;
	--teal: #0B8BAA;
	--teal-ink: #0A6E86;
	--sun: #F2A93B;
	--rain: #3E9FD8;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	max-width: 1180px;
	margin: 0 auto;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.jklks button {
	font-family: inherit;
}

/* Header --------------------------------------------------------- */

.jklks-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 0 10px;
}

.jklks-title {
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}

.jklks-sub {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
}

.jklks-updated {
	font-size: 11.5px;
	color: var(--faint);
}

.jklks-stale {
	color: #B4652A;
}

.jklks-legend {
	font-size: 11.5px;
	color: var(--faint);
	margin-bottom: 14px;
}

.jklks-star {
	color: #DCE1EC;
	font-size: 13px;
	line-height: 1;
}

.jklks-star.is-on {
	color: var(--sun);
}

.jklks-dash {
	color: #A7AFC4;
	font-size: 12px;
}

/* Day grid ------------------------------------------------------- */

.jklks-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
}

.jklks-day {
	/* the weather scene: one sky per card, set per data-wx below */
	--sky-1: #2F7FC4;
	--sky-2: #5AA8DA;
	--sky-3: #97CCEA;
	--glow: 0;
	--cloud: 0.3;
	--rain: 0;
	--snow: 0;
	--slant: 10deg;
	--fall: 0.85s;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	text-align: left;
	background: #2F7FC4;
	border: 1px solid rgba(16, 30, 52, 0.14);
	border-radius: 16px;
	padding: 12px 12px 20px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(20, 38, 68, 0.14);
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
	color: #fff;
	isolation: isolate;
	overflow: hidden;
}

.jklks-day:hover {
	border-color: rgba(11, 139, 170, 0.75);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(20, 38, 68, 0.22);
}

.jklks-day.is-active {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(11, 139, 170, 0.22), 0 10px 22px rgba(20, 38, 68, 0.2);
}

.jklks-day.is-past {
	opacity: 0.72;
}

.jklks-day.is-past .jklks-day-bg {
	filter: grayscale(0.7) brightness(0.86);
}

/* --- the weather scene behind the card -------------------------- */

.jklks-day-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(168deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}

.jklks-day-bg > span {
	position: absolute;
	inset: 0;
	display: block;
	pointer-events: none;
}

.jklks-bg-glow {
	opacity: var(--glow);
	background:
		radial-gradient(circle at 83% 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 46% 26% at 84% 20%, rgba(255, 236, 178, 0.55) 0%, rgba(255, 210, 128, 0.24) 44%, rgba(255, 198, 110, 0) 80%);
	animation: jklks-bg-glow 9s ease-in-out infinite;
}

.jklks-bg-clouds {
	opacity: var(--cloud);
	filter: blur(1.5px);
	background:
		radial-gradient(24% 14% at 26% 27%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 71%),
		radial-gradient(21% 12% at 40% 21%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.42) 52%, rgba(255, 255, 255, 0) 72%),
		radial-gradient(19% 10% at 53% 26%, rgba(250, 253, 255, 0.7) 0%, rgba(250, 253, 255, 0.34) 52%, rgba(250, 253, 255, 0) 73%),
		radial-gradient(28% 8% at 38% 33%, rgba(88, 122, 166, 0.4) 0%, rgba(88, 122, 166, 0.14) 55%, rgba(88, 122, 166, 0) 76%),
		radial-gradient(16% 8% at 72% 13%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0) 74%);
	animation: jklks-bg-clouds 28s ease-in-out infinite alternate;
}

.jklks-bg-rain {
	left: 0;
	right: 0;
	top: 0;
	height: 100%;
	opacity: var(--rain);
}

.jklks-rain-svg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.jklks-rain-svg path {
	fill: none;
	stroke: #E8F5FF;
	stroke-linecap: round;
}

.jklks-rain-set {
	animation: jklks-rain-fall var(--fall) linear infinite;
}

.jklks-bg-snow {
	left: -20%;
	right: -20%;
	top: -100%;
	height: 200%;
	opacity: var(--snow);
	background-image:
		radial-gradient(circle at 8% 12%, #fff 0 1.4px, rgba(255, 255, 255, 0) 1.8px),
		radial-gradient(circle at 22% 58%, #fff 0 1.1px, rgba(255, 255, 255, 0) 1.5px),
		radial-gradient(circle at 35% 30%, #fff 0 1.3px, rgba(255, 255, 255, 0) 1.7px),
		radial-gradient(circle at 47% 76%, #fff 0 1px, rgba(255, 255, 255, 0) 1.4px),
		radial-gradient(circle at 58% 18%, #fff 0 1.5px, rgba(255, 255, 255, 0) 1.9px),
		radial-gradient(circle at 70% 66%, #fff 0 1.2px, rgba(255, 255, 255, 0) 1.6px),
		radial-gradient(circle at 82% 38%, #fff 0 1.3px, rgba(255, 255, 255, 0) 1.7px),
		radial-gradient(circle at 93% 84%, #fff 0 1.1px, rgba(255, 255, 255, 0) 1.5px);
	background-size: 100% 52px;
	background-repeat: repeat;
	animation: jklks-bg-snowfall 6.5s linear infinite;
}

.jklks-bg-flash {
	display: none;
	opacity: 0;
	background: radial-gradient(62% 48% at 68% 4%, rgba(255, 255, 255, 0.95) 0%, rgba(198, 226, 255, 0.5) 36%, rgba(198, 226, 255, 0) 74%);
}

/* readability: a soft scrim at the top (date) and bottom (wind) ---- */
.jklks-bg-scrim {
	background:
		linear-gradient(to bottom, rgba(8, 18, 34, 0.34) 0%, rgba(8, 18, 34, 0.12) 26%, rgba(8, 18, 34, 0) 46%),
		linear-gradient(to bottom, rgba(8, 18, 34, 0) 44%, rgba(8, 18, 34, 0.22) 68%, rgba(8, 18, 34, 0.54) 100%);
}

/* skies ----------------------------------------------------------- */

.jklks-day[data-wx="clear"] {
	--sky-1: #1B6CB0;
	--sky-2: #4A9AD4;
	--sky-3: #8EC7E9;
	--glow: 1;
	--cloud: 0.35;
}

.jklks-day[data-wx="partly"] {
	--sky-1: #2A79BD;
	--sky-2: #5BA5D8;
	--sky-3: #93C8E6;
	--glow: 0.9;
	--cloud: 0.8;
}

.jklks-day[data-wx="overcast"] {
	--sky-1: #556274;
	--sky-2: #76839A;
	--sky-3: #99A5B5;
	--cloud: 0.9;
}

.jklks-day[data-wx="fog"] {
	--sky-1: #6A7687;
	--sky-2: #8A95A5;
	--sky-3: #AEB7C3;
	--cloud: 0.55;
}

.jklks-day[data-wx="drizzle"] {
	--sky-1: #485469;
	--sky-2: #647185;
	--sky-3: #8A95A6;
	--cloud: 0.7;
	--rain: 0.5;
}

.jklks-day[data-wx="rain"] {
	--sky-1: #354154;
	--sky-2: #4F5E74;
	--sky-3: #74849A;
	--cloud: 0.8;
	--rain: 0.8;
}

.jklks-day[data-wx="shower"] {
	--sky-1: #3B4C64;
	--sky-2: #6A819A;
	--sky-3: #9CB4C8;
	--glow: 0.5;
	--cloud: 0.75;
	--rain: 0.6;
}

.jklks-day[data-wx="snow"] {
	--sky-1: #4A6186;
	--sky-2: #7A8FB0;
	--sky-3: #ABBCD3;
	--cloud: 0.7;
	--snow: 1;
}

.jklks-day[data-wx="storm"] {
	--sky-1: #1C2430;
	--sky-2: #323E50;
	--sky-3: #4E5A6A;
	--cloud: 0.95;
	--rain: 0.95;
}

.jklks-day[data-wx="storm"] .jklks-bg-flash {
	display: block;
	animation: jklks-bg-flash 9.5s linear infinite;
}

/* a wet or grey card gets a low deck of cloud instead of white puffs */
.jklks-day[data-wx="overcast"] .jklks-bg-clouds,
.jklks-day[data-wx="storm"] .jklks-bg-clouds,
.jklks-day[data-wx="rain"] .jklks-bg-clouds,
.jklks-day[data-wx="drizzle"] .jklks-bg-clouds,
.jklks-day[data-wx="shower"] .jklks-bg-clouds {
	filter: blur(2.2px);
	background:
		radial-gradient(44% 22% at 10% 11%, rgba(158, 178, 204, 0.5) 0%, rgba(158, 178, 204, 0.2) 46%, rgba(158, 178, 204, 0) 68%),
		radial-gradient(50% 24% at 46% 4%, rgba(146, 166, 194, 0.44) 0%, rgba(146, 166, 194, 0.18) 48%, rgba(146, 166, 194, 0) 70%),
		radial-gradient(42% 22% at 88% 15%, rgba(138, 158, 186, 0.4) 0%, rgba(138, 158, 186, 0.16) 50%, rgba(138, 158, 186, 0) 72%),
		radial-gradient(38% 18% at 28% 33%, rgba(24, 40, 60, 0.3) 0%, rgba(24, 40, 60, 0.12) 50%, rgba(24, 40, 60, 0) 72%);
}

/* snow sits under a pale, heavy winter sky */
.jklks-day[data-wx="snow"] .jklks-bg-clouds {
	filter: blur(2px);
	background:
		radial-gradient(46% 24% at 12% 12%, rgba(240, 246, 255, 0.45) 0%, rgba(240, 246, 255, 0.18) 48%, rgba(240, 246, 255, 0) 70%),
		radial-gradient(52% 26% at 52% 5%, rgba(232, 240, 252, 0.4) 0%, rgba(232, 240, 252, 0.16) 50%, rgba(232, 240, 252, 0) 72%),
		radial-gradient(44% 22% at 88% 18%, rgba(226, 236, 250, 0.36) 0%, rgba(226, 236, 250, 0.14) 50%, rgba(226, 236, 250, 0) 72%);
}

/* fog is bands of mist, not clouds */
.jklks-day[data-wx="fog"] .jklks-bg-clouds {
	filter: blur(7px);
	background:
		repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0 17px, rgba(255, 255, 255, 0) 17px 56px),
		repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0 23px, rgba(255, 255, 255, 0) 23px 79px);
	animation: jklks-bg-mist 34s ease-in-out infinite alternate;
}

/* fine drizzle is drawn from shorter dashes than rain (see rain_svg) */

/* a break of sun in the showers */
.jklks-day[data-wx="shower"] .jklks-bg-glow {
	background:
		radial-gradient(circle at 84% 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 44% 26% at 86% 29%, rgba(255, 244, 210, 0.45) 0%, rgba(255, 216, 146, 0.22) 44%, rgba(255, 200, 120, 0) 78%);
}

@keyframes jklks-bg-glow {
	0%,
	100% {
		transform: scale(1);
		opacity: var(--glow);
	}
	50% {
		transform: scale(1.07);
		opacity: calc(var(--glow) * 0.8);
	}
}

@keyframes jklks-bg-clouds {
	from {
		transform: translate3d(-7%, 1.5%, 0) scale(1.05);
	}
	to {
		transform: translate3d(7%, -1.5%, 0) scale(1.02);
	}
}

@keyframes jklks-bg-mist {
	from {
		transform: translate3d(-10%, 4%, 0);
	}
	to {
		transform: translate3d(10%, -4%, 0);
	}
}

/* the dash field is periodic over its 120-unit viewBox, so one full
   height of travel loops without a seam */
@keyframes jklks-rain-fall {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(120px);
	}
}

@keyframes jklks-bg-snowfall {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, 52px, 0);
	}
}

@keyframes jklks-bg-flash {
	0%,
	55%,
	100% {
		opacity: 0;
	}
	56% {
		opacity: 0.9;
	}
	58% {
		opacity: 0.12;
	}
	60% {
		opacity: 0.7;
	}
	63% {
		opacity: 0;
	}
	78% {
		opacity: 0.45;
	}
	80% {
		opacity: 0;
	}
}

/* the quiet "there is more inside" cue */
.jklks-day::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 8px;
	z-index: 2;
	width: 6px;
	height: 6px;
	margin-left: -4px;
	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);
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.jklks-day:hover::after,
.jklks-day.is-active::after {
	border-color: #fff;
	transform: rotate(45deg) translate(1px, 1px);
}

/* every piece of card content sits above the weather scene */
.jklks-day-head,
.jklks-ratingline,
.jklks-windline {
	position: relative;
	z-index: 1;
}

.jklks-day-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 4px 6px;
}

.jklks-date {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.jklks-dow {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.45);
}

.jklks-num {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	margin: 3px 0 1px;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 3px rgba(8, 18, 34, 0.5);
}

.jklks-mon {
	font-size: 9.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.4);
}

/* the weather in words, so a beginner never has to read the picture */
.jklks-wx-tag {
	flex: none;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	padding: 1px 5px;
	margin: -1px -5px 0 0;
	border-radius: 4px;
	background: rgba(9, 21, 38, 0.2);
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.45);
}

/* weather visual ------------------------------------------------- */

.jklks-wx-visual--slot {
	display: block;
	flex: none;
	width: 26px;
	height: 26px;
}

.jklks-wx-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* motion: a card should feel like a two-second video loop -------- */

@keyframes jklks-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes jklks-halo-pulse {
	0%,
	100% {
		transform: scale(0.84);
		opacity: 0.45;
	}
	50% {
		transform: scale(1.06);
		opacity: 1;
	}
}

@keyframes jklks-drift-a {
	0%,
	100% {
		transform: translateX(-1.8px);
	}
	50% {
		transform: translateX(1.8px);
	}
}

@keyframes jklks-drift-b {
	0%,
	100% {
		transform: translateX(2.2px);
	}
	50% {
		transform: translateX(-2.2px);
	}
}

@keyframes jklks-drop {
	0% {
		transform: translateY(-2.5px);
		opacity: 0;
	}
	30% {
		opacity: 1;
	}
	70% {
		opacity: 1;
	}
	100% {
		transform: translateY(5.5px);
		opacity: 0;
	}
}

@keyframes jklks-flake {
	0% {
		transform: translate(0, -2px) scale(0.6);
		opacity: 0;
	}
	25% {
		opacity: 1;
	}
	100% {
		transform: translate(2.4px, 6.5px) scale(1);
		opacity: 0;
	}
}

@keyframes jklks-bolt {
	0%,
	44%,
	100% {
		opacity: 0;
	}
	46%,
	56% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
	62% {
		opacity: 0.85;
	}
	72% {
		opacity: 0;
	}
}

@keyframes jklks-stream {
	from {
		stroke-dashoffset: 10;
	}
	to {
		stroke-dashoffset: -10;
	}
}

@keyframes jklks-needle-pulse {
	0%,
	100% {
		opacity: 0.82;
	}
	50% {
		opacity: 1;
	}
}

.jklks-rays {
	animation: jklks-spin 22s linear infinite;
}

.jklks-halo {
	transform-box: fill-box;
	transform-origin: center;
	animation: jklks-halo-pulse 4.4s ease-in-out infinite;
}

.jklks-drift-a {
	animation: jklks-drift-a 6.5s ease-in-out infinite;
}

.jklks-drift-b {
	animation: jklks-drift-b 9s ease-in-out infinite;
}

.jklks-drop {
	animation: jklks-drop 1.45s linear infinite;
}

.jklks-drop.d2 {
	animation-delay: 0.48s;
}

.jklks-drop.d3 {
	animation-delay: 0.96s;
}

.jklks-flake {
	transform-box: fill-box;
	transform-origin: center;
	animation: jklks-flake 4.2s linear infinite;
}

.jklks-flake.f2 {
	animation-delay: 1.4s;
}

.jklks-flake.f3 {
	animation-delay: 2.8s;
}

.jklks-bolt {
	animation: jklks-bolt 4s ease-out infinite;
}

/* a paused glyph in a background tab still reads correctly */
.jklks-wx-svg.is-cloud .jklks-bolt {
	display: none;
}

/* wind glyph ----------------------------------------------------- */

.jklks-wind {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.jklks-wind-dial {
	display: block;
	flex: none;
	width: 34px;
	height: 34px;
}

.jklks-wind-dial svg {
	display: block;
	width: 100%;
	height: 100%;
}

.jklks-dial-bg {
	fill: rgba(11, 139, 170, 0.06);
	stroke: rgba(11, 139, 170, 0.16);
	stroke-width: 1;
}

.jklks-needle {
	stroke: var(--teal);
	stroke-width: 2.5;
	stroke-linecap: round;
	animation: jklks-needle-pulse 2.6s ease-in-out infinite;
}

.jklks-needle-head {
	fill: var(--teal);
	stroke: var(--teal);
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.jklks-flow {
	stroke: #7FC9DA;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-dasharray: 2.4 3;
	animation: jklks-stream 1.6s linear infinite;
}

.jklks-flow.f2 {
	animation-delay: -0.8s;
}

.jklks-hub {
	fill: var(--teal);
}

.jklks-wind-val {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	white-space: nowrap;
}

.jklks-wind-val b {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.jklks-unit {
	font-size: 9px;
	color: var(--faint);
}

.jklks-compass {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--teal-ink);
	background: rgba(11, 139, 170, 0.1);
	border-radius: 5px;
	padding: 1px 5px;
	white-space: nowrap;
}

.jklks-wind--slot .jklks-wind-dial {
	width: 32px;
	height: 32px;
}

.jklks-wind--slot .jklks-wind-val b {
	font-size: 17px;
}

.jklks-wind--slot .jklks-unit {
	font-size: 10px;
}

.jklks-wind--slot .jklks-compass {
	font-size: 10px;
}

/* rating line ---------------------------------------------------- */

.jklks-ratingline {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

/* the name of the score, right above the stars */
.jklks-score-kicker {
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.05em;
	word-spacing: 0.35em;
	text-transform: uppercase;
	line-height: 1.1;
	white-space: nowrap;
}

.jklks-stars {
	display: inline-flex;
	gap: 1px;
}

.jklks-rating {
	font-size: 10.5px;
	font-weight: 600;
	color: #4A5478;
	letter-spacing: 0.02em;
}

.jklks-windline {
	display: block;
	margin-top: auto;
}

/* the card is dark now: its own text palette ---------------------- */

.jklks-day .jklks-score-kicker {
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.45);
}

.jklks-day .jklks-stars .jklks-star {
	color: rgba(255, 255, 255, 0.34);
	font-size: 13px;
}

.jklks-day .jklks-stars .jklks-star.is-on {
	color: #FFD27A;
	text-shadow: 0 1px 3px rgba(120, 70, 0, 0.35);
}

.jklks-day .jklks-rating {
	color: #fff;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.45);
}

.jklks-day .jklks-dash {
	color: rgba(255, 255, 255, 0.75);
}

.jklks-day .jklks-wind-dial {
	width: 32px;
	height: 32px;
}

.jklks-day .jklks-dial-bg {
	fill: rgba(255, 255, 255, 0.14);
	stroke: rgba(255, 255, 255, 0.3);
}

.jklks-day .jklks-needle {
	stroke: #fff;
}

.jklks-day .jklks-needle-head {
	fill: #fff;
	stroke: #fff;
}

.jklks-day .jklks-flow {
	stroke: rgba(255, 255, 255, 0.8);
}

.jklks-day .jklks-hub {
	fill: #fff;
}

.jklks-day .jklks-wind-val b {
	color: #fff;
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.45);
}

.jklks-day .jklks-unit {
	color: rgba(255, 255, 255, 0.75);
}

.jklks-day .jklks-compass {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	text-shadow: 0 1px 1px rgba(8, 18, 34, 0.3);
}

/* Day detail ----------------------------------------------------- */

/* The panel is moved by the script into the day grid, directly after the last
   card of the tapped card's row, and spans every column so it reads as the
   next line of the calendar. */
.jklks-detail {
	grid-column: 1 / -1;
	margin: 2px 0;
	scroll-margin-top: 12px;
	background: #F7F9FC;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
}

.jklks-detail[hidden] {
	display: none;
}

.jklks-detail-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 13px;
}

.jklks-detail-head strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

.jklks-detail-head span {
	font-size: 12px;
	color: var(--muted);
}

/* 물때 chip: phase label + water range inside the lesson window ---- */

.jklks-phase {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 6px;
	font-size: 10.5px;
	color: #4A5478;
}

.jklks-phase-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--teal-ink);
	background: rgba(11, 139, 170, 0.1);
	border-radius: 5px;
	padding: 1px 6px;
	white-space: nowrap;
}

.jklks-phase-range {
	font-size: 10.5px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.jklks-phase-empty {
	color: #A7AFC4;
	font-size: 10px;
}

.jklks-detail-head .jklks-phase {
	margin-left: 2px;
	font-size: 11px;
}

.jklks-detail-head .jklks-phase-label {
	font-size: 11px;
}

.jklks-detail-head .jklks-phase-range {
	font-size: 11.5px;
}

/* the three slot cards ------------------------------------------- */

.jklks-slots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.jklks-slot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px;
}

.jklks-slot.is-best {
	border-color: var(--teal);
	box-shadow: 0 0 0 2px rgba(11, 139, 170, 0.12);
}

.jklks-slot.is-past {
	background: #FAFBFD;
	opacity: 0.6;
}

.jklks-slot.is-selected {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(11, 139, 170, 0.16);
}

.jklks-slot-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.jklks-slot-time {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.jklks-badge {
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--teal);
	color: #fff;
	border-radius: 20px;
	padding: 2px 7px;
}

.jklks-slot-scoreline {
	display: flex;
	align-items: center;
	gap: 6px;
}

.jklks-slot-score {
	font-size: 13px;
	font-weight: 700;
	color: var(--teal);
	margin-left: auto;
}

.jklks-slot-score small {
	font-size: 9.5px;
	font-weight: 500;
	color: var(--faint);
}

.jklks-slot-wx {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	color: #4A5478;
}

.jklks-slot-cond {
	font-size: 11px;
	color: #4A5478;
}

.jklks-slot-rain {
	margin-left: auto;
	font-size: 10.5px;
	color: var(--rain);
	white-space: nowrap;
}

.jklks-rain-ico {
	font-size: 11px;
}

.jklks-slot-wind {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}

.jklks-wind-sub {
	flex-basis: 100%;
	font-size: 10.5px;
	color: #97A0B8;
}

/* tide ----------------------------------------------------------- */

.jklks-meter {
	display: block;
}

.jklks-meter-track {
	position: relative;
	height: 6px;
	margin-bottom: 6px;
	background: #E8ECF4;
	border-radius: 4px;
}

.jklks-meter-ideal {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 31.25%;
	width: 31.25%;
	background: rgba(11, 139, 170, 0.2);
	border-radius: 4px;
}

.jklks-meter-dot {
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	margin-top: -4px;
	background: var(--ink);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--ink);
}

.jklks-meter-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #4A5478;
}

.jklks-meter-phase {
	font-size: 9.5px;
	font-weight: 700;
	color: var(--teal-ink);
	background: rgba(11, 139, 170, 0.1);
	border-radius: 5px;
	padding: 1px 5px;
	white-space: nowrap;
}

.jklks-meter-cm {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink);
}

.jklks-meter-trend {
	font-size: 10px;
	font-weight: 600;
	color: #4A5478;
}

.jklks-meter-trend.is-rising {
	color: var(--teal);
}

.jklks-meter-trend.is-falling {
	color: #C77A2E;
}

.jklks-trend {
	font-weight: 700;
	font-size: 9px;
}

.jklks-trend.is-rising {
	color: var(--teal);
}

.jklks-trend.is-falling {
	color: #C77A2E;
}

.jklks-trend.is-steady {
	color: var(--faint);
}

.jklks-meter-label {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--teal-ink);
	background: rgba(11, 139, 170, 0.1);
	border-radius: 5px;
	padding: 1px 6px;
}

/* Per-slot factor chips ------------------------------------------- */

.jklks-factors {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.jklks-factor {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-size: 9.5px;
	color: var(--muted);
	background: #F2F5FA;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 1px 6px;
}

.jklks-factor i {
	font-style: normal;
	letter-spacing: 0.02em;
}

.jklks-factor b {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--ink);
}

.jklks-select {
	margin-top: auto;
	width: 100%;
	background: var(--teal);
	color: #fff;
	border: 0;
	border-radius: 9px;
	padding: 9px 12px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jklks-select:hover {
	background: #097A94;
}

.jklks-slot-note {
	margin-top: auto;
	font-size: 11px;
	color: #97A0B8;
}

/* Selected slot preview ------------------------------------------ */

.jklks-picked {
	margin-top: 16px;
	border: 1px dashed var(--teal);
	background: rgba(11, 139, 170, 0.06);
	border-radius: 14px;
	padding: 13px 16px;
}

.jklks-picked[hidden] {
	display: none;
}

.jklks-picked-label {
	display: block;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--teal);
}

.jklks-picked-text {
	display: block;
	font-size: 15px;
	margin: 3px 0 3px;
	color: var(--ink);
}

.jklks-picked-note {
	display: block;
	font-size: 11.5px;
	color: var(--muted);
}

.jklks-picked-clear {
	margin-top: 7px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--teal);
	font-size: 11.5px;
	text-decoration: underline;
	cursor: pointer;
}

/* Explanation ---------------------------------------------------- */

.jklks-how {
	margin-top: 18px;
	font-size: 12px;
	color: var(--muted);
}

.jklks-how summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ink);
	font-size: 12.5px;
}

.jklks-how p {
	margin: 8px 0 0;
	max-width: 760px;
}

.jklks-error {
	padding: 16px;
	background: #FDF5F3;
	border: 1px solid #EBCFC6;
	border-radius: 12px;
	color: #8C3B2A;
	font-size: 13px;
}

/* Responsive ----------------------------------------------------- */

@media (max-width: 1080px) {
	.jklks-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.jklks-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.jklks-slots {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.jklks-header {
		margin-bottom: 8px;
	}
	.jklks-title {
		font-size: 21px;
	}
	.jklks-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	.jklks-day {
		padding: 10px 10px 19px;
		border-radius: 14px;
	}
	.jklks-num {
		font-size: 21px;
	}
	.jklks-wx-tag {
		font-size: 8px;
		letter-spacing: 0.05em;
	}
	.jklks-score-kicker {
		font-size: 7px;
		letter-spacing: 0.03em;
		word-spacing: 0.3em;
	}
	.jklks-detail {
		padding: 12px;
	}
	.jklks-legend {
		font-size: 10.5px;
	}
}

/* Anyone who asked for less motion gets the still version. */
@media (prefers-reduced-motion: reduce) {
	.jklks-rays,
	.jklks-halo,
	.jklks-drift-a,
	.jklks-drift-b,
	.jklks-drop,
	.jklks-flake,
	.jklks-bolt,
	.jklks-flow,
	.jklks-needle,
	.jklks-needle-head,
	.jklks-bg-glow,
	.jklks-bg-clouds,
	.jklks-bg-rain,
	.jklks-rain-set,
	.jklks-bg-snow,
	.jklks-bg-flash {
		animation: none !important;
	}
	.jklks-day,
	.jklks-day::after {
		transition: none !important;
	}
}

/* Theme / Elementor button styles try to paint our cards: take them back. */
.jklks button.jklks-day {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #2F7FC4 !important;
	color: #fff !important;
	border: 1px solid rgba(16, 30, 52, 0.14) !important;
	border-radius: 16px !important;
	box-shadow: 0 2px 6px rgba(20, 38, 68, 0.14) !important;
	padding: 12px 12px 20px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	min-height: 0 !important;
	height: auto !important;
	width: 100% !important;
	text-align: left !important;
	overflow: hidden !important;
}

.jklks button.jklks-day:hover {
	background: #2F7FC4 !important;
	color: #fff !important;
	border-color: rgba(11, 139, 170, 0.75) !important;
	box-shadow: 0 12px 24px rgba(20, 38, 68, 0.22) !important;
}

.jklks button.jklks-day.is-active {
	border-color: #0B8BAA !important;
	box-shadow: 0 0 0 3px rgba(11, 139, 170, 0.22), 0 10px 22px rgba(20, 38, 68, 0.2) !important;
}

.jklks button.jklks-day .jklks-stars .jklks-star {
	color: rgba(255, 255, 255, 0.3) !important;
}

.jklks button.jklks-day .jklks-stars .jklks-star.is-on {
	color: #FFD27A !important;
}

.jklks button.jklks-select {
	background: #0B8BAA !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 9px !important;
	padding: 9px 12px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	width: 100% !important;
	min-height: 0 !important;
	line-height: 1.3 !important;
}

.jklks button.jklks-select:hover {
	background: #097A94 !important;
	color: #fff !important;
}

.jklks button.jklks-picked-clear {
	background: none !important;
	color: #0B8BAA !important;
	border: 0 !important;
	padding: 0 !important;
	margin-top: 7px !important;
	font-size: 11.5px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	line-height: 1.4 !important;
	min-height: 0 !important;
}

.jklks .jklks-how summary {
	background: none;
	color: #1C244B;
	padding: 0;
}

@media (max-width: 560px) {
	.jklks button.jklks-day {
		padding: 10px 10px 19px !important;
		border-radius: 14px !important;
	}
}


/* ================================================================
   Kitesurfing additions: the winning spot on every card, the travel
   fee, the per-slot spot ranking and the live Windy map.
   ================================================================ */

/* The date head never fights the weather tag for room: both wrap
   instead of overlapping on a 390 px phone. */
.jklks-day-head {
	flex-wrap: wrap;
	align-items: flex-start;
}

.jklks-date {
	flex: 1 1 auto;
	min-width: 0;
}

.jklks-wx-tag {
	flex: 0 0 auto;
	max-width: 100%;
	margin: 0;
}

/* the spot the day (or the slot) is booked at ---------------------- */

.jklks-spotline {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	min-height: 15px;
}

.jklks-spot-pill {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	max-width: 100%;
	min-width: 0;
	padding: 1px 4px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.4);
}

.jklks-spot-pill .jklks-pill-sub {
	font-weight: 500;
	font-size: 8px;
	letter-spacing: -0.005em;
	color: rgba(255, 255, 255, 0.84);
	overflow: hidden;
	text-overflow: ellipsis;
}

.jklks-spot-pill.is-empty {
	background: rgba(9, 21, 38, 0.24);
	font-weight: 500;
	font-size: 9.5px;
	color: rgba(255, 255, 255, 0.88);
}

.jklks-travel {
	flex: none;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.4;
	padding: 1px 5px;
	border-radius: 5px;
	white-space: nowrap;
	color: #FFF3E2;
	background: rgba(180, 101, 42, 0.55);
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.35);
}

/* Wing foil on a kite-dead day ------------------------------------- */

.jklks-wing-pill {
	flex: none;
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.4;
	padding: 1px 5px;
	border-radius: 5px;
	white-space: nowrap;
	color: #E9FCFF;
	background: rgba(11, 139, 170, 0.7);
	text-shadow: 0 1px 2px rgba(8, 18, 34, 0.35);
}

.jklks-wing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid rgba(11, 139, 170, 0.28);
	border-radius: 12px;
	background: rgba(11, 139, 170, 0.06);
}

.jklks-wing-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.jklks-wing-copy strong {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--teal-ink);
}

.jklks-wing-copy span {
	font-size: 11px;
	line-height: 1.35;
	color: var(--muted);
}

.jklks a.jklks-wing-cta {
	flex: none;
	display: inline-block;
	padding: 8px 14px;
	border-radius: 9px;
	background: var(--teal);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s ease;
}

.jklks a.jklks-wing-cta:hover {
	background: #097A94;
	color: #fff;
	text-decoration: none;
}

/* a slot line that names no beach---------------------------------- */

.jklks-slot-empty {
	color: var(--faint);
	font-weight: 600;
}

@media (max-width: 560px) {
	.jklks-wing {
		align-items: stretch;
	}
	.jklks a.jklks-wing-cta {
		text-align: center;
	}
}

@media (max-width: 560px) {
	.jklks-legend-note {
		display: block;
	}
	.jklks-day {
		gap: 7px;
	}
	.jklks-spot-pill {
		font-size: 9.5px;
		padding: 1px 5px;
	}
	.jklks-spot-pill .jklks-pill-sub {
		display: none;
	}
}

/* the date or the weather word on a card can be long: keep the header
   block on its own line so nothing lands on top of anything else */
.jklks-day .jklks-date {
	line-height: 1;
}

/* slot card: which spot this window is booked at ------------------ */

.jklks-slot {
	cursor: pointer;
}

.jklks-slot:hover {
	border-color: rgba(11, 139, 170, 0.45);
}

.jklks-slot-spot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 6px;
	font-size: 11.5px;
	color: var(--muted);
}

.jklks-slot-spot b {
	font-size: 13px;
	font-weight: 700;
	color: var(--teal-ink);
	letter-spacing: -0.01em;
}

.jklks-water {
	font-size: 9.5px;
	font-weight: 600;
	color: #6B7699;
	background: #F2F5FA;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 0 5px;
	white-space: nowrap;
}

.jklks-fee {
	font-size: 9.5px;
	font-weight: 700;
	color: #A8551B;
	background: #FDF1E3;
	border: 1px solid #F3D9BC;
	border-radius: 4px;
	padding: 0 5px;
	white-space: nowrap;
}

.jklks-warn {
	font-weight: 700;
	color: #A8551B;
}

.jklks-slot-note.jklks-warn {
	color: #A8551B;
	background: #FDF1E3;
	border: 1px solid #F3D9BC;
	border-radius: 6px;
	padding: 2px 7px;
}

.jklks-slot-note {
	margin-top: 0;
	font-size: 10.5px;
	color: #97A0B8;
	line-height: 1.4;
}

/* the five spots, scored, so the choice is visible ----------------- */

.jklks-ranks {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	padding-top: 7px;
	border-top: 1px dashed var(--line);
}

.jklks-rank {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	font-size: 9px;
	color: var(--muted);
	background: #F7F9FC;
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 0 5px;
	line-height: 1.6;
	white-space: nowrap;
}

.jklks-rank b {
	font-size: 9.5px;
	font-weight: 700;
	color: var(--ink);
}

.jklks-rank.is-win {
	background: rgba(11, 139, 170, 0.1);
	border-color: rgba(11, 139, 170, 0.32);
	color: var(--teal-ink);
	font-weight: 700;
}

.jklks-rank.is-off {
	opacity: 0.5;
}

/* selection + price ---------------------------------------------- */

.jklks-picked-price {
	display: block;
	margin: 2px 0 3px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
}

.jklks-picked-price small {
	font-size: 11px;
	font-weight: 600;
	color: #A8551B;
}

.jklks-picked-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 8px;
}

.jklks-picked-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--teal);
	text-decoration: underline;
	white-space: nowrap;
}

/* the price line under the header -------------------------------- */

.jklks-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0 0 14px;
	padding: 9px 13px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #F7F9FC;
	font-size: 12px;
	color: var(--muted);
}

.jklks-price b {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
}

.jklks-price .jklks-price-fee {
	color: #A8551B;
	font-weight: 600;
}

.jklks-price .jklks-price-test {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal-ink);
	background: rgba(11, 139, 170, 0.1);
	border-radius: 5px;
	padding: 1px 6px;
	white-space: nowrap;
}

/* live wind map --------------------------------------------------- */

.jklks-map {
	margin: 18px 0 4px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(20, 38, 68, 0.04), 0 14px 34px rgba(20, 38, 68, 0.07);
}

.jklks-map-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 12px 15px 11px;
	border-bottom: 1px solid var(--line);
}

.jklks-map-text {
	min-width: 0;
}

.jklks-map-kicker {
	display: block;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
}

.jklks-map-spot {
	display: block;
	margin-top: 1px;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--ink);
}

.jklks-map-note {
	display: block;
	margin-top: 1px;
	font-size: 11px;
	color: var(--muted);
}

.jklks-map-link {
	flex: none;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--teal);
	text-decoration: none;
	white-space: nowrap;
	padding: 4px 9px;
	border: 1px solid rgba(11, 139, 170, 0.3);
	border-radius: 7px;
}

.jklks-map-link:hover {
	background: rgba(11, 139, 170, 0.08);
	text-decoration: none;
}

.jklks-map-frame {
	position: relative;
	height: 400px;
	background: #E8EEF5;
}

.jklks-map-frame iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 860px) {
	.jklks-map-frame {
		height: 340px;
	}
}

@media (max-width: 560px) {
	.jklks-map-head {
		padding: 10px 12px 9px;
	}
	.jklks-map-spot {
		font-size: 14px;
	}
	.jklks-map-frame {
		height: 280px;
	}
}

/* Book and Pay: a link straight to the checkout -------------------- */

.jklks a.jklks-select {
	display: block;
	margin-top: auto;
	background: var(--teal);
	color: #fff;
	border: 0;
	border-radius: 9px;
	padding: 9px 12px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background 0.15s ease;
}

.jklks a.jklks-select:hover {
	background: #097A94;
	color: #fff;
	text-decoration: none;
}

.jklks-price .jklks-price-tier {
	color: var(--ink);
	font-weight: 600;
}

/* Wind alert: the door left open on a window that is too light ----- */

.jklks-alert-open {
	margin-top: auto;
	width: 100%;
	background: #fff;
	color: var(--teal-ink);
	border: 1px solid rgba(11, 139, 170, 0.45);
	border-radius: 9px;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jklks-alert-open:hover {
	background: rgba(11, 139, 170, 0.07);
	border-color: var(--teal);
}

.jklks-alert {
	margin: 0;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #F7F9FC;
	display: grid;
	gap: 6px;
}

.jklks-alert[hidden] {
	display: none;
}

.jklks-alert-head {
	margin: 0;
	font-size: 10.5px;
	line-height: 1.35;
	color: var(--muted);
}

.jklks-alert-head b {
	color: var(--ink);
}

.jklks-alert-field {
	display: block;
	font-size: 10px;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.jklks-alert-field span {
	display: block;
	margin-bottom: 2px;
}

.jklks-alert-field input {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 6px 8px;
	font-family: inherit;
	font-size: 12px;
	color: var(--ink);
}

.jklks-alert-field input:focus {
	outline: 2px solid rgba(11, 139, 170, 0.3);
	outline-offset: 0;
	border-color: var(--teal);
}

.jklks-alert-send {
	background: var(--teal);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 8px 10px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.jklks-alert-send:hover {
	background: #097A94;
}

.jklks-alert-send[disabled] {
	opacity: 0.6;
	cursor: default;
}

.jklks-alert-status {
	margin: 0;
	font-size: 10.5px;
	line-height: 1.35;
	color: var(--muted);
}

.jklks-alert-status.is-error {
	color: #B32D2E;
	font-weight: 600;
}

.jklks-alert-done {
	margin: 0;
	padding: 8px 10px;
	border-radius: 9px;
	background: rgba(11, 139, 170, 0.1);
	border: 1px solid rgba(11, 139, 170, 0.3);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--teal-ink);
}

/* What Windy's six days mean for a later window -------------------- */

.jklks-map-windy {
	display: block;
	margin-top: 3px;
	font-size: 10.5px;
	line-height: 1.35;
	font-weight: 600;
	color: #A8551B;
}

.jklks-map-windy[hidden] {
	display: none;
}

/* Theme and Elementor button styles also paint the wind alert controls:
   the same take-back as the Select button, so the outline stays readable. */

.jklks button.jklks-alert-open {
	background: #fff !important;
	color: #0A6E86 !important;
	border: 1px solid rgba(11, 139, 170, 0.55) !important;
	border-radius: 9px !important;
	padding: 9px 12px !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	box-shadow: none !important;
}

.jklks button.jklks-alert-open:hover {
	background: rgba(11, 139, 170, 0.07) !important;
	color: #0A6E86 !important;
	border-color: #0B8BAA !important;
}

.jklks button.jklks-alert-send {
	background: #0B8BAA !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 9px 12px !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
}

.jklks button.jklks-alert-send:hover {
	background: #097A94 !important;
	color: #fff !important;
}

.jklks button.jklks-alert-send[disabled] {
	opacity: 0.6 !important;
}

/* ================================================================
   Wind dial upgrade (v1.0.4): kite-dial.js redraws every dial with
   streamlines that run along the arrow — count, length, thickness,
   brightness and pace all read the card's own knots. The face, the
   needle and the flow carry the wingfoil calendar's tuned look.
   ================================================================ */

/* the flow: one ribbon per lane, head bright, tail already gone */
.jklks-wind .jklks-flow,
.jklks-wind-dial .jklks-flow {
	fill: none;
	stroke-linecap: round;
	stroke-dasharray: none;
	opacity: 0;
	animation: jklksd-stream calc(var(--flow-dur, 2s) * var(--sf, 1) * 0.909) linear infinite;
	animation-delay: var(--sdl, 0s);
}

@keyframes jklksd-stream {
	0% {
		transform: translateY(var(--st, 20px));
		opacity: 0;
	}
	16% {
		opacity: calc(var(--sp, 0.8) * 0.55);
	}
	74% {
		opacity: calc(var(--sp, 0.8) * 0.55);
	}
	84% {
		opacity: calc(var(--sp, 0.8) * 0.55);
	}
	100% {
		transform: translateY(calc(var(--st, 20px) * -1));
		opacity: 0;
	}
}

/* no dot on the arrow: the shaft reads as one line from tail to tip */
.jklks-hub {
	display: none !important;
}

/* day cards: opaque navy face, slim gold needle with a slow glow */
.jklks-day .jklks-dial-bg {
	fill: #16273F;
	stroke: rgba(255, 255, 255, 0.42);
	stroke-width: 1.1;
}

.jklks-day .jklks-needle {
	stroke: #FFD166;
	stroke-width: 1;
	animation: jklks-needle-pulse 2.6s ease-in-out infinite;
}

.jklks-day .jklks-needle-head {
	fill: #FFD166;
	stroke: #FFD166;
	stroke-width: 0.64;
}

/* slot rows keep the calendar's teal needle on the white card */
.jklks-slot .jklks-needle {
	stroke-width: 1;
}

.jklks-slot .jklks-needle-head {
	stroke-width: 0.64;
}

/* ==================================================================
   1.0.12 — the wing foil slot card, on the kite spots
   The middle band is three invisible columns (weather and umbrella ·
   the dial · the compass chip, its badge and the window range), the
   chart is the wing foil v1.0.31 U curve on this spot's own gold band,
   and the six chips are the wing foil set. Type, spacing and the two
   container steps are the wing foil calendar's own measurements, so a
   card reads the same on both calendars.
   ================================================================== */

.jklks-slot {
	container-type: inline-size;
}

/* --- the three-cell band ---------------------------------------- */

.jklks-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(min-content, 1.15fr);
	align-items: center;
	column-gap: 8px;
	min-width: 0;
}

/* first cell: the weather icon over the umbrella, the word over the mm */
.jklks-cell--wx {
	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;
}

.jklks-cell--wx .jklks-wx-visual--slot {
	grid-area: 1 / 1;
	justify-self: center;
}

.jklks-cell--wx .jklks-slot-cond {
	grid-area: 1 / 2;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	color: #4A5478;
	white-space: nowrap;
}

.jklks-cell--wx .jklks-rain-ico {
	grid-area: 2 / 1;
	justify-self: center;
	font-size: 14px;
	line-height: 1;
	color: var(--rain);
}

.jklks-cell--wx .jklks-slot-rain {
	grid-area: 2 / 2;
	justify-self: start;
	margin: 0;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	color: #4A5478;
	white-space: nowrap;
}

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

.jklks-cell--dial .jklks-wind-dial {
	width: 32px;
	height: 32px;
	transform: scale(1.44);
}

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

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

.jklks-cell--wind .jklks-compass {
	font-size: 11.5px;
	letter-spacing: 0.04em;
	padding: 1px 6px;
	border-radius: 5px;
}

.jklks-cell--wind .jklks-wind-sub {
	flex-basis: auto;
	font-size: 10.5px;
	line-height: 1.25;
	color: #97A0B8;
	white-space: nowrap;
	justify-self: start;
	text-align: left;
}

/* the direction badge: the beach's own angle for this wind */
.jklks-wind-tag {
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.03em;
	padding: 1px 8px;
	border: 1px solid transparent;
	border-radius: 20px;
	white-space: nowrap;
}

.jklks-wind-tag--onshore {
	background: #DCFCE7;
	border-color: #BBF7D0;
	color: #15803D;
}

.jklks-wind-tag--sideshore {
	background: #E0F2FE;
	border-color: #BAE6FD;
	color: #0369A1;
}

.jklks-wind-tag--offshore {
	background: #FEE2E2;
	border-color: #FECACA;
	color: #DC2626;
}

.jklks-wind-tag--gusty {
	background: #FEF3C7;
	border-color: #FDE68A;
	color: #B45309;
}

.jklks-wind-tag--wrong {
	background: #F1F5F9;
	border-color: #E2E8F0;
	color: #64748B;
}

/* --- the tide chart --------------------------------------------- */

.jklks-tide {
	display: block;
	margin: 4px 0 0;
}

.jklks-tide-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
	background: transparent;
}

.jklks-tide-svg text {
	font-family: inherit;
}

.jklks-tide-area {
	fill: rgba(11, 122, 158, 0.10);
}

.jklks-tide-line {
	fill: none;
	stroke: #0B7A9E;
	stroke-width: 1.9;
	stroke-linejoin: round;
	stroke-linecap: round;
}

/* the band's two edges: the dash-dot rule the owner drew through the words */
.jklks-tide-ref {
	fill: none;
	stroke: #D97706;
	stroke-opacity: 0.55;
	stroke-width: 1.05;
	stroke-dasharray: 4 2.5 1 2.5;
}

.jklks-tide-dot {
	fill: #0B7A9E;
	stroke: #FFFFFF;
	stroke-width: 1.6;
}

/* 1.0.15 swaps the two chart type styles: the high/low stamps take the
   session depth label's small blue dress, and .jklks-tide-cm (written by
   the script) takes the stamps' dark one. */
.jklks-tide-peak {
	font-size: 8px;
	font-weight: 600;
	fill: #0B7A9E;
	paint-order: stroke;
	stroke: #FFFFFF;
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.jklks-tide-peak--low {
	fill: #4B9CB8;
}

.jklks-tide-hour {
	font-size: 10px;
	font-weight: 600;
	fill: #64748B;
}

.jklks-tide-depth-label {
	fill-opacity: 0.94;
}

/* the water's floor line (1.0.14: the side walls are gone), 1px at every width */
.jklks-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;
}

/* the sentence under the chart */
.jklks-tide-eval {
	margin: 6px 0 0;
	font-size: 11.5px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.005em;
	color: #161D2C;
}

/* --- the six chips: three across, two once the card narrows ------ */

.jklks-factors {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.jklks-factor {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 0;
	padding: 5px 4px;
	text-align: center;
	white-space: nowrap;
	background: #F7F9FC;
	border: 1px solid #E3E8F1;
	border-radius: 8px;
}

.jklks-factor i {
	font-style: normal;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #5C6784;
}

.jklks-factor b {
	font-size: 12px;
	line-height: 1.25;
	font-weight: 700;
	color: #161D2C;
	font-variant-numeric: tabular-nums;
}

/* only the gust chip changes colour, and only its background */
.jklks-factor--stable {
	background: #EEF8F1;
	border-color: #CFE8D9;
}

.jklks-factor--gusty {
	background: #FFF7E6;
	border-color: #F0DCB4;
}

.jklks-factor--strong {
	background: #FDECE8;
	border-color: #F3C7BD;
}

/* --- a card between 240 and 300px of content --------------------- */

@container (max-width: 300px) {
	.jklks-band {
		column-gap: 6px;
	}

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

	.jklks-cell--dial .jklks-wind-dial {
		transform: scale(1.3);
	}

	.jklks-cell--wx .jklks-wx-visual--slot {
		width: 24px;
		height: 24px;
	}

	.jklks-cell--wx .jklks-slot-cond,
	.jklks-cell--wx .jklks-slot-rain {
		font-size: 10px;
	}

	.jklks-cell--wx .jklks-slot-cond {
		white-space: normal;
		line-height: 1.25;
	}

	.jklks-cell--wx .jklks-rain-ico {
		font-size: 12.5px;
	}

	.jklks-chips {
		gap: 4px;
	}

	.jklks-cell--wind .jklks-compass {
		font-size: 10.5px;
		padding: 1px 5px;
	}

	.jklks-wind-tag {
		font-size: 9.5px;
		padding: 1px 6px;
	}

	.jklks-cell--wind .jklks-wind-sub {
		font-size: 9.5px;
	}

	.jklks-factors {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jklks-tide-eval {
		font-size: 11px;
	}

	.jklks-tide-peak {
		font-size: 10.7px;
	}

	.jklks-tide-hour {
		display: none;
	}
}

/* --- a card the three columns cannot hold ----------------------- */

@container (max-width: 239px) {
	.jklks-band {
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: 4px;
	}

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

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

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