/*
 * Kingdom of Kindness - member pages.
 * Scott Stuart Web guidelines, compact scale: body 14px / 16px on phones,
 * controls 38px / 44px, one yellow action per screen, flat (no shadows).
 * Everything is scoped under .kok so the theme's own styles stay put.
 */
.kok {
	--kok-yellow: #F9E512;
	--kok-yellow-soft: #FDF7B8;
	--kok-ink: #000;
	--kok-text: #1A1A1A;
	--kok-muted: #4A5560;
	--kok-surface: #FFF;
	--kok-chrome: #F6F6F6;
	--kok-sky: #B9E3F3;
	--kok-lime: #D7FFB9;
	--kok-mint: #ECFEFE;
	--kok-navy: #22303B;
	--kok-line: #C9D3DB;
	--kok-off: #8A96A0;
	--kok-link: #5DBDEB;
	--kok-alert: #B42318;
	--kok-display: "Fraunces", Georgia, "Times New Roman", serif;
	--kok-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	font-family: var(--kok-sans);
	font-size: 14px;
	line-height: 1.65;
	color: var(--kok-text);
	box-sizing: border-box;
}
.kok *, .kok *::before, .kok *::after { box-sizing: inherit; }
.kok p, .kok h1, .kok h2, .kok h3, .kok ul, .kok ol, .kok fieldset, .kok legend { margin: 0; padding: 0; }
.kok ul, .kok ol { list-style: none; }
.kok img { max-width: 100%; height: auto; display: block; }
.kok fieldset { border: 0; min-width: 0; }

/* Type */
.kok-h1, .kok-h2, .kok-h3 { font-family: var(--kok-display); color: var(--kok-ink); letter-spacing: -0.01em; }
.kok-h1 { font-size: 44px; line-height: 1.05; font-weight: 900; }
.kok-h2 { font-size: 32px; line-height: 1.1; font-weight: 800; }
.kok-h3 { font-size: 20px; line-height: 1.2; font-weight: 800; }
.kok-lead { font-size: 18px; line-height: 1.7; }
.kok-small { font-size: 13px; }
.kok-muted { color: var(--kok-muted); }
.kok-eyebrow { display: block; font-size: 13px; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; color: var(--kok-text); }
.kok-mark { background: linear-gradient(var(--kok-yellow), var(--kok-yellow)) 0 88% / 100% 5px no-repeat; padding-bottom: 2px; }
.kok-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kok-center { text-align: center; justify-content: center; }

