.jws-page-nav{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 28px;min-width:0}.jws-page-nav a{display:flex;align-items:center;justify-content:center;min-height:60px;box-sizing:border-box;padding:14px 18px;font-size:1.125rem;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;min-width:0;text-align:center}.jws-page-nav a:focus-visible{outline:4px solid #aa6900;outline-offset:4px}
.jws-page-intro{margin:24px 0 32px;color:#173c30;word-break:keep-all;overflow-wrap:anywhere}.jws-page-intro h1{font-size:clamp(2rem,6vw,3.25rem);line-height:1.4;margin:12px 0 20px}.jws-page-intro p{font-size:1.125rem;line-height:1.7;margin:12px 0}.jws-page-intro .eyebrow{font-size:1.125rem;line-height:1.7}
.jws-entry,.jws-dialog{color:#173c30;background:#fffdf4;font-size:1.125rem;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
.jws-entry{padding:24px;border-radius:24px;border:2px solid #aabca3;margin:24px 0}
.jws-entry h2{font-size:1.7rem;line-height:1.4;margin:0 0 12px}
.jws-entry p{margin:12px 0}.jws-entry .jws-note{margin:16px 0}
.jws-entry button,.jws-dialog button{min-height:60px;font:inherit;font-weight:800;padding:14px 18px;border-radius:15px;border:2px solid #173c30;cursor:pointer;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.jws-entry button,.jws-next{background:#173c30;color:#fff}
.jws-entry button{width:100%}.jws-dialog{width:min(94vw,620px);max-width:96vw;height:min(92dvh,920px);max-height:92dvh;padding:0;border:0;border-radius:24px;overflow:hidden;box-sizing:border-box}
.jws-dialog[open]{display:flex;flex-direction:column}.jws-dialog::backdrop{background:#163c30bb}
.jws-toolbar{flex:none;padding:16px 20px 12px;border-bottom:2px solid #d8e0d2;background:#fffdf4;max-height:38%;overflow:auto}
.jws-close{display:block;margin:0 0 12px auto;min-width:120px;background:#173c30;color:#fff}
.jws-toolbar h2{font-size:1.45rem;line-height:1.4;margin:0}.jws-progress{font-size:1.125rem;margin:8px 0 0;font-weight:800}
.jws-body{min-height:96px;flex:1;overflow:auto;overscroll-behavior:contain;padding:20px;box-sizing:border-box;scrollbar-gutter:stable}
.jws-body h3{font-size:1.4rem;line-height:1.5;margin:0 0 18px;scroll-margin-top:18px}.jws-body h4{font-size:1.2rem;line-height:1.5;margin:28px 0 12px}
.jws-note{padding:16px;background:#e8efdf;border-radius:14px;margin:0 0 20px;border:2px solid #899e80}.jws-note strong{display:block}
.jws-question{border:0;margin:26px 0 32px;padding:0;min-width:0}.jws-question legend{font-size:1.2rem;font-weight:800;line-height:1.6;margin:0 0 14px;padding:0;max-width:100%}
.jws-condition{margin:0 0 14px;padding:10px 12px;background:#f5e8bd;border-left:5px solid #735c17;font-weight:700}
.jws-options{display:grid;grid-template-columns:1fr;gap:10px}.jws-option{display:flex;align-items:center;gap:12px;min-height:60px;padding:12px 14px;border:2px solid #aabca3;border-radius:14px;background:#fff;box-sizing:border-box;min-width:0;line-height:1.6}
.jws-option input{width:24px;height:24px;flex:0 0 24px;margin:0;opacity:1;accent-color:#173c30}.jws-option span{min-width:0}.jws-supplement{margin:14px 0}.jws-supplement label{display:block;margin-bottom:8px}
.jws-dialog textarea,.jws-dialog input[type=text]{width:100%;box-sizing:border-box;min-height:60px;padding:14px;border:2px solid #aabca3;border-radius:14px;background:#f5f6ef;color:#173c30;font:inherit;font-size:1.125rem;line-height:1.65;opacity:1}
.jws-dialog textarea{min-height:116px;resize:vertical}.jws-question-note,.jws-source{font-size:1.125rem;line-height:1.65}
.jws-source{margin:20px 0}.jws-source summary{min-height:60px;padding:14px 0;box-sizing:border-box;font-weight:800;cursor:pointer}.jws-source p{white-space:pre-wrap}
.jws-footer{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 20px;background:#fffdf4;border-top:2px solid #d8e0d2}.jws-prev{background:#fff9e7;color:#173c30}.jws-footer button:disabled{background:#eef0e6;color:#5b6656;border-color:#899780;cursor:default}
.jws-status{font-size:1.125rem;margin:0;grid-column:1/-1;line-height:1.5}.jws-dialog [hidden]{display:none!important}
.jws-entry button:focus-visible,.jws-dialog button:focus-visible,.jws-dialog summary:focus-visible,.jws-body:focus-visible,.jws-body h3:focus-visible{outline:4px solid #aa6900;outline-offset:4px}
@media(max-width:480px){.jws-page-nav a{flex:1 1 220px}.jws-entry{padding:20px}.jws-dialog{width:96vw;max-height:96dvh;height:96dvh}.jws-toolbar{padding:12px 16px}.jws-toolbar h2{font-size:1.3rem}.jws-body{padding:18px 16px}.jws-footer{padding:12px 16px;gap:10px}.jws-footer button{padding:12px 8px}.jws-question legend{font-size:1.2rem}}
@media(max-height:500px){.jws-dialog{height:96dvh;max-height:96dvh}.jws-toolbar{display:flex;align-items:center;gap:12px;padding:8px 12px;max-height:28%}.jws-close{order:2;margin:0 0 0 auto;min-width:110px}.jws-toolbar h2{font-size:1.125rem}.jws-progress{margin:0;font-size:1.125rem}.jws-footer{padding:8px 12px}.jws-status{display:none}}

/* Live input layout; original source questions and page shell stay intact. */
.jws-dialog{position:fixed;inset-inline:0;top:var(--jws-live-top,0px);bottom:auto;margin:8px auto;height:min(96dvh,calc(var(--jws-live-height,100dvh) - 16px));max-height:calc(var(--jws-live-height,100dvh) - 16px)}
.jws-form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}.jws-form .jws-body{flex:1;min-height:80px;scroll-padding-bottom:24px}.jws-toolbar{max-height:32%}
.jws-entry .jws-refresh{margin-top:12px;background:#fff9e7;color:#173c30}.jws-option{cursor:pointer}.jws-option:has(input:checked){border-color:#173c30;background:#deebd2}.jws-option:has(input:disabled){cursor:default}
.jws-dialog textarea,.jws-dialog input[type=text]{background:#fff;scroll-margin-block:30px}.jws-dialog input:focus-visible,.jws-dialog textarea:focus-visible{outline:4px solid #aa6900;outline-offset:4px}.jws-input-note{font-size:1.125rem;line-height:1.6;margin:8px 0 18px}
.jws-clear{background:#fff9e7;color:#173c30;min-height:60px;margin-top:12px}.jws-submit,.jws-check,.jws-resend{background:#173c30;color:#fff}.jws-check,.jws-resend{grid-column:1/-1}
.jws-footer{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}.jws-status{display:block;overflow-wrap:anywhere}.jws-complete{padding:16px 0;text-align:center}.jws-complete h3{font-size:clamp(1.6rem,6vw,2.2rem);line-height:1.5}.jws-complete p{font-size:1.2rem;line-height:1.7}.jws-complete a,.jws-complete button{display:flex;justify-content:center;align-items:center;width:100%;box-sizing:border-box;min-height:64px;padding:16px;font-size:1.125rem;line-height:1.5;white-space:normal}.jws-another{margin-top:20px;background:#fff9e7;color:#173c30}.jws-form [hidden]{display:none!important}
.jws-short-viewport{display:block!important;overflow:auto}.jws-short-viewport .jws-toolbar{position:sticky;top:0;z-index:3;max-height:none}.jws-short-viewport .jws-form{display:block}.jws-short-viewport .jws-body{overflow:visible;min-height:0}.jws-short-viewport .jws-footer{position:static}.jws-short-viewport .jws-status{display:block}
@media(max-width:480px){.jws-form .jws-body{padding:18px 16px}.jws-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.jws-dialog textarea,.jws-dialog input[type=text]{font-size:1.125rem}}

/* Navigation follows the last question inside the content scroller.
   Scoped to the new DOM so older cached markup keeps its original spacing. */
.jws-body > .jws-footer{position:static;margin-top:24px;padding-inline:0;min-width:0}
/* A closed short-viewport dialog must not retain its display:block override. */
.jws-dialog:not([open]){display:none!important}
