/* Shared website guide. Colors use the existing brand tokens. */
.cee-guide { position: fixed; left: max(22px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 90; font: 15px/1.65 'Lato', sans-serif; color: var(--ink); }
.cee-guide *, .cee-guide *::before, .cee-guide *::after { box-sizing: border-box; }
.cee-guide button, .cee-guide input { font: inherit; letter-spacing: normal; text-transform: none; }
.cee-guide button { cursor: pointer; }
.cee-guide :is(button, input, a, [tabindex]):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.guide-launcher { display: flex; align-items: center; gap: 12px; min-height: 64px; max-width: calc(100vw - 104px); padding: 12px 17px; border: 1px solid var(--gold); border-radius: 22px; background: var(--ink); color: var(--white); font-weight: 700 !important; box-shadow: 0 4px 18px rgba(0,0,0,.2); text-align: left; transition: transform .2s ease, background .2s ease; }
.guide-launcher-copy { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.guide-launcher-copy > span { font-size: 14px; }
.guide-launcher-copy small { font-size: 11px; font-weight: 400; color: var(--white); }
.guide-launcher svg { color: var(--gold); flex-shrink: 0; }
.guide-launcher:hover { background: var(--charcoal); transform: translateY(-2px); }
.guide-panel { position: absolute; left: 0; bottom: 78px; width: min(412px, calc(100vw - 32px)); height: min(650px, calc(100vh - 124px)); height: min(650px, calc(100dvh - 124px)); display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--gold); border-radius: 24px; background: var(--white); box-shadow: 0 18px 60px rgba(0,0,0,.24); overflow: hidden; text-align: left; transform-origin: bottom left; }
.guide-panel[aria-hidden="true"] { pointer-events: none; }
.guide-panel[hidden] { display: none; }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 20px; background: var(--ink); color: var(--white); flex-shrink: 0; }
.guide-head .guide-eyebrow { margin: 0 0 10px; font-size: 11px; line-height: 1.5; color: var(--gold); }
.guide-head h2 { margin: 0 0 10px; font: 400 34px/1.2 'Great Vibes', cursive; color: var(--white); text-align: left; }
.guide-head #guide-description { margin: 0; font-size: 12px; line-height: 1.5; color: var(--white); }
.guide-close { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: var(--white); font-size: 24px !important; line-height: 1; flex-shrink: 0; }
.guide-close:hover { background: var(--charcoal); }
.guide-log { flex: 1; min-height: 65px; overflow-y: auto; overscroll-behavior: contain; padding: 20px; background: var(--ivory); }
.guide-message { max-width: 100%; margin: 0 0 18px; padding: 17px 18px; border: 1px solid rgba(0,0,0,.09); border-radius: 5px 16px 16px; background: var(--white); overflow-wrap: anywhere; }
.guide-message strong { display: block; margin-bottom: 12px; font: 700 16px/1.5 'Playfair Display', serif; }
.guide-message p, .guide-message ul { margin: 0; font: inherit; color: var(--ink); }
.guide-message p + p, .guide-message p + ul, .guide-message ul + p { margin-top: 14px; }
.guide-message ul { padding-left: 19px; }
.guide-message li + li { margin-top: 12px; }
.guide-message a { display: inline-block; margin-top: 15px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold-dark); text-underline-offset: 4px; }
.guide-message-user { max-width: 90%; margin-left: auto; background: var(--sand); border-radius: 16px 5px 16px 16px; }
.guide-topics { display: flex; gap: 7px; padding: 14px 18px 4px; flex-shrink: 0; overflow-x: auto; }
.guide-topics button { min-height: 36px; padding: 7px 9px; border: 1px solid rgba(0,0,0,.22); border-radius: 20px; background: var(--white); color: var(--ink); font-size: 12px; line-height: 1.4; white-space: nowrap; flex-shrink: 0; }
.guide-topics button:hover { background: var(--sand); border-color: var(--gold-dark); }
.guide-form { display: flex; gap: 10px; margin: 0; padding: 12px 18px 16px; flex-shrink: 0; }
.guide-form input { flex: 1; min-width: 0; width: 0; height: 48px; padding: 12px 14px; border: 1px solid rgba(0,0,0,.3); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 16px; }
.guide-form input::placeholder { font-size: 14px; color: var(--charcoal); opacity: 1; }
.guide-form button { min-height: 48px; padding: 12px 15px; border: 0; border-radius: 12px; background: var(--gold); color: var(--black); font-weight: 700; }
.guide-form button:hover { background: var(--gold-dark); }
.guide-foot { padding: 12px 20px 15px; border-top: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }
.guide-foot a { color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: underline; text-decoration-color: var(--wa-green); text-underline-offset: 4px; }
.guide-foot p { margin: 8px 0 0; color: var(--charcoal); font-size: 11px; line-height: 1.5; }
.guide-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .cee-guide { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); } .guide-panel { height: min(620px, calc(100dvh - 116px)); } }
@media (max-width: 360px) { .guide-head { padding: 18px; } .guide-log { padding: 16px; } .guide-message { padding: 15px; } .guide-topics { padding-left: 12px; padding-right: 12px; gap: 5px; } .guide-topics button { padding-left: 7px; padding-right: 7px; } .guide-form { padding-left: 14px; padding-right: 14px; } }
@media (max-height: 480px) { .guide-panel { bottom: 0; height: calc(100dvh - 32px); } .guide-launcher[aria-expanded="true"] { visibility: hidden; } .guide-head { padding: 10px 16px; } .guide-head h2 { margin-bottom: 5px; font-size: 28px; } .guide-eyebrow, .guide-foot p { display: none; } .guide-topics { padding-top: 8px; } .guide-form { padding-top: 8px; padding-bottom: 10px; } .guide-foot { padding-top: 8px; padding-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .guide-launcher { transition: none; } .guide-launcher:hover { transform: none; } }
@media print { .cee-guide { display: none; } }
