/* The contribution keyboard stays beside the Pashto input on every screen size. */
.contribute form{min-width:0;max-width:100%}
.contribute-copy{min-width:0}
@media(max-width:380px){.contribute h2{font-size:15vw}}
.pashto-word-field{min-width:0;position:relative}
.pashto-word-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pashto-word-label-row label{flex:1;min-width:0}
.pashto-word-label-row .optional{float:none;display:inline-block;margin-left:6px}
.pashto-keyboard-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:40px;padding:7px 12px;border:1px solid var(--forest);border-radius:999px;background:transparent;color:var(--forest);font:600 13px var(--body)}
.pashto-keyboard-trigger>span{font-size:18px;line-height:1}
.pashto-keyboard-trigger[aria-expanded=true]{background:var(--forest);color:var(--cream)}
.pashto-keyboard-trigger:disabled{opacity:.6}
.contribute form #contribution-word{display:block;width:100%;margin-top:8px;font:28px/1.6 var(--script)}
.pashto-word-field>.field-help{margin:7px 0 0;font-size:13px;line-height:1.6}
.pashto-keyboard-popup{margin-top:12px;padding:15px;border:1px solid var(--forest);border-radius:10px;background:var(--paper);color:var(--forest);box-shadow:0 6px 18px rgba(0,56,43,.12);max-height:65vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.pashto-keyboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pashto-keyboard-heading h3{margin:0;font-size:17px;line-height:1.4}
.pashto-keyboard-close{width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--cream);color:var(--forest);font:24px/1 var(--body)}
.pashto-keyboard-popup>.field-help{margin:8px 0 12px;font-size:13px;line-height:1.5}
.pashto-keyboard-status{margin:8px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.pashto-keyboard-status:empty{display:none}
.pashto-keyboard-notes{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.pashto-keyboard-notes p{margin:0 0 8px}
.pashto-keyboard-notes p:last-child{margin-bottom:0}
.pashto-keyboard-notes bdi{font-family:var(--script);font-size:20px;line-height:1}
.pashto-keyboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(43px,1fr));gap:6px;direction:rtl;margin:12px 0}
.pashto-key{min-width:0;min-height:48px;padding:3px 2px;border:1px solid var(--line);border-radius:6px;background:var(--cream);color:var(--forest);font:27px/1.45 var(--script);text-align:center}
.pashto-keyboard-mark{background:var(--paper);font-size:28px}
.pashto-keyboard-actions{display:flex;flex-wrap:wrap;gap:6px;direction:ltr;padding-top:12px;border-top:1px solid var(--line)}
.pashto-keyboard-action{min-width:44px;min-height:44px;flex:1 1 auto;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--cream);color:var(--forest);font:600 14px/1.5 var(--body)}
.pashto-key:hover:not(:disabled),.pashto-keyboard-action:hover:not(:disabled){background:var(--lime);border-color:var(--forest)}
.pashto-key:disabled,.pashto-keyboard-action:disabled{opacity:.55}
.pashto-keyboard-trigger:focus-visible,.pashto-keyboard-close:focus-visible,.pashto-key:focus-visible,.pashto-keyboard-action:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
@media(max-width:600px){.pashto-word-label-row{gap:8px}.pashto-word-label-row .optional{display:block;margin:3px 0 0}.pashto-keyboard-trigger{font-size:12px;padding:8px 10px}.pashto-keyboard-popup{padding:12px}.pashto-keyboard-grid{gap:5px;grid-template-columns:repeat(auto-fit,minmax(40px,1fr))}.pashto-keyboard-action{padding:7px 8px}}
