.assistant-page{background:#f4f6f9;padding-bottom:64px}.assistant-hero{color:#fff;background:linear-gradient(270deg,rgba(11,37,69,.98) 10%,rgba(11,37,69,.8) 55%,rgba(11,37,69,.12)),url('../images/jerusalem-hero.webp') center/cover;padding:26px 0 30px}.assistant-hero nav{font-size:14px;margin-bottom:16px;color:#e2e8f0}.assistant-hero nav a{color:inherit}.assistant-eyebrow{font-size:13px;letter-spacing:1.5px;color:#e6c66d}.assistant-hero h1{font-size:48px;line-height:1.15;margin:12px 0 18px}.assistant-hero h1 span{color:#e6c66d}.assistant-hero p{font-size:20px;margin:0 0 22px}.assistant-benefits{display:flex;gap:30px;flex-wrap:wrap;font-size:15px}.assistant-benefits span{display:flex;align-items:center;gap:9px}.assistant-benefits svg{color:#e6c66d;width:23px;height:23px}.assistant-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:24px;padding-top:32px}.assistant-chat,.assistant-summary{border:1px solid #e2e8f0;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 30px #0b254507}.assistant-chat-header{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e2e8f0}.assistant-heading-icon{display:grid;place-items:center;background:#eaf2ff;color:#0b2545;border-radius:12px;width:48px;height:48px}.assistant-chat-header h2{font-size:24px;margin:0}.assistant-chat-header p{margin:3px 0 0;color:#64748b;font-size:14px}.assistant-chat-header button{margin-inline-start:auto;background:white;border:1px solid #e2e8f0;color:#0b2545;border-radius:8px;padding:8px 12px;cursor:pointer;font:inherit;font-size:14px}#chat-log{height:360px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:18px;background:linear-gradient(#f8fafc,#f1f6fc);overscroll-behavior:contain}.chat-bubble{width:fit-content;max-width:88%;padding:17px 20px;border-radius:14px;line-height:1.75;border:1px solid #e2e8f0;background:#fff;flex-shrink:0;overflow-wrap:anywhere}.chat-bubble p{margin:7px 0 0;font-size:17px}.chat-author{font-size:13px;font-weight:700;color:#64748b}.chat-bubble small{display:block;font-size:13px;color:#64748b;margin-top:12px}.chat-bubble--assistant{align-self:flex-start;border-start-start-radius:3px}.chat-bubble--user{align-self:flex-end;background:#0b2545;color:white;border:0;border-start-end-radius:3px}.chat-bubble--user .chat-author{color:#e6c66d}.assistant-suggestions{padding:18px 24px 0;display:flex;flex-wrap:wrap;gap:8px}.assistant-suggestions button{font:inherit;color:#0b2545;background:#f4f6f9;border:1px solid #e2e8f0;border-radius:100px;padding:8px 14px;cursor:pointer;font-size:14px}.assistant-suggestions button:hover{background:#eaf2ff;border-color:#9db9e0}#chat-form{padding:18px 24px 0}.assistant-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.7;color:#475569;margin-bottom:14px}.assistant-consent input{margin-top:5px;flex-shrink:0;width:18px;height:18px;accent-color:#0b2545}.chat-compose{display:flex;gap:12px;align-items:center;border:1px solid #aabbd1;border-radius:12px;padding:10px;background:#fff}.chat-compose textarea{min-width:0;flex:1;border:0;resize:vertical;max-height:180px;min-height:52px;font:inherit;font-size:17px;color:#0b2545;padding:6px;background:transparent}.chat-compose .lj-button{padding:12px 16px;flex-shrink:0}.chat-compose-meta{display:flex;justify-content:space-between;color:#64748b;font-size:12px;margin-top:8px}.chat-compose-meta button{border:0;background:white;color:#0b2545;text-decoration:underline;cursor:pointer;font:inherit}#chat-status{padding:0 24px;margin:12px 0;font-size:14px;color:#0b2545;min-height:24px}.assistant-notice{padding:14px 20px;background:#faf6eb;border-top:1px solid #efe4c3;font-size:14px;line-height:1.7;margin:0;color:#5c4a20}.assistant-summary{padding:24px}.assistant-summary-heading{display:flex;gap:10px;align-items:center}.assistant-summary-heading svg{color:#bb902a;width:30px;height:30px}.assistant-summary h2{font-size:24px;margin:0}.assistant-summary>p{font-size:15px;color:#64748b;line-height:1.6;margin:10px 0 20px}#match-preferences{display:grid;gap:14px}#match-preferences label{display:grid;gap:6px;font-size:14px;font-weight:600}#match-preferences select{font:inherit;color:#0b2545;width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:8px}.assistant-next{background:#eaf2ff;border-inline-start:3px solid #0b2545;padding:14px;border-radius:8px;margin:24px 0}.assistant-next p{margin:6px 0 0;font-size:15px;line-height:1.7}.assistant-summary h3{font-size:19px;margin:0 0 10px}.assistant-summary .assistant-match-note{font-size:13px;margin:10px 0 14px}.assistant-empty{border:1px dashed #cbd5e1;border-radius:10px;background:#fafbfd;padding:22px 16px;text-align:center;color:#64748b;font-size:15px;line-height:1.7}.assistant-empty svg{width:32px;height:32px}.assistant-empty p{margin:8px 0 0}.assistant-match{border:1px solid #e2e8f0;border-radius:10px;padding:16px;margin-bottom:12px}.assistant-match h4{font-size:18px;margin:8px 0}.assistant-match ul{font-size:14px;line-height:1.8;padding-inline-start:18px}.assistant-match a{font-weight:600;display:block;margin-top:12px}.assistant-match small{font-size:12px}.assistant-directory-link{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-weight:600;font-size:15px}.assistant-page button:disabled{opacity:.6;cursor:wait}.assistant-page button:focus-visible,.assistant-page textarea:focus-visible,.assistant-page select:focus-visible,.assistant-page input:focus-visible{outline:3px solid #b28823;outline-offset:3px}.assistant-page [hidden]{display:none!important}@media(max-width:1000px){.assistant-layout{grid-template-columns:minmax(0,1fr) 290px;gap:18px}.assistant-chat-header{padding:18px}.assistant-chat-header button{font-size:12px}.assistant-heading-icon{display:none}.assistant-summary{padding:20px}}@media(max-width:760px){.assistant-layout{grid-template-columns:1fr;padding-top:20px}.assistant-hero{padding:24px 0}.assistant-hero h1{font-size:34px}.assistant-hero p{font-size:18px}.assistant-benefits{gap:12px;font-size:13px}.assistant-chat-header h2{font-size:21px}.assistant-chat-header p{font-size:12px}.assistant-chat-header{gap:8px}.assistant-chat-header button{padding:7px}.assistant-summary{padding:22px}#chat-log{height:320px;padding:16px}.chat-bubble{max-width:96%;padding:14px}.chat-bubble p{font-size:16px}.assistant-suggestions{padding:16px 16px 0}.assistant-suggestions button{font-size:13px;padding:7px 11px}#chat-form{padding:16px 16px 0}.chat-compose{gap:6px}.chat-compose .lj-button{padding:12px}.chat-compose .lj-button span{display:none}.chat-compose textarea{font-size:16px}.assistant-consent{font-size:13px}.assistant-hero nav{margin-bottom:16px}#chat-status{padding:0 16px}.assistant-notice{font-size:13px}}

/* Shared AI styling stays confined to the assistant screen. */
.assistant-page{--lawj-ai-navy:#102746;--lawj-ai-gold:#D4AF37}.assistant-page .chat-bubble--user,.assistant-page .lj-button{background:#102746}.assistant-source-links{padding-inline-start:20px;margin-bottom:0}.assistant-source-links a{color:#102746;font-weight:700}.assistant-source-links small{display:block}.assistant-privacy{margin:12px 24px 18px;padding:14px;background:#F5F7FA;border-inline-start:3px solid #D4AF37;border-radius:8px;font-size:14px;line-height:1.7}.assistant-privacy summary{cursor:pointer;font-weight:700}.assistant-page :focus-visible{outline-color:#D4AF37}

/* Keep the send label legible at every viewport, including disabled/busy state. */
.assistant-page #chat-send{background:#102746;color:#fff;min-height:48px;gap:8px}
.assistant-page #chat-send span{display:inline;color:inherit;font-weight:700}
.assistant-page #chat-send svg{color:inherit}
.assistant-page #chat-send:hover,.assistant-page #chat-send:focus-visible{background:#18385f;color:#fff}
.assistant-page #chat-send:disabled{color:#fff;opacity:1;background:#52647c}

/* One continuous document scroll on touch screens; no trapped inner chat panel. */
.assistant-page .lj-button--secondary{background:#fff;color:#102746;border:1px solid #bccbde}
.assistant-chat-header>div:not(.assistant-heading-icon){min-width:0}
.assistant-chat-header #chat-reset{white-space:nowrap;min-height:44px;flex-shrink:0}
.chat-compose:focus-within{border-color:#b28823;box-shadow:0 0 0 2px #d4af3726}
.chat-compose textarea{line-height:1.6;resize:none;overflow-y:auto}
.chat-bubble{scroll-margin-top:110px}
.assistant-consent a{font-weight:700;color:#102746}
.assistant-consent-details{display:inline-block;margin:-4px 0 12px;font-size:13px;font-weight:600;color:#102746;text-underline-offset:3px}
.assistant-privacy{scroll-margin-top:110px}
@media(max-width:760px){
 .assistant-page{padding-bottom:28px}
 .assistant-hero{padding:16px 0 20px}
 .assistant-hero nav{font-size:12px;margin-bottom:8px}
 .assistant-hero h1{font-size:28px;line-height:1.25;margin:8px 0 10px}
 .assistant-hero p{font-size:16px;line-height:1.6;margin-bottom:12px}
 .assistant-benefits{gap:8px 14px;font-size:12px}
 .assistant-benefits svg{width:18px;height:18px}
 .assistant-layout{width:calc(100% - 24px);margin-inline:auto;padding-top:14px;gap:16px}
 .assistant-chat{min-width:0;overflow:visible;border-radius:14px}
 .assistant-chat-header{padding:14px 12px;border-radius:14px 14px 0 0;gap:10px;justify-content:space-between}
 .assistant-chat-header h2{font-size:21px;line-height:1.35}
 .assistant-chat-header p{font-size:12px;line-height:1.5}
 .assistant-chat-header #chat-reset{font-size:12px;padding:8px 10px;margin-inline-start:0}
 .assistant-page #chat-log{height:auto;max-height:none;min-height:0;overflow:visible;overscroll-behavior:auto;padding:14px 12px;gap:12px}
 .chat-bubble{max-width:100%;padding:12px 14px;line-height:1.65}
 .chat-bubble p{font-size:16px;line-height:1.7}
 .chat-bubble small{margin-top:8px;font-size:12px;line-height:1.6}
 .assistant-suggestions{padding:12px 12px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .assistant-suggestions button{min-height:42px;font-size:13px;padding:8px 10px}
 .assistant-page #chat-form{padding:14px 12px 0}
 .assistant-consent{font-size:13px;line-height:1.7;margin-bottom:12px;gap:9px}
 .assistant-consent input{width:20px;height:20px;margin-top:2px}
 .chat-compose{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;border-radius:12px}
 .chat-compose textarea{width:100%;box-sizing:border-box;min-height:78px;max-height:160px;padding:4px 2px;font-size:16px}
 .assistant-page #chat-send{width:100%;min-height:46px;justify-content:center;padding:10px 16px}
 .assistant-page #chat-send span{display:inline}
 .chat-compose-meta{font-size:11px;gap:8px;margin-top:8px}
 .assistant-page #chat-status{margin:10px 0;padding:0 12px;min-height:0;line-height:1.6}
 .assistant-page #chat-status:empty{display:none}
 .assistant-privacy{margin:12px;padding:10px 12px;font-size:13px}
 .assistant-notice{font-size:12px;padding:12px;border-radius:0 0 14px 14px}
 .assistant-summary{padding:18px 14px}
 .assistant-summary h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.assistant-page *{scroll-behavior:auto!important}}

/* Strong Law-J contrast without changing the conversation layout or behavior. */
.assistant-page{background:#edf2f8;color:#102746}
.assistant-page .assistant-chat,.assistant-page .assistant-summary{border-color:#b5c5d9;box-shadow:0 6px 22px #1027460d}
.assistant-page .assistant-chat-header{background:#102746;color:#fff;border-bottom:3px solid #d4af37}
.assistant-page .assistant-chat-header h2{color:#fff}
.assistant-page .assistant-chat-header p{color:#e1eaf5}
.assistant-page .assistant-heading-icon{background:#28405c;color:#f0ce68}
.assistant-page .assistant-chat-header #chat-reset{background:#fff;color:#102746;border-color:#d4af37;font-weight:700}
.assistant-page .assistant-chat-header #chat-reset:hover{background:#fff4ce}
.assistant-page #chat-log{background:#e7eef7}
.assistant-page .chat-bubble--assistant{background:#fff;color:#102746;border-color:#a9bdd5}
.assistant-page .chat-bubble--assistant .chat-author{color:#294e76;font-weight:700}
.assistant-page .chat-bubble--assistant small{color:#425570}
.assistant-page .chat-bubble--user{background:#102746;color:#fff}
.assistant-page .chat-bubble--user .chat-author{color:#f5d67c}
.assistant-page .assistant-suggestions button{background:#edf3fa;color:#102746;border-color:#91a9c5;font-weight:700}
.assistant-page .assistant-suggestions button:hover,.assistant-page .assistant-suggestions button:focus-visible{background:#f9e8ad;border-color:#9d7a12}
.assistant-page .assistant-consent{color:#293f5c}
.assistant-page .assistant-consent input{accent-color:#102746}
.assistant-page .assistant-consent-details{color:#183e6b;text-decoration:underline}
.assistant-page .chat-compose{border:2px solid #607c9e;background:#fff}
.assistant-page .chat-compose:focus-within{border-color:#9d7a12;box-shadow:0 0 0 3px #d4af3733}
.assistant-page .chat-compose textarea{color:#102746}
.assistant-page .chat-compose textarea::placeholder{color:#52647c;opacity:1}
.assistant-page #chat-send{background:#d4af37;color:#102746;border:1px solid #b38c1c;font-weight:700}
.assistant-page #chat-send:hover,.assistant-page #chat-send:focus-visible{background:#e5c45a;color:#102746}
.assistant-page #chat-send:disabled{background:#52647c;color:#fff;border-color:#52647c}
.assistant-page .chat-compose-meta{color:#425570}
.assistant-page #chat-status{color:#173f6a;font-weight:600}
.assistant-page .assistant-privacy{background:#fff5d6;border-inline-start-color:#b18a16;color:#493a15}
.assistant-page .assistant-privacy summary,.assistant-page .assistant-privacy a{color:#102746;font-weight:700}
.assistant-page .assistant-privacy a{ text-decoration:underline}
.assistant-page .assistant-notice{background:#fff2c9;color:#4b3b12;border-top-color:#d9b956}
.assistant-page .assistant-summary-heading{padding-bottom:12px;border-bottom:2px solid #d4af37}
.assistant-page .assistant-summary-heading svg{color:#92700c}
.assistant-page .assistant-summary h2,.assistant-page .assistant-summary h3{color:#102746}
.assistant-page .assistant-summary>p,.assistant-page .assistant-match-note{color:#425570}
.assistant-page #match-preferences label{color:#102746}
.assistant-page #match-preferences select{border-color:#8198b5;color:#102746;background:#fff}
.assistant-page #match-preferences .lj-button--secondary{background:#102746;color:#fff;border-color:#102746;font-weight:700}
.assistant-page #match-preferences .lj-button--secondary:hover{background:#244970}
.assistant-page .assistant-next{background:#102746;color:#fff;border-inline-start:4px solid #d4af37}
.assistant-page .assistant-next strong{color:#f5d67c}
.assistant-page .assistant-next p{color:#fff}
.assistant-page .assistant-empty{background:#edf3fa;color:#354d6c;border-color:#8198b5}
.assistant-page .assistant-match{background:#fff;border-color:#a9bdd5}
.assistant-page .assistant-match a,.assistant-page .assistant-directory-link{color:#153f70;font-weight:700}

.assistant-page .chat-voice-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.assistant-page .chat-voice-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:44px;padding:9px 14px;border:1px solid #607c9e;border-radius:9px;background:#edf3fa;color:#102746;font:inherit;font-weight:700;cursor:pointer}
.assistant-page .chat-voice-button:hover{background:#f9e8ad;border-color:#9d7a12}
.assistant-page .chat-voice-button.is-listening{background:#9f2638;color:#fff;border-color:#9f2638}
.assistant-page .chat-voice-button .lj-icon{width:20px;height:20px}
.assistant-page #chat-voice-status{margin:0;font-size:12px;line-height:1.65;color:#354d6c}
.assistant-page .chat-voice-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:1px solid #b5c5d9;border-top:4px solid #d4af37;border-radius:14px;color:#102746;background:#fff;box-shadow:0 18px 60px #10274638;text-align:start;font:inherit;direction:rtl}
.assistant-page .chat-voice-dialog::backdrop{background:#102746a6}
.assistant-page .chat-voice-dialog h2{font-size:23px;margin:0 0 14px;color:#102746}
.assistant-page .chat-voice-dialog p{font-size:15px;line-height:1.75;color:#293f5c}
.assistant-page .chat-voice-dialog-actions{display:flex;gap:10px;margin-top:18px}
.assistant-page .chat-voice-dialog-actions button{min-height:44px;padding:10px 16px;border:1px solid #607c9e;border-radius:8px;background:#fff;color:#102746;font:inherit;font-weight:700;cursor:pointer}
.assistant-page .chat-voice-dialog-actions [data-voice-start]{background:#d4af37;border-color:#b38c1c}
@media(max-width:760px){.assistant-page .chat-voice-toolbar{align-items:flex-start}.assistant-page .chat-voice-button{font-size:14px;padding:9px 11px}.assistant-page .chat-voice-dialog{padding:20px}.assistant-page .chat-voice-dialog-actions{flex-wrap:wrap}.assistant-page .chat-voice-dialog-actions button{flex:1;white-space:nowrap}}

/* Unified button treatment, matching the chat heading. */
.assistant-page .assistant-suggestions button,
.assistant-page .assistant-chat-header #chat-reset,
.assistant-page #chat-send,
.assistant-page .chat-voice-button,
.assistant-page #match-preferences .lj-button--secondary,
.assistant-page .chat-voice-dialog-actions button,
.assistant-page .chat-voice-dialog-actions [data-voice-start]{background:#102746;color:#fff;border-color:#102746}
.assistant-page .assistant-suggestions button:hover,
.assistant-page .assistant-chat-header #chat-reset:hover,
.assistant-page #chat-send:hover,
.assistant-page #chat-send:focus-visible,
.assistant-page .chat-voice-button:hover,
.assistant-page #match-preferences .lj-button--secondary:hover,
.assistant-page .chat-voice-dialog-actions button:hover,
.assistant-page .assistant-suggestions button:focus-visible,
.assistant-page .assistant-chat-header #chat-reset:focus-visible,
.assistant-page .chat-voice-button:focus-visible,
.assistant-page #match-preferences .lj-button--secondary:focus-visible,
.assistant-page .chat-voice-dialog-actions button:focus-visible{background:#244970;color:#fff;border-color:#244970}
.assistant-page #chat-send:disabled{background:#52647c;color:#fff;border-color:#52647c}
.assistant-page .chat-voice-button.is-listening,
.assistant-page .chat-voice-button.is-listening:hover{background:#9f2638;color:#fff;border-color:#9f2638}

/* Mobile reading and touch targets: dictation gets its own full-width panel. */
@media(max-width:760px){
 .assistant-page{font-size:17px;line-height:1.7}
 .assistant-page .assistant-hero nav{font-size:15px;line-height:1.6}
 .assistant-page .assistant-hero p{font-size:17px}
 .assistant-page .assistant-benefits{font-size:15px;line-height:1.65}
 .assistant-page .assistant-chat-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:16px 12px}
 .assistant-page .assistant-chat-header h2{font-size:24px;line-height:1.35}
 .assistant-page .assistant-chat-header p{font-size:15px;line-height:1.6}
 .assistant-page .assistant-chat-header #chat-reset{font-size:16px;min-height:48px;padding:10px 12px}
 .assistant-page .chat-bubble p{font-size:18px;line-height:1.75}
 .assistant-page .chat-author,.assistant-page .chat-bubble small{font-size:15px;line-height:1.7}
 .assistant-page .assistant-suggestions button{font-size:16px;min-height:52px;padding:10px 8px;line-height:1.5}
 .assistant-page .assistant-consent{font-size:16px;line-height:1.75;gap:10px}
 .assistant-page .assistant-consent input{width:22px;height:22px;margin-top:4px}
 .assistant-page .assistant-consent-details{font-size:16px;line-height:1.7;margin-bottom:16px}
 .assistant-page .chat-voice-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px;margin-bottom:16px;background:#edf3fa;border:1px solid #91a9c5;border-radius:12px}
 .assistant-page .chat-voice-button{width:100%;box-sizing:border-box;min-height:56px;padding:12px 16px;font-size:18px;gap:10px}
 .assistant-page .chat-voice-button .lj-icon{width:25px;height:25px}
 .assistant-page #chat-voice-status{font-size:16px;line-height:1.75;color:#102746;font-weight:500;overflow-wrap:anywhere}
 .assistant-page .chat-compose textarea{font-size:18px;line-height:1.7;min-height:100px}
 .assistant-page #chat-send{font-size:18px;min-height:54px;line-height:1.5}
 .assistant-page .chat-compose-meta{font-size:14px;line-height:1.6;flex-wrap:wrap}
 .assistant-page #chat-status{font-size:16px;line-height:1.7}
 .assistant-page .assistant-privacy,.assistant-page .assistant-privacy p,.assistant-page .assistant-privacy a{font-size:16px;line-height:1.75}
 .assistant-page .assistant-notice{font-size:15px;line-height:1.8}
 .assistant-page .assistant-summary>p,.assistant-page .assistant-summary .assistant-match-note{font-size:16px;line-height:1.75}
 .assistant-page #match-preferences label{font-size:17px;line-height:1.6}
 .assistant-page #match-preferences select{font-size:17px;min-height:50px}
 .assistant-page #match-preferences button{font-size:17px;min-height:52px}
 .assistant-page .assistant-next p,.assistant-page .assistant-next strong{font-size:17px;line-height:1.75}
 .assistant-page .assistant-empty,.assistant-page .assistant-match ul,.assistant-page .assistant-directory-link{font-size:16px;line-height:1.75}
 .assistant-page .assistant-match small,.assistant-page .assistant-source-links small{font-size:15px;line-height:1.7}
 .assistant-page .chat-voice-dialog p{font-size:17px;line-height:1.75}
 .assistant-page .chat-voice-dialog-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .assistant-page .chat-voice-dialog-actions button{width:100%;font-size:17px;min-height:52px}
}

