/* Archelaos Historical Assistant — explicitly enabled preview only. */
#arcChatToggle{width:44px;height:44px;min-width:44px;flex:0 0 44px;display:grid;place-items:center;position:relative}
#arcChatToggle[aria-expanded="true"],#arcChatToggle.arc-chat-minimized{background:#F4D83F!important;color:#12583c!important;border-color:#e5c72d!important}
#arcChatToggle svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
#arcChatPanel{--arc-green:#176948;--arc-yellow:#F4D83F;position:fixed!important;box-sizing:border-box!important;top:86px;bottom:0;left:0;right:auto;width:min(480px,calc(100vw - 20px));height:calc(100dvh - 86px);max-height:calc(100dvh - 86px);z-index:145!important;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#184c34;border:1px solid #dce7df;border-left:0;border-radius:0 24px 24px 0;box-shadow:16px 0 65px rgba(13,63,41,.17);visibility:hidden;opacity:0;pointer-events:none;transform:translateX(-103%);filter:none;transition:transform var(--arc-motion-drawer,390ms) cubic-bezier(.22,1,.36,1),opacity var(--arc-motion-content,290ms) ease,visibility 0s linear var(--arc-motion-drawer,390ms);font-family:inherit}
#arcChatPanel[data-open="true"]{visibility:visible;opacity:1;pointer-events:auto;transform:translateX(0);filter:none;transition:transform var(--arc-motion-drawer,390ms) cubic-bezier(.22,1,.36,1),opacity var(--arc-motion-content,290ms) ease,visibility 0s}
#arcChatPanel *{box-sizing:border-box}
#arcChatPanel .arc-chat-head{background:#104c38;color:#fff;display:flex;align-items:center;gap:11px;padding:13px 16px;position:relative;flex:0 0 auto}
#arcChatPanel .arc-chat-head:after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:2px;background:#F4D83F;opacity:.85}
#arcChatPanel .arc-chat-mark{width:48px;height:48px;object-fit:contain;flex:none;filter:none;box-shadow:none;background:transparent;border-radius:0;padding:0}
#arcChatPanel .arc-chat-identity{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#arcChatPanel .arc-chat-identity strong{font-size:13px;font-weight:750;letter-spacing:.075em;color:white}
#arcChatPanel .arc-chat-identity span{font-size:11px;color:#d9e9e0;letter-spacing:.015em}
#arcChatPanel .arc-chat-identity .arc-chat-heritage{font-size:10px;color:#F4D83F;letter-spacing:.13em}
#arcChatPanel .arc-chat-identity .arc-chat-tagline{font-size:10px;color:#d9e9e0}
#arcChatPanel button{font-family:inherit;cursor:pointer}
#arcChatPanel .arc-chat-head button{border-radius:50%;border:1px solid rgba(255,255,255,.28);color:#fff;background:rgba(255,255,255,.08);width:44px;height:44px;flex:none;display:grid;place-items:center;font-size:23px;line-height:1;transition:background .2s,color .2s,transform .2s}
#arcChatPanel .arc-chat-head button:hover,#arcChatPanel .arc-chat-head button:focus-visible{background:#F4D83F;color:#104c38;transform:translateY(-2px)}
#arcChatPanel .arc-chat-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:24px 25px 24px;scrollbar-color:#abc6b4 transparent}
#arcChatPanel .arc-chat-intro{text-align:center;max-width:390px;margin:0 auto 14px}
#arcChatPanel .arc-chat-intro h2{font-size:clamp(19px,2.7vw,22px);color:#104c38;line-height:1.24;letter-spacing:-.025em;margin:0 0 7px;font-weight:750}
#arcChatPanel .arc-chat-intro p{font-size:13px;line-height:1.5;color:#62786a;margin:0}
#arcChatPanel .arc-chat-prompts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
#arcChatPanel .arc-chat-prompt{text-align:left;min-height:68px;border-radius:14px;border:1px solid #dce8df;background:#f8fbf8;padding:13px 14px;color:#176948;font-size:13px;font-weight:650;line-height:1.45;transition:background .2s,border-color .2s,transform .2s}
#arcChatPanel .arc-chat-prompt:hover,#arcChatPanel .arc-chat-prompt:focus-visible{background:#fff9cf;border-color:#F4D83F;transform:translateY(-2px)}
#arcChatPanel .arc-chat-foot{padding:14px 18px max(13px,env(safe-area-inset-bottom));border-top:1px solid #e0eae2;flex:0 0 auto;background:#fff}
#arcChatPanel .arc-chat-compose{border:1px solid #ceddd2;border-radius:14px;display:flex;align-items:flex-end;padding:7px 8px 7px 14px;gap:8px;background:#fff}
#arcChatPanel textarea{flex:1;min-width:0;resize:none;border:0!important;outline:0!important;box-shadow:none!important;font:inherit;font-size:15px;line-height:1.5;min-height:40px;max-height:116px;padding:9px 0 4px;background:transparent;color:#104c38}
#arcChatPanel .arc-chat-send{width:40px;height:40px;flex:none;display:grid;place-items:center;border:0;border-radius:12px;background:#edf1ed;color:#8ba297;font-size:21px;cursor:not-allowed}
#arcChatPanel .arc-chat-preview-note{font-size:11px;color:#677f70;margin:8px 2px 0;line-height:1.4;text-align:center}
#arcChatPanel .arc-chat-privacy-link{color:#155e42;font-weight:650;text-decoration:underline;text-underline-offset:2px}
#arcChatPanel .arc-chat-privacy-link:hover,#arcChatPanel .arc-chat-privacy-link:focus-visible{color:#947800}
#arcChatPanel button:focus-visible,#arcChatToggle:focus-visible{outline:3px solid #F4D83F;outline-offset:2px}
#arcChatPanel .arc-chat-reset{background:transparent;border:0;color:#59816a;font-size:11px;text-decoration:underline;text-underline-offset:3px;display:block;margin:12px auto 0}
@media (min-width:961px){
 body.arc-chat-enabled #siteHeader{z-index:135!important}
 body.arc-chat-enabled #mainMenu{top:86px!important;bottom:0!important;height:calc(100dvh - 86px)!important;max-height:calc(100dvh - 86px)!important}
 body.arc-chat-enabled #menuBackdrop{z-index:124!important}
 body.arc-chat-dual #arcChatPanel{left:0}
 body.arc-chat-dual #menuBackdrop{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
@media(max-width:960px) and (min-width:761px){
 #arcChatPanel{width:min(480px,calc(100vw - 16px))}
}
@media(max-width:760px){
 #arcChatPanel{top:0!important;left:0!important;bottom:0!important;right:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;transform:translateX(-103%);filter:none!important}
 #arcChatPanel[data-open="true"]{transform:translateX(0)}
 #arcChatPanel .arc-chat-body{padding:24px 18px}
 #arcChatPanel .arc-chat-head{padding-top:max(12px,env(safe-area-inset-top))}
 #arcChatPanel .arc-chat-prompts{grid-template-columns:1fr}
 #arcChatPanel .arc-chat-prompt{min-height:53px}
 #arcChatPanel .arc-chat-mark{width:40px;height:40px}
 #arcChatPanel .arc-chat-identity .arc-chat-tagline{display:none}
}
/* Compact only the button spacing. Preserve the site's original wordmark/emblem
   morph: the temporary chat must never force the emblem, suppress the wordmark
   or override the crest's position/opacity/rotation. */
@media(max-width:440px){
 body.arc-chat-enabled #siteHeader{padding-inline:8px!important;gap:3px!important}
 body.arc-chat-enabled #siteHeader .header-actions{gap:2px!important;flex-wrap:nowrap!important}
 body.arc-chat-enabled #siteHeader .header-actions .circle-action{width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important}
 body.arc-chat-enabled #siteHeader:not(.scrolled-brand) .brand-morph{left:8px!important;max-width:calc(100vw - 244px)!important}
 body.arc-chat-enabled #siteHeader.scrolled-brand .brand-morph{left:8px!important}
}
/* Very narrow phones: keep the entire club wordmark legible without
   shrinking the three primary 44px touch targets (Favorites, Chat, Menu).
   Contribution is already an explicit link inside the navigation drawer. */
@media(max-width:340px){
 body.arc-chat-enabled #siteHeader .header-actions>.contribution-launch-v55{
  display:none!important;
 }
 body.arc-chat-enabled #siteHeader:not(.scrolled-brand) .brand-morph{
  max-width:calc(100vw - 198px)!important;
 }
}
@media(max-width:350px){
 body.arc-chat-enabled #siteHeader:not(.scrolled-brand) .brand-words strong{font-size:10px}
 body.arc-chat-enabled #siteHeader:not(.scrolled-brand) .brand-words small{font-size:9px}
}
@keyframes arcChatTextAppear{from{opacity:0;transform:translate3d(0,5px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
#arcChatPanel[data-open="true"] .arc-chat-intro h2{animation:arcChatTextAppear .39s .04s cubic-bezier(.19,1,.22,1) both}
#arcChatPanel[data-open="true"] .arc-chat-intro p{animation:arcChatTextAppear .42s .10s cubic-bezier(.19,1,.22,1) both}
#arcChatPanel[data-open="true"] .arc-chat-prompt{animation:arcChatTextAppear .38s cubic-bezier(.19,1,.22,1) both}
#arcChatPanel[data-open="true"] .arc-chat-prompt:nth-child(1){animation-delay:.06s}
#arcChatPanel[data-open="true"] .arc-chat-prompt:nth-child(2){animation-delay:.09s}
#arcChatPanel[data-open="true"] .arc-chat-prompt:nth-child(3){animation-delay:.12s}
#arcChatPanel[data-open="true"] .arc-chat-prompt:nth-child(4){animation-delay:.15s}
#arcChatPanel .arc-chat-message-user{animation:arcChatTextAppear .29s cubic-bezier(.19,1,.22,1) both}
#arcChatPanel .arc-chat-message-assistant{animation:arcChatTextAppear .39s cubic-bezier(.19,1,.22,1) both}
#arcChatPanel .arc-chat-message-assistant .arc-chat-source{animation:arcChatTextAppear .39s .06s cubic-bezier(.19,1,.22,1) both}
@media(prefers-reduced-motion:reduce){
 #arcChatPanel,#arcChatPanel *{transition:none!important;animation:none!important}
 #arcChatPanel{filter:none!important}
}
/* QA-only connected transcript: plain text, safe-source links, no markdown interpretation. */
#arcChatPanel .arc-chat-messages{display:flex;flex-direction:column;gap:17px}
#arcChatPanel .arc-chat-message{font-size:15px;line-height:1.65;max-width:100%;color:#294938}
#arcChatPanel .arc-chat-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#arcChatPanel .arc-chat-message-user{background:#176948;color:#fff;border-radius:16px 16px 4px 16px;padding:12px 16px;margin-left:12%;align-self:flex-end}
#arcChatPanel .arc-chat-message-assistant{padding:2px 0 6px;align-self:stretch}
#arcChatPanel .arc-chat-sources{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
#arcChatPanel .arc-chat-source{border:1.5px solid #F4D83F;border-radius:10px;color:#176948;background:#fff;text-decoration:none!important;padding:9px 10px;font-size:12px;font-weight:650;max-width:100%;overflow-wrap:anywhere}
#arcChatPanel .arc-chat-source:hover,#arcChatPanel .arc-chat-source:focus-visible{background:#fffde9;border-color:#dfbc18;color:#104c38}
#arcChatPanel .arc-chat-copy{display:inline-block;background:transparent;border:0;padding:8px 0 0;margin-top:5px;color:#527864;font-size:11px;cursor:pointer}
#arcChatPanel .arc-chat-send.arc-chat-send-ready{background:#176948;color:white;cursor:pointer}
#arcChatPanel .arc-chat-send.arc-chat-send-ready:disabled{background:#e1e8e2;color:#698376;cursor:wait}
#arcChatPanel .arc-chat-intro[hidden],#arcChatPanel .arc-chat-prompts[hidden]{display:none!important}

#arcChatEdgeTab[hidden],#arcChatSourceDetail[hidden]{display:none!important}
#arcChatEdgeTab{position:fixed;left:0;top:44%;z-index:139;writing-mode:vertical-rl;transform:rotate(180deg);min-height:132px;min-width:35px;border:1.5px solid #F4D83F;border-radius:13px 0 0 13px;background:#fff;color:#176948;font-size:11px;font-weight:700;letter-spacing:.04em;padding:12px 8px;box-shadow:5px 0 21px #16462c26;cursor:pointer}
#arcChatEdgeTab:hover{background:#fff9dc}#arcChatEdgeTab:focus-visible{outline:3px solid #F4D83F;outline-offset:3px}
#arcChatSourceDetail{position:fixed;inset:0;z-index:230;display:flex;justify-content:flex-end;background:rgba(8,38,25,.27)}
#arcChatSourceDetail .arc-chat-detail-sheet{width:min(570px,100vw);height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:#fff;color:#173e2b;border-left:1px solid #e1e9e3;box-shadow:-15px 0 60px #092f252b;padding:26px clamp(20px,4vw,35px) 40px;animation:arcDetailSlide .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes arcDetailSlide{from{opacity:.8;transform:translateX(35px)}to{opacity:1;transform:translateX(0)}}
#arcChatSourceDetail .arc-chat-detail-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:1px solid #e1eae1}
#arcChatSourceDetail .arc-chat-detail-kicker{font-size:11px;letter-spacing:.14em;color:#176948;font-weight:750}
#arcChatSourceDetail .arc-chat-detail-close{border:1px solid #d9e8da;border-radius:50%;background:#fff;color:#176948;width:44px;height:44px;font-size:24px;display:grid;place-items:center;cursor:pointer}
#arcChatSourceDetail .arc-chat-detail-close:hover{background:#F4D83F;border-color:#F4D83F}
#arcChatSourceDetail h2{font-size:clamp(27px,4vw,40px);line-height:1.2;font-weight:650;margin:30px 0 12px;color:#104c38}
#arcChatSourceDetail .arc-chat-detail-meta{font-size:13px;color:#587765;margin:0 0 24px}
#arcChatSourceDetail .arc-chat-detail-copy{font-size:15px;line-height:1.82;white-space:pre-wrap;overflow-wrap:anywhere;color:#324d3c}
#arcChatSourceDetail .arc-chat-detail-original{display:inline-flex;margin-top:25px;padding:11px 16px;border:1.5px solid #F4D83F;border-radius:12px;background:#fff;color:#176948;text-decoration:none;font-size:13px;font-weight:700}
#arcChatSourceDetail .arc-chat-detail-original:hover{background:#fff9d7}
#arcChatPanel .arc-chat-inline-citation{display:inline;padding:1px 3px;color:#176948;border-bottom:1px solid #F4D83F;text-decoration:none!important;font-size:.89em;font-weight:650}
@media(max-width:760px){#arcChatEdgeTab{display:none!important}#arcChatSourceDetail{background:#fff}#arcChatSourceDetail .arc-chat-detail-sheet{width:100%;padding-top:max(16px,env(safe-area-inset-top));border:0;box-shadow:none}}
@media(prefers-reduced-motion:reduce){#arcChatSourceDetail .arc-chat-detail-sheet{animation:none!important}}

/* Original museum/gallery overlays take precedence without dismissing the chat. */
body.arc-chat-enabled #overlay.open,body.arc-chat-enabled #pgViewer.pg-open{z-index:190!important}
/* Source close keeps the real card mounted until its exit motion completes. */
#arcChatSourceDetail{transition:background-color .32s ease}
#arcChatSourceDetail[data-closing="true"]{background:rgba(8,38,25,0);pointer-events:none}
@keyframes arcDetailSlideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(55px)}}
#arcChatSourceDetail[data-closing="true"] .arc-chat-detail-sheet{animation:arcDetailSlideOut .32s cubic-bezier(.32,.7,.2,1) both}
@media(prefers-reduced-motion:reduce){#arcChatSourceDetail[data-closing="true"] .arc-chat-detail-sheet{animation:none!important}}

#arcChatPanel .arc-chat-provenance{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;color:#547b62;font-size:11px;letter-spacing:.015em;font-weight:720}
#arcChatPanel .arc-chat-provenance::before{content:"";width:7px;height:7px;border-radius:50%;background:#F4D83F;flex:none}
#arcChatPanel .arc-chat-followups{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px;padding-top:14px;border-top:1px solid #edf0ea}
#arcChatPanel .arc-chat-followups strong{width:100%;font-size:11px;font-weight:780;color:#50765e}
#arcChatPanel .arc-chat-followup{display:inline-flex;align-items:center;min-height:39px;padding:9px 12px;border:1px solid #d4e5d9;background:#fff;color:#176948;border-radius:11px;text-align:left;font-size:12px;line-height:1.45;cursor:pointer;transition:background .2s,border-color .2s}
#arcChatPanel .arc-chat-followup:hover,#arcChatPanel .arc-chat-followup:focus-visible{background:#fff9d7;border-color:#F4D83F}


/* Server-side vetted private archive provenance is non-navigable by design. */
.arc-chat-source-archive{cursor:default;text-decoration:none;border-style:dashed}
.arc-chat-inline-archive{cursor:help;text-decoration:none;border-bottom:1px dotted currentColor}

/* Reviewed public Voice evidence remains labelled, without unsupported deep links. */
.arc-chat-source-voice{cursor:default;text-decoration:none;border-style:dotted}


/* Public archival image inside the existing historical source layer. */
.arc-chat-detail-copy .arc-chat-clip-image{display:block;margin-inline:auto;max-width:100%;max-height:72vh;object-fit:contain;border-radius:10px}
#arcChatPanel .arc-chat-clip-open{cursor:pointer;font-weight:700;color:#083F2D;background:#fff9d7;border-color:#F4D83F}
#arcChatPanel .arc-chat-clip-open:focus-visible{outline:3px solid #F4D83F;outline-offset:2px}


/* Reviewed photo miniatures expand inside the existing historical source sheet. */
#arcChatPanel .arc-chat-photo-thumb{display:flex;align-items:center;gap:10px;text-align:left;
 padding:7px 10px;border:1px solid #d4e5d9;background:#fff;color:#083F2D;border-radius:12px;
 min-height:58px;width:100%;cursor:zoom-in;font:inherit;font-size:12px}
#arcChatPanel .arc-chat-photo-thumb img{width:48px;height:48px;border-radius:8px;
 flex:none;object-fit:cover;background:#f4f8f5}
#arcChatPanel .arc-chat-photo-thumb:hover,#arcChatPanel .arc-chat-photo-thumb:focus-visible{
 border-color:#F4D83F;background:#fff9d7}
#arcChatPanel .arc-chat-photo-thumb:focus-visible{outline:3px solid #F4D83F;outline-offset:2px}