/* Links: black text, sky dotted underline */
.kok a.kok-link, .kok button.kok-link {
	color: var(--kok-ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
	text-decoration: underline dotted var(--kok-link); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.kok a.kok-link:hover, .kok button.kok-link:hover { text-decoration-style: solid; }

/* Buttons */
.kok .kok-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 38px; padding: 0 18px; border: 0; border-radius: 5px;
	background: var(--kok-yellow); color: var(--kok-ink);
	font: 500 14px/1.2 var(--kok-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.kok .kok-btn:hover { filter: brightness(.96); }
.kok .kok-btn:focus-visible, .kok input:focus-visible, .kok select:focus-visible, .kok summary:focus-visible, .kok .kok-picker:focus-visible { outline: 3px solid var(--kok-yellow); outline-offset: 2px; }
.kok .kok-btn-lg { min-height: 48px; padding: 0 30px 0 24px; font-size: 16px; }
.kok .kok-btn-sm { min-height: 30px; padding: 0 12px; font-size: 13px; }
.kok .kok-btn-o { background: transparent; box-shadow: inset 0 0 0 2px var(--kok-ink); font-size: 13px; }
.kok-band-navy .kok-btn-o { box-shadow: inset 0 0 0 2px #FFF; color: #FFF; }
.kok-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Surfaces */
.kok-box { border: 2px solid var(--kok-ink); border-radius: 8px; background: var(--kok-surface); }
.kok-card { border: 2px solid var(--kok-line); border-radius: 8px; background: var(--kok-surface); padding: 20px; }
.kok-card-ink { border-color: var(--kok-ink); }
.kok-pad { padding: 20px; }
.kok-pad-lg { padding: 26px; }
.kok-radius { border-radius: 8px; }
.kok-band-sky { background: var(--kok-sky); }
.kok-band-lime { background: var(--kok-lime); }
.kok-band-mint { background: var(--kok-mint); }
.kok-band-navy { background: var(--kok-navy); color: #FFF; }
.kok-band-navy .kok-h1, .kok-band-navy .kok-lead, .kok-band-navy .kok-eyebrow { color: #FFF; }
.kok-stack { display: flex; flex-direction: column; gap: 14px; }
.kok-stack-sm { display: flex; flex-direction: column; gap: 6px; }
.kok-stack-lg { display: flex; flex-direction: column; gap: 26px; }
.kok-row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.kok-read { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.kok-narrow { max-width: 560px; margin: 0 auto; }
.kok-two { display: flex; flex-wrap: wrap; gap: 20px; }
.kok-two > * { flex: 1 1 240px; }
.kok-notice { background: var(--kok-yellow-soft); border-radius: 5px; padding: 10px 14px; color: var(--kok-ink); }
.kok-placeholder { display: flex; flex-direction: column; gap: 2px; border: 2px dashed var(--kok-off); border-radius: 8px; padding: 16px 20px; color: var(--kok-muted); }
.kok-placeholder strong { color: var(--kok-ink); }

/* Tags and chips */
.kok-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kok-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 5px; background: var(--kok-chrome); color: var(--kok-ink); font-size: 12px; }
.kok-tag-yellow { background: var(--kok-yellow); }
.kok-tag-lime { background: var(--kok-lime); }
.kok-tag-sky { background: var(--kok-sky); }
.kok-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kok-chip { position: relative; cursor: pointer; }
.kok-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kok-chip span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--kok-line); font-size: 12px; color: var(--kok-ink); }
.kok-chip input:checked + span { background: var(--kok-yellow); box-shadow: none; }
.kok-chip input:focus-visible + span { outline: 3px solid var(--kok-yellow); outline-offset: 2px; }

/* Forms */
.kok-field { display: flex; flex-direction: column; gap: 6px; }
.kok-field label, .kok-field legend { font-size: 13px; font-weight: 500; color: var(--kok-ink); }
.kok-field input[type=text], .kok-field select {
	min-height: 38px; padding: 0 12px; border: 2px solid var(--kok-ink); border-radius: 5px;
	font: 400 14px/1.2 var(--kok-sans); color: var(--kok-text); background: #FFF; max-width: 100%;
}
.kok-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.kok-hint { font-size: 12px; color: var(--kok-muted); }
.kok-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.kok-swatch { position: relative; cursor: pointer; }
.kok-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.kok-swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--kok-av); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.kok-swatch input:checked + span { box-shadow: 0 0 0 3px #FFF, 0 0 0 5px var(--kok-ink); }
.kok-swatch input:focus-visible + span { outline: 3px solid var(--kok-yellow); outline-offset: 6px; }

/* Avatars */
.kok-av { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--kok-av, var(--kok-yellow)); color: var(--kok-ink); font-family: var(--kok-display); font-weight: 900; line-height: 1; }
.kok-av-add { width: 96px; height: 96px; font-size: 40px; background: #FFF; box-shadow: inset 0 0 0 2px var(--kok-line); font-family: var(--kok-sans); font-weight: 400; }

/* Greeting */
.kok-greeting { display: flex; align-items: flex-end; gap: 20px; }
.kok-hello { flex: 1; font-size: 52px; }
.kok-greet-art { width: 150px; height: auto; margin-bottom: -6px; }
.kok-daybadge { width: 88px; height: 88px; border: 2px solid var(--kok-ink); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.kok-daybadge span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.kok-daybadge b { font-family: var(--kok-display); font-weight: 900; font-size: 34px; line-height: 1; }

/* Today's mission card */
.kok-mcard { display: flex; flex-wrap: wrap; gap: 26px; padding: 26px; align-items: stretch; }
.kok-mcard-text { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.kok-mcard-text .kok-h2 { font-size: 38px; }
.kok-mcard-pic { flex: 1 1 360px; display: flex; }
.kok-mcard-pic img, .kok-art-ph { width: 100%; border: 2px solid var(--kok-ink); border-radius: 8px; object-fit: cover; aspect-ratio: 1000 / 560; }
.kok-art-ph { display: grid; place-items: center; background: var(--kok-mint); font-family: var(--kok-display); font-weight: 900; font-size: 30px; }
.kok-rest { display: flex; gap: 26px; align-items: center; justify-content: space-between; padding: 26px; border: 0; }
.kok-rest > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.kok-moon { width: 120px; height: 120px; border-radius: 50%; background: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.kok-moon span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.kok-moon b { font-family: var(--kok-display); font-weight: 900; font-size: 44px; line-height: 1; }

/* Progress */
.kok-progress .kok-box { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.kok-rings { display: flex; gap: 10px; justify-content: space-around; }
.kok-rings li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1 1 0; min-width: 0; }
.kok-ring { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--kok-ink); display: grid; place-items: center; font-family: var(--kok-display); font-weight: 900; font-size: 30px; line-height: 1; }
.kok-ring.is-hot { background: var(--kok-yellow); border-color: var(--kok-yellow); }

/* Mission */
.kok-flowbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kok-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kok-stepper li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--kok-muted); }
.kok-stepper i { display: block; height: 6px; border-radius: 3px; background: var(--kok-line); }
.kok-stepper .is-done i { background: var(--kok-ink); }
.kok-stepper .is-now i { background: var(--kok-yellow); }
.kok-stepper .is-now { color: var(--kok-ink); font-weight: 500; }
.kok-stephead { display: flex; flex-direction: column; gap: 8px; }
.kok-stepform { display: flex; flex-direction: column; gap: 26px; }
.kok-ill { width: 100%; border-radius: 8px; aspect-ratio: 1000 / 520; object-fit: cover; }
.kok-jeff-says { border-radius: 8px; padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kok-jeff-says p { flex: 1 1 200px; }
.kok-story { display: flex; flex-direction: column; gap: 16px; }
.kok-story p { margin: 0; }
.kok-feelcards { display: flex; flex-wrap: wrap; gap: 20px; }
.kok-feelcard { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.kok-feelhead { display: flex; align-items: center; gap: 14px; float: left; width: 100%; margin-bottom: 14px; }
.kok-feelhead + * { clear: both; }
.kok-feelhead img, .kok-portrait-ph { width: 72px; height: 72px; border-radius: 50%; background: var(--kok-mint); object-fit: cover; flex-shrink: 0; }
.kok-question { font-family: var(--kok-display); font-weight: 800; font-size: 30px; line-height: 1.15; color: var(--kok-ink); }
.kok-timer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.kok-timer-num { font-family: var(--kok-display); font-weight: 900; font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.kok-navrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 6px; border-top: 2px solid var(--kok-chrome); }

/* Listen: plain audio player until kok.js upgrades it */
.kok-listen audio { height: 38px; max-width: 100%; }
.kok .kok-listen-btn { gap: 8px; }
.kok-listen-btn svg { width: 16px; height: 16px; }

/* Dance party */
.kok-party { position: relative; overflow: hidden; border-radius: 8px; padding: 52px 24px 76px; }
.kok-party-in { position: relative; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.kok-jeffrey-dance { width: 220px; height: 220px; border-radius: 50%; background: #151E26; display: grid; place-items: center; color: var(--kok-off); font-size: 12px; animation: kok-boogie .9s ease-in-out infinite; transform-origin: 50% 90%; }
.kok-lesson { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.08); border-radius: 8px; padding: 14px 20px; }
.kok-party .kok-tags { justify-content: center; }
.kok-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: kok-fall 3.6s linear infinite; }
.kok-confetti i:nth-child(6n+1) { background: #F9E512; } .kok-confetti i:nth-child(6n+2) { background: #B9E3F3; } .kok-confetti i:nth-child(6n+3) { background: #D7FFB9; }
.kok-confetti i:nth-child(6n+4) { background: #F28BB8; } .kok-confetti i:nth-child(6n+5) { background: #B79BE0; } .kok-confetti i:nth-child(6n) { background: #FDA15E; }
.kok-confetti i:nth-child(4n+1) { animation-duration: 3.1s; } .kok-confetti i:nth-child(4n+2) { animation-duration: 4.2s; } .kok-confetti i:nth-child(4n+3) { animation-duration: 3.6s; } .kok-confetti i:nth-child(4n) { animation-duration: 4.8s; }
.kok-confetti i:nth-child(1){left:3%;animation-delay:-.2s} .kok-confetti i:nth-child(2){left:11%;animation-delay:-1.9s} .kok-confetti i:nth-child(3){left:19%;animation-delay:-.8s} .kok-confetti i:nth-child(4){left:27%;animation-delay:-2.6s}
.kok-confetti i:nth-child(5){left:35%;animation-delay:-1.1s} .kok-confetti i:nth-child(6){left:43%;animation-delay:-3.2s} .kok-confetti i:nth-child(7){left:51%;animation-delay:-.5s} .kok-confetti i:nth-child(8){left:59%;animation-delay:-2.1s}
.kok-confetti i:nth-child(9){left:67%;animation-delay:-1.4s} .kok-confetti i:nth-child(10){left:75%;animation-delay:-2.9s} .kok-confetti i:nth-child(11){left:83%;animation-delay:-.1s} .kok-confetti i:nth-child(12){left:91%;animation-delay:-1.7s}
.kok-confetti i:nth-child(13){left:7%;animation-delay:-3.5s} .kok-confetti i:nth-child(14){left:15%;animation-delay:-.9s} .kok-confetti i:nth-child(15){left:23%;animation-delay:-2.3s} .kok-confetti i:nth-child(16){left:31%;animation-delay:-1.6s}
.kok-confetti i:nth-child(17){left:39%;animation-delay:-.4s} .kok-confetti i:nth-child(18){left:47%;animation-delay:-2.7s} .kok-confetti i:nth-child(19){left:55%;animation-delay:-1.2s} .kok-confetti i:nth-child(20){left:63%;animation-delay:-3.4s}
.kok-confetti i:nth-child(21){left:71%;animation-delay:-.7s} .kok-confetti i:nth-child(22){left:79%;animation-delay:-2.2s} .kok-confetti i:nth-child(23){left:87%;animation-delay:-1.3s} .kok-confetti i:nth-child(24){left:95%;animation-delay:-3s}
@keyframes kok-boogie { 0%,100% { transform: translateY(0) rotate(-6deg); } 25% { transform: translateY(-18px) rotate(4deg); } 50% { transform: translateY(0) rotate(6deg); } 75% { transform: translateY(-12px) rotate(-4deg); } }
@keyframes kok-fall { 0% { transform: translateY(-40px) rotate(0); } 100% { transform: translateY(700px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .kok-jeffrey-dance, .kok-confetti i { animation: none; } }

/* Who's playing */
.kok-pickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.kok .kok-picker { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 160px; padding: 20px 12px; border: 2px solid var(--kok-line); border-radius: 8px; background: #FFF; font: inherit; color: var(--kok-ink); text-decoration: none; cursor: pointer; }
.kok .kok-picker:hover { border-color: var(--kok-ink); }
.kok-picker-add { border-style: dashed !important; }

/* Settings */
.kok-child-row { border-top: 2px solid var(--kok-chrome); padding-top: 12px; }
.kok-child-row summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 44px; }
.kok-child-row summary::-webkit-details-marker { display: none; }
.kok-child-row .kok-edit { margin-left: auto; }
.kok-child-row form { padding: 12px 0 0 42px; }
.kok-danger { margin-top: 12px; }

/* Header switcher */
.kok-switch { display: inline-flex; align-items: center; gap: 10px; }
.kok-switch-me { display: inline-flex; align-items: center; gap: 8px; color: var(--kok-ink); text-decoration: none; font-weight: 500; }
.kok-switch form { margin: 0; }

/* Phones */
@media (max-width: 640px) {
	.kok { font-size: 16px; }
	.kok-h1 { font-size: 34px; }
	.kok-h2 { font-size: 26px; }
	.kok-hello { font-size: 34px; }
	.kok-greet-art { display: none; }
	.kok-daybadge { width: 68px; height: 68px; }
	.kok-daybadge b { font-size: 26px; }
	.kok-mcard { padding: 16px; gap: 16px; }
	.kok-mcard-text .kok-h2 { font-size: 28px; }
	.kok-mcard-pic { order: -1; }
	.kok-rest { flex-direction: column; align-items: flex-start; padding: 20px; }
	.kok-moon { display: none; }
	.kok-ring { width: 68px; height: 68px; font-size: 22px; }
	.kok .kok-btn { min-height: 44px; font-size: 15px; }
	.kok .kok-btn-sm { min-height: 40px; font-size: 14px; }
	.kok-chip span, .kok-tag { min-height: 40px; font-size: 14px; }
	.kok-field input[type=text], .kok-field select { min-height: 44px; font-size: 16px; }
	.kok-question { font-size: 24px; }
	.kok-stepper span { display: none; }
	.kok-navrow { position: sticky; bottom: 0; background: #FFF; padding: 12px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
	.kok-navrow .kok-btn:last-child { flex: 1; }
	.kok .kok-picker { width: calc(50% - 10px); }
	.kok-party { padding: 38px 16px 52px; }
	.kok-jeffrey-dance { width: 160px; height: 160px; }
	.kok-child-row form { padding-left: 0; }
}

/* Login page: PMPro's login form in the Kingdom brand (Settings > Look and feel) */
body.kok-login .pmpro_login_wrap, body.kok-login .pmpro_lost_password_wrap { max-width: 440px; margin: 0 auto; font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #1A1A1A; }
body.kok-login .pmpro_card { border: 2px solid #000; border-radius: 8px; box-shadow: none; }
body.kok-login .pmpro_card_title, body.kok-login .pmpro_login_wrap h2 { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 32px; line-height: 1.1; color: #000; }
body.kok-login .pmpro_login_wrap input[type=text], body.kok-login .pmpro_login_wrap input[type=password], body.kok-login .pmpro_login_wrap input[type=email] { min-height: 38px; border: 2px solid #000; border-radius: 5px; padding: 0 12px; font-size: 14px; box-shadow: none; }
body.kok-login .pmpro_login_wrap input:focus { outline: 3px solid #F9E512; outline-offset: 2px; }
body.kok-login .pmpro_login_wrap input[type=submit], body.kok-login .pmpro_login_wrap .pmpro_btn { min-height: 38px; border: 0; border-radius: 5px; background: #F9E512; color: #000; font: 500 14px/1.2 "DM Sans", Arial, sans-serif; box-shadow: none; padding: 0 18px; }
body.kok-login .pmpro_login_wrap a { color: #000; text-decoration: underline dotted #5DBDEB; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 640px) {
	body.kok-login .pmpro_login_wrap input[type=text], body.kok-login .pmpro_login_wrap input[type=password] { min-height: 44px; font-size: 16px; }
	body.kok-login .pmpro_login_wrap input[type=submit] { min-height: 44px; width: 100%; font-size: 15px; }
}
