:root { color: #202e2c; background: #fbfaf6; font: 16px/1.5 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(92%, 48rem); margin-inline: auto; }
header { border-bottom: 1px solid #d7d8cf; padding-block: 1rem; }
header .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
header span, .privacy { color: #4a5750; }
main { padding-block: 1.5rem 3rem; }
h1, h2 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0; }
section { margin-top: 1rem; padding: 1rem; border: 1px solid #d7d8cf; border-radius: 12px; background: #fffefa; }
section h2 { margin-top: 0; }
label { display: block; font-weight: 650; }
button, select, input { font: inherit; min-height: 44px; border-radius: 7px; }
select, input { display: block; width: 100%; max-width: 29rem; padding: .5rem; background: white; color: inherit; border: 1px solid #59645f; }
#ask { margin-bottom: .9rem; }
button { margin: .65rem .45rem 0 0; padding: .45rem .8rem; background: #243f91; color: white; border: 1px solid #243f91; cursor: pointer; }
button:disabled { background: #e5e7e3; color: #46564c; border-color: #737e75; cursor: default; }
:focus-visible { outline: 3px solid #8b4d09; outline-offset: 3px; }
.skip:not(:focus) { position: absolute; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 1; top: .5rem; left: .5rem; padding: .5rem; background: white; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }

#conversation-log:empty { display: none; }
#conversation-log { max-height: min(33dvh, 23rem); overflow-y: auto; overflow-wrap: anywhere; padding: .15rem .45rem; overscroll-behavior: contain; }
#conversation-log > div + div { border-top: 1px solid #d7dbd1; margin-top: .8rem; }
#conversation-log p { margin: .5rem 0; }
#conversation-log .chat-question { color: #375747; font-weight: 650; }
#conversation-log a { display: block; min-height: 30px; padding-block: .2rem; }
#suggestions { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .7rem; }
#suggestions button { color: #224f40; background: #f2f5ef; border: 1px solid #9aada1; border-radius: .4rem; padding: .4rem .55rem; margin: 0; min-height: 44px; font-size: .94rem; text-align: start; }
.chat-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
#chat-privacy, .contact { font-size: .9rem; line-height: 1.4; }
.contact summary { cursor: pointer; padding-block: .45rem; color: #234e42; }
.contact a { overflow-wrap: anywhere; }
@media (max-height: 28rem) {
  #conversation-log { max-height: 35dvh; }
}
