/* Shared Türkiye İSG Nabzı SVG Light-Beam, Choropleth & Data Card Styles (CSP-compliant, zero inline styles) */
@keyframes ra-beacon-pulse {
  0% {transform:scale(0.85); opacity:0.95;}
  70% {transform:scale(1.95); opacity:0;}
  100% {transform:scale(1.95); opacity:0;}
}
@keyframes ra-trend-halo {
  0%,100% {opacity:0.45;}
  50% {opacity:0.95;}
}
.ra-beacon-ring {transform-box:fill-box; transform-origin:center; animation:ra-beacon-pulse 2.2s cubic-bezier(0.2,0.7,0.3,1) infinite;}
.ra-beacon-halo {opacity:0.85;}
@media (prefers-reduced-motion: reduce) {
  .ra-beacon-ring, .ra-trend-pulse-ring {animation:none;}
}

/* Choropleth 8-bucket teal scale + nodata hatch + luminous selected province */
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="0"] {fill:#eef4f7!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="1"] {fill:#d6f2ee!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="2"] {fill:#b6e6e0!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="3"] {fill:#90d7cf!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="4"] {fill:#64c5bb!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="5"] {fill:#3ab1a6!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="6"] {fill:#179a8f!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="7"] {fill:#0c7f76!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="8"] {fill:#065f58!important;}
html body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="nodata"] {fill:url(#ra-nodata-hatch)!important;}
html body :is(.ra-province-map, .ra-stat-map) path[aria-pressed="true"] {fill:url(#ra-sel-beam)!important; stroke:#0b2230!important; stroke-width:2.2px!important;}
html body :is(.ra-province-map, .ra-stat-map) path:focus:not(:focus-visible) {outline:none;}
html[data-theme="dark"] body :is(.ra-province-map, .ra-stat-map) path[data-choropleth="0"] {fill:#152c38!important;}
html[data-theme="dark"] body :is(.ra-province-map, .ra-stat-map) path[aria-pressed="true"] {stroke:#ffffff!important;}
html[data-theme="dark"] .ra-lg-zero {background:#152c38;}

/* Square-root Color Legend Scale */
.ra-pulse-legend {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; margin-top:10px; padding:9px 12px; border:1px solid var(--ra-line); border-radius:10px; background:var(--ra-surface); font-size:11px; color:var(--ra-muted);}
.ra-pulse-legend-flags {display:flex; gap:12px; align-items:center; flex-wrap:wrap;}
.ra-lg-flag {display:inline-flex; align-items:center; gap:6px; white-space:nowrap;}
.ra-lg-sw {display:inline-block; width:13px; height:11px; border-radius:3px; border:1px solid var(--ra-line);}
.ra-lg-zero {background:#eef4f7;}
.ra-lg-nodata {background:repeating-linear-gradient(45deg,#dce6eb,#dce6eb 3px,#7d95a3 3px,#7d95a3 4.5px);}
.ra-pulse-legend-scale {flex:1; min-width:170px; max-width:340px;}
.ra-pulse-legend-bar {height:9px; border-radius:999px; border:1px solid var(--ra-line); background:linear-gradient(90deg,#eef4f7,#d6f2ee 14%,#b6e6e0 28%,#90d7cf 42%,#64c5bb 56%,#3ab1a6 70%,#179a8f 84%,#065f58);}
.ra-pulse-legend-ticks {display:flex; justify-content:space-between; margin-top:3px; font-size:10px; font-variant-numeric:tabular-nums;}
.ra-pulse-legend-hint {font-size:10px; opacity:.85;}

/* SVG Light-Beam Trend Chart */
.ra-pulse-trend-strip {margin-top:10px; padding:8px 10px; border:1px solid var(--ra-line); border-radius:10px; background:linear-gradient(180deg,var(--ra-surface),var(--ra-soft));}
.ra-trend-svg {display:block; width:100%; height:auto; overflow:visible;}
.ra-trend-axis {stroke:var(--ra-line); stroke-width:1;}
.ra-trend-pulse-ring {fill:none; stroke:#00c7b7; stroke-width:1.6; animation:ra-trend-halo 2.2s ease-in-out infinite;}
.ra-trend-dot {fill:#008a80; stroke:var(--ra-surface); stroke-width:1.4; cursor:pointer;}
.ra-trend-dot.is-active {fill:#ff7a3d; stroke:#ffffff; stroke-width:2;}
.ra-trend-x, .ra-trend-y {fill:var(--ra-muted); font-size:10px; font-variant-numeric:tabular-nums;}
.ra-trend-x {cursor:pointer;}
.ra-trend-x.is-active {fill:var(--ra-ink); font-weight:700;}

/* Homepage & Shared Pulse Detail Card */
html body.ra-premium .ra-pulse-filters button.ra-pulse-play, html body .ra-pulse-play {border:1px solid var(--ra-action); background:linear-gradient(120deg,#006e6d,#00968c); color:#ffffff; border-radius:7px; padding:6px 12px; font-size:11.5px; font-weight:650; cursor:pointer; white-space:nowrap; min-height:36px; flex:none;}
html body.ra-premium .ra-pulse-filters button.ra-pulse-play[aria-pressed="true"], html body .ra-pulse-play[aria-pressed="true"] {background:#ff7a3d; border-color:#e0591e; color:#ffffff;}
.ra-pulse-foot-links {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px;}
.ra-pulse-foot-links .ra-pulse-source {margin-top:0;}
.ra-pulse-full-link {display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:650; color:var(--ra-action); text-decoration:none;}
.ra-pulse-full-link:hover {text-decoration:underline;}

.ra-pulse-empty.ra-pulse-loaded, .ra-stat-detail.ra-pulse-loaded {display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; text-align:left; gap:9px; padding:14px 16px;}
.ra-pulse-card-head {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--ra-line); padding-bottom:8px;}
.ra-pulse-card-head strong {font-size:13.5px; font-weight:700; color:var(--ra-ink);}
.ra-pulse-insured {font-size:11.5px; color:var(--ra-muted);}
.ra-pulse-insured b {color:var(--ra-ink); font-weight:650;}
.ra-pulse-reset {border:1px solid var(--ra-line); background:var(--ra-surface); color:var(--ra-action); border-radius:6px; padding:3px 9px; font-size:11px; font-weight:600; cursor:pointer;}
.ra-pulse-table {display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:6px 10px; font-size:12.5px; color:var(--ra-ink); padding:4px 0;}
.ra-pulse-th {color:var(--ra-muted); font-size:10.5px; font-weight:650; text-transform:uppercase; letter-spacing:.03em;}
.ra-pulse-table .ra-num, .ra-top10-meta .ra-num {text-align:right; font-variant-numeric:tabular-nums; font-weight:600;}
.ra-pulse-meta {display:flex; flex-direction:column; gap:4px; font-size:11.5px; color:var(--ra-muted); border-top:1px solid var(--ra-line); padding-top:7px; line-height:1.45;}
.ra-pulse-meta b {color:var(--ra-ink); font-weight:650;}
.ra-pulse-csv {width:100%; border:1px solid var(--ra-action); background:var(--ra-soft); color:var(--ra-action); border-radius:8px; padding:8px 11px; font-size:12px; font-weight:650; cursor:pointer;}
.ra-pulse-csv:hover {background:var(--ra-action); color:#ffffff;}
.ra-pulse-nace-list {display:flex; flex-direction:column; gap:5px; border-top:1px solid var(--ra-line); padding-top:8px;}
.ra-pulse-nace-heading {font-size:10.5px; color:var(--ra-muted); font-weight:650; margin-bottom:2px;}
.ra-pulse-nace-btn {display:flex; justify-content:space-between; align-items:center; gap:9px; width:100%; border:1px solid var(--ra-line); background:var(--ra-surface); color:var(--ra-ink); border-radius:7px; padding:6px 9px; font-size:11.5px; cursor:pointer; text-align:left;}
.ra-pulse-nace-btn:hover {border-color:var(--ra-action); background:var(--ra-soft);}
.ra-pulse-nace-title {overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; flex:1;}
.ra-pulse-hz {font-style:normal; font-size:9.5px; font-weight:650; padding:2px 6px; border-radius:999px; background:var(--ra-soft); color:var(--ra-muted); flex:none; white-space:nowrap;}
.ra-pulse-nace-val {color:var(--ra-action); font-variant-numeric:tabular-nums; flex:none;}

/* Native CSP-Safe Progress Bar (Zero inline width styles) */
.ra-bar-meter {appearance:none; -webkit-appearance:none; display:block; width:100%; height:5px; border:0; border-radius:999px; overflow:hidden; background:var(--ra-soft);}
.ra-bar-meter::-webkit-progress-bar {background:var(--ra-soft); border-radius:999px;}
.ra-bar-meter::-webkit-progress-value {background:linear-gradient(90deg,#007f76,#19d3c3); border-radius:999px;}
.ra-bar-meter::-moz-progress-bar {background:linear-gradient(90deg,#007f76,#19d3c3); border-radius:999px;}

html[data-theme="dark"] .ra-pulse-legend, html[data-theme="dark"] .ra-pulse-trend-strip {background:#0f2633; border-color:#264652;}
html[data-theme="dark"] .ra-pulse-nace-btn {background:#102937; border-color:#274854;}
html[data-theme="dark"] .ra-pulse-full-link {color:#47e2d3;}
