/* ───────────────────────────────────────────────────────────
/* 은하수(stargazing)
/* ───────────────────────────────────────────────────────────
/* style.css(base) 다음에 로드됩니다. 브랜드 토큰(:root)은 base에 있습니다.
/* ─────────────────────────────────────────────────────────── */

.sg-hero {
  background: var(--surface);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-light);
}

.sg-hero-score { text-align: center; flex-shrink: 0; }

.sg-hero-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.sg-hero-num.green { color: var(--green); }

.sg-hero-num.blue { color: var(--blue); }

.sg-hero-num.red { color: var(--red); }

.sg-hero-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.sg-hero-info { flex: 1; min-width: 0; }

.sg-hero-region {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.sg-hero-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sg-hero-status {
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
  color: var(--text-primary);
}

.sg-section {
  background: var(--surface);
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sg-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.sg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sg-card {
  text-align: center;
  padding: 14px 4px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.sg-card-icon { font-size: 20px; margin-bottom: 4px; }

.sg-card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sg-card-value.green { color: var(--green); }

.sg-card-value.blue { color: var(--blue); }

.sg-card-value.red { color: var(--red); }

.sg-moon-name { font-size: 13px; line-height: 1.3; }

.sg-card-label {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.sg-light-pollution {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sg-lp-badge {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.sg-lp-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sg-objects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.sg-object {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  flex-direction: column;
}

.sg-object-body {
  flex: 1;
  min-width: 0;
}

.sg-object-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-object-name {
  font-size: 14px;
  font-weight: 500;
}

.sg-object-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.sg-forecast {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.sg-forecast::-webkit-scrollbar { display: none; }

.sg-fc-day {
  min-width: 72px;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sg-fc-today {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.sg-fc-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.sg-fc-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 2px;
  vertical-align: middle;
}

.sg-fc-unit {
  font-size: 9px;
  color: var(--text-tertiary);
  margin-left: 1px;
}

.sg-fc-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sg-fc-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.sg-fc-score.green { color: var(--green); }

.sg-fc-score.blue { color: var(--blue); }

.sg-fc-score.red { color: var(--red); }

.sg-fc-bar-bg {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 6px 0 8px;
  overflow: hidden;
}

.sg-fc-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.sg-fc-moon, .sg-fc-cloud, .sg-fc-temp {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.sg-updated-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-tertiary);
}

.sg-updated-text { color: var(--text-tertiary); }

.sg-fallback-badge {
  font-size: 11px;
  color: var(--red);
  background: var(--red-bg);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.sg-object-icon-col { flex-shrink: 0; line-height: 0; }

.sg-object-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 5px;
}

.sg-om-item {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sg-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.sg-fc-today .sg-fc-date { color: var(--accent-text); }

@media (max-width: 600px) {
	
	  .sg-section { padding: 14px 12px; }
}

@media (max-width: 600px) {
	
	  .sg-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	
	  .sg-hero { padding: 16px 12px; gap: 14px; }
}

@media (max-width: 600px) {
	
	  .sg-fc-day { min-width: 60px; padding: 8px 4px; }
}

.sg-object-media {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(160deg, #1a2744 0%, #2b1f3d 100%);
}

.sg-object-media img { width: 100%; height: auto; object-fit: cover; display: block; }

.sg-object-story {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  padding: 8px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sg-object-together {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sg-object-details {
  margin-top: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.sg-object-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  padding: 8px 10px;
  user-select: none;
}

.sg-object-details summary::-webkit-details-marker { display: none; }

.sg-object-details summary::before { content: "▸ "; }

.sg-object-details[open] summary::before { content: "▾ "; }

.sg-object-details .sg-object-story {
  border-left: 0;
  border-top: 3px solid var(--blue);
  border-radius: 0;
  margin-top: 0;
}

.sg-object-details .sg-object-together {
  padding: 0 10px 10px;
  margin-top: 0;
}

.sg-glossary { display: flex; flex-direction: column; gap: 8px; }

.sg-glossary-item { padding: 10px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--bg); }

.sg-glossary-term { font-size: 13px; font-weight: 700; color: var(--accent-text); }

.sg-glossary-desc { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; line-height: 1.55; }

