@font-face {
  font-family: 'Archivo Expanded'; src: url('/assets/archivo-expanded.woff2') format('woff2');
  font-weight: 700 800; font-display: swap;
}
.vhis-tool { background: #f4f9fd; border-bottom: 1px solid var(--line); }
.vhis-tool [hidden] { display: none; }
.vhis-hero {
  background: linear-gradient(90deg, #0c2039f5, #102d4bd6 55%, #102d4b66),
    #102d4b url('/assets/harbour-dusk.webp') center 54% / cover no-repeat;
  color: white;
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.25rem, 5vw, 4.5rem);
}
.vhis-hero h1 { color: white; font: 800 clamp(2.25rem, 6vw, 4.75rem)/1 'Archivo Expanded', sans-serif; max-width: 22ch; }
.vhis-hero h1 span, .vhis-hero .eyebrow { color: #9ee5f1; }
.vhis-hero .lead { color: white; max-width: 55ch; }
.vhis-hero #vhis-panel { margin: 1.3rem 0 0; color: #e5f6fc; font-size: .95rem; }
.vhis-tool .vhis-workspace { padding-block: clamp(1.5rem, 4vw, 3.5rem); background: #101e30; color: #e5f6fc; }
.vhis-results-area > p .text-link, .vhis-results-area h3 { color: #e5f6fc; }
.vhis-card, .vhis-table { color: var(--ink); }
.vhis-counts { display: flex; gap: clamp(1rem, 4vw, 3rem); flex-wrap: wrap; border-top: 1px solid #a5e5ef66; padding-top: 1rem; }
.vhis-counts div { display: flex; flex-direction: column-reverse; }
.vhis-counts dd { margin: 0; font: 800 1.65rem/1.2 'Archivo Expanded', sans-serif; }
.vhis-counts dt { color: #d9eefa; font-size: .88rem; }
.vhis-layout { display: grid; gap: 1.5rem; align-items: start; }
.vhis-results-area { min-width: 0; }
.vhis-layout form { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; }
.vhis-layout .vhis-results-area { grid-column: 1; grid-row: 1; }
.vhis-tool .vhis-layout form { color: white; background: #152c48; border-color: #456680; }
.vhis-layout form h2, .vhis-layout form .eyebrow, .vhis-layout form .micro { color: #e5f6fc; }
.vhis-layout form h2 { font-size: 1.35rem; }
.vhis-layout form .eyebrow { margin-bottom: .5rem; }
.vhis-layout form .button:not(.secondary) { background: #9ee5f1; color: #102d4b; }
.vhis-chat-history { display: grid; gap: .5rem; padding: 0; list-style: none; }
.vhis-chat-history:empty, #vhis-chat-reply:empty { display: none; }
.vhis-chat-history li { justify-self: end; border-radius: 10px 10px 2px 10px; padding: .45rem .7rem; background: #9ee5f1; color: #102d4b; }
.vhis-question, #vhis-chat-reply { padding: .7rem; background: #254565; border-radius: 10px 10px 10px 2px; }
@media (max-width: 850px) {
  .vhis-layout form, .vhis-layout .vhis-results-area { grid-column: 1; grid-row: auto; position: static; }
}
.vhis-layout:has(#vhis-lilly:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
#vhis-lilly { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; background: #152c48; border: 1px solid #456680; border-radius: 10px; padding: 1rem; }
#vhis-lilly h2 { color: white; margin: 0; font-size: 1.4rem; }
#vhis-lilly form { display: grid; gap: .5rem; position: static; padding: 0; border: 0; }
#vhis-lilly textarea { width: 100%; resize: vertical; font: inherit; padding: .6rem; border-radius: 6px; }
#vhis-lilly .vhis-actions { margin-bottom: .4rem; }
#vhis-lilly .button, #vhis-ask { background: #9ee5f1; color: #102d4b; }
#vhis-chat-reset, #vhis-chips button { background: transparent; color: #e5f6fc; border: 1px solid #7296b2; padding: .35rem .6rem; border-radius: 6px; }
#vhis-chat-reset { margin-left: auto; }
#vhis-transcript { max-height: 38vh; overflow: auto; display: grid; gap: .5rem; margin-bottom: .6rem; }
#vhis-transcript:empty { display: none; }
.vhis-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: .55rem .7rem; background: #254565; border-radius: 8px; }
.vhis-message.user { background: #9ee5f1; color: #102d4b; margin-left: 1rem; }
.vhis-message ul { padding-left: 1.2rem; }
#vhis-plan-details { border: 1px solid #456680; border-radius: 8px; padding: 1rem; margin-top: 1rem; }
@media (max-width: 850px) {
  .vhis-layout:has(#vhis-lilly:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  #vhis-lilly { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 640px) {
}
.vhis-tool form { padding: clamp(1rem, 3vw, 2rem); background: white; border: 1px solid var(--line); border-radius: 8px; }
.vhis-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.vhis-fields label { display: grid; align-content: end; gap: .35rem; font-weight: 600; }
.vhis-fields input, .vhis-fields select {
  width: 100%; min-height: 44px; padding: .5rem .7rem; color: var(--ink); background: white;
  border: 1px solid #88abc4; border-radius: 5px; font: inherit;
}
.vhis-tool button { cursor: pointer; }
.vhis-tool button:disabled { opacity: .65; cursor: default; }
.vhis-disclosure { max-width: 76ch; font-size: .9rem; }
.vhis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.vhis-card { background: white; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.vhis-card h4 { font-size: 1.2rem; margin: 0; }
.vhis-card p { margin: .4rem 0; }
.vhis-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .6rem; }
.vhis-card dd { margin: 0; font-weight: 600; }
.vhis-pick { display: flex; align-items: center; gap: .4rem; padding-top: .75rem; margin-top: auto; cursor: pointer; }
.vhis-pick input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.vhis-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; margin-bottom: 1.5rem; }
.vhis-table table { border-collapse: collapse; min-width: 520px; width: 100%; }
.vhis-table th, .vhis-table td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vhis-table thead th { color: white; background: var(--navy); }
.vhis-table tbody th { min-width: 115px; }

.vhis-chat-entry{max-width:760px;margin-top:28px}
.vhis-chat-entry>label{display:block;color:#eef7ff;font-size:.95rem}
.vhis-chat-entry>label::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#70ccd9;margin-right:8px;vertical-align:middle}
.vhis-hero-input{display:flex;gap:10px;align-items:stretch;margin:10px 0}
.vhis-hero-input textarea{flex:1;min-width:0;min-height:76px;padding:14px 16px;border:1px solid #7694ad;border-radius:14px;background:#ffffff16;color:white;font:inherit;resize:vertical}
.vhis-hero-input textarea::placeholder{color:#d6e3f0}
.vhis-hero-input .button{flex:none;border-radius:40px;background:#70ccd9;color:#102d4b;box-shadow:none}
.vhis-examples{display:flex;flex-wrap:wrap;gap:7px}
.vhis-example{padding:6px 12px;border:1px solid #7694ad;border-radius:20px;background:#ffffff12;color:#eef7ff;font-size:.85rem}
.vhis-example:hover{background:#ffffff29}
@media(max-width:540px){
  .vhis-hero{padding-block:26px}
  .vhis-hero h1{font-size:clamp(1.75rem,8vw,2.2rem);margin-bottom:14px}
  .vhis-hero .lead{margin:0 0 12px}
  .vhis-chat-entry{margin-top:16px}
  .vhis-hero-input{flex-direction:column}
}

#vhis-lilly-status[role="alert"]:not(:empty){padding:12px;border:2px solid currentColor;border-radius:6px;font-weight:600}

/* Insurer mark on a result card. Sized by height with a width cap, because the six marks run from square
   (Bupa) to 3.4:1 (Sun Life) and matching their widths would make Bupa tower over the rest. */
.vhis-card .vhis-insurer{display:block;height:26px;width:auto;max-width:116px;object-fit:contain;object-position:left center;margin-bottom:4px}
