/* Contact composition only. Actions and icons share the system catalogue code. */
.final-preview .cp-trigger {color:var(--action-color);background:none}
.cp-trigger .yhy-icon {transition:transform var(--yhy-action-duration) var(--yhy-action-ease)}
.final-preview .site-nav .cp-trigger .yhy-icon,.final-preview .end-note .cp-trigger .yhy-icon {width:var(--action-icon);height:var(--action-icon)}
.cp-trigger[aria-expanded=true] .yhy-icon {transform:rotate(180deg)}
.final-preview .end-note .cp-trigger {display:flex;margin-top:12px}
.contact-panel {
  box-sizing:border-box;position:fixed;inset:auto;margin:0;width:368px;max-width:calc(100vw - 44px);max-height:calc(100dvh - 32px);overflow:auto;
  padding:var(--yhy-space-6,24px);border:1px solid var(--yhy-line);border-radius:var(--yhy-panel-radius);
  background:var(--yhy-surface-overlay);color:var(--yhy-ink);font-family:var(--yhy-font);
  box-shadow:var(--yhy-shadow-overlay,0 16px 48px #00000020);z-index:200;
}
.contact-panel[hidden] {display:none!important}
.contact-panel[data-contact-open=true] {animation:cp-enter var(--yhy-action-duration) var(--yhy-action-ease)}
.contact-panel:popover-open {animation:cp-enter var(--yhy-action-duration) var(--yhy-action-ease)}
.contact-panel::backdrop {background:transparent}
.contact-panel .cp-heading {display:flex;align-items:center;justify-content:space-between;gap:var(--yhy-space-3,12px);margin:0 0 var(--yhy-space-2,8px)}
.contact-panel h2 {font:var(--yhy-weight-medium,500) var(--yhy-heading-font,26px)/var(--yhy-heading-line,32px) var(--yhy-font);letter-spacing:var(--yhy-tracking-tight,-.035em);margin:0;color:var(--yhy-ink)}
.contact-panel .cp-close {flex:none;margin:-6px -10px -6px 0}
.contact-panel .cp-intro {font-size:var(--yhy-body-font,14px);line-height:var(--yhy-body-line,20px);margin:0;color:var(--yhy-muted)}
.contact-panel .cp-email {display:block;margin:var(--yhy-space-6,24px) 0 var(--yhy-space-5,20px);color:var(--yhy-ink);font-size:var(--yhy-email-font,20px);line-height:var(--yhy-email-line,28px);letter-spacing:-.02em;font-weight:var(--yhy-weight-regular,400);user-select:text;overflow-wrap:anywhere}
.contact-panel input.cp-email {box-sizing:border-box;width:100%;min-width:0;height:var(--yhy-email-line,28px);padding:0;border:0;border-radius:0;appearance:none;-webkit-appearance:none;background:transparent;font-family:var(--yhy-font);cursor:text;-webkit-user-select:text}
.contact-panel input.cp-email:focus-visible {outline:var(--yhy-focus-width,2px) solid var(--yhy-ink);outline-offset:var(--yhy-focus-offset,4px)}
.contact-panel .cp-actions {display:grid;gap:var(--yhy-space-2,8px)}
.contact-panel .ce-control:has(.yhy-action) {display:flex;width:100%}
body .contact-panel .ce-control .yhy-action[data-state] {width:100%}
.contact-panel .cp-mail {width:100%}
/* Reserve intrinsic state-label width before the popover becomes visible. */
.contact-panel .ce-label-window {display:grid;width:max-content;transition:none}
.contact-panel .ce-label {position:relative;inset:auto;grid-area:1 / 1;width:max-content}
.contact-panel .cp-status {margin:0;color:var(--yhy-muted);font-size:var(--yhy-caption-font,12px);line-height:var(--yhy-body-line,20px)}
.contact-panel .cp-status[data-copy-state=error] {margin-top:var(--yhy-space-3,12px)}
.cp-study-mark {position:fixed;right:24px;bottom:24px;z-index:90;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;min-height:44px;box-sizing:border-box;border:1px solid #d5d5d1;border-radius:100px;background:#fafafaf2;color:#61615f;font:12px/20px var(--yhy-font);text-decoration:none;box-shadow:0 2px 8px #00000005}
.cp-study-mark:hover {color:#191919}
.cp-study-mark::before {content:'';width:5px;height:5px;border-radius:50%;background:#737373}
@keyframes cp-enter {from{opacity:0;transform:translateY(calc(-1 * var(--yhy-motion-shift,4px)))}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.contact-panel{width:calc(100vw - 44px)}.contact-panel h2{font-size:var(--yhy-heading-font-mobile,24px)}.contact-panel .cp-email{font-size:var(--yhy-email-font-mobile,18px)}.cp-study-mark{right:22px;bottom:18px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.contact-panel:popover-open{animation:none}.cp-trigger .yhy-icon{transition:none}}
@media(prefers-reduced-motion:reduce){.contact-panel[data-contact-open=true]{animation:none}}
