/* Private contribution composition, shared form controls and staff pages. Solemn palette tokens come from the page. */
.kk-form{font:16px/1.55 Arial,sans-serif;color:var(--ink)}
.kk-form .section{padding:20px 0 4px;border-top:1px solid var(--line);margin-top:8px}
.kk-form fieldset{border:0;padding:0;margin:0;min-width:0}
.kk-form fieldset.section>legend,.kk-form h3{font:400 22px/1.3 Georgia,serif;margin:0 0 12px;padding:0;color:var(--ink)}
.kk-form fieldset.section>legend{padding-inline-end:8px}
.kk-form label{display:block;margin:14px 0 6px;line-height:1.5}
.kk-form#draftForm label.check{display:flex;flex-direction:row;text-align:left;gap:12px;align-items:flex-start;margin:14px 0}
.kk-form#draftForm label.check input{width:22px;flex-basis:22px;height:22px;flex-shrink:0;margin:2px 0;accent-color:var(--action-bg,#24362f)}
.kk-form input:not([type=checkbox]):not([type=file]),.kk-form textarea,.kk-form select{display:block;width:100%;min-height:48px;padding:11px 12px;font:16px/1.5 Arial,sans-serif;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:4px;min-width:0}
.kk-form textarea{min-height:150px;resize:vertical}
.kk-form input[aria-invalid="true"],.kk-form textarea[aria-invalid="true"],.kk-form select[aria-invalid="true"]{border-color:var(--error,#8b342b);border-width:2px}
.kk-form .help,.kk-form .subtle{font-size:14px;line-height:1.5;color:var(--muted);margin:6px 0 0}
.kk-form .field-error{font-size:15px;line-height:1.5;font-weight:700;color:var(--ink);margin:6px 0 0}.kk-form .field-error:empty{display:none}
.kk-form .field-error::before{content:"! ";font-weight:700}
.kk-form .notice{border-left:3px solid var(--gold);padding:12px 16px;background:var(--surface);margin:0 0 16px;line-height:1.5}
.kk-form .notice.error{border-left-color:var(--error,#8b342b)}
.kk-form .notice.error ul{margin:8px 0 0;padding-left:20px}.kk-form .notice.error a{text-decoration:underline;text-underline-offset:3px;color:inherit}
.kk-form .badge{display:inline-block;font-size:13px;border:1px solid var(--line);padding:4px 9px;border-radius:20px;margin-top:8px;color:var(--muted)}
.kk-form .date{border:1px solid var(--line);padding:14px;margin:12px 0 16px;border-radius:4px}
.kk-form .date legend{padding:0 6px;font-size:16px}
.kk-form .date .parts{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,1fr);gap:10px}
.kk-form .date .parts label{margin-top:8px}
.kk-form .date .parts>div{min-width:0}
.kk-form .actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 8px}
.kk-form button,.kk-button{min-height:44px;padding:10px 16px;font:16px/1.5 Arial,sans-serif;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px;cursor:pointer}
.kk-form button.primary,.kk-button.primary{background:var(--action-bg,#24362f);color:var(--action-ink,#eeeae1);border-color:var(--action-bg,#24362f)}
.kk-form button:disabled,.kk-button:disabled{opacity:1;color:var(--muted);background:var(--surface);border-color:var(--line);cursor:default}
.kk-form button:focus-visible,.kk-button:focus-visible,.kk-form input:focus-visible,.kk-form textarea:focus-visible,.kk-form select:focus-visible,.kk-form a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.kk-form .picker{position:relative;display:inline-flex;align-items:center;max-width:100%;min-height:44px;padding:10px 16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px;cursor:pointer}
.kk-form .picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;border:0}
.kk-form .picker:focus-within{outline:3px solid var(--gold);outline-offset:3px}
.kk-form .picker input[type=file]:disabled{cursor:default}.kk-form .picker:has(input:disabled){color:var(--muted)}
.kk-form .photo-frame{margin:12px 0}
.kk-form .photo-frame img{display:block;max-width:100%;max-height:220px;width:auto;height:auto;object-fit:contain;background:var(--surface);border:1px solid var(--line);border-radius:4px;margin-bottom:10px}
.kk-form .person-results{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;max-height:320px;overflow:auto}
.kk-form .person-results button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:8px 10px;min-height:56px}
.kk-form .person-results img{width:40px;height:50px;object-fit:cover;background:var(--surface);border-radius:4px;flex-shrink:0}
.kk-form .person-results .thumb{width:40px;height:50px;display:grid;place-items:center;background:var(--surface);border-radius:4px;color:var(--muted);flex-shrink:0}
.kk-form .person-results small{display:block;color:var(--muted);font-size:14px}
.kk-form .selected-person{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0}
.kk-form .selected-person p{margin:0;flex:1 1 200px}
.kk-receipt img{display:block;max-width:100%;height:auto;max-height:180px;object-fit:contain;margin:12px 0 20px}.kk-receipt img[hidden]{display:none}.kk-receipt{padding:32px 0 48px}.kk-receipt h2{font:400 clamp(30px,5vw,40px)/1.15 Georgia,serif;margin:0 0 16px}.kk-receipt p{font:18px/1.6 Georgia,serif;margin:0 0 12px;color:var(--muted)}
.kk-form [hidden],.kk-receipt[hidden]{display:none!important}
.kk-form details{margin:16px 0}.kk-form summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.kk-form .count{font-size:14px;color:var(--muted);margin:4px 0 0}
.kk-form .delete-confirm{border:1px solid var(--line);padding:14px;margin:12px 0;border-radius:4px;background:var(--surface)}
.kk-form .delete-confirm p{margin:0 0 10px}
/* Both entry points share one viewport-edge drawer, never a centered composition.
   The dialog role is retained for focus isolation, not a second visual modal. */
body .memorial-modal.open:has(.drawer-editing){padding:0;overflow:hidden;backdrop-filter:none;background:rgba(8,12,9,.32)}
body .memorial-dialog.drawer-editing{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;max-height:none;margin:0;display:block;background:transparent;box-shadow:none;overflow:hidden;pointer-events:none}
body .drawer-editing>.memorial-photo-region,body .drawer-editing>.memorial-copy,body .drawer-editing>.memorial-close{display:none}
body .memorial-dialog.drawer-editing>.memory-drawer{position:absolute;inset:0 0 0 auto;width:min(620px,100%);height:100%;max-height:none;border:0;border-left:1px solid var(--line);pointer-events:auto;box-shadow:-12px 0 40px rgba(0,0,0,.18);animation:kk-drawer-enter 180ms ease-out}
@keyframes kk-drawer-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:850px){body .memorial-dialog.drawer-editing>.memory-drawer{width:100%;border:0}}
@media(prefers-reduced-motion:reduce){body .memorial-dialog.drawer-editing>.memory-drawer{animation:none;scroll-behavior:auto}}
.drawer-body{overflow-wrap:anywhere}
.drawer-summary img{width:72px;height:90px;object-fit:contain;background:var(--surface)}
/* Shared header language control. */
.language-toggle{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);font:14px/1.3 Arial,sans-serif;cursor:pointer;white-space:nowrap}
.language-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.top.home-surface .menu .language-toggle{flex:none}
@media(max-width:850px){.top.home-surface .menu .language-toggle{order:5}}
.hero-search-dock:before{content:attr(data-search-label)}
.footer-admin{font-size:13px;margin-top:10px}.footer-admin a{text-decoration:underline;text-underline-offset:4px;color:inherit}
footer.home-surface .footer-layout{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.kk-form *{transition:none!important}}
.drawer-header .drawer-tools .language-toggle{width:auto;min-width:78px;font:14px/1.3 Arial,sans-serif;border-radius:4px;padding:8px 10px}.drawer-header h2{min-width:0}.drawer-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}.memorial-dialog>.memorial-language{position:absolute;top:12px;right:66px;z-index:4}.memorial-dialog.drawer-editing>.memorial-language,.memorial-dialog.generic-editing>.memorial-language{display:none}@media(max-width:850px){.memorial-dialog>.memorial-language{top:12px;right:64px}}

@media(min-width:1100px){.top.home-surface .topin{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;flex-wrap:nowrap}.top.home-surface .brand{grid-column:1;grid-row:1;white-space:nowrap}.top.home-surface .menu{grid-column:3;grid-row:1;width:auto;flex-wrap:nowrap;white-space:nowrap;gap:12px;font-size:13px}.top.home-surface .menu>a{white-space:nowrap}.top.home-surface .menu .language-toggle{padding:8px}}
