body{background:#f5f7fa;color:#111827}.public-header{position:static;box-shadow:0 1px 8px rgba(0,0,0,.06)}.public-header nav{display:flex;gap:16px;flex-wrap:wrap}.map-detail-wrap{max-width:1380px;margin:0 auto;padding:34px 18px 60px}.detail-kicker{color:#008da0;font-weight:800}.detail-title{font-size:clamp(28px,4vw,44px);line-height:1.35;margin:7px 0 12px}.detail-meta{display:flex;gap:8px;flex-wrap:wrap;color:#64748b;font-size:13px}.detail-meta span{border:1px solid #dbe4ea;border-radius:999px;background:#fff;padding:5px 9px}.detail-lead{max-width:900px;color:#475569;font-size:17px;line-height:1.85;margin:20px 0}.keyword-graph-shell{background:#07111f;border:1px solid #173047;border-radius:12px;overflow:hidden;box-shadow:0 18px 45px rgba(15,23,42,.17)}.graph-toolbar{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid rgba(148,163,184,.16);background:rgba(15,23,42,.94);color:#cbd5e1}.graph-toolbar strong{color:#f8fafc}.graph-toolbar-actions{display:flex;gap:7px}.graph-toolbar button{border:1px solid #334155;border-radius:5px;background:#111f31;color:#dbeafe;padding:7px 10px;cursor:pointer}.graph-toolbar button:hover{border-color:#22d3ee;color:#67e8f9}.keyword-graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:clamp(600px,72vh,760px);min-height:0}.keyword-graph-stage{position:relative;min-width:0;height:100%;min-height:0;overflow:hidden;background:radial-gradient(circle at 50% 48%,rgba(14,116,144,.14),transparent 36%),radial-gradient(circle at 50% 50%,rgba(148,163,184,.12) 1px,transparent 1px);background-size:auto,24px 24px}.keyword-graph-svg{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.keyword-graph-svg:active{cursor:grabbing}.graph-edge-visible{stroke:#7190aa}.graph-edge-hit{stroke:transparent;cursor:pointer}.graph-edge,.graph-node{transition:opacity .18s ease;outline:none}.graph-edge.is-muted,.graph-node.is-muted{opacity:.11}.graph-edge.is-active .graph-edge-visible{stroke:#67e8f9;stroke-opacity:.95}.graph-node{cursor:pointer}.graph-node circle:first-child{stroke:rgba(255,255,255,.7);filter:drop-shadow(0 0 11px rgba(34,211,238,.17))}.graph-node:hover circle:first-child,.graph-node:focus circle:first-child,.graph-node.is-active circle:first-child{stroke:#fff;filter:drop-shadow(0 0 16px rgba(103,232,249,.6))}.graph-node-pulse{opacity:.14}.graph-node-research .graph-node-pulse{animation:graphPulse 2.8s ease-in-out infinite}.graph-node-label{fill:#e2e8f0;font-size:12px;font-weight:700;paint-order:stroke;stroke:#07111f;stroke-width:4px;stroke-linejoin:round;pointer-events:none}.graph-node-research .graph-node-label{fill:#67e8f9;font-size:14px}@keyframes graphPulse{0%,100%{opacity:.08}50%{opacity:.35}}.keyword-graph-detail{min-height:0;border-left:1px solid rgba(148,163,184,.18);background:#0d1929;padding:22px 18px;color:#dbe5f0;overflow-y:auto}.graph-detail-kicker{color:#67e8f9;font-size:12px;font-weight:800;letter-spacing:.04em}.keyword-graph-detail h3{margin:7px 0 14px;color:#fff;font-size:24px;line-height:1.35}.keyword-graph-detail h4{margin:24px 0 10px;color:#f8fafc}.graph-detail-metrics{display:flex;gap:7px;flex-wrap:wrap}.graph-detail-metrics span{border:1px solid #294057;background:#132337;border-radius:999px;padding:5px 8px;font-size:12px}.graph-detail-metrics strong{color:#67e8f9}.graph-detail-summary{color:#cbd5e1;line-height:1.75}.graph-detail-route{color:#a5f3fc}.graph-evidence-list{display:grid;gap:12px;padding-left:20px}.graph-evidence-list li{color:#94a3b8}.graph-evidence-list a{color:#7dd3fc;line-height:1.5}.graph-evidence-list div{display:flex;gap:8px;flex-wrap:wrap;color:#94a3b8;font-size:11px;margin-top:3px}.graph-detail-empty,.graph-error{color:#94a3b8}.graph-error{padding:30px}.graph-legend{display:flex;gap:14px;flex-wrap:wrap;padding:11px 14px;border-top:1px solid rgba(148,163,184,.16);background:#0b1726;color:#cbd5e1;font-size:12px}.graph-legend span{display:inline-flex;align-items:center;gap:5px}.graph-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.detail-section{margin-top:22px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px}.detail-section h2{margin-top:0}.ranking{display:grid;gap:9px;padding:0;list-style:none}.ranking li{display:grid;grid-template-columns:minmax(130px,220px) 1fr 45px;gap:10px;align-items:center}.ranking-track{height:9px;border-radius:99px;background:#e2e8f0;overflow:hidden}.ranking-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#06b6d4,#2563eb)}.reference-list{display:grid;gap:9px;padding-left:22px}.reference-list a{color:#008da0}.reference-meta{color:#64748b;font-size:12px}.methodology-note{white-space:pre-wrap;line-height:1.8;color:#475569}.back-link{display:inline-block;margin-top:25px;color:#008da0}.disclaimer{color:#64748b;font-size:13px;line-height:1.7}@media(max-width:980px){.keyword-graph-layout{grid-template-columns:1fr;height:auto}.keyword-graph-stage{height:520px;min-height:0}.keyword-graph-detail{min-height:260px;max-height:none;border-left:0;border-top:1px solid rgba(148,163,184,.18);overflow:visible}}@media(max-width:640px){.keyword-graph-stage{height:430px}.ranking li{grid-template-columns:minmax(100px,150px) 1fr 36px;font-size:13px}.public-header nav{gap:8px;font-size:13px}}@media(prefers-reduced-motion:reduce){.graph-node-research .graph-node-pulse{animation:none}.graph-edge,.graph-node{transition:none}}
/* Public detail header aligned with the admin graph preview layout. */
.map-detail-wrap.preview-wrap{max-width:1480px;margin:0 auto;padding:30px 18px 60px}.preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}.preview-heading>div:first-child{min-width:0;flex:1}.preview-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:4px}.preview-actions .small-btn{min-height:37px;border:1px solid #00bcd4;border-radius:5px;padding:8px 12px;color:#008da0;background:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:background-color .2s ease,color .2s ease,transform .2s ease}.preview-actions .small-btn:hover{background:#00bcd4;color:#fff;transform:translateY(-1px)}.preview-heading .detail-title{font-size:clamp(25px,3vw,36px);margin:5px 0 7px}.detail-lead.preview-lead{max-width:920px;font-size:16px;line-height:1.8;margin:0 0 20px}@media(max-width:640px){.map-detail-wrap.preview-wrap{padding:24px 12px 48px}.preview-heading{display:block}.preview-actions{margin-top:14px}.preview-actions .small-btn{width:100%}}@media(prefers-reduced-motion:reduce){.preview-actions .small-btn{transition:none}.preview-actions .small-btn:hover{transform:none}}

/* Optional link from a keyword map to its related observation report. */
.related-report-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:22px;padding:22px 24px;border:1px solid #bae6fd;border-radius:10px;background:radial-gradient(circle at 86% 20%,rgba(34,211,238,.18),transparent 30%),linear-gradient(135deg,#ecfeff 0%,#fff 58%,#eef2ff 100%);box-shadow:0 12px 28px rgba(15,23,42,.07)}.related-report-kicker{color:#0e7490;font-size:12px;font-weight:800;letter-spacing:.06em}.related-report-panel h2{margin:4px 0 5px;color:#0f172a;font-size:21px}.related-report-panel p{max-width:740px;margin:0;color:#475569;line-height:1.7}.related-report-button{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:10px 16px;border:1px solid #00bcd4;border-radius:6px;background:#00bcd4;color:#fff;font-weight:800;white-space:nowrap;box-shadow:0 9px 20px rgba(0,188,212,.2);transition:transform .22s ease,background-color .22s ease,box-shadow .22s ease}.related-report-button:hover{background:#009fb5;color:#fff;transform:translateY(-1px);box-shadow:0 13px 26px rgba(0,188,212,.28)}@media(max-width:720px){.related-report-panel{display:block;padding:18px}.related-report-button{width:100%;justify-content:center;margin-top:15px;white-space:normal;text-align:center}}@media(prefers-reduced-motion:reduce){.related-report-button{transition:none}.related-report-button:hover{transform:none}}

/* Rich related-report card, visually paired with the report-detail connection card. */
.related-report-panel{position:relative;display:block;overflow:hidden;margin:22px 0 38px;padding:22px;border-color:#a5f3fc;background:radial-gradient(circle at 88% 16%,rgba(139,92,246,.16),transparent 25%),radial-gradient(circle at 75% 90%,rgba(34,211,238,.18),transparent 34%),linear-gradient(135deg,#ecfeff 0%,#f8fafc 58%,#eef2ff 100%);box-shadow:0 14px 34px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.85)}.related-report-panel::before,.related-report-panel::after{content:"";position:absolute;border-radius:50%;pointer-events:none}.related-report-panel::before{right:38px;top:24px;width:54px;height:54px;border:1px solid rgba(6,182,212,.2);box-shadow:0 0 0 12px rgba(6,182,212,.05)}.related-report-panel::after{right:93px;top:67px;width:16px;height:16px;background:rgba(139,92,246,.18);box-shadow:28px -25px 0 rgba(6,182,212,.16),48px 10px 0 rgba(37,99,235,.12)}.related-report-copy{position:relative;z-index:1;max-width:760px}.related-report-kicker{color:#0e7490;font-size:12px;font-weight:800;letter-spacing:.08em}.related-report-panel h2{margin:5px 0 6px;color:#0f172a;font-size:clamp(20px,2.3vw,24px);line-height:1.4}.related-report-panel p{max-width:720px;margin:0 0 16px;color:#475569;font-size:14px;line-height:1.75}.related-report-button{position:relative;z-index:1;width:auto;margin:0;min-height:44px;padding:10px 15px;border-radius:7px;background:linear-gradient(135deg,#06b6d4 0%,#0891b2 62%,#2563eb 130%);box-shadow:0 10px 22px rgba(6,182,212,.24),inset 0 1px 0 rgba(255,255,255,.24)}.related-report-button:hover{background:linear-gradient(135deg,#0891b2 0%,#0e7490 62%,#1d4ed8 130%);box-shadow:0 14px 28px rgba(6,182,212,.3)}.related-report-button-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.16);font-size:13px}.related-report-button-arrow{margin-left:2px;transition:transform .22s ease}.related-report-button:hover .related-report-button-arrow{transform:translateX(3px)}@media(max-width:720px){.related-report-panel{padding:18px}.related-report-panel::before,.related-report-panel::after{opacity:.55}.related-report-button{width:100%;justify-content:center;margin-top:0}}@media(prefers-reduced-motion:reduce){.related-report-button-arrow{transition:none}.related-report-button:hover .related-report-button-arrow{transform:none}}
