.cosmology-feature {
  margin: 30px 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #78613a;
  border-radius: 14px;
  background: linear-gradient(145deg, #090e19, #151326);
  color: #efe8dc;
  box-shadow: 0 16px 46px rgb(0 0 0 / 28%);
  scroll-margin-top: 24px;
}
.cosmology-feature h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.cosmology-feature h3 { margin: 0 0 12px; font-size: 1.08rem; }
.cosmology-feature .cosmology-kicker { margin: 0 0 9px; color: #e7c474; font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.cosmology-feature .cosmology-intro { margin: 0 0 22px; max-width: 760px; color: #d6ccbc; }
.cosmology-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 26px; align-items: start; }
.cosmology-figure { margin: 0; min-width: 0; }
.cosmology-image-link { display: block; border: 1px solid #78613a; border-radius: 7px; overflow: hidden; background: #05070d; }
.cosmology-figure img { display: block; width: 100%; height: auto; }
.cosmology-figure figcaption { margin: 10px 0 0; font-size: .9rem; color: #d6ccbc; }
.cosmology-figure figcaption a { display: inline-block; padding: 6px 0; font-weight: 700; }
.cosmology-feature a:focus-visible, .cosmology-feature summary:focus-visible { outline: 2px solid #f2d48c; outline-offset: 5px; }
.cosmology-key { padding: 0; min-width: 0; }
.cosmology-key dl { margin: 0 0 24px; }
.cosmology-key dt { margin-top: 13px; font-weight: 750; color: #fff1cc; }
.cosmology-key dd { margin: 2px 0 0; color: #d6ccbc; font-size: .93rem; }
.cosmology-color-key { list-style: none; margin: 0; padding: 0; }
.cosmology-color-key li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .9rem; }
.cosmology-color-key span:last-child { min-width: 0; }
.cosmology-swatch { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; margin-top: 7px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; }
.cosmology-gold { background: #e7bd58; }
.cosmology-sapphire { background: #5193f3; }
.cosmology-crimson { background: #dc5464; }
.cosmology-emerald { background: #50c78d; }
.cosmology-violet { background: #b28ae4; }
.cosmology-white { background: #faf8ee; }
.cosmology-full-legend { margin-top: 22px; border-top: 1px solid #51462f; border-bottom: 1px solid #51462f; }
.cosmology-full-legend > summary { padding: 16px 3px; cursor: pointer; font-weight: 750; color: #f2d48c; }
.cosmology-full-legend > summary:hover { color: #fff1cc; }
.cosmology-legend-content { padding: 4px 0 22px; }
.cosmology-legend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; }
.cosmology-legend-grid > div { min-width: 0; }
.cosmology-feature table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cosmology-feature th, .cosmology-feature td { padding: 10px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid #393643; overflow-wrap: anywhere; }
.cosmology-feature th { color: #fff1cc; font-weight: 700; }
.cosmology-feature td { color: #d6ccbc; }
.cosmology-layers { margin: 0; padding: 0; list-style: none; }
.cosmology-layers li { margin-bottom: 12px; padding-left: 14px; border-left: 2px solid #78613a; }
.cosmology-layers strong, .cosmology-layers span { display: block; }
.cosmology-layers span { color: #d6ccbc; font-size: .92rem; }
.cosmology-theme-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cosmology-theme-list li { padding: 5px 10px; border: 1px solid #55486c; border-radius: 20px; background: #1b1729; color: #e6dbef; font-size: .88rem; }
.cosmology-feature .cosmology-scope { margin: 20px 0 0; color: #d6ccbc; font-size: .92rem; }
.cosmology-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.cosmology-actions a { display: inline-block; padding: 8px 0; font-weight: 750; }
@media (max-width: 800px) {
  .cosmology-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cosmology-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 520px) {
  .cosmology-key, .cosmology-legend-grid { grid-template-columns: minmax(0, 1fr); }
  .cosmology-key { gap: 0; }
  .cosmology-feature th, .cosmology-feature td { padding: 9px 5px; }
}
