@charset "utf-8";
/*	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * 	Resource:	dashboard.css       | Ver:5.0.0
 * 	Author:		DNC Thomas          | Feb 2026
 *  Created:    2026-02-05
 * 	Last Edit:  2025-10-03 15:19:34
 *	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * 	Role:	Additional styles for page
 * 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.almanacGrid {
  margin: 1vh 0;
  display: grid;
  gap: calc(var(--rowGap) / 2) calc(var(--colGap));
  grid-template-columns: repeat(3, 1fr) 10em;
  grid-template-areas:
    "sunRise dawn moonRise moon"
    "sunSet dusk moonSet moon"
    "dayLength dayLight moonPhase moon"
    "currcond currcond currcond moon";
  & p {
    margin: 0;
  }
}
#moonImg {
  grid-area: moon;
  justify-self: center;
}
#moonTip {
  grid-area: moon;
  justify-self: center;
  align-self: center;
  padding: 0.2em 1em;
  font-weight: 700;
  background: rgba(var(--baseR), var(--baseG), var(--baseB), 80%);
  border-radius: 50%;
  border-bottom: 5px solid var(--color4);
  color: var(--color9);
}

@media (max-width: 600px) {
  .almanacGrid {
    grid-template-columns: repeat(2, 1fr) 10em;
    grid-template-areas:
      "sunRise sunSet moon"
      "dawn dusk moon"
      "dayLength dayLight moon"
      "moonRise moonSet moon"
      ". moonPhase moonPhase"
      "currcond currcond currcond";
  }
}

/* Mobile Almanac */
@media (max-width: 600px) {
  #Almanac .content {
    width: calc(100vw - 24px);
    max-width: 420px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #Almanac .ow-panel {
    padding: 0 0.8em 0 0.8em;
    border-radius: 0.7em;
    overflow: hidden;
  }
  #Almanac .ow-titleBar {
    margin-left: -0.8em;
    margin-right: -0.8em;
    padding-left: 0.8em;
    padding-right: 0.8em;
  }
  #Almanac .almanacGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "sunRise sunSet"
      "dawn dusk"
      "dayLength dayLight"
      "moonRise moonSet"
      "moon moon"
      "moonPhase moonPhase"
      "currcond currcond";
    gap: 0.55em 1em;
    align-items: center;
    padding: 0.4em 0 0.7em 0;
  }
  #Almanac .almanacGrid p {
    margin: 0;
    line-height: 1.25;
  }
  #Almanac #moonImg {
    grid-area: moon;
    width: 80px;
    height: auto;
    justify-self: center;
    align-self: center;
  }
  #Almanac #moonTip {
    grid-area: moon;
    justify-self: center;
    align-self: center;
    z-index: 2;
    margin: 0;
    padding: 0.18em 0.7em;
    border-radius: 1em;
    background: rgba(80, 80, 80, 0.65);
    color: white;
    font-weight: 600;
    white-space: nowrap;
  }
  #Almanac .almanacGrid p[style*="moonPhase"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #Almanac [style*="grid-area:currcond"] {
    text-align: center;
    padding-top: 0.25em;
  }
  #Almanac .ow-titleBar:last-child {
    justify-content: center;
    margin-bottom: 0;
  }
}
