/* Ask the Explorer: a quiet character and a conversational guide to this site. */
.explorer-guide{--guide-purple:#80138b;--guide-yellow:#ffd642;--guide-dark:#381540;font-family:var(--sans);color:var(--ink)}
.explorer-guide [hidden]{display:none!important}
.guide-launcher{position:fixed;z-index:80;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:3px;padding:0;border:0;background:none;text-align:left;color:var(--ink);isolation:isolate}
.guide-launcher-robot{display:block;width:76px;height:89px;flex:none;filter:drop-shadow(0 3px 5px #38154015);transition:transform .18s ease}
.guide-robot-art{display:block;width:100%;height:100%;overflow:visible}
.guide-launcher-label{position:relative;display:flex;flex-direction:column;gap:2px;padding:11px 15px 12px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 4px 23px #38154016;max-width:190px;transition:border-color .18s,box-shadow .18s}
.guide-launcher-label:before{content:'';position:absolute;left:-5px;top:calc(50% - 5px);width:9px;height:9px;transform:rotate(45deg);background:var(--surface);border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
.guide-launcher-label strong{font-family:var(--display);font-size:18px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.guide-launcher-label small{font-size:10px;line-height:1.4;color:var(--muted);white-space:nowrap}
.guide-launcher:hover .guide-launcher-label{border-color:var(--green);box-shadow:0 6px 27px #38154024}
.guide-launcher:hover .guide-launcher-robot{transform:translateY(-3px) rotate(-3deg)}
.guide-launcher:focus-visible{outline:3px solid var(--focus);outline-offset:5px;border-radius:8px}
.explorer-guide[data-open="true"] .guide-launcher{visibility:hidden;pointer-events:none}

.guide-panel{position:fixed;inset:auto;left:max(20px,env(safe-area-inset-left));bottom:calc(max(20px,env(safe-area-inset-bottom)) + var(--guide-viewport-bottom,0px));width:440px;max-width:calc(100vw - 40px);height:min(744px,calc(var(--guide-viewport-height,100dvh) - 40px));max-height:calc(var(--guide-viewport-height,100dvh) - 40px);margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 22px 85px #1c082b42;overscroll-behavior:contain;font-family:var(--sans)}
.guide-panel[open]{display:flex;flex-direction:column}
.guide-panel::backdrop{background:#1e102e2b;backdrop-filter:blur(1.5px)}
.guide-header{display:flex;align-items:center;gap:12px;padding:21px 19px 20px;background:var(--surface-alt);border-bottom:1px solid var(--line);flex:none}
.guide-avatar{width:56px;height:66px;flex:none}
.guide-header>div:not(.guide-avatar){min-width:0;flex:1}
.guide-kicker{display:block;font-family:var(--sans);font-size:9px;line-height:1.5;letter-spacing:.13em;font-weight:700;text-transform:uppercase;color:var(--green)}
.guide-header #guide-title{font-family:var(--display);font-weight:700;font-size:27px;line-height:1.05;letter-spacing:-.025em;margin:5px 0 7px;color:inherit}
.guide-header #guide-description{font-size:11px;line-height:1.55;max-width:240px;color:var(--muted);margin:0}
.guide-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-family:var(--sans);font-size:22px;line-height:1;cursor:pointer}
.guide-header>.guide-icon-button{align-self:flex-start;margin-left:0}
.guide-icon-button:hover{background:var(--surface)}
.guide-context{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--surface);flex:none;min-width:0}
.guide-context>svg{width:17px;height:17px;flex:none;color:var(--green)}
.guide-context>div{min-width:0;flex:1}
.guide-context small{display:block;font-size:8px;font-weight:700;letter-spacing:.08em;line-height:1.5;text-transform:uppercase;color:var(--muted)}
.guide-context strong{display:block;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.guide-page-search{display:flex;align-items:center;justify-content:center;gap:4px;flex:none;max-width:110px;padding:7px 9px;border:1px solid var(--line);border-radius:5px;background:var(--surface-soft);color:var(--green);font:600 10px/1.4 var(--sans)}
.guide-page-search svg{width:14px;height:14px;flex:none}
.guide-page-search:hover{border-color:var(--green)}
.guide-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--accent-line) transparent;padding:23px 20px 20px;scroll-behavior:smooth}
.guide-welcome h3{font-family:var(--display);font-size:29px;font-weight:700;line-height:1.05;letter-spacing:-.025em;margin:10px 0 12px}
.guide-welcome>p{font-size:13px;line-height:1.75;color:var(--muted);margin:0 0 19px}
.guide-suggestions{display:flex;flex-direction:column;gap:8px}
.guide-suggestions button{display:flex;align-items:center;gap:12px;padding:13px 14px;text-align:left;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);transition:border-color .15s,background .15s}
.guide-suggestions button>span:first-child{min-width:0;flex:1}
.guide-suggestions button strong{display:block;font-size:13px;line-height:1.4;font-weight:600}
.guide-suggestions button small{display:block;font-size:11px;line-height:1.45;color:var(--muted);margin-top:3px}
.guide-suggestions button>span:last-child{flex:none;font-size:20px;color:var(--green)}
.guide-suggestions button:hover{border-color:var(--green);background:var(--accent-soft)}
.guide-welcome .guide-coverage{margin:21px 0 0;border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:10px;line-height:1.7}
.guide-coverage strong{font-weight:600;color:var(--ink)}
.guide-coverage span{display:inline-block}
.guide-coverage svg{width:12px;height:12px;vertical-align:-2px;margin-right:4px;color:var(--green)}

.guide-messages{display:flex;flex-direction:column;gap:25px;min-width:0}
.guide-turn{min-width:0}
.guide-question{margin:0 0 17px 33px;padding:12px 15px;border-radius:13px 13px 3px 13px;background:var(--green);color:var(--on-accent);overflow-wrap:anywhere}
.guide-question>small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;line-height:1.5;opacity:.8;margin-bottom:4px}
.guide-question>p{margin:0;font-size:13px;line-height:1.65;font-weight:500}
.guide-reply-label{display:block;font-size:8px;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--green)}
.guide-reply>p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0 13px}
.guide-reply>p strong{color:var(--ink);font-weight:600}
.guide-query-note{display:block;font:400 10px/1.5 var(--sans);color:var(--muted);margin:-4px 0 13px;overflow-wrap:anywhere}
.guide-results,.guide-group-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px}
.guide-results>li,.guide-group-list>li{margin:0;padding:0;min-width:0}
.guide-result{display:block;padding:14px 15px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);text-decoration:none;transition:border-color .15s,background .15s;overflow-wrap:anywhere}
.guide-result:hover{border-color:var(--green);background:var(--accent-soft)}
.guide-result-meta{display:block;font-size:8px;font-weight:700;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.guide-result-meta>small{display:block;font:400 9px/1.5 var(--sans);letter-spacing:0;text-transform:none;color:var(--muted);margin-top:2px}
.guide-result h4{font-family:var(--display);font-size:16px;font-weight:700;line-height:1.25;letter-spacing:-.015em;margin:6px 0 8px;color:var(--ink)}
.guide-result h4>span{color:var(--green)}
.guide-result p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.guide-result mark{background:var(--accent-soft);color:var(--ink);font-weight:600}
.guide-result-group{margin:17px 0 0}
.guide-result-group>h4{font:700 11px/1.5 var(--sans);color:var(--ink);margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.guide-result-group>p{font:400 12px/1.7 var(--sans);color:var(--muted);margin:0 0 10px}
.guide-followups{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.guide-followups button{border:1px solid var(--accent-line);border-radius:20px;padding:7px 10px;background:var(--accent-soft);color:var(--green);font:600 10px/1.4 var(--sans)}
.guide-followups button:hover{background:var(--green);color:var(--on-accent);border-color:var(--green)}
.guide-more{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--green);padding:11px 0 3px;font:600 11px/1.5 var(--sans);text-align:left;text-decoration:underline;text-underline-offset:3px}
.guide-more:hover{text-decoration-thickness:2px}
.guide-more>small{font-size:9px;line-height:1.5;color:var(--muted);font-weight:400;margin-left:4px;text-decoration:none}
.guide-form{flex:none;border-top:1px solid var(--line);background:var(--surface);padding:15px 18px 13px;margin:0}
.guide-input-row{display:flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--accent-line);border-radius:9px;padding:5px 6px 5px 13px}
.guide-input-row:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.guide-input-row input,.guide-input-row textarea{display:block;min-width:0;width:100%;flex:1;font:400 14px/1.5 var(--sans);padding:10px 0;color:var(--ink);background:transparent;border:0;border-radius:0;outline:0;box-shadow:none;margin:0}
.guide-input-row input::placeholder,.guide-input-row textarea::placeholder{color:var(--muted);opacity:1}
.guide-submit{display:flex;align-items:center;justify-content:center;width:37px;height:37px;flex:none;background:var(--green);color:var(--on-accent);padding:9px;border:0;border-radius:6px}
.guide-submit svg{width:19px;height:19px;display:block}
.guide-submit:hover{background:var(--accent-hover)}
.guide-submit:disabled{opacity:.42}
.guide-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:9px;line-height:1.5}
.guide-foot>small{font-size:9px;margin-right:auto}
.guide-motion,.guide-clear{display:inline-flex;align-items:center;gap:4px;min-height:28px;background:none;border:0;color:var(--muted);font:400 10px/1.5 var(--sans);padding:4px 0;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.guide-motion svg{width:11px;height:11px;flex:none}
.guide-motion:hover,.guide-clear:hover{color:var(--green)}
.guide-panel :is(button,a,input):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.guide-input-row input:focus-visible{outline:0}
.guide-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

:root[data-theme="curiosity"] .guide-launcher-label strong{font-size:24px}
:root[data-theme="curiosity"] .guide-panel{border-radius:7px;border-color:#bd9bc5}
:root[data-theme="curiosity"] .guide-header{background:#ffd642;color:#171219;border-bottom-color:#cfb241}
:root[data-theme="curiosity"] .guide-header .guide-kicker{color:#691174}
:root[data-theme="curiosity"] .guide-header #guide-title{font-size:34px}
:root[data-theme="curiosity"] .guide-header #guide-description{color:#4f3c4e}
:root[data-theme="curiosity"] .guide-header .guide-icon-button{color:#381540;border-color:#b79735}
:root[data-theme="curiosity"] .guide-header .guide-icon-button:hover{background:#ffe481}
:root[data-theme="curiosity"] .guide-welcome h3{font-size:37px}
:root[data-theme="curiosity"] .guide-result h4{font-size:23px;line-height:1.1}
:root[data-theme="dark"] .guide-launcher-label{box-shadow:0 4px 25px #0006}
:root[data-theme="dark"] .guide-panel{box-shadow:0 22px 85px #0009}

.guide-robot-float{animation:guide-robot-bob 7s ease-in-out infinite;transform-origin:60px 104px}
.guide-robot-head{animation:guide-robot-look 13s ease-in-out infinite;transform-origin:59px 81px}
.guide-robot-eyes{animation:guide-robot-blink 8.5s linear infinite;transform-box:fill-box;transform-origin:center}
.guide-robot-wave{animation:guide-robot-wave 12s ease-in-out infinite;transform-origin:84px 89px}
.guide-robot-shadow{animation:guide-robot-shadow 7s ease-in-out infinite;transform-origin:59px 132px}
.guide-avatar .guide-robot-wave,.guide-avatar .guide-robot-head{animation:none}
.guide-avatar .guide-robot-float{animation:none}
.guide-avatar .guide-robot-shadow{animation:none}
.explorer-guide[data-motion="paused"] .guide-robot-art *{animation:none!important}
.explorer-guide[data-motion="paused"] .guide-launcher-robot{transition:none}
.explorer-guide[data-motion="paused"] .guide-launcher:hover .guide-launcher-robot{transform:none}
@keyframes guide-robot-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes guide-robot-look{0%,60%,100%{transform:rotate(0)}70%,85%{transform:rotate(-4deg)}}
@keyframes guide-robot-blink{0%,91%,94%,100%{transform:scaleY(1)}92%,93%{transform:scaleY(.08)}}
@keyframes guide-robot-wave{0%,74%,100%{transform:rotate(0)}78%,86%{transform:rotate(-10deg)}82%,90%{transform:rotate(4deg)}}
@keyframes guide-robot-shadow{0%,100%{transform:scaleX(1);opacity:1}50%{transform:scaleX(.93);opacity:.7}}

@media(max-width:520px){
  .guide-launcher{left:max(10px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom))}
  .guide-launcher-robot{width:66px;height:77px}
  .guide-launcher-label{display:none}
  .guide-panel{left:max(8px,env(safe-area-inset-left));bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--guide-viewport-bottom,0px));width:calc(100% - 16px);max-width:calc(100% - 16px);height:min(744px,calc(var(--guide-viewport-height,100dvh) - 16px));max-height:calc(var(--guide-viewport-height,100dvh) - 16px);border-radius:12px}
  .guide-header{padding:16px 14px;gap:9px}
  .guide-avatar{width:47px;height:56px}
  .guide-header #guide-title{font-size:25px}
  :root[data-theme="curiosity"] .guide-header #guide-title{font-size:32px}
  .guide-header #guide-description{font-size:10px}
  .guide-kicker{font-size:8px}
  .guide-icon-button{width:32px;height:32px}
  .guide-context{padding:10px 16px}
  .guide-scroll{padding:20px 16px}
  .guide-form{padding:13px 14px 10px}
  .guide-input-row input,.guide-input-row textarea{font-size:16px}
  .guide-question{margin-left:23px}
  .guide-result{padding:12px 13px}
  .guide-foot{gap:8px}
  .guide-foot>small,.guide-motion,.guide-clear{font-size:9px}
}
@media(max-height:540px){
  .guide-header{padding-top:11px;padding-bottom:11px}
  .guide-avatar{width:39px;height:45px}
  .guide-header #guide-description{display:none}
  .guide-context{padding-top:7px;padding-bottom:7px}
  .guide-form{padding-top:10px;padding-bottom:8px}
}
@media(prefers-reduced-motion:reduce){
  .guide-robot-art *{animation:none!important}
  .guide-launcher-robot,.guide-launcher-label,.guide-result,.guide-suggestions button{transition:none}
  .guide-launcher:hover .guide-launcher-robot{transform:none}
  .guide-scroll{scroll-behavior:auto}
}
