/* ==========================================
   StellaNews Single Article (Refined / No-bg)
   Scope: .sn-article (and ad-slot around it)
   ========================================== */

/* ---- Tokens ---- */
:root{
  --sn-bg: #ffffff;
  --sn-ink: #0b1220;
  --sn-muted: #516072;
  --sn-line: #e7edf3;

  --sn-accent: #0b5fff;
  --sn-accent-2: #00a37a;

  /* 背景色は使わない（将来復活しやすいよう残す） */
  --sn-surface: transparent;
  --sn-surface-2: transparent;

  --sn-radius: 18px;
  --sn-radius-sm: 12px;

  --sn-max: 820px;
  --sn-pad: 18px;

  --sn-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
             "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --sn-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---- Dark mode ---- */
@media (prefers-color-scheme: dark){
  :root{
    --sn-bg: #0a0f18;
    --sn-ink: #e7eefc;
    --sn-muted: #a9b6ca;
    --sn-line: #233144;

    --sn-accent: #6aa7ff;
    --sn-accent-2: #3dd6b0;
  }
}

/* ---- Base ---- */
.sn-article{
  color: var(--sn-ink);
  background: var(--sn-bg);
  font-family: var(--sn-font);
  line-height: 1.9;
  letter-spacing: 0.015em;
}

/* Centered page feel */
.sn-article,
.sn-article #content,
.sn-article .sn-section,
.sn-article .sn-lead{
  max-width: var(--sn-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sn-pad);
  padding-right: var(--sn-pad);
}

/* ==========================================
   ad-slot (invisible anchor)
   ========================================== */
.ad-slot,
.ad-slot *{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ---- Header ---- */
.sn-article-header{
  padding-top: 20px;
  padding-bottom: 8px;
}
.sn-title{
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.22;
  margin: 0 0 10px;
}
.sn-meta{
  margin: 0;
  color: var(--sn-muted);
  font-size: 14px;
}
.sn-meta-sep{ margin: 0 6px; }

/* ---- Lead (no card) ---- */
.sn-lead{
  margin-top: 26px;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 3px solid var(--sn-line);
}
.sn-lead::first-line{
  font-weight: 600;
}

/* ---- Body ---- */
.sn-body{
  padding-top: 6px;
  padding-bottom: 10px;
}
.sn-body p{
  margin: 14px 0;
}
.sn-body a{
  color: var(--sn-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11,95,255,0.35);
}
.sn-body a:hover{
  border-bottom-color: currentColor;
}
.sn-body code{
  font-family: var(--sn-mono);
  font-size: 0.95em;
  padding: 0.15em 0.4em;
  border: 1px solid var(--sn-line);
  border-radius: 8px;
}

/* ---- Sections ---- */
.sn-section{
  margin-top: 36px;
  margin-bottom: 10px;
}

/* ---- Headings ---- */
.sn-article h2{
  font-size: 20px;
  line-height: 1.4;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--sn-accent);
}
.sn-article h4{
  font-size: 16px;
  margin: 20px 0 8px;
  line-height: 1.4;
}

/* ---- Keypoints (list style) ---- */
.keypoints{
  counter-reset: sn-kp;
}
.keypoints ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.keypoints li{
  counter-increment: sn-kp;
  position: relative;
  padding: 14px 0 14px 42px;
  border-top: 1px solid var(--sn-line);
}
.keypoints li:first-child{
  border-top: none;
}
.keypoints li::before{
  content: counter(sn-kp);
  position: absolute;
  left: 0;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--sn-accent);
  border: 1px solid var(--sn-line);
}

/* ---- Details (label-value) ---- */
.sn-details ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.sn-details li{
  display: grid;
  grid-template-columns: 160px 1fr;
  border-top: 1px solid var(--sn-line);
}
.sn-details li:first-child{
  border-top: none;
}
.sn-details li strong{
  padding: 12px 14px;
  color: var(--sn-muted);
  font-weight: 700;
}
.sn-details .sn-details-value{
  padding: 12px 14px;
}

@media (max-width: 640px){
  .sn-details li{
    grid-template-columns: 1fr;
  }
  .sn-details li strong{
    padding-bottom: 6px;
  }
}

/* ---- Impact ---- */
.sn-impact{
  margin-top: 16px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--sn-line);
}
.sn-impact p{
  margin: 12px 0;
}

/* ---- Multilingual ---- */
.sn-intl .sn-intl-block{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--sn-line);
}
.translate-note{
  color: var(--sn-muted);
  font-size: 13px;
  margin: 6px 0 10px;
}
.sn-intl ul{
  margin: 0;
  padding-left: 1.2em;
}
.sn-intl li{
  margin: 6px 0;
}

/* ---- References ---- */
.sn-refs p{
  margin: 12px 0;
}
.sn-refs a{
  word-break: break-all;
}

/* ---- Print ---- */
@media print{
  .ad-slot{ display:none !important; }
  .sn-article{
    color:#000;
    background:#fff;
  }
}
