﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;800&family=Noto+Serif+SC:wght@700;900&display=swap");

:root {
  --bg: #eef2f8;
  --paper: #fdfdff;
  --ink: #152036;
  --muted: #5b6780;
  --line: #d7dfec;
  --brand: #0f6178;
  --brand-2: #d7883a;
  --tag-bg: #eef4fb;
  --shadow: 0 18px 44px rgba(18, 28, 45, 0.11);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 110% -10%, #d3e9f1 0%, transparent 68%),
    radial-gradient(980px 420px at -10% 120%, #fae4cb 0%, transparent 60%),
    radial-gradient(540px 280px at 50% -8%, #d7dff9 0%, transparent 80%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

.search-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.search-main {
  max-width: 980px;
  width: 100%;
  margin: auto;
  padding: 24px 18px;
}

.search-shell {
  background: #fcfdff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.search-shell--single {
  padding: clamp(18px, 4vw, 34px);
}

.single-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.search-head__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #61708a;
  font-weight: 700;
}

.cmd-trigger {
  border: 1px solid #cfd9eb;
  border-radius: 10px;
  background: #f4f8ff;
  color: #35526d;
  height: 30px;
  min-width: 48px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cmd-trigger:hover {
  background: #e8f0ff;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.search-box--single input {
  height: 58px;
  font-size: 18px;
}

input {
  width: 100%;
  border: 1px solid #c7d5e8;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #6ea9c0;
  box-shadow: 0 0 0 4px rgba(96, 161, 188, 0.18);
}

.search-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.active-filter {
  margin-top: 8px;
}

.suggestion-panel {
  display: none;
  margin-top: 12px;
  border: 1px solid #d1dcec;
  border-radius: 16px;
  background: #fff;
  max-height: min(62vh, 520px);
  overflow: auto;
  box-shadow: 0 12px 28px rgba(18, 28, 45, 0.08);
}

.suggestion-panel.is-open {
  display: block;
}

.suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ebf0f7;
  background: transparent;
  text-align: left;
  color: inherit;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover {
  background: #f3f7fd;
  transform: translateX(2px);
}

.suggestion.is-active {
  background: #edf4ff;
}

.suggestion__title {
  font-size: 15px;
  font-weight: 700;
}

.suggestion__meta,
.suggestion__if {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.suggestion__if {
  text-align: right;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #d2ddee;
  background: var(--tag-bg);
  padding: 3px 9px;
  font-size: 11px;
  color: #22405f;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tag--jcr {
  border-color: #cabef9;
  background: #f1edff;
  color: #4a2c95;
}

.tag--cas {
  border-color: #b8d9c8;
  background: #eaf8f0;
  color: #1f6848;
}

.tag--hq {
  border-color: #f1cc9c;
  background: #fff3e3;
  color: #965613;
}

.tag--pku {
  border-color: #f0c2c8;
  background: #fff0f3;
  color: #a13a58;
}

.tag--cssci {
  border-color: #c9c4f6;
  background: #f2f0ff;
  color: #4f3ea8;
}

.tag--cscd {
  border-color: #abd9e6;
  background: #e9f8fd;
  color: #13647c;
}

.tag--wos {
  border-color: #b7d2f4;
  background: #edf4ff;
  color: #215aa6;
}

.tag--ei {
  border-color: #9fd8cb;
  background: #e8faf5;
  color: #0d7a66;
}

.tag--warn {
  border-color: #f4b7b0;
  background: #ffefeb;
  color: #993327;
}

.tag--empty {
  border-color: #dde3ed;
  background: #f6f8fc;
  color: #6f7b90;
}

.placeholder {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  border-bottom: 1px solid #dbe3ef;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.38) 100%);
  backdrop-filter: blur(5px);
}

.hero__content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 18px 18px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: -0.012em;
}

.subtitle {
  margin: 0 0 10px;
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-main {
  max-width: 1160px;
  margin: 14px auto 22px;
  padding: 0 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  align-items: start;
}

.panel {
  background: #fcfdff;
  border: 1px solid #d5dfec;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel--core {
  grid-column: 1;
  position: sticky;
  top: 14px;
}

.panel--spotlight {
  grid-column: 2;
}

.panel--trend {
  grid-column: 2 / span 2;
}

.panel--hq {
  grid-column: 3;
}

.panel--related {
  grid-column: 2 / span 2;
}

.detail-page {
  background:
    radial-gradient(920px 320px at -10% -20%, #f0f5e9 0%, transparent 64%),
    radial-gradient(820px 300px at 120% -15%, #f8efe0 0%, transparent 62%),
    #f7f6f2;
}

.detail-page .hero {
  border-bottom: 1px solid #e8e4d8;
  background: #fcfbf7;
  backdrop-filter: none;
}

.detail-page .hero__content {
  padding: 24px 18px 16px;
}

.detail-page .eyebrow {
  color: #3f8b56;
  letter-spacing: 0.05em;
}

.detail-page h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.01em;
}

.detail-page .subtitle {
  color: #4a566a;
}

.detail-page .detail-main {
  max-width: 1460px;
  width: calc(100vw - 28px);
  margin: 14px auto 24px;
  gap: 12px;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  grid-template-areas:
    "core spotlight trend"
    "hq spotlight trend"
    "hq related trend";
}

.detail-page .panel {
  background: #fff;
  border: 1px solid #e7e3d8;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(34, 45, 59, 0.06);
  padding: 12px;
}

.detail-page .panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  color: #273347;
}

.detail-page .panel--spotlight {
  grid-area: spotlight;
  padding: 14px;
}

.detail-page .panel--trend {
  grid-area: trend;
  align-self: start;
}

.detail-page .panel--related {
  grid-area: related;
  align-self: start;
}

.detail-page .panel--core {
  grid-area: core;
  position: static;
  align-self: start;
}

.detail-page .panel--hq {
  grid-area: hq;
  align-self: start;
}

.detail-page .panel--core .detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.detail-page .panel--hq .detail-grid {
  grid-template-columns: 1fr;
}

.detail-page .spotlight-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.detail-page .spotlight-visual {
  min-width: 0;
}

.detail-page .spotlight-content {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.detail-page .spotlight-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.detail-page .spotlight-cover {
  min-height: 350px;
  border-radius: 8px;
  border: 1px solid #d9d4c6;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 26px rgba(36, 44, 52, 0.2);
}

.detail-page .spotlight-summary {
  margin: 0;
  font-size: 14px;
  color: #2f3b4e;
  line-height: 1.74;
  text-align: justify;
}

.detail-page .spotlight-summary-wrap {
  margin-top: 2px;
  border: 1px solid #e7e1d4;
  border-radius: 10px;
  background: #fffdf8;
  padding: 10px 12px;
}

.detail-page .spotlight-link-row {
  margin-bottom: 0;
}

.detail-page .spotlight-link {
  color: #2f8f57;
  font-size: 14px;
}

.detail-page .citescore-card {
  border: 1px solid #e4dece;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9f6ed 0%, #fefdfa 100%);
  padding: 11px 12px 10px;
}

.detail-page .citescore-card.is-proxy {
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.detail-page .citescore-card.is-empty {
  opacity: 0.92;
}

.detail-page .citescore-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7484;
  margin-bottom: 6px;
}

.detail-page .citescore-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.detail-page .citescore-value {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: #2f3d53;
}

.detail-page .citescore-unit {
  font-size: 13px;
  color: #6a7485;
  font-weight: 600;
}

.detail-page .citescore-metrics {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.detail-page .citescore-metrics.is-proxy .citescore-metric-chip b {
  color: #5d6d84;
}

.detail-page .citescore-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d9deea;
  background: #f8fafd;
  color: #53637d;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}

.detail-page .citescore-metric-chip b {
  font-size: 10px;
  font-weight: 700;
  color: #435572;
}

.detail-page .citescore-metric-chip em {
  font-style: normal;
  font-weight: 700;
}

.detail-page .citescore-stars {
  margin-top: 5px;
  min-height: 20px;
  display: flex;
  gap: 2px;
}

.detail-page .cs-star {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 18px;
  line-height: 18px;
}

.detail-page .cs-star__base,
.detail-page .cs-star__fill {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 14px;
  line-height: 18px;
}

.detail-page .cs-star__base {
  right: 0;
  bottom: 0;
  color: #c8ccd4;
}

.detail-page .cs-star__fill {
  bottom: 0;
  width: 0;
  color: #f4a61a;
  overflow: hidden;
  white-space: nowrap;
}

.detail-page .citescore-empty {
  color: #7b8597;
  font-size: 12px;
}

.detail-page .citescore-percent-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #617087;
  font-size: 12px;
}

.detail-page .citescore-percent-track {
  margin-top: 4px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e7eaf0;
  overflow: hidden;
}

.detail-page .citescore-percent-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d8bd9 0%, #4f6fd0 100%);
  transition: width 0.28s ease;
}

.detail-page .citescore-breakdown {
  margin-top: 8px;
  display: grid;
  gap: 5px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.detail-page .citescore-breakdown-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 42px 58px 88px;
  gap: 6px;
  color: #6b7b93;
  font-size: 10px;
  font-weight: 700;
  padding: 0 2px;
}

.detail-page .citescore-breakdown-head > span:nth-child(n + 2) {
  text-align: right;
}

.detail-page .citescore-breakdown-item {
  border: 1px solid #e6e0d1;
  border-radius: 7px;
  background: #fffdfa;
  padding: 6px 7px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 42px 58px 88px;
  gap: 6px;
  align-items: center;
}

.detail-page .citescore-breakdown-name-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-page .citescore-breakdown-q,
.detail-page .citescore-breakdown-rank {
  text-align: right;
  font-size: 11px;
  color: #485973;
  font-weight: 700;
}

.detail-page .citescore-breakdown-level {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #5a6b84;
  border: 1px solid #d6deeb;
  border-radius: 999px;
  background: #f5f8fd;
  padding: 0 5px;
}

.detail-page .citescore-breakdown-name {
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: #34445d;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.detail-page .citescore-breakdown-percent {
  display: grid;
  justify-items: end;
  gap: 3px;
  font-size: 11px;
  color: #566987;
  font-weight: 700;
}

.detail-page .citescore-breakdown-percent i {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e3e8f1;
  overflow: hidden;
}

.detail-page .citescore-breakdown-percent i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a36f 0%, #4f9b6e 100%);
}

.detail-page .citescore-breakdown-empty,
.detail-page .citescore-breakdown-more {
  font-size: 11px;
  color: #70819a;
}

.detail-page .citescore-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #4a5a72;
  line-height: 1.45;
}

.detail-page .citescore-source {
  margin-top: 5px;
  font-size: 11px;
  color: #738199;
  line-height: 1.4;
}

.detail-page .citescore-inline-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  flex-wrap: wrap;
  vertical-align: middle;
}

.detail-page .citescore-inline-btn {
  border: 1px solid #c8d5ea;
  border-radius: 999px;
  background: #f4f8ff;
  color: #35526d;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
}

.detail-page .citescore-inline-btn:hover {
  background: #eaf1ff;
}

.detail-page .spotlight-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.detail-page .spotlight-grid--under-cover {
  margin-top: 8px;
}

.detail-page .spotlight-grid .kv,
.detail-page .panel--core .kv,
.detail-page .panel--hq .kv {
  border: 1px solid #e8e4da;
  border-radius: 8px;
  background: #fbfaf6;
  padding: 7px 8px;
}

.detail-page .panel--core .kv .k,
.detail-page .panel--hq .kv .k {
  font-size: 11px;
}

.detail-page .panel--core .kv .v,
.detail-page .panel--hq .kv .v {
  font-size: 13px;
}

.detail-page .panel--core .kv {
  padding: 6px 7px;
  border-radius: 7px;
}

.detail-page .panel--core .kv .k {
  font-size: 10px;
  line-height: 1.2;
}

.detail-page .panel--core .kv .v {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

.detail-page .panel--core .kv .v.is-multiline {
  white-space: pre-line;
  line-height: 1.45;
}

.detail-page .panel--core .kv.is-span-2 {
  grid-column: 1 / -1;
}

.detail-page .spotlight-grid--under-cover .kv {
  padding: 6px 8px;
  border-radius: 7px;
}

.detail-page .spotlight-grid--under-cover .kv .k {
  font-size: 11px;
}

.detail-page .spotlight-grid--under-cover .kv .v {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-page .panel--hq .hq-record-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.detail-page .history-card {
  border: 1px solid #ebe7dc;
  border-radius: 8px;
  background: #fffefa;
  padding: 10px;
}

.detail-page .history-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.detail-page .if-trend-chart {
  border: 1px solid #e8e3d7;
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
  margin-bottom: 0;
}

.detail-page .related-item {
  border: 1px solid #e7e2d5;
  border-radius: 9px;
  background: #fffefb;
}

.detail-page .related-item:hover {
  border-color: #d2c7af;
  background: #fffdf7;
}

.detail-page .related-list {
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 320px;
  overflow: auto;
  padding-right: 3px;
}

.detail-page .related-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.detail-page .related-title {
  font-size: 13px;
}

.detail-page .related-meta {
  margin-top: 0;
  line-height: 1.35;
}

.detail-page .related-reason {
  display: none;
  align-items: center;
  width: fit-content;
  border: 1px solid #d9e2ef;
  background: #f4f8ff;
  color: #436085;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid--wide {
  grid-template-columns: 1fr;
}

.spotlight-cover {
  min-height: 240px;
  border-radius: 14px;
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: inset 0 -80px 120px rgba(9, 18, 33, 0.24);
}

.spotlight-cover__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  filter: saturate(1.02) contrast(1.02);
  pointer-events: none;
}

.spotlight-cover__bg--cover {
  opacity: 1;
  filter: saturate(1.03) contrast(1.02);
}

.spotlight-cover__classic {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 18px;
  color: #f8f0db;
  background:
    radial-gradient(120% 130% at 16% 12%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(168deg, #3f261d 0%, #5a3828 46%, #2f1e15 100%);
}

.spotlight-cover--fallback .spotlight-cover__classic {
  display: flex;
  flex-direction: column;
}

.spotlight-cover__classic-frame {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  border: 1px solid rgba(243, 225, 191, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(116, 85, 55, 0.4),
    inset 0 0 26px rgba(6, 3, 1, 0.22);
}

.spotlight-cover__classic-ornament {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 10px;
  border-top: 1px solid rgba(240, 220, 179, 0.78);
  border-bottom: 1px solid rgba(240, 220, 179, 0.78);
  opacity: 0.82;
}

.spotlight-cover__classic-kicker {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 233, 205, 0.9);
  font-family: "Libre Baskerville", "Palatino Linotype", "Times New Roman", serif;
}

.spotlight-cover__classic-title {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  width: 100%;
  max-width: 100%;
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1.08;
  text-wrap: pretty;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STZhongsong", serif;
  font-weight: 700;
  color: #f7ecce;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.spotlight-cover__classic-foot {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(240, 220, 179, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 233, 205, 0.8);
  font-family: "Libre Baskerville", "Palatino Linotype", "Times New Roman", serif;
}

.spotlight-summary {
  margin: 12px 0 10px;
  font-size: 14px;
  color: #2c3f59;
  line-height: 1.66;
}

.spotlight-link-row {
  margin-bottom: 10px;
}

.spotlight-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #245f9c;
  font-size: 13px;
  font-weight: 700;
}

.spotlight-link:hover {
  text-decoration: underline;
}

.spotlight-link.is-disabled {
  pointer-events: none;
  opacity: 0.56;
  text-decoration: none;
}

.info-dot,
.inline-info {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #c8d6e9;
  background: #f4f8ff;
  color: #43627d;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.info-dot:hover,
.inline-info:hover {
  background: #e8f0ff;
}

.inline-info--warn {
  border-color: #efc79d;
  background: #fff3e3;
  color: #a35c10;
}

.inline-info--warn:hover {
  background: #ffe8cc;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.history-card {
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  background: #fff;
  padding: 9px;
}

.history-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.history-card h3 {
  margin: 0;
  font-size: 14px;
}

.chart-zoom-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #cfd8e6;
  border-radius: 50%;
  background: #f6f9ff;
  color: #3c5472;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-grid;
  place-items: center;
}

.chart-zoom-btn:hover {
  background: #ebf1fb;
  border-color: #bcc8db;
}

.chart-zoom-btn:focus-visible {
  outline: 2px solid #8eb0e2;
  outline-offset: 2px;
}

.chart-zoom-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-zoom-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  background: #1f2f45;
  color: #f4f8ff;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.chart-zoom-btn::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  right: 10px;
  width: 8px;
  height: 8px;
  background: #1f2f45;
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.chart-zoom-btn:hover::after,
.chart-zoom-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.chart-zoom-btn:hover::before,
.chart-zoom-btn:focus-visible::before {
  opacity: 1;
}

.history-list {
  display: grid;
  gap: 6px;
}

.history-row {
  border: 1px solid #e2e8f3;
  border-radius: 10px;
  background: #fbfcff;
  padding: 8px;
}

.history-row-main {
  font-size: 13px;
  font-weight: 700;
}

.history-row-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.if-trend-chart {
  border: 1px solid #e3e9f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  padding: 8px;
  margin-bottom: 8px;
}

.if-trend-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.if-trend-area {
  fill: rgba(122, 144, 228, 0.16);
}

.if-grid-line {
  stroke: #e2e9f4;
  stroke-width: 1;
}

.if-axis-line {
  stroke: #9baac2;
  stroke-width: 1.2;
}

.if-axis-tick {
  stroke: #8ea0ba;
  stroke-width: 1.1;
}

.if-trend-line {
  fill: none;
  stroke: #4f6fd0;
  stroke-width: 2.8;
}

.if-trend-dot {
  fill: #4f6fd0;
  stroke: #fff;
  stroke-width: 1.6;
  cursor: pointer;
}

.if-tick-label {
  fill: #6c7890;
  font-size: 11px;
  font-weight: 600;
}

.if-axis-title {
  fill: #5c6d87;
  font-size: 12px;
  font-weight: 700;
}

.cas-trend-chart {
  border: 1px solid #e8e3d7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
  padding: 8px;
  margin-bottom: 0;
}

.cas-trend-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.cas-grid-line {
  stroke: #e7ebf2;
  stroke-width: 1;
}

.cas-axis-line {
  stroke: #9baac2;
  stroke-width: 1.2;
}

.cas-axis-tick {
  stroke: #8ea0ba;
  stroke-width: 1.1;
}

.cas-trend-line {
  fill: none;
  stroke: #2f8f57;
  stroke-width: 2.6;
}

.cas-trend-dot {
  fill: #2f8f57;
  stroke: #fff;
  stroke-width: 1.6;
  cursor: pointer;
}

.cas-tick-label {
  fill: #6c7890;
  font-size: 11px;
  font-weight: 600;
}

.cas-axis-title {
  fill: #5c6d87;
  font-size: 12px;
  font-weight: 700;
}

.annual-trend-chart {
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  padding: 8px;
  margin-bottom: 0;
}

.annual-trend-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.annual-trend-area {
  fill: rgba(204, 124, 52, 0.15);
}

.annual-grid-line {
  stroke: #eee5d8;
  stroke-width: 1;
}

.annual-axis-line {
  stroke: #b9a48b;
  stroke-width: 1.2;
}

.annual-axis-tick {
  stroke: #a78f73;
  stroke-width: 1.1;
}

.annual-trend-line {
  fill: none;
  stroke: #cc7c34;
  stroke-width: 2.6;
}

.annual-trend-dot {
  fill: #cc7c34;
  stroke: #fff;
  stroke-width: 1.6;
  cursor: pointer;
}

.annual-tick-label {
  fill: #756550;
  font-size: 11px;
  font-weight: 600;
}

.annual-axis-title {
  fill: #6a5b48;
  font-size: 12px;
  font-weight: 700;
}

.radar-chart {
  border: 1px solid #e3e9f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  padding: 8px;
}

.radar-svg {
  width: 100%;
  height: 210px;
  display: block;
}

.radar-ring {
  fill: none;
  stroke: #dbe3f1;
  stroke-width: 1;
}

.radar-axis {
  stroke: #d2dced;
  stroke-width: 1;
}

.radar-poly {
  fill: rgba(81, 114, 209, 0.22);
  stroke: #4462b8;
  stroke-width: 2;
}

.radar-dot {
  fill: #3f5bb2;
  stroke: #fff;
  stroke-width: 1.2;
}

.radar-label {
  fill: #627089;
  font-size: 12px;
  font-weight: 700;
}

.radar-legend {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.radar-legend-item {
  font-size: 11px;
  color: #415873;
  border: 1px solid #d5deec;
  border-radius: 999px;
  background: #f3f7ff;
  padding: 2px 8px;
}

.kv {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 9px;
}

.kv .k {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kv .v {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.hq-record-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.hq-record-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.hq-record-field {
  font-size: 14px;
  font-weight: 700;
}

.hq-record-society {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.hq-record-sub {
  margin-top: 4px;
  color: #304663;
  font-size: 12px;
}

.hq-level {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #cde3e5;
  background: var(--tag-bg);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1b4850;
}

.sources {
  margin: 0;
  padding-left: 18px;
  max-height: 240px;
  overflow: auto;
}

.sources li {
  margin: 3px 0;
  color: #2a394d;
  font-size: 13px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.related-item {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.related-item:hover {
  border-color: #b9d6d9;
  background: #f4f9f9;
}

.related-title {
  font-weight: 700;
  font-size: 14px;
}

.related-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.back-link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.hq-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.hq-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.hq-table th,
.hq-table td {
  border-bottom: 1px solid #ece8dc;
  padding: 10px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.hq-table th {
  position: sticky;
  top: 0;
  background: #f8f5ee;
  z-index: 1;
  font-size: 12px;
  color: #405067;
  font-weight: 700;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #c9dbe3;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge--ok {
  background: #e9f7f1;
  border-color: #bee8d5;
  color: #1f6747;
}

.status-badge--warn {
  background: #fff2de;
  border-color: #f0cea1;
  color: #94540a;
}

.status-badge--bad {
  background: #ffede7;
  border-color: #f3c7ba;
  color: #9f3321;
}

.status-badge--neutral {
  background: #eef2f8;
  border-color: #d4deec;
  color: #304663;
}

.foot {
  max-width: 980px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.foot--center {
  justify-content: center;
}

.foot-link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}

.foot-link:hover {
  text-decoration: underline;
}

.cmd-modal[hidden] {
  display: none;
}

.cmd-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.cmd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 44, 0.46);
  backdrop-filter: blur(4px);
}

.cmd-modal__card {
  position: relative;
  max-width: 680px;
  margin: min(12vh, 100px) auto 0;
  background: #fff;
  border: 1px solid #d9e2f0;
  border-radius: 16px;
  box-shadow: 0 24px 66px rgba(15, 24, 43, 0.3);
  padding: 14px;
}

.cmd-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cmd-modal__head h2 {
  margin: 0;
  font-size: 15px;
}

.cmd-modal__close {
  width: 28px;
  height: 28px;
  border: 1px solid #d5deec;
  border-radius: 50%;
  background: #f5f8ff;
  color: #4c627d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cmd-input {
  width: 100%;
  height: 44px;
  border: 1px solid #ccdaed;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.cmd-list {
  margin-top: 8px;
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  background: #fafcff;
  max-height: 50vh;
  overflow: auto;
}

.cmd-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e7edf6;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.cmd-item:last-child {
  border-bottom: 0;
}

.cmd-item.is-active,
.cmd-item:hover {
  background: #edf4ff;
}

.cmd-item__title {
  font-size: 13px;
  font-weight: 700;
  color: #213650;
}

.cmd-item__desc {
  margin-top: 2px;
  font-size: 12px;
  color: #617289;
}

.source-modal[hidden] {
  display: none;
}

.source-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.source-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 28, 44, 0.44);
  backdrop-filter: blur(3px);
}

.source-modal__card {
  position: relative;
  max-width: 680px;
  margin: min(12vh, 100px) auto 0;
  background: #ffffff;
  border: 1px solid #d8e1ef;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(13, 24, 40, 0.28);
  padding: 18px 18px 16px;
}

.source-modal__card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.source-modal__body p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #2e4058;
}

.source-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid #d5dfed;
  border-radius: 50%;
  background: #f4f7fd;
  font-size: 18px;
  line-height: 1;
  color: #495d75;
  cursor: pointer;
}

.chart-modal[hidden] {
  display: none;
}

.chart-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.chart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 41, 0.46);
  backdrop-filter: blur(3px);
}

.chart-modal__card {
  position: relative;
  width: min(1100px, calc(100vw - 24px));
  margin: min(7vh, 72px) auto 0;
  background: #ffffff;
  border: 1px solid #d7e1ef;
  border-radius: 16px;
  box-shadow: 0 24px 66px rgba(13, 24, 40, 0.32);
  padding: 18px 18px 16px;
}

.chart-modal__card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #26364e;
}

.chart-modal__body {
  max-height: calc(88vh - 108px);
  overflow: auto;
}

.chart-modal__chart-wrap {
  min-width: 700px;
}

.chart-modal__body .if-trend-chart,
.chart-modal__body .cas-trend-chart,
.chart-modal__body .annual-trend-chart {
  padding: 12px;
}

.chart-modal__body .if-trend-svg,
.chart-modal__body .cas-trend-svg,
.chart-modal__body .annual-trend-svg {
  height: 540px;
}

.chart-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid #d5dfed;
  border-radius: 50%;
  background: #f4f7fd;
  font-size: 18px;
  line-height: 1;
  color: #495d75;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .detail-page .detail-main {
    width: calc(100vw - 24px);
    grid-template-columns: 268px minmax(0, 1fr);
    grid-template-areas:
      "core spotlight"
      "hq spotlight"
      "trend trend"
      "related related";
  }

  .detail-page .panel--core {
    position: static;
  }

  .detail-page .spotlight-layout {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .detail-page .spotlight-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-page .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  h1 {
    font-size: clamp(24px, 8vw, 40px);
  }

  .single-title {
    font-size: clamp(28px, 10vw, 44px);
  }

  .suggestion {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .detail-grid--wide,
  .history-grid,
  .related-list {
    grid-template-columns: 1fr;
  }

  .detail-page .detail-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "spotlight"
      "trend"
      "core"
      "hq"
      "related";
  }

  .detail-page .spotlight-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-page .spotlight-top {
    grid-template-columns: 1fr;
  }

  .detail-page .spotlight-cover {
    min-height: 360px;
    max-width: 280px;
    margin: 0 auto;
  }

  .detail-page .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .source-modal__card {
    margin: 10vh 14px 0;
  }

  .cmd-modal__card {
    margin: 10vh 14px 0;
  }

  .chart-modal__card {
    margin: 8vh 12px 0;
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .chart-modal__chart-wrap {
    min-width: 0;
  }

.chart-modal__body .if-trend-svg,
.chart-modal__body .cas-trend-svg,
.chart-modal__body .annual-trend-svg {
  height: 420px;
}
}


