/* Page walkthrough (assets/js/tour.js): shade + highlight ring + explanation card. Brand colours: #162839 / #fc8f34. */
#imc-tour { position: fixed; inset: 0; z-index: 10000; isolation: isolate; }
#imc-tour[hidden] { display: none !important; }
#imc-tour .tour-shade { position: absolute; inset: 0; pointer-events: auto; }
#imc-tour .tour-ring {
  position: fixed; border: 2px solid #fc8f34; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 20, 32, .68); transition: left .18s, top .18s, width .18s, height .18s;
}
#imc-tour .tour-dialog {
  position: fixed; background: #fff; color: #1f2937; border: 1px solid #fc8f34; border-radius: 14px; padding: 1rem 1.1rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35); overflow: auto; overscroll-behavior: contain;
  font-size: .9375rem; line-height: 1.8; max-width: calc(100vw - 24px); overflow-wrap: anywhere;
}
#imc-tour h2 { font-size: 1.125rem; line-height: 1.6; margin: .4rem 0 .35rem; font-weight: 700; color: #162839; }
#imc-tour p { margin: 0 0 .9rem; color: #4b5563; }
#imc-tour .tour-top, #imc-tour .tour-footer, #imc-tour .tour-footer > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#imc-tour .tour-footer, #imc-tour .tour-footer > div { flex-wrap: wrap; }
#imc-tour .tour-top { font-size: .8125rem; color: #944a00; font-weight: 600; }
#imc-tour button {
  font: inherit; font-size: .875rem; line-height: 1.5; min-height: 2.5rem; padding: .35rem .8rem; border-radius: 8px;
  border: 1px solid #d1d5db; background: #f3f4f6; color: #162839; cursor: pointer;
}
#imc-tour button:disabled { opacity: .4; cursor: default; }
#imc-tour button:focus-visible, #imc-tour input:focus-visible { outline: 3px solid #fc8f34; outline-offset: 2px; }
#imc-tour button.tour-next { background: #162839; border-color: #162839; color: #fff; }
#imc-tour #tour-close { min-height: 2rem; padding: 0 .5rem; font-size: 1.25rem; line-height: 1; background: transparent; border-color: transparent; }
#imc-tour .tour-choice { display: flex; align-items: center; gap: .55rem; font-size: .8125rem; color: #4b5563; margin-bottom: .9rem; }
#imc-tour .tour-choice input { width: 1.05rem; height: 1.05rem; accent-color: #fc8f34; }
@media (max-width: 640px) { #imc-tour button { min-height: 2.75rem; } }
@media (prefers-reduced-motion: reduce) { #imc-tour .tour-ring { transition: none; } }

/* "Explain this window" button inside dialogs (assets/js/tour.js) */
.tour-dlg-help {
  width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid #fc8f34; background: #fff7ed; color: #9a4a00;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; flex: none; margin-inline-start: auto; margin-inline-end: .5rem;
}
.tour-dlg-help:hover { background: #fc8f34; color: #fff; }
.tour-dlg-help:focus-visible { outline: 3px solid #162839; outline-offset: 2px; }
.tour-dlg-help-float { position: absolute; top: .75rem; inset-inline-end: 3rem; z-index: 2; }
