/* Kori AI chat test (Look A, Coastal Teal). All colour pairs meet WCAG 2.2 AA (checked 29 Oct 2026). */
.k-testflag{display:inline-block;background:#FFF4E5;color:#7A2E00;border:1px solid #F0D2AE;border-radius:6px;padding:.15rem .6rem;font-size:.85rem;font-weight:700}
.kori-launch{position:fixed;right:1.25rem;bottom:1.25rem;z-index:60;background:var(--brand);color:#fff;border:2px solid #fff;border-radius:999px;padding:.8rem 1.2rem;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.kori-launch:hover{background:var(--brand-d)}
.kori-launch span{color:#9FE0C0}
.kori{position:fixed;right:1.25rem;bottom:5.2rem;top:96px;z-index:61;width:min(420px,calc(100vw - 2.5rem));display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 32px rgba(0,0,0,.22);overflow:hidden}
.kori[hidden]{display:none}
.k-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;background:var(--brand);color:#fff;padding:.75rem 1rem}
.k-head h2{font-size:1.15rem;margin:0;color:#fff}
.k-head p{margin:.1rem 0 0;font-size:.85rem;color:#fff}
.k-badge{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;background:#fff;color:var(--brand-d);border-radius:5px;padding:.05rem .4rem;vertical-align:middle}
.k-close{background:transparent;border:2px solid #fff;color:#fff;border-radius:8px;width:2.5rem;height:2.5rem;font-size:1.4rem;line-height:1;cursor:pointer;flex:none}
.k-close:hover{background:var(--brand-d)}
.k-disclose{flex:none;margin:0;background:#E6F2F5;color:var(--ink);border-bottom:1px solid #B3D7E0;padding:.55rem 1rem;font-size:.8rem;line-height:1.42}
.k-confirm{display:inline-block;background:#FFF4E5;color:#7A2E00;border:1px solid #F0D2AE;border-radius:4px;padding:0 .3rem;font-size:.78rem;font-weight:700}
.k-log{flex:1 1 auto;overflow-y:auto;padding:.8rem 1rem;background:var(--bg);display:flex;flex-direction:column;gap:.6rem}
.k-log:focus-visible{outline-offset:-3px}
.k-msg{width:88%;max-width:88%;box-sizing:border-box;padding:.55rem .8rem;border-radius:12px;font-size:.95rem;line-height:1.5;white-space:pre-line}
.k-bot{align-self:flex-start;background:#fff;border:1px solid var(--line);color:var(--ink)}
.k-user{align-self:flex-end;background:var(--brand);color:#fff}
.k-who{display:block;font-size:.75rem;font-weight:700;color:var(--muted);margin-bottom:.15rem}
.k-user .k-who{color:#fff}
.k-src{display:block;font-size:.75rem;color:var(--muted);margin-top:.3rem}
.k-actions{display:flex;flex-wrap:wrap;gap:.4rem;padding:.55rem 1rem;border-top:1px solid var(--line);background:#fff;max-height:42%;overflow-y:auto}
.k-chip{background:#fff;color:var(--brand-d);border:2px solid var(--brand);border-radius:999px;padding:.4rem .8rem;font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;min-height:44px}
.k-chip:hover{background:#E6F2F5}
.k-chip[aria-pressed=true]{background:var(--brand);color:#fff}
.k-chip.k-primary{background:var(--brand);color:#fff}
.k-chip.k-primary:hover{background:var(--brand-d)}
.k-ask{display:flex;gap:.4rem;padding:.6rem 1rem .8rem;border-top:1px solid var(--line);background:#fff}
.k-ask input{flex:1;min-width:0;font:inherit;padding:.55rem .7rem;border:1px solid #767676;border-radius:8px;color:var(--ink)}
.k-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.k-form{display:grid;gap:.55rem;width:100%}
.k-form label{font-size:.88rem;font-weight:600;color:var(--ink)}
.k-form input,.k-form textarea{width:100%;font:inherit;font-size:.95rem;padding:.5rem .6rem;border:1px solid #767676;border-radius:8px;color:var(--ink);background:#fff}
.k-form textarea{min-height:4.5rem;resize:vertical}
.k-form [aria-invalid=true]{border:2px solid #B00020}
.k-err{color:#B00020;font-size:.84rem;margin:.1rem 0 0}
.k-summary{background:#fff;border:2px solid var(--brand);border-radius:12px;padding:.7rem .9rem;font-size:.9rem;align-self:stretch;max-width:100%}
.k-summary h3{font-size:1rem;margin:0 0 .4rem;color:var(--brand-d)}
.k-summary dl{display:grid;grid-template-columns:auto 1fr;gap:.15rem .6rem;margin:0}
.k-summary dt{font-weight:700}.k-summary dd{margin:0}
.k-consent{display:flex;gap:.5rem;align-items:flex-start;font-size:.88rem}
.k-consent input{width:1.25rem;height:1.25rem;margin-top:.15rem;flex:none}
.k-privacy{font-size:.84rem;color:var(--ink);margin:0}
.k-ts{min-height:65px}
@media(max-width:600px){
  .kori{left:0;right:0;top:64px;bottom:0;width:100%;border-radius:0;border-left:0;border-right:0}
  .kori-launch{right:.75rem;bottom:.75rem}
  .k-msg{width:92%;max-width:92%}
}

.k-inlog{background:#fff;border:1px solid var(--line);border-radius:12px;padding:.7rem .8rem}
.k-ask[hidden]{display:none}
main{min-height:calc(100vh - 160px)}
.k-head,.k-disclose,.k-actions,.k-ask{flex:none}
.k-log{min-height:0}
.k-head :focus-visible{outline-color:#fff}

.k-disclose p{margin:0 0 .35rem}.k-disclose p:last-child{margin:0}
.k-head h2 .k-badge{margin-left:.3rem}
.k-before{flex:none;margin:0;padding:.4rem 1rem 0;font-size:.8rem;color:var(--ink);background:#fff;border-top:1px solid var(--line)}
.k-before[hidden]{display:none}
.k-before + .k-ask{border-top:0}
.k-foot{flex:none;padding:.4rem 1rem .55rem;background:var(--alt);border-top:1px solid var(--line);font-size:.76rem;line-height:1.4;color:var(--ink)}
.k-foot p{margin:0 0 .25rem}.k-foot p:last-child{margin:0}
.k-summary,.k-inlog{width:100%;box-sizing:border-box}
.k-chip:disabled{opacity:.55;cursor:not-allowed}

/* More room for the conversation: panel reaches the bottom and the launcher hides while it is open. */
@media(min-width:601px){.kori{bottom:1.25rem;width:min(460px,calc(100vw - 2.5rem))}}
.kori-launch[aria-expanded=true]{display:none}

/* Compact always-visible AI/guidance line (in normal flow, never overlaps the conversation). Full Legal wording opens below. */
.k-disclose{position:static;padding:0}
.k-disclose summary{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem 1rem;cursor:pointer;list-style:none;font-size:.82rem;line-height:1.35;min-height:32px}
.k-disclose summary::-webkit-details-marker{display:none}
.k-disclose summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.k-more{flex:none;font-weight:700;color:var(--brand-d);text-decoration:underline}
.k-more::after{content:" \25BE"}
.k-disclose[open] .k-more{font-size:0}
.k-disclose[open] .k-more::before{content:"Less";font-size:.82rem}
.k-disclose[open] .k-more::after{font-size:.82rem;content:" \25B4"}
.k-disclose-body{padding:0 1rem .5rem;max-height:40vh;overflow-y:auto}
@media(max-width:600px){.k-disclose summary{font-size:.76rem;padding:.4rem .75rem;gap:.35rem}.k-disclose[open] .k-more::before,.k-disclose[open] .k-more::after{font-size:.76rem}}

/* v8 site-wide: static, always-visible disclaimer; launcher focus ring */
.k-disclose{padding:.5rem 1rem;max-height:32vh;overflow-y:auto}
.k-disclose p{margin:0 0 .3rem}
.k-legal{font-weight:600}
.kori-launch:focus-visible{outline:3px solid #B5651D;outline-offset:3px;box-shadow:0 0 0 6px #fff}
.k-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
