/* CHiP client check-in screen (touchscreen, mouse and keyboard). Page-only styles: every class starts with k-.
   Shared colors and fonts come from css/site.css. Built for a landscape screen (about 1280x720 up to 1920x1080) that fits without scrolling;
   narrow or portrait screens stack the three sections and scroll. */
body.ki{background:#E9F0E7;color:var(--ink);-webkit-text-size-adjust:100%}
.ki .stage{display:none!important}
.k-noscript{padding:16px;margin:0;background:#FFF4E3}
.k-page{min-height:100vh;min-height:100dvh;display:grid;grid-template-rows:auto auto minmax(min-content,1fr) auto auto;gap:clamp(6px,1.1vh,12px);padding:clamp(8px,1.4vh,14px) clamp(10px,1.5vw,28px) clamp(6px,1vh,10px);max-width:2400px;margin:0 auto}
.k-page button{font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* Top bar: logo and title, name, date */
.k-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(12px,2vw,36px);align-items:center;background:#fff;border-radius:18px;padding:clamp(6px,1vh,12px) clamp(12px,1.4vw,22px);box-shadow:0 2px 10px rgba(23,48,27,.08)}
.k-brand{display:flex;align-items:center;gap:clamp(10px,1.2vw,18px)}
.k-logo{display:block;color:#1E5D22}
.k-logo svg{display:block;height:clamp(40px,6.6vh,64px);width:auto}
.k-brand h1{font-size:clamp(20px,3.1vh,32px);line-height:1.1;letter-spacing:-.4px;white-space:nowrap}
.k-name{display:flex;align-items:center;gap:12px;min-width:0}
.k-name label{font:700 clamp(16px,2.3vh,21px)/1.1 'Poppins',sans-serif;white-space:nowrap}
.k-name input{flex:1;min-width:0;height:clamp(48px,7.2vh,66px);border:2px solid #8DA38F;border-radius:12px;padding:0 16px;font:600 clamp(20px,3.1vh,29px) 'Nunito Sans',system-ui,sans-serif;color:var(--ink);background:#fff}
.k-name input::placeholder{color:#5F7363;font-weight:400}
.k-date{background:#F1F5EE;border-radius:12px;padding:clamp(6px,1vh,10px) clamp(12px,1.2vw,18px);font:600 clamp(15px,2.1vh,19px)/1.2 'Nunito Sans',sans-serif;white-space:nowrap}
.k-date small{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut2);margin-bottom:2px}
.k-info{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 24px;font-size:clamp(12px,1.7vh,15px);color:var(--mut);padding:0 4px}
.k-eyebrow{font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.88em}

/* Three sections */
.k-main{display:grid;grid-template-columns:2fr 2fr 1fr;gap:clamp(8px,1vw,14px);min-height:0}
.k-panel{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff;border-radius:18px;padding:clamp(6px,1vh,10px);box-shadow:0 2px 10px rgba(23,48,27,.08)}
.k-bar{display:flex;align-items:center;gap:10px;background:var(--accent);color:#fff;padding:clamp(5px,.9vh,9px) 12px;border-radius:12px}
.k-bar h2{font:700 clamp(14px,2vh,20px)/1.15 'Poppins',sans-serif;color:#fff;margin:0;letter-spacing:.01em}
.k-step{display:grid;place-items:center;flex:none;width:clamp(24px,3.3vh,32px);height:clamp(24px,3.3vh,32px);border:1.5px solid rgba(255,255,255,.65);border-radius:50%;font:700 clamp(13px,1.8vh,17px) 'Poppins',sans-serif}
.k-guide{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:2px 12px;font-size:clamp(12px,1.75vh,16px);color:var(--mut);margin:clamp(4px,.8vh,8px) 2px clamp(4px,.8vh,8px)}
.k-ex{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.k-mini{display:inline-grid;place-items:center;width:1.7em;height:1.7em;border:1.5px solid currentColor;background:#fff;border-radius:4px;font-weight:700;font-style:italic;line-height:1}
.k-tiles{flex:1;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-auto-rows:minmax(56px,1fr);gap:clamp(6px,.9vh,10px);min-height:0}

/* Tiles */
.k-card{display:flex;align-items:center;gap:clamp(5px,.7vw,12px);width:100%;min-width:0;min-height:0;padding:3px clamp(6px,.7vw,12px);text-align:left;color:var(--ink);background:var(--pale);border:2px solid #CBD6CA;border-radius:14px;cursor:pointer;overflow:hidden;user-select:none;-webkit-user-select:none}
.k-card:active{transform:scale(.985)}
@media (hover:hover){.k-card:hover{border-color:var(--accent)}}
.k-card.sel{border-color:var(--accent);background:var(--selected)}
.k-icon{flex:none;width:clamp(28px,min(5.2vh,2.4vw),52px);height:clamp(28px,min(5.2vh,2.4vw),52px);color:var(--accent);stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.k-label{flex:1;min-width:0;overflow-wrap:break-word;font:700 clamp(14px,min(2.25vh,1.2vw),19px)/1.15 'Nunito Sans',system-ui,sans-serif}
.k-label small{display:block;margin-top:3px;font-size:.78em;font-weight:600;color:var(--mut2)}
.k-box{flex:none;width:clamp(38px,min(7vh,3.4vw),60px);height:clamp(38px,min(7vh,3.4vw),60px);display:grid;place-items:center;background:#fff;border:2px solid #7E98A6;border-radius:9px;font:700 clamp(20px,3.2vh,30px) 'Poppins',sans-serif;color:var(--accent)}
.k-card.sel .k-box{border-color:var(--accent)}
.k-wm{color:#8D9D93;font:800 clamp(9px,1.3vh,12px)/1.05 'Poppins',sans-serif;text-align:center;letter-spacing:-.2px}
.k-hours{background:repeating-linear-gradient(135deg,#E9F2E9,#E9F2E9 8px,#DCE9DC 8px,#DCE9DC 10px)}
.k-hours.sel{background:var(--selected)}
.k-note{display:flex;align-items:center;justify-content:center;padding:6px;font-size:clamp(12px,1.8vh,16px);font-weight:700;color:var(--mut2);text-align:center}

/* Bottom bar */
.k-foot{display:flex;align-items:center;gap:clamp(10px,1.5vw,24px)}
.k-msg{flex:1;min-width:0;text-align:center}
.k-hint{font-size:clamp(12px,1.75vh,15px);color:var(--mut)}
.k-error{color:#B3261E;font-weight:700;font-size:clamp(14px,2vh,18px)}
.k-error:empty{display:none}
.k-clear{min-height:clamp(48px,7vh,62px);padding:0 clamp(14px,1.6vw,26px);border:2px solid #A9BBAA;border-radius:12px;background:#fff;color:var(--mut);font-size:clamp(14px,2vh,17px);font-weight:700;cursor:pointer}
.k-submit{flex:none;min-width:clamp(240px,26vw,460px);min-height:clamp(54px,8vh,72px);font-size:clamp(18px,2.8vh,26px);border-radius:16px}
.k-submit:disabled{opacity:.7;cursor:wait}
.k-fine{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--mut2);padding:0 4px}
.k-fine a{color:var(--mut2)}
.k-fine span:not(:empty){font-weight:700;color:#8F3C05}
.k-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* Dialogs: number pad, thank-you, start over */
.k-dlg{border:0;border-radius:24px;box-shadow:0 20px 90px rgba(11,37,59,.35);padding:clamp(18px,3vh,28px);width:min(460px,92vw);color:var(--ink);background:#fff}
.k-dlg::backdrop{background:rgba(16,44,66,.65)}
.k-dlg h2{font-size:clamp(22px,3.4vh,29px);margin:0 0 6px}
.k-dp{color:var(--mut);font-size:17px}
.k-numshow{min-height:clamp(52px,8vh,70px);display:flex;align-items:center;justify-content:center;font:700 clamp(32px,5.4vh,46px) 'Poppins',sans-serif;border:2px solid #8DA38F;border-radius:12px;margin:12px 0;background:#F8FAF6}
.k-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.k-keys button{min-height:clamp(54px,9vh,80px);background:#EEF3EC;border:1px solid #BFCDBF;border-radius:12px;font-size:clamp(24px,3.8vh,32px);font-weight:700;color:var(--ink);cursor:pointer}
.k-keys button:active{background:#DCE8D9}
.k-actions{display:flex;gap:10px;margin-top:14px}
.k-actions button{flex:1;min-height:clamp(52px,7.5vh,64px);padding:0 12px;border:0;border-radius:12px;font-weight:700;font-size:19px;cursor:pointer}
.k-actions button[hidden]{display:none}
.k-b1{background:var(--g);color:#fff}
.k-b2{background:#EAEFE8;color:var(--ink)}
.k-success{text-align:center;width:min(540px,92vw)}
.k-check{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 14px;border:3px solid var(--g);background:#E6F4EF;color:var(--o);border-radius:16px;font-size:44px}

/* Name keyboard (screen keys, docked at the bottom of the screen) */
.k-name input[readonly]{cursor:pointer;caret-color:transparent}
.k-dlg button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.k-kbdlg{width:min(1180px,98vw);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);margin:auto auto clamp(6px,1.6vh,16px);padding:clamp(10px,1.8vh,18px) clamp(12px,1.6vw,22px);overflow:auto}
.k-kbhead{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 16px}
.k-kbhead h2{margin:0 0 4px}
.k-kbhead .k-dp{margin:0}
.k-kbshow{justify-content:flex-start;margin:clamp(6px,1vh,10px) 0 clamp(8px,1.2vh,12px);padding:4px 18px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font-size:clamp(26px,4.4vh,40px)}
.k-kbshow::after{content:'';flex:none;width:3px;height:1.05em;margin-left:3px;background:var(--ink);animation:k-blink 1.1s steps(1) infinite}
@keyframes k-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.k-kbshow::after{animation:none}}
.k-kbshow:focus{outline:none}
.k-kbkeys{display:grid;gap:clamp(6px,1.1vh,10px)}
.k-kr{display:flex;gap:clamp(5px,.8vw,10px)}
.k-kk{flex:1 1 0;min-width:0;min-height:clamp(46px,7.4vh,68px);padding:0;background:#EEF3EC;border:1px solid #BFCDBF;border-radius:12px;font:700 clamp(21px,3.4vh,30px) 'Nunito Sans',system-ui,sans-serif;color:var(--ink);cursor:pointer;user-select:none;-webkit-user-select:none}
.k-kk:active{background:#DCE8D9}
.k-kk.on{background:#DCEEDD;border-color:#386847}
.k-kw{flex-grow:1.7}
.k-kk.k-ka{background:#EAEFE8;font-size:clamp(16px,2.4vh,21px)}
.k-ks{flex-grow:5.2}
.k-kk.k-kd{flex-grow:2.2;background:var(--g);border-color:var(--g);color:#fff;font-size:clamp(18px,2.8vh,24px)}
.k-kk.k-kd:active{filter:brightness(.9)}

/* Staff sign-in lock screen */
.k-lockdlg{text-align:center;width:min(520px,92vw)}
.k-lockdlg::backdrop{background:rgba(233,240,231,.97)}
.k-lockdlg .k-error{margin:10px 0 0}
.k-soft{margin:12px 0 0;padding:12px 14px;border:1px solid #E8C98E;border-radius:12px;background:var(--warm);color:var(--ink);font-size:16px;font-weight:600;line-height:1.5;text-align:left}
.k-soft:empty{display:none}
.k-lockdlg .k-actions{margin-top:16px}
.k-lockhint{margin-top:14px;font-size:15px}
.k-lockhint a{color:var(--mut2)}
.k-linkbtn{margin:-6px 0;padding:6px 10px;background:none;border:0;font:inherit;color:var(--mut2);text-decoration:underline;cursor:pointer}

/* Narrow or portrait screens: stack the sections and let the page scroll */
@media (max-width:1100px),(orientation:portrait){
  .k-top{grid-template-columns:1fr;gap:8px}
  .k-brand{justify-content:space-between}
  .k-brand h1{white-space:normal;font-size:clamp(20px,4vw,30px)}
  .k-date{align-self:start}
  .k-main{grid-template-columns:1fr}
  .k-tiles{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-auto-rows:minmax(84px,auto)}
  .k-card{padding-top:8px;padding-bottom:8px}
  .k-icon{width:44px;height:44px}
  .k-label{font-size:clamp(16px,2.6vw,19px)}
  .k-box{width:56px;height:56px;font-size:28px}
  .k-wm{font-size:11px}
  .k-guide,.k-info,.k-hint{font-size:15px}
  .k-bar h2{font-size:18px}
  .k-step{width:30px;height:30px;font-size:16px}
  .k-foot{flex-wrap:wrap}
  .k-msg{order:3;flex-basis:100%}
  .k-submit{flex:1}
}
@media (max-width:640px){
  .k-tiles{grid-template-columns:minmax(0,1fr)}
  .k-name{flex-direction:column;align-items:stretch;gap:4px}
  .k-kr{gap:4px}
  .k-kk.k-ka{font-size:13px;padding:0 2px}
  .k-kk.k-kd{font-size:16px;white-space:nowrap}
}
@media print{.k-page{display:none}}
/* Test site only: Wix's free-plan "Built on Wix Headless" badge floats over the bottom-right corner, so leave room under the Submit button. Not applied on the live site. */
body.k-staging .k-page{padding-bottom:48px}

/* Summary shown after a form is saved (easy to read for the volunteer; prints on its own) */
body.k-sumon .k-page{display:none}
.k-sum{max-width:760px;margin:0 auto;padding:24px 16px 40px}
.k-sum-card{background:#fff;border-radius:24px;box-shadow:0 10px 40px rgba(11,37,59,.15);padding:clamp(20px,4vw,40px);color:#111}
.k-sum-eyebrow{margin:0;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:14px;color:#21658A}
.k-sum h1{font-size:clamp(30px,5vw,42px);margin:4px 0 14px}
.k-sum-name{font-size:clamp(28px,5vw,40px);font-weight:800;margin:0}
.k-sum-when{font-size:20px;color:#4b5563;margin:4px 0 18px}
.k-sum-list h3{font-size:22px;margin:20px 0 8px;padding-bottom:6px;border-bottom:2px solid #e5e7eb}
.k-sum-list ul{list-style:none;margin:0;padding:0}
.k-sum-list li{display:flex;align-items:center;gap:16px;font-size:24px;padding:10px 0;border-bottom:1px solid #f1f5f9}
.k-sum-q{flex:none;min-width:56px;height:48px;display:grid;place-items:center;border-radius:10px;background:#E6F4EF;font-weight:800;font-size:24px}
.k-sum-note{font-size:18px;color:#4b5563;margin:20px 0 0}
.k-sum-actions{display:flex;gap:12px;margin-top:22px}
.k-sum-actions button{flex:1;min-height:64px;border:0;border-radius:12px;font-weight:700;font-size:20px;cursor:pointer}
.k-count{font-size:20px}
@media print{body.k-sumon>*:not(#summary){display:none!important}body.k-sumon #summary{display:block!important;padding:0;max-width:none}.k-sum-card{box-shadow:none!important;padding:0!important}.k-sum-actions{display:none!important}}
/* Edit mode: the volunteer reopened a finished check-in from the summary */
.k-edithint{margin:0 0 4px;font-weight:700;color:#8A590B}.k-edithint:empty{display:none}
body.k-editing .k-top{box-shadow:0 0 0 4px #F2B233 inset;border-radius:12px}
body.k-editing .k-submit{background:#8A590B!important;border-color:#8A590B!important}
#sumerr:empty{display:none}#sumerr{margin-top:12px}