/* Site tour (assets/js/site-tour.js). Uses the site's own colour variables, so light and dark mode both work. */
html.st-lock { overflow: hidden; }

/* Help button + menu */
.st-help { position: fixed; left: 1rem; bottom: 1rem; z-index: 45; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.st-help-btn { display: inline-flex; align-items: center; gap: .45rem; height: 44px; min-width: 44px; padding: 0 .85rem 0 .5rem; border: 1px solid var(--line-strong, #9aa8a6); border-radius: 999px; background: var(--surface, #fff); color: var(--brand-ink, #14232a); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.st-help-btn:hover, .st-help-btn:focus-visible { border-color: var(--brand-primary-dark, #0d4b50); }
.st-help-q { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-primary, #1b7a4e); color: var(--brand-ink, #fff); font-weight: 700; }
.st-help-menu { min-width: 190px; padding: .35rem; border: 1px solid var(--line-strong, #9aa8a6); border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.st-help-menu[hidden] { display: none; }
.st-help-item { display: block; width: 100%; padding: .65rem .75rem; border: 0; border-radius: 10px; background: none; color: var(--brand-ink, #14232a); font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.st-help-item:hover, .st-help-item:focus-visible { background: rgba(127,127,127,.14); }
.st-pulse { animation: stPulse 1.4s ease-out 4; }
@keyframes stPulse { 0% { box-shadow: 0 0 0 0 rgba(27,122,78,.55); } 100% { box-shadow: 0 0 0 16px rgba(27,122,78,0); } }
@media (max-width: 640px) { .st-help-lbl { display: none; } .st-help-btn { padding: 0 .5rem; } }

/* Welcome popup */
.st-welcome { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 1rem; background: rgba(8,14,16,.62); animation: stFade .2s ease-out; }
.st-wbox { position: relative; width: min(100%, 420px); padding: 1.8rem 1.4rem 1.4rem; border-radius: 18px; background: var(--surface, #fff); color: var(--brand-ink, #14232a); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.st-x { position: absolute; top: .5rem; right: .6rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.st-x:hover, .st-x:focus-visible { background: rgba(127,127,127,.16); }
.st-wico { font-size: 2.4rem; line-height: 1; }
.st-wtitle { margin: .6rem 0 .4rem; font-family: var(--font-heading, inherit); font-size: 1.35rem; }
.st-wtext { margin: 0 0 1.2rem; color: var(--ink-soft, inherit); line-height: 1.55; }
.st-wbtns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Tour overlay */
.st-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.st-block { position: fixed; inset: 0; pointer-events: auto; }
.st-root.st-dim .st-block { background: rgba(8,14,16,.62); }
.st-spot { position: fixed; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(8,14,16,.62), 0 0 0 3px var(--brand-primary, #1b7a4e); transition: top .22s ease, left .22s ease, width .22s ease, height .22s ease; }
.st-card { position: fixed; z-index: 1; width: min(340px, calc(100vw - 24px)); padding: 1rem 1.1rem .8rem; border-radius: 16px; background: var(--surface, #fff); color: var(--brand-ink, #14232a); box-shadow: 0 18px 48px rgba(0,0,0,.38); pointer-events: auto; animation: stFade .18s ease-out; }
.st-prog { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.st-cnt { flex: 0 0 auto; font-size: .78rem; font-weight: 600; color: var(--ink-soft, inherit); }
.st-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(127,127,127,.25); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand-primary, #1b7a4e); transition: width .25s ease; }
.st-title { margin: 0 0 .3rem; font-family: var(--font-heading, inherit); font-size: 1.1rem; }
.st-text { margin: 0 0 .9rem; font-size: .93rem; line-height: 1.5; }
.st-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.st-more { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.st-more [hidden] { display: none; }
.st-btn { min-height: 42px; padding: 0 1.1rem; border: 1px solid var(--line-strong, #9aa8a6); border-radius: 10px; background: none; color: inherit; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.st-btn:disabled { opacity: .45; cursor: default; }
.st-btn.st-primary { background: var(--brand-primary, #1b7a4e); border-color: var(--brand-primary, #1b7a4e); color: var(--brand-ink, #fff); }
.st-btn:not(:disabled):hover { filter: brightness(.95); }
.st-link { min-height: 36px; padding: 0 .2rem; border: 0; background: none; color: var(--ink-soft, inherit); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.st-btn:focus-visible, .st-link:focus-visible, .st-help-btn:focus-visible, .st-help-item:focus-visible, .st-x:focus-visible { outline: 3px solid rgba(27,122,78,.5); outline-offset: 2px; }
@keyframes stFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-spot, .st-bar i { transition: none; } .st-card, .st-welcome { animation: none; } .st-pulse { animation: none; } }
@media print { .st-help, .st-root, .st-welcome { display: none !important; } }
