/* Guide me: the search panel, the pointer box and the highlight ring. Nothing dims the page. */
.ct-guidebtn { background: linear-gradient(var(--brand-primary-light), var(--brand-primary-dark)); border-color: #3a95ea; }
.ct-guidebtn:hover { background: linear-gradient(#2394f2, #0b78e0); }
.gd-panel { position: fixed; z-index: 1200; top: 58px; right: 16px; width: 440px; max-width: calc(100vw - 24px); max-height: min(640px, calc(100vh - 80px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #b9cadb; border-radius: 8px; box-shadow: 0 24px 60px color-mix(in srgb, var(--brand-navy) 28%, transparent); overflow: hidden; animation: gd-in .18s ease-out; font: 13px/1.45 var(--fb); }
.gd-ph { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 14px; background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; }
.gd-ph > i { font-size: 17px; }
.gd-ph b { font-size: 14px; }
.gd-ph span { font-size: 11.5px; opacity: .85; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-ph .gd-ic { color: #fff; }
.gd-q { display: flex; align-items: center; gap: 8px; margin: 12px 12px 6px; padding: 0 12px; height: 42px; border: 1px solid #9fb2c6; border-radius: 6px; background: #f8fbfd; }
.gd-q:focus-within { border-color: var(--brand-primary-light); box-shadow: 0 0 0 3px rgba(11, 120, 232, .15); background: #fff; }
.gd-q i { color: #5f7184; }
.gd-q input { flex: 1; border: 0; outline: 0; background: transparent; font: 14px var(--fb); color: var(--text); min-width: 0; }
.gd-res { overflow: auto; padding: 0 6px 8px; flex: 1; }
.gd-sec { font: 700 10.5px var(--fb); letter-spacing: .06em; text-transform: uppercase; color: #5f7184; padding: 12px 8px 4px; }
.gd-item { display: flex; width: 100%; align-items: flex-start; gap: 10px; text-align: left; border: 0; background: none; padding: 8px; border-radius: 6px; cursor: pointer; color: var(--text); font: inherit; }
.gd-item > i { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px; background: #e8f1fb; color: var(--brand-primary); font-size: 14px; }
.gd-item span { flex: 1; min-width: 0; }
.gd-item b { display: block; font-weight: 700; font-size: 13px; }
.gd-item small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.gd-item em { font-style: normal; font-size: 10.5px; color: #5f7184; border: 1px solid #d5dfe8; border-radius: 10px; padding: 1px 7px; margin-top: 4px; }
.gd-item:hover, .gd-item.on { background: #eef5fd; }
.gd-item.on > i { background: var(--brand-primary); color: #fff; }
.gd-none { padding: 14px 10px 4px; color: var(--text2); }
.gd-pf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid #e0e7ed; background: #f5f8fb; color: #5f7184; font-size: 11px; }
.gd-pf kbd, .gd-hint kbd { font: 10.5px var(--fb); border: 1px solid #c4d1de; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: #fff; margin: 0 1px; }
.gd-ic { width: 28px; height: 28px; border: 0; background: none; border-radius: 4px; display: inline-grid; place-items: center; cursor: pointer; color: #3d5166; }
.gd-ic:hover { background: rgba(0, 0, 0, .07); }

.gd-ring { position: fixed; z-index: 1190; pointer-events: none; border-radius: 6px; box-shadow: 0 0 0 3px #f97316, 0 0 0 7px rgba(249, 115, 22, .28); transition: top .25s, left .25s, width .25s, height .25s; animation: gd-pulse 1.8s ease-in-out infinite; }
.gd-tip { position: fixed; z-index: 1210; width: 340px; background: #fff; border: 2px solid var(--brand-primary); border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 4px rgba(11, 107, 200, .18), 0 20px 50px color-mix(in srgb, var(--brand-navy) 38%, transparent); font: 13px/1.5 var(--fb); color: var(--text); animation: gd-in .2s ease-out; transition: top .25s, left .25s; }
.gd-hd { display: flex; align-items: center; gap: 6px; padding: 7px 6px 6px 12px; color: #fff; background: linear-gradient(180deg, var(--brand-primary), var(--brand-primary-dark)); }
.gd-hd .gd-ic { color: #fff; }
.gd-hd .gd-ic:hover { background: rgba(255, 255, 255, .16); }
.gd-hd > i { font-size: 14px; }
.gd-crumb { flex: 1; min-width: 0; font-weight: 700; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-count { font-size: 11px; color: #d6e7f8; white-space: nowrap; }
.gd-bar { height: 3px; background: #e4ecf4; }
.gd-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-primary-light), var(--brand-accent)); transition: width .3s; }
.gd-bd { padding: 12px 14px 4px; }
.gd-bd h4 { margin: 0 0 6px; font: 700 15px/1.3 var(--fb); color: #09203b; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-bd p { margin: 0 0 8px; color: #2a3f55; }
.gd-bd.ok h4:before { content: '\F26A'; font-family: bootstrap-icons; color: var(--okFg); }
.gd-bd.warn h4:before { content: '\F33A'; font-family: bootstrap-icons; color: var(--warnFg); }
.gd-tag { font: 700 10px var(--fb); letter-spacing: .04em; text-transform: uppercase; color: #5f7184; background: #eef2f6; border-radius: 10px; padding: 2px 7px; }
.gd-tag.req { color: var(--badFg); background: var(--badBg); }
.gd-err { color: var(--badFg) !important; background: var(--badBg); border-radius: 4px; padding: 6px 8px; font-size: 12.5px; }
.gd-hint { color: #5f7184 !important; font-size: 12px; border-left: 3px solid #cfe0f2; padding-left: 8px; }
.gd-ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px 12px; }
.gd-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gd-b { font: 700 12px var(--fb); min-height: 30px; padding: 0 11px; border-radius: 4px; border: 1px solid #9fb2c6; background: linear-gradient(#fff, #edf3f8); color: #22517a; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gd-b.pri { border-color: var(--brand-primary-dark); background: var(--btn-grad); color: #fff; }
.gd-b:hover { filter: brightness(1.04); }
.gd-mini { position: fixed; z-index: 1210; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 7px 7px 7px 12px; background: var(--brand-navy); color: #dce8f5; border-radius: 22px; box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-navy) 35%, transparent); font: 12.5px var(--fb); }
.gd-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-mini b { color: #fff; }
.gd-mini .gd-b { border-radius: 16px; min-height: 28px; }
.gd-mini .gd-ic { color: #dce8f5; }
.gd-mini .gd-ic:hover { background: rgba(255, 255, 255, .12); }
dialog .gd-tip, dialog .gd-ring, dialog .gd-point { position: fixed; }
@keyframes gd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gd-pulse { 0%, 100% { box-shadow: 0 0 0 3px #f97316, 0 0 0 7px rgba(249, 115, 22, .28); } 50% { box-shadow: 0 0 0 3px #f97316, 0 0 0 12px rgba(249, 115, 22, .1); } }
@media (max-width: 760px) {
    .gd-panel { top: 56px; right: 12px; left: 12px; width: auto; }
    .ct-guidebtn .lbl { display: none; }
    .gd-tip { border-radius: 10px; }
}
/* The orange arrow that says exactly where to click, type or look next. */
.gd-point { position: fixed; z-index: 1215; pointer-events: none; display: flex; align-items: center; gap: 2px; font: 13px/1.25 var(--fb); }
.gd-point[data-dir=down] { flex-direction: column-reverse; }
.gd-point[data-dir=up] { flex-direction: column; }
.gd-point[data-dir=right] { flex-direction: row-reverse; }
.gd-arrow { display: block; width: 46px; height: 34px; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--brand-navy) 35%, transparent)); }
.gd-arrow svg { display: block; width: 100%; height: 100%; animation: gd-nudge .9s ease-in-out infinite; }
.gd-point[data-dir=left] .gd-arrow { transform: rotate(180deg); }
.gd-point[data-dir=down] .gd-arrow { transform: rotate(90deg); margin: 6px 0; }
.gd-point[data-dir=up] .gd-arrow { transform: rotate(-90deg); margin: 6px 0; }
.gd-pl { background: #c2410c; color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 6px 11px 7px; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-navy) 35%, transparent); max-width: 190px; text-align: center; }
.gd-pl b { display: block; font: 800 14px/1.2 var(--fb); letter-spacing: .06em; white-space: nowrap; }
.gd-pl small { display: block; font-size: 11.5px; margin-top: 2px; color: #ffe8d6; }
@keyframes gd-nudge { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .gd-ring, .gd-tip, .gd-panel, .gd-arrow svg { animation: none !important; transition: none; } }
body.gd-on .tr-help { display: none; }
/* Make room for Guide me in the top bar on phones. */
@media (max-width: 560px) {
    .ct-top-actions { gap: 5px; }
    .ct-top-actions a.ct-topbtn[title="Public site"] { display: none; }
}
