/* SHOW ME AROUND — the page dims, one part of it is lit, a small card says what it is for
   (06 §11bj). The steps live in app/spotlight.py; the behaviour in js/spotlight.js. */

.spot-ring {
    position: fixed; z-index: 1100; border-radius: 12px; pointer-events: none;
    box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(8, 10, 14, .62);
    transition: all .25s ease;
}
.spot-card {
    position: fixed; z-index: 1101; width: min(360px, calc(100vw - 32px));
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35); transition: top .25s ease, left .25s ease;
}
.spot-card .sp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px;
                     font-size: .78rem; color: var(--text-dim); margin-bottom: 6px; }
.spot-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.spot-card p { margin: 0 0 12px; line-height: 1.45; }
.spot-card .sp-dots { display: flex; gap: 5px; margin-left: auto; }
.spot-card .sp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.spot-card .sp-dots i.on { background: var(--accent); }
.spot-card .sp-x { background: none; border: 0; color: var(--text-dim); font-size: 1.2rem; cursor: pointer;
                   padding: 2px 6px; line-height: 1; min-height: 0; }
.spot-card .sp-nav { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spot-card .sp-nav label { font-size: .78rem; color: var(--text-dim); display: flex; gap: 5px; align-items: center; margin: 0; }
.spot-card .sp-nav label input { width: auto; min-height: 0; margin: 0; }
.spot-card .sp-btns { display: flex; gap: 6px; margin-left: auto; }
.spot-card button.sp-b { border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
                         border-radius: 8px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: .88rem; min-height: 0; }
.spot-card button.sp-b.pri { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.spot-card .sp-learn { display: block; margin: -4px 0 12px; font-size: .88rem; }

/* On a phone the card docks at the bottom, clear of the home indicator. */
@media (max-width: 600px) {
    .spot-card { left: 16px !important; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
                 top: auto !important; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .spot-ring, .spot-card { transition: none; }
}

/* The way in: a quiet button always, and on a first visit a chip in its place. */
.spot-chip {
    display: inline-flex; gap: 8px; align-items: center; padding: 6px 8px 6px 12px; border-radius: 999px;
    font-size: .85rem; vertical-align: middle;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid var(--accent); color: var(--text);
}
.spot-chip button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 12px;
                    cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; min-height: 0; }
.spot-chip button.sp-x { background: none; color: var(--text-dim); padding: 0 4px; font-size: 1.05rem; font-weight: 400; }
.spot-open { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px;
             padding: 4px 10px; cursor: pointer; font: inherit; font-size: .82rem; min-height: 0;
             vertical-align: middle; white-space: nowrap; }
.spot-open:hover, .spot-open:focus-visible { color: var(--text); border-color: var(--accent); }

/* Where they sit: pushed to the right end of a breadcrumb row, a small gap elsewhere. */
.crumbs > .spot-open, .crumbs > .spot-chip { margin-left: auto; }
.pagehead-words > .spot-open, .pagehead-words > .spot-chip,
.masthead > .spot-open, .masthead > .spot-chip { margin-top: var(--sp-2, 8px); }
h1 > .spot-open, h1 > .spot-chip { margin-left: 12px; font-weight: 400; }

@media print { .spot-open, .spot-chip, .spot-ring, .spot-card { display: none !important; } }
