.navbar_logo
{
  text-decoration: none;
  float: left;
  height: 18px;
  padding: 10px;
  font-size: 18px;
  line-height: 20px;
  color: #777;
}
a.navbar_logo:hover
{
  color: #777;
}
.map_box
{
    position: relative;
  height: auto;
  aspect-ratio: 1/1;
  z-index:0;
}
.square
{  
  aspect-ratio: 1/1;
}
.info_parent{
 background-color: #f5f3f8;
  position: relative;
  width:100%;
  min-height:305px;
}
.nav_location
{  
  width: 70px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 12px;
}
.object_cards_container
{
  text-align: center;
}
.section
{
  border: 1px solid blue;
  border-radius: 5px;
  padding: 5px;
  margin-top: 10px;
  background-color:#f5f3f8;
  box-sizing:border-box;
}
table.sun-timetable {
  font-size: 0.7em;
  border-collapse: collapse;
  width: 100%;
  border-bottom: 1px solid black;
}

table.sun-timetable tr {
  border-bottom: 1px solid black;
}

table.sun-timetable th,
table.sun-timetable td {
  padding-left: 2px;
  padding-right: 2px;
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}
.sun-today-summary {
  padding: 6px 12px;
  box-sizing: border-box;
}
.sun-today-status {
  margin: 4px 0 12px;
  font-size: 1.12em;
}
.sun-today-events {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-variant-numeric: tabular-nums;
}
.sun-today-events span:not(:last-child)::after,
.sun-today-twilight span:not(:last-child)::after {
  content: "\00b7";
  padding: 0 9px;
}
.sun-today-day-length {
  margin: 10px 0 5px;
}
.sun-today-twilight {
  margin: 5px 0 10px;
  color: #666;
  font-size: .88em;
  line-height: 1.6;
}
.sun-today-link {
  margin: 8px 0 2px;
  font-weight: bold;
}
.sun-today-image {
  padding: 5px;
  box-sizing: border-box;
}
.sun-activity-summary > p {
  margin: 8px 10px;
}
.sun-hub-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.sun-hub-links .btn {
  font-size: .95em;
  padding: 8px 14px !important;
}
.sun-daylight-navigation { display: flex; align-items: end; justify-content: center; gap: 18px; margin: 18px 0; }
.sun-daylight-navigation form { display: flex; align-items: end; gap: 8px; }
.sun-daylight-navigation label { display: grid; gap: 4px; }
.sun-daylight-table { max-width: 760px; margin-left: auto; margin-right: auto; }
.sun-daylight-state { text-align: center; color: var(--st-text-muted, #aaa); }
.sun-seasons-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 20px 0 28px; }
.sun-seasons-overview a { border: 1px solid #bbb; border-radius: 6px; padding: 10px; text-align: center; text-decoration: none; }
.sun-seasons-overview span { display: block; margin-top: 4px; font-size: .9em; }
.sun-season-event { border-top: 1px solid #bbb; }
.sun-season-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: 24px; }
.sun-season-values { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sun-season-twilight { color: var(--st-text-muted,#888); font-size: .92em; }
.sun-season-moon { display: grid; grid-template-columns: 115px 1fr; align-content: start; gap: 0 12px; }
.sun-season-moon h3 { grid-column: 1/-1; }
.sun-season-moon-visual img { display: block; margin: 4px auto; }
.sun-season-unavailable { color: var(--st-text-muted,#888); }
.sun-seasons-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 24px 0; }
@media (max-width: 600px) {
  .sun-today-summary { padding: 3px 5px 8px; }
  .sun-today-status { margin-top: 2px; }
  .sun-today-events { font-size: .94em; }
  .sun-today-image img { max-width: 180px; }
  .sun-hub-links .btn { flex: 1 1 180px; text-align: center; }
  .sun-daylight-navigation { align-items: stretch; flex-direction: column; text-align: center; }
  .sun-daylight-navigation form { justify-content: center; flex-wrap: wrap; }
  .sun-seasons-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sun-season-layout { grid-template-columns: 1fr; }
}
.events-table
{
  font-size: 1.2em !important;
}
.map-feature-card
{
  display:inline-block;
  width: 100px;
  background: #F0F0F0;
  border-radius: 2px;
  border-color: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  vertical-align: top;/*Fix for different     height elements*/
  margin: 10px;
  text-align: left;
  position: relative;
}
.map-feature-card:hover {
  box-shadow: 0 3px 3px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.map-feature-card-header{
  background: rgb(142, 134, 255);
  border: 1px solid #005;
  border-radius: 3px 3px 0 0;
}
.map-feature-card-name{
  margin-top:3px;
  margin-bottom:0px;
  padding: 3px;
  font-size:15px;
}
.map-feature-card img
{
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.object_card
{
  display:inline-block;
  background: #ECEAF0;
  border-radius: 2px;
  border-color: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  vertical-align: top;/*Fix for different     height elements*/
  margin: 10px;
  text-align: left;
  width:300px;
  height:300px;
  position: relative;
}
.term_card
{
  display:inline-block;
  background: #ECEAF0;
  border-radius: 2px;
  border: 1px solid #5416d0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  vertical-align: top;/*Fix for different     height elements*/
  margin: 10px;
  text-align: left;
  width:300px;
  height:300px;
  padding: 5px;
  position: relative;
  text-align:justify;
}
.padding
{
  padding: 5px;
  text-align:justify;
}
.object_card_hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.object_card:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.object_card_header{
  background: rgb(142, 134, 255);
  border: 1px solid #005;
  border-radius: 3px 3px 0 0;
}
.object_card_name{
  margin-top:3px;
  margin-bottom:0px;
  padding: 3px;
  font-size:15px;
}
.object_card_image{
  background: #003;
  padding:5px;
  width:130px;
  height:130px;
}
.object_card_cell
{
  padding-bottom: 2px;
  padding-top: 2px;
  border-bottom: 1px solid rgb(161, 161, 161);
}
.object_card_footer
{
  position: absolute;
    bottom: 0.2em;
}
.info_text{
  position: absolute;
  height: 100%;
  width: 100%;
  top:0;
  left:0;
  display: block;
  background-color: #f5f3f8;
  z-index: 999;
  border: 1px;
  border-color: #000;
  display: none;
}
.navbar_text
{
  float: left;
  font-size: 15px;
  line-height: 20px;
}
.navbar_value
{
  float: left;
  font-size: 10px;
  line-height: 20px;
}
.circle {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  display: inline-block;
}
.rise{  
  background-color: #ff990057;
  color: black;
}
.twighlight{  
  background-color: #009;
  color: white;
}
.night{  
  background-color: #005;
  color: white;
}
.civil a
{
  color: white;
}
.night a
{
  color: white;
}
.nautical{  
  background-color: #0101ac;
  color: white;
}
.civil{  
  background-color: #00F;
  color: white;
}
.moonlight{  
  background-color: #1f33e0;
  color: white;
}
.grey-font
{
  color: lightgrey;
}
.Waxing {
  background: -webkit-linear-gradient(0deg, #fff, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.Waning {
  background: -webkit-linear-gradient(0deg, #555, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}
.map-container
{
  position: relative;
}
.map-canvas
{
  border: 1px solid grey;
  border-radius: 3px;
}
.zoom-out-btn
{
  bottom: 0;
}
.zoom-in-btn
{
  bottom: 25px;
}
.zoom-btn
{
  right: 0;
  position: absolute;
  font-size: 20px;
  width: 25px;
  height:25px;
  border-radius: 5%;
  border: 1px solid black;
  background-color: #ddd;
}
a.btn:hover
{  
  color: #ffffff;
}
.zoom-btn:hover
{
  background-color: #bbb;
}
.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}
.img-circle {
  border-radius: 50%;
  background-color: #005;
}
.img-rounded {
  border-radius: 10%;
  background-color: #005;
}
.img-rounded5 {
  border-radius: 5%;
  background-color: #005;
}

.menu-container {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
}
.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 200px;
}

.menu li {
  display: block;
  border-left: 1px solid #ccc;
}

.menu > li > a {
  background-color: #2b2b50;
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-weight: bold;
}

.breadcrumbs {
  font-size: 16px;
  font-family: Arial, sans-serif;
  list-style: none;
  padding: 3px;
  margin: 0;
}

.breadcrumbs a {
  color: #302872; /* Blue color for links */
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #302872; /* Blue color for links */
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 0.5em; /* Space around the separator */
  color: #6c757d; /* Gray color for the separator */
}

.breadcrumbs .current {
  color: #6c757d; /* Gray color for the current page */
  font-weight: bold;
  pointer-events: none; /* Disable any interaction */
}

.menu .submenu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu .submenu li a {
  padding: 7px 9px;
  background-color: white;
  color: #0e0561;
  display: block;
  border-top: 1px solid #ccc;
  text-decoration: none;
}

.menu .submenu li a:hover {
  background-color: #f1f1f1;
}

/* Toggle button */
.menu-toggle {
  font-size: 29px;
  display: none;
  color: #cec5c5;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 0px;
  margin: -3px;
  width: 40px;
  float: right;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.menu-toggle:hover {
  color: #f0ecec;
}
.language-switcher {
  position: relative;
  color: #fff;
  font-size: 14px;
}
.language-switcher summary {
  min-width: 64px;
  padding: 3px 8px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #292d31;
  cursor: pointer;
  list-style: none;
  text-align: center;
  user-select: none;
}
.language-switcher summary::-webkit-details-marker {
  display: none;
}
.language-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 84px;
  padding: 4px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #212529;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  z-index: 10001;
}
.language-switcher__menu a,
.language-switcher__menu span {
  display: block;
  padding: 5px 9px;
  border-radius: 3px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.language-switcher__menu a:hover {
  background: #3a4046;
}
.language-switcher__menu span {
  color: #ffd36a;
  font-weight: bold;
}
.solar-eclipse-sun
{
  background:#FFDD33;
  overflow:hidden;
  position:relative;
  border-radius:50%;
  border: 1px solid grey;
}
.solar-eclipse-moon
{
  background:black;
  overflow:hidden;
  position:absolute;
  border-radius:50%;
}
.lunar-eclipse-moon {
  background: #ddd;
  position: relative;
  border-radius: 50%;
  border: 1px solid grey;
  overflow: hidden;
}

/* Shared shadow layer base */
.lunar-eclipse-moon .shadow {
  position: absolute;
  height: 100%;
  border-radius: 50%;
}

/* Penumbral: use transparent shadow */
.lunar-eclipse-moon.penumbral .shadow {
  background: rgba(0, 0, 0, 0.15);
}

/* Partial: use solid shadow */
.lunar-eclipse-moon.partial .shadow {
  background: black;
}

.lunar-eclipse-moon.total {
  background: radial-gradient(circle at center, #c1440e 0%, #4b0000 100%);
  border: 1px solid #922;
}
.cover {
  position: absolute;
  background-color: black;
  border-radius: 50%;
  mix-blend-mode: multiply; /* This makes only the overlapping area black */
}
.cover {
  position: absolute;
  background-color: black;
  border-radius: 50%;
  mix-blend-mode: multiply; /* This makes only the overlapping area black */
}
.google-auto-placed {
  max-width: 100%;
  overflow: hidden;
}
/* xs */
@media only screen and (max-width: 992px) {
  .menu-container {
      flex-direction: column;
  }
  .menu {
      display: none;
      width: 100%;
  }

  .menu-toggle {
      display: block;
  }
}
.qc-box
{
  position: fixed;
  z-index: 1000;
  width: 300px;
  height: 330px;
  min-height: 330px;
  border-radius: 3px;
  padding: -10px;
}
.qc-box div
{
  margin: 0;
}
.qc {
    display: inline-block;
    padding: 3px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #000;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}
.term-qc {
    display: inline-block;
    padding: 3px;
    border: 1px dashed #7d97ec;
    text-decoration: none;
    color: #000;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
    cursor: help;
}
.term-qc:hover {
    color: #000;
    border: 1px dashed #aaa;
}
.sky-tracker-arr {
    display: inline-block;
    padding: 3px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #000;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}
  tr.p_start, tr.p_end {
    background-color: #ECEFF1;
    color: #263238;
  }

  tr.u_start, tr.u_end {
      background-color: #B0BEC5; /* Blue Grey 200 */
      color: #000;
  }

  /* 🌑 Total Eclipse */
  tr.t_start, tr.t_end {
    background-color: #BF360C; /* Deep Orange 900 */
    color: #fff;
    font-weight: bold;
  }

  /* 🌑 Maximum Eclipse */
  tr.max_time {
    background-color: #D84315; /* Deep Orange 700 */
    color: #fff;
    font-weight: bold;
  }

  /* 🌟 Current phase (highlight) */
  tr.current-phase {
    outline: 2px solid #FFD54F;        /* Amber 300 */
    background-color: #FFF8E1 !important; /* Amber 50 */
    color: #000 !important;
  }
  .visibility-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgb(189, 189, 189);
    margin: auto;
  }
  
  /* Visibility levels */
  .visible {
    background-color: #4CAF50; /* green */
  }
  .invisible {
    background-color: #F44336; /* red */
  }
  .sunspot-card-param
  {
    margin-bottom:5px;
    width: 95px;
    font-size: 0.7em;
  }
  .sunspot-card-value
  {
    margin-bottom:5px;
    width: 30px;
    font-size: 0.7em;
  }
.qc:hover {
    color: #000;
    border: 1px solid #aaa;
}
.bold
{  
  font-weight: bold;
}

@media only screen and (max-width: 600px) {
   
.ad
{
  min-height: 400px !important;
}
}
/* s */
@media only screen and (min-width: 600px) and (max-width: 767px){
  
.ad
{
  min-height: 400px !important;
}

}

/* m */
@media only screen and (min-width: 768px) and (max-width: 991px){
  .ad
  {
    min-height: 280px !important;
  }
}

/* l */
@media only screen and (min-width: 992px)  and (max-width: 1199px){
  .right-border {border-right: 1px solid #0e0561 !important;}
  .ad
  {
    min-height: 280px !important;
  }
}

/* xl */
@media only screen and (min-width: 1200px) {
  .right-border {border-right: 1px solid #0e0561 !important;}
  .ad
  {
    min-height: 280px !important;
  }
}
.feature-map
{
  position: relative;
}
.feature-on-map
{
  position: absolute;
  transform: translate(-50%, -50%); /* center the dot */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid green;
}
.annual-table
{
  font-size: 12px;
}
.annual-tr
{
   position: relative;
   height: 30px;
}
.annual-td
{
  position: absolute; 
  bottom: -1px; 
  padding: 0 !important;
  left: 0; 
  width: 100%; 
  height: 3px; 
  pointer-events: none;
}
.annual-div
{
  position: absolute;
  left: 5%; 
  width: 25%; 
  height: 3px; 
}
.annual-div-rise
{
  background-color: #ff990057;
  z-index: 1;
}
.annual-div-civil
{
  background-color: #00F;
  z-index: 2;
}
.annual-div-night
{
  background-color: #005;
  z-index: 3;
}
.moon-phases-table
{
  width: 100%;
  max-width: 700px;
  margin: auto;
  table-layout: fixed;
}
.moon-phases-table td,.moon-phases-table th
{
  width: 25%;
  text-align: center;
  color: #0e0561;
}
.calc_field {
  margin-bottom: 1rem;
}

.calc_field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0e0561;
}

.calc_input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(14, 5, 97, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  line-height: 1.3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc_input:focus {
  outline: none;
  border-color: #0e0561;
  box-shadow: 0 0 0 3px rgba(14, 5, 97, 0.12);
}

.calc_input[readonly] {
  background: rgba(14, 5, 97, 0.04);
  color: #333;
}
.calc_details {
  margin: 0.75rem 0 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(14, 5, 97, 0.14);
  border-radius: 8px;
  background: rgba(14, 5, 97, 0.035);
}

.calc_details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0e0561;
}

.calc_details p {
  margin: 0.75rem 0 0 0;
}
.sphere_canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
}
/* Glossary pages */
.glossary-page {
  line-height: 1.6;
  color: #1f2430;
}

.glossary-page p {
  margin: 0 0 18px 0;
}

.glossary-page h1,
.glossary-page h2,
.glossary-page h3,
.glossary-page h4 {
  color: #0e0561;
}

.glossary-page .section {
  background: #ffffff;
  border: 1px solid #d8dcf0;
  border-radius: 12px;
  padding: 26px 30px;
  margin-top: 0;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.035);
}

.glossary-page .formula_box {
  background: #f4f6fb;
  border: 1px solid #dde2f0;
  border-left: 4px solid #4d4aa8;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0 18px 0;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.55;
  overflow-x: auto;
}
.sky-map-wrap {
    position: relative;
    width: 340px;   /* same as canvas */
    height: 340px;
}

.map-rotate-btn {
    position: absolute;
    bottom: 10px;
    right: 15px;

    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;

    /* border: 1px solid #777; */
    /* background: rgba(65, 29, 224, 0.85); */
    cursor: pointer;
    font-size: 25px;
    z-index: 5;
    display: none;
}

@media only screen and (min-width: 901px) {
  .map-rotate-btn {
    display: none !important;
  }
}

/* Main visual refresh */
:root {
  --st-bg: #f7f8fc;
  --st-surface: #ffffff;
  --st-surface-soft: #f3f5fb;
  --st-border: #d9deec;
  --st-border-strong: #c5ccdf;
  --st-text: #151826;
  --st-muted: #5e6474;
  --st-heading: #101145;
  --st-nav: #202342;
  --st-link: #23256f;
  --st-link-hover: #3b3fa3;
  --st-accent: #4f6bdc;
  --st-shadow: 0 2px 10px rgba(20, 24, 50, 0.07);
}


.main_content {
  color: var(--st-text);
}

h1 {
  color: var(--st-heading);
  font-size: 1.55em;
  letter-spacing: 0;
}

h2 {
  color: var(--st-heading);
  font-size: 1.18em;
  letter-spacing: 0;
}

h3 {
  color: var(--st-heading);
  letter-spacing: 0;
}

a,
.a_h,
h2 > a,
a.card-footer {
  color: var(--st-link);
  text-decoration-color: rgba(79, 107, 220, 0.35);
}

a:hover,
.a_h:hover,
a.card-footer:hover {
  color: var(--st-link-hover);
}

.navbar_fixed {
  background: #20242b !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar_logo,
a.navbar_logo:hover {
  color: #b8bdc8;
}

.section {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 1px 4px rgba(20, 24, 50, 0.035);
}

.planets-summary {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 22px;
}

.planets-summary h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.planets-summary-intro {
  margin: 0 auto 14px;
  text-align: center;
  line-height: 1.5;
}

.planets-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planets-summary-list li {
  padding: 9px 12px;
  line-height: 1.35;
  text-align: left;
  background: var(--st-surface-soft);
  border: 1px solid var(--st-border);
  border-radius: 6px;
}

.planets-summary-note {
  margin: 12px 0 0;
  color: var(--st-muted);
  text-align: center;
  font-size: 0.95em;
}

@media (max-width: 700px) {
  .planets-summary {
    padding: 14px;
  }

  .planets-summary-list {
    grid-template-columns: 1fr;
  }
}

.object_card,
.term_card,
.map-feature-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 6px;
  box-shadow: var(--st-shadow);
}

.object_card {
  display: inline-flex;
  flex-direction: column;
  height: 330px;
  min-height: 330px;
  padding-bottom: 0;
  overflow: hidden;
}

.term_card,
.padding {
  text-align: left;
}

.object_card_footer {
  position: static;
  margin-top: auto;
  padding: 8px 5px 10px 5px;
  width: 100%;
}

.object_card:hover,
.object_card_hover,
.map-feature-card:hover {
  box-shadow: 0 6px 18px rgba(20, 24, 50, 0.14);
}

.object_card_name,
.map-feature-card-name {
  color: var(--st-heading);
  font-size: 16px;
}

.object_card .text3 {
  font-size: 0.86em;
  line-height: 1.35;
}

.object_card .padding-3 {
  flex: 0 0 auto;
}

.object_card [itemprop="description"] {
  flex: 0 0 auto;
  overflow: hidden;
}

.object_card_header,
.map-feature-card-header {
  background: #e6e9f4;
  border: 1px solid var(--st-border-strong);
}

.object_card_image,
.img-circle,
.img-rounded,
.img-rounded5 {
  background-color: #11142d;
}

.info_parent,
.info_text {
  background-color: var(--st-surface-soft);
}

.section .info_parent,
.section .info_text {
  background-color: transparent;
}

.menu {
  width: 190px;
}

.menu li {
  border-left: 1px solid var(--st-border);
}

.menu > li > a {
  background-color: var(--st-nav);
  color: #ffffff;
  padding: 12px 14px;
  font-size: 0.95em;
}

.menu .submenu li a {
  background-color: #ffffff;
  color: var(--st-link);
  border-top: 1px solid var(--st-border);
  padding: 8px 12px;
}

.menu .submenu li a:hover {
  background-color: #eef1f8;
}

.breadcrumbs a {
  color: var(--st-link);
}

.breadcrumbs a:hover {
  color: var(--st-link-hover);
}
.compass-icon {
    width: 24px;
    height: 24px;
    color: #4b25e2;
    vertical-align: middle;
}
.language-menu-item .language-switcher__menu {
  left: 0;
  right: auto;
}
.language-menu-item .language-switcher summary {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--st-nav, #2b2b50);
  font-weight: bold;
}
.language-menu-item .language-switcher__menu {
  top: 100%;
  min-width: 100%;
}
.where-is-time {
    cursor: pointer;
}
.where-is-time:hover,
.where-is-time.selected {
    background: #e8edff;
}
.where-is-time.sky-day { background: #fff; color: #151826; }
.where-is-time.sky-sunset { background: #00f; color: #fff; }
.where-is-time.sky-civil { background: #009; color: #fff; }
.where-is-time.sky-nautical { background: #005; color: #fff; }
.where-is-time.sky-dark { background: #000055; color: #fff; }
.where-is-time.sky-sun-edge { background: #f5d442; color: #151826; }
.where-is-time.sky-event { font-weight: 600; }
.where-is-time:hover,
.where-is-time.selected { outline: 2px solid #647cff; outline-offset: -2px; }
.object-where-image img{display:block;width:min(100%,1200px);height:auto;margin:0 auto;border-radius:10px;background:#07101c}.object-where-image a{display:block}.object-where-image a:focus-visible img{outline:3px solid #647cff;outline-offset:3px}
.object-cluster-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.object-cluster-links li {
    margin: 0;
}
.moon-phase-orbit-wrap {
    width: 100%;
    max-width: 460px;
    margin: 20px auto;
}
.moon-phase-view-description {
    max-width: 900px;
    margin: 0 auto 16px;
}
#moon-phase-orbit-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    background: #000055;
    cursor: grab;
    touch-action: none;
}
#moon-phase-orbit-canvas:active { cursor: grabbing; }
.moon-phase-orbit-readout {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    color: #101b70;
    text-align: center;
}
.apparent-size-interval { text-align:center; color:#596078; font-size:.92em; }
.apparent-size-comparison { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:620px; margin:10px auto; }
.apparent-size-state { display:flex; min-width:0; flex-direction:column; align-items:center; gap:4px; text-align:center; }
.apparent-size-state > span { font-weight:600; }
.apparent-size-state small { min-height:1.4em; }
.apparent-size-current { color:#101b70; }
.apparent-size-current strong { font-size:1.25em; }
.apparent-size-disk-slot { height:100px; display:flex; align-items:center; justify-content:center; }
.apparent-size-disk-slot img, #apparent-size-disk { display:block; max-width:100%; object-fit:contain; border-radius:50%; }
.apparent-size-link { text-align:center; margin:12px 0 2px; font-weight:700; }
.apparent-size-tool { display:grid; grid-template-columns:minmax(220px,1fr) minmax(250px,1fr); align-items:center; gap:20px; }
.apparent-size-preview-stage { height:240px; display:flex; align-items:center; justify-content:center; }
.apparent-size-details dl { margin:0; }
.apparent-size-details dl div { display:grid; grid-template-columns:minmax(130px,1fr) auto; gap:12px; padding:7px 0; border-bottom:1px solid var(--st-border); }
.apparent-size-details dt { font-weight:600; }
.apparent-size-details dd { margin:0; }
.apparent-size-controls { grid-column:1/-1; }
.apparent-size-controls label { display:block; margin-bottom:6px; font-weight:600; }
#apparent-size-slider { display:block; width:100%; }
.apparent-size-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.apparent-size-actions button { min-width:0; padding:8px; }
.apparent-size-actions small { display:block; margin-top:3px; }
@media (max-width: 600px) {
  .apparent-size-tool { grid-template-columns:1fr; }
  .apparent-size-controls { grid-column:auto; }
  .apparent-size-preview-stage { height:225px; }
  .apparent-size-comparison { gap:4px; }
  .apparent-size-actions button { padding:7px 3px; font-size:.9em; }
}
.annual-visual-group {
  display: block;
  width: 100%;
  overflow: hidden;
}
.annual-visual-main,
.annual-visual-main svg {
  display: block;
  width: 100%;
}
.annual-linked-tracker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.annual-linked-chart,
.annual-linked-map { padding: 0; }
.annual-linked-chart svg {
  display: block;
  width: 100%;
  height: 75px;
  margin: 0;
}
.annual-linked-map {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}
.annual-linked-map canvas {
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 767px) {
  .annual-linked-tracker { grid-template-columns: minmax(0, 1fr) 120px; }
  .annual-linked-chart { margin-bottom: 0; }
}
.tonight-summary-image{max-width:800px;margin:18px auto}.tonight-summary-image img{display:block;width:100%;height:auto;border-radius:8px;background:#030811}

/* Main Moon answer only; tracker and lunar-map layouts stay independent. */
.moon-tonight-summary { max-width: 680px; margin: 0 auto; }
.moon-tonight-phase { display: flex; align-items: center; gap: 16px; }
.moon-tonight-phase #object_pic {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    margin: 0;
}
.moon-tonight-phase-text { min-width: 0; }
.moon-tonight-phase-text h2 { margin: 4px 0 6px; }
.moon-tonight-phase-text p { margin: 0; }
.moon-tonight-position { margin: 12px 0 8px; line-height: 1.45; }
.moon-tonight-events { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.5; }
.moon-tonight-event { white-space: nowrap; }
.moon-tonight-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid var(--st-border);
    border-radius: 6px;
    background: var(--st-surface-soft);
    font-weight: 600;
}
@media (max-width: 380px) {
    .moon-tonight-phase { gap: 12px; }
    .moon-tonight-phase #object_pic { width: 80px; height: 80px; }
}

/* Compact Moon-neighbor answers; keep text readable on narrow phones. */
.moon-neighbors { box-sizing: border-box; }
.moon-neighbor-current { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.moon-neighbor-current > div:first-child { flex: 1 1 260px; min-width: 0; }
.moon-neighbor-map { flex: 0 1 300px; max-width: 100%; }
.moon-neighbor-status { color: var(--st-text-muted, #aaa); }
.moon-neighbor-list { list-style: none; padding: 0; margin: 0; }
.moon-neighbor-list li { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--st-border, #777); overflow-wrap: anywhere; }
.moon-neighbor-conjunctions li { grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; }
.moon-neighbor-conjunction-map { display: block; width: 150px; max-width: 100%; }
.moon-neighbor-conjunction-details { display: grid; gap: 5px; min-width: 0; }
.moon-neighbor-teaser p { margin: 8px 0; }
.moon-neighbor-teaser-content { display: flex; align-items: center; gap: 20px; }
.moon-neighbor-teaser-text { flex: 1 1 auto; min-width: 0; }
.moon-neighbor-teaser-map { flex: 0 1 240px; width: 240px; max-width: 100%; }
@media (max-width: 600px) {
    .moon-neighbor-current { display: block; }
    .moon-neighbor-map { margin: 12px auto 0; width: 300px; }
    .moon-neighbor-teaser-content { display: block; }
    .moon-neighbor-teaser-map { margin: 12px auto 0; width: 100%; max-width: 300px; }
    .moon-neighbor-conjunctions li { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
    .moon-neighbor-conjunction-map { width: 110px; }
}
.sun-daylight-lengths { display:flex; flex-wrap:wrap; gap:12px 28px; justify-content:center; margin:12px 0; }
.sun-daylight-context > p { margin:5px 0; text-align:center; }
.sun-daylight-visual { position:relative; height:24px; margin:16px 0 3px; overflow:hidden; border-radius:12px; background:#090d24; }
.sun-daylight-visual span { position:absolute; top:0; height:100%; }
.sun-daylight-scale { display:flex; justify-content:space-between; color:#777; font-size:.85em; }
.sun-daylight-navigation { display:flex; align-items:end; justify-content:center; flex-wrap:wrap; gap:10px; }
.sun-daylight-navigation form { margin:0; }
.sun-active-regions { max-width:560px; margin:12px auto; }
.sun-active-regions li { padding:5px 0; }
.sun-space-weather,.sun-aurora-status { text-align:center; }
.sun-eclipse-visual { position:relative; width:84px; height:84px; margin:10px auto; border-radius:50%; overflow:hidden; background:#f5c542; box-shadow:0 0 12px #f5c542; }
.sun-eclipse-visual span { position:absolute; width:84px; height:84px; border-radius:50%; background:#151515; left:0; top:0; }
@media(max-width:600px){.sun-daylight-navigation{align-items:stretch}.sun-daylight-navigation form{width:100%;text-align:center}.sun-daylight-navigation button{max-width:100%}}
