/* Uses the site's existing palette and typefaces; the mobile invitation is never fullscreen. */
.sc-guide-popup[hidden], .sc-guide-popup [hidden] { display: none !important; }
.sc-guide-popup { position: fixed; z-index: 9998; inset: auto .75rem max(.75rem, env(safe-area-inset-bottom)); color: var(--sc-ink); }
.sc-guide-popup-panel { position: relative; box-sizing: border-box; width: 100%; max-width: 38rem; max-height: 75vh; max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain; margin-inline: auto; padding: 1.25rem; border: 1px solid var(--sc-border); border-radius: var(--sc-card-radius); background: var(--sc-canvas); box-shadow: 0 .5rem 2rem rgb(64 38 32 / 18%); }
.sc-guide-popup h2 { margin: 0 2.5rem .65rem 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; text-wrap: balance; }
.sc-guide-popup #sc-guide-popup-intro { margin: 0 0 1rem; font-size: .875rem; line-height: 1.55; }
.sc-guide-popup-close, .sc-guide-popup-decline { color: var(--sc-ink); background: transparent; border: 0; font: inherit; cursor: pointer; min-height: 44px; }
.sc-guide-popup-close { position: absolute; right: .4rem; top: .4rem; width: 44px; padding: 0; font-size: 1.75rem; line-height: 1; }
.sc-guide-popup-decline { display: block; margin: .5rem auto 0; padding: .5rem 1rem; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.sc-guide-popup-expand { width: 100%; }
.sc-guide-popup .sc-resource-fields { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.sc-guide-popup .sc-resource-fields > label:not(.sc-resource-updates) { font-size: .875rem; font-weight: 600; }
.sc-guide-popup .sc-resource-fields > input { min-height: 44px; padding: .65rem .8rem; font-size: 1rem; }
.sc-guide-popup .sc-resource-fields > button { width: 100%; }
.sc-guide-popup .sc-resource-updates { font-size: .875rem; margin-block: .25rem; }
.sc-guide-popup .sc-note { font-size: .8125rem; line-height: 1.5; }
.sc-guide-popup :focus-visible { outline: 3px solid var(--sc-ink); outline-offset: 3px; }
.sc-guide-popup[data-mode="desktop"] { inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgb(64 38 32 / 30%); }
.sc-guide-popup[data-mode="desktop"] .sc-guide-popup-panel { max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem); padding: 2rem; }

/* Original free ebook cover, proportional and compact on mobile. */
.sc-guide-popup-cover { float: right; width: 72px; max-width: 25%; height: auto; margin: 2rem 0 .75rem 1rem; border-radius: 3px; box-shadow: 0 .2rem .6rem rgb(64 38 32 / 15%); }
.sc-guide-popup-expand, .sc-guide-popup #sc-guide-popup-form { clear: both; }
.sc-guide-popup[data-mode="desktop"] .sc-guide-popup-cover { width: 112px; }
