/*
 * deepinthe.space , shared field-note styling for the outer Solar System.
 * Keeps Oort Cloud, dwarf planets, heliopause and icy worlds visually
 * consistent with the Kuiper Belt field note.
 */
.frontier-page-visual {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 28px auto 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 206, 133, 0.08), transparent 12%),
    radial-gradient(ellipse at 50% 50%, rgba(117, 177, 203, 0.1), transparent 61%),
    rgba(7, 13, 23, 0.48);
}

.frontier-page-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.frontier-page-visual figcaption {
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0;
  text-align: left;
}

.diagram-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text-soft);
  font-size: 10.5px;
  line-height: 1.4;
  list-style: none;
  text-align: left;
}

.diagram-key li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.diagram-key-swatch {
  width: 18px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.diagram-key-swatch--violet { background: #8a73b3; }
.diagram-key-swatch--teal { background: #4d91a8; }
.diagram-key-swatch--amber { background: #a76525; }
.diagram-key-swatch--gold { background: #e7c45d; }
.diagram-key-swatch--slate { background: #73869d; }
.diagram-key-swatch--boundary {
  height: 0;
  border-top: 2px dashed #a87828;
  border-radius: 0;
  background: transparent;
}

.helio-wind-streaks,
.helio-dust-field,
.helio-ism-dust {
  display: none;
}

.frontier-grid-line {
  fill: none;
  stroke: rgba(145, 177, 207, 0.22);
  stroke-width: 1;
}

.frontier-shell {
  fill: none;
  stroke: rgba(205, 241, 249, 0.48);
  stroke-width: 1.1;
  stroke-dasharray: 1 11;
  stroke-linecap: round;
  transition: opacity 0.5s ease, stroke 0.5s ease;
}

.frontier-shell--faint {
  opacity: 0.3;
}

.frontier-zone {
  fill: rgba(91, 158, 187, 0.055);
  transition: fill 0.5s ease;
}

.frontier-node {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.icy-overview-world {
  color: inherit;
  cursor: pointer;
  outline: none;
  pointer-events: all;
}

.icy-overview-callout {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.icy-overview-world:hover .icy-overview-callout,
.icy-overview-world:focus-visible .icy-overview-callout {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.icy-overview-callout-arm {
  fill: none;
  stroke: rgba(184, 232, 242, 0.72);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.icy-overview-callout-bg {
  fill: rgba(8, 14, 25, 0.95);
  stroke: rgba(184, 232, 242, 0.26);
  stroke-width: 1;
}

.icy-overview-callout-title {
  fill: #eefaff;
  font-size: 12px;
  font-weight: 600;
}

.icy-overview-callout-note {
  fill: rgba(218, 237, 244, 0.72);
  font-size: 9.5px;
}

.frontier-page-visual:hover .frontier-shell {
  stroke: rgba(227, 251, 255, 0.82);
}

.frontier-page-visual:hover .frontier-zone {
  fill: rgba(110, 184, 211, 0.1);
}

.frontier-page-visual:hover .frontier-node {
  filter: brightness(1.18);
}

.frontier-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.frontier-structure-card {
  padding: 15px 15px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.frontier-structure-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.frontier-structure-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.frontier-world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.frontier-world-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.frontier-world-card[href] {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.frontier-world-card[href]:hover,
.frontier-world-card[href]:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  transform: translateY(-1px);
}

.frontier-world-orb {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--frontier-orb);
  box-shadow: inset -7px -6px 11px rgba(0, 0, 0, 0.36), 0 0 15px rgba(126, 189, 211, 0.08);
}

.icy-world-hero-orb {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--world-orb);
  box-shadow:
    inset -16px -13px 24px rgba(0, 0, 0, 0.43),
    0 0 34px color-mix(in srgb, var(--accent) 15%, transparent);
}

.icy-world-hero-orb::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(229, 247, 255, 0.16);
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 45%);
}

.icy-world-profile-visual {
  max-width: 820px;
}

.icy-world-profile-visual svg {
  min-height: 220px;
}

.icy-world-detail .planet-section h2 {
  color: color-mix(in srgb, var(--accent) 66%, white);
}

.icy-prev-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.icy-prev-next a {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  text-decoration: none;
}

.icy-prev-next a:hover,
.icy-prev-next a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--white);
}

.icy-prev-next span {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.icy-prev-next strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.frontier-world-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.frontier-world-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.frontier-source-note {
  margin: 17px 0 0;
  color: var(--text-dim);
  font-size: 9.5px;
  line-height: 1.7;
  text-align: left;
}

.frontier-source-note a {
  color: var(--text-soft);
}

[data-theme="light"] .frontier-page-visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(222, 146, 58, 0.12), transparent 12%),
    radial-gradient(ellipse at 50% 50%, rgba(69, 132, 163, 0.11), transparent 61%),
    rgba(244, 249, 252, 0.84);
}

[data-theme="light"] .frontier-grid-line {
  stroke: rgba(64, 101, 130, 0.2);
}

[data-theme="light"] .icy-overview-callout-bg {
  fill: rgba(248, 251, 253, 0.98);
  stroke: rgba(39, 94, 118, 0.24);
}

[data-theme="light"] .icy-overview-callout-arm {
  stroke: rgba(39, 94, 118, 0.62);
}

[data-theme="light"] .icy-overview-callout-title {
  fill: #173d53;
}

[data-theme="light"] .icy-overview-callout-note {
  fill: rgba(35, 67, 86, 0.74);
}

@media (max-width: 700px) {
  .frontier-structure-grid,
  .frontier-world-grid {
    grid-template-columns: 1fr;
  }

  .icy-world-profile-visual svg {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frontier-page-visual * {
    transition: none !important;
  }
}
