/* ── GUIDE PAGE STYLES ─────────────────────────────────── */
.guide-hero {
    padding: 48px 0 36px;
    text-align: center;
    position: relative;
}
.guide-hero::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    margin: 28px auto 0;
}
.guide-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}
.guide-hero-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
}
.guide-hero-title span { color: var(--accent-cyan); }
.guide-hero-sub {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── INTERACTIVE DIAGRAM WRAPPER ───────────────────────── */
.diagram-section {
    max-width: 900px;
    margin: 0 auto 32px;
}
.diagram-intro {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-amber);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
}
.diagram-intro span {
    display: inline-block;
    animation: blink 1.5s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* The hotspot container — positioned relative so hotspots can be absolute */
.scanner-diagram {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: block;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,200,224,.08);
}
.scanner-diagram img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* ── HOTSPOT ───────────────────────────────────────────── */
.hotspot {
    position: absolute;
    cursor: pointer;
    border: 2px solid rgba(245,166,35,.7);
    border-radius: 4px;
    background: rgba(245,166,35,.08);
    transition: background .2s, border-color .2s, box-shadow .2s;
    z-index: 10;
}
.hotspot:hover {
    background: rgba(245,166,35,.22);
    border-color: var(--accent-amber);
    box-shadow: 0 0 14px rgba(245,166,35,.4);
}
/* Pulse label */
.hotspot-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-amber);
    color: #000;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.hotspot:hover .hotspot-label { opacity: 1; }

/* Click-pulse ring */
.hotspot-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 18px; height: 18px;
    border: 2px solid var(--accent-amber);
    border-radius: 50%;
    animation: ring-pulse 2s ease-out infinite;
}
@keyframes ring-pulse {
    0%  { opacity:.9; transform:translate(-50%,-50%) scale(1); }
    80% { opacity:0;  transform:translate(-50%,-50%) scale(2.4); }
    100%{ opacity:0; }
}

.page-nav {
    margin: 0 auto;
    margin-top: 24px;
    margin-bottom: 60px!important;
    max-width: 780px;
    background: linear-gradient(135deg, rgba(26,127,212,.12) 0%, rgba(0,200,224,.07) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 32px 28px!important;
    text-align: center;    
}

/* ── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,9,16,.82);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    max-width: 50%;
    box-shadow: 0 0 60px rgba(0,200,224,.12), 0 0 0 1px rgba(26,127,212,.2);
    animation: modal-in .18s ease-out;
    position: relative;
    max-height: 88vh;
    overflow-y: auto;
}
@keyframes modal-in { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }

.modal-header {
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.modal-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    flex: 1;
}
.modal-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1;
    width: 28px; height: 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.modal-close:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

.modal-body {
    padding: 20px 18px;
}
.modal-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.modal-body p:last-child { margin-bottom: 0; }
.modal-body strong { color: var(--text-primary); }

.modal-tip {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(26,127,212,.1);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-blue);
    line-height: 1.6;
}

.modal-link-btn {
    display: inline-block;
    margin-top: 16px;
    background: var(--accent-blue);
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .2s;
}
.modal-link-btn:hover { background: var(--accent-cyan); color: #000; text-decoration: none; }

/* LED indicators legend */
.led-legend { display: flex; flex-wrap: wrap; justify-content: space-evenly; margin-top: 12px; margin-left: 30px; }
.led-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.led-dot { width: 10px; height: 10px; border-radius: 5%; flex-shrink: 0; }
.led-dot.green  { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.led-dot.amber  { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.led-dot.red    { background: var(--accent-red);   box-shadow: 0 0 6px var(--accent-red); }

    /* ── FEATURE DISPLAY ──────────────────────── */

/* Hotspot percentage positions — tuned to the screenshot */
/* These are percentages of the image width/height */
/* Archive List (top area) */
#hs-list  { top:6.8%;   left:1.7%;   width:97%; height:56.2%; }
/* SAVE button */
#hs-save     { top:63.2%;  left:1.7%;   width:28%; height:5.5%; }
/* LIST PAGE NAV */
#hs-listnav   { top:63.2%;  left:70.8%;   width:28%; height:5.5%; }
/* FILTER */
#hs-filter   { top:70%;  left:1.7%;   width:97%; height:29%; }
/* Nav button (top left white arrow) */
#hs-nav-r    { top:1.5%;   left:90%;  width:8.4%;  height:4.5%; }

    /* GROUP/TAG PANEL (top area) */
#hs-grouptag  { top:11.2%;   left:2.2%;   width:96%; height:24%; }
/* TALKGROUP PANEL */
#hs-talkgroup     { top:39%;  left:2.2%;   width:96%; height:45%; }
/* Nav button (top left white arrow) */
#hs-nav-l    { top:2%;   left:2.4%;  width:8.4%;  height:7%; }

/* ── FEATURE GRID (below diagram) ──────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 32px;
}
.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
}
.feat-card:hover {
    border-color: var(--accent-amber);
    transform: translateY(-2px);
}
.feat-card-icon { font-size: 18px; margin-bottom: 6px; }
.feat-card-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.feat-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* Hotspot percentage positions — tuned to the screenshot */
/* These are percentages of the image width/height */
/* Display panel (top area) */
#hs-display  { top:13%;   left:5%;   width:90.7%; height:48.5%; }
/* LIVE FEED button */
#hs-live     { top:64.7%;  left:5.5%;   width:27%; height:7.5%; }
/* REPLAY LAST */
#hs-replay   { top:74.5%;  left:5.5%;   width:27%; height:7.5%; }
/* SEARCH CALL */
#hs-search   { top:84%;  left:5.5%;   width:27%; height:7.5%; }
/* HOLD SYS */
#hs-holdsys  { top:64.7%;  left:36.5%;  width:27%; height:7.5%; }
/* SKIP NEXT */
#hs-skip     { top:74.5%;  left:36.5%;  width:27%; height:7.5%; }
/* PAUSE */
#hs-pause    { top:84%;  left:36.5%;  width:27%; height:7.5%; }
/* HOLD TG */
#hs-holdtg   { top:64.7%;  left:67.7%;  width:27%; height:7.5%; }
/* AVOID */
#hs-avoid    { top:74.5%;  left:67.7%;  width:27%; height:7.5%; }
/* SELECT TG */
#hs-selecttg { top:84%;  left:67.7%;  width:27%; height:7.5%; }
/* Volume/group button (top right red square) */
#hs-group    { top:4.5%;   left:88.8%;  width:8.4%;  height:7.5%; }

@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .modal-box {
    width: 95%;
    max-width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    }
}    
dl {
    border: 1px solid #FFF;
    padding: 10px;
    font-family: Roboto, Helvetica Neue, sans-serif;
    font-size: .75rem;
    line-height: 1.0rem;
    color: #1f1f1f;
    background-color: #e5fdfc;
}
dt { color: #8f5c08; }
dd { margin-left: 1.0rem; }