.plant-panel{margin-top: 10px; padding: 16px 18px 12px; border-radius: 20px; border: 1px solid rgba(60,52,44,.20); background: rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(0,0,0,.06); position: sticky; top: 16px;}

.plant-panel h2{
  margin: 0 0 10px;
  font-size:20px;
  font-weight:600;
  letter-spacing:.2px;
}

/* Phase board (connected to the dial) */
.phase{
  margin: 10px auto 0;
  padding: 10px 0 0;
}

.phase-hero{
  margin: 0 auto 14px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(60,52,44,.14);
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
}

.phase-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(40,34,28,.70);
  text-transform: uppercase;
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.phase-title{
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  color: rgba(30,26,22,.92);
  margin-bottom: 6px;
}

.phase-summary{
  font-size: 17px;
  line-height: 1.55;
  color: rgba(40,34,28,.82);
}

.phase-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 auto 14px;
}

.phase-card{
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(60,52,44,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.phase-card-title{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(40,34,28,.72);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.phase-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(30,26,22,.84);
  line-height: 1.55;
}

.phase-list li{ margin: 6px 0; }

.phase-paragraph{
  font-size: 16px;
  line-height: 1.55;
  color: rgba(40,34,28,.82);
}

.phase-footnote{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(40,34,28,.75);
}

.phase-next-title{
  font-size: 18px;
  font-weight: 600;
  color: rgba(30,26,22,.88);
  margin: 0 0 6px;
}

.panel{
  margin:26px auto 0;
  padding:18px 18px 6px;
  border-top:1px solid rgba(60,52,44,.18);
  color:rgba(40,34,28,.92);
}

.panel h2{
  margin:0 0 10px;
  font-size:20px;
  font-weight:600;
  letter-spacing:.2px;
}

.panel p{
  margin:0 0 12px;
  font-size:17px;
  line-height:1.55;
  color:rgba(40,34,28,.82);
}

.muted{ color:rgba(40,34,28,.70); }

.controls{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding:8px 0 10px;
}

.controls label{
  font-size:15px;
  color:rgba(40,34,28,.72);
}

select{
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size:16px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(60,52,44,.28);
  background:rgba(255,255,255,.45);
  color:rgba(30,26,22,.92);
}

select:focus{ outline:2px solid rgba(90,74,55,.25); outline-offset:2px; }

.readout{
  margin:6px 0 10px;
  padding:12px 12px 6px;
  border-left:3px solid rgba(60,52,44,.22);
}

.readout-line{
  font-size:18px;
  line-height:1.4;
  color:rgba(30,26,22,.88);
  margin:0 0 8px;
}

.readout-line.italic{ font-style:italic; color:rgba(30,26,22,.74); }

/* Keep above-the-fold tight */
#captionLine2{display:none;}
.caption .rule{display:none;}

.caption{
  text-align:center;
  margin-top:-2px;
  padding:0 10px 30px;
}

.cap-line{font-size:clamp(18px, 1.8vw, 26px);}

.phase-toggle{
  margin-top:10px;
  align-self:flex-start;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(60,52,44,.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  color: rgba(30,26,22,.85);
  cursor: pointer;
}
.phase-toggle:hover{ background: rgba(255,255,255,.38); }
.phase-details[hidden]{ display:none; }

/* Divider inside right panel */
.panel-divider{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 18px 0 14px;
}

@media (max-width: 760px){
  .dial-wrap{ padding:12px 0 6px; }
  .panel{
    width:min(640px, 94vw);
    margin:0 auto;
  }
}

/* Phase panel month navigation (explore mode) */
.phase-kicker-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.phase-nav{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(40,34,28,.68);
}
.phase-nav-label{
  min-width: 120px;
  text-align:center;
}
.phase-nav-btn{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(60,52,44,.20);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: inherit;
  color: rgba(30,26,22,.85);
  cursor: pointer;
  line-height: 1;
}
.phase-nav-btn:hover{ background: rgba(255,255,255,.30); }
.phase-nav-now{
  background: transparent;
  border: 1px solid rgba(60,52,44,.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: inherit;
  color: rgba(30,26,22,.78);
  cursor: pointer;
  line-height: 1;
}
.phase-nav-now:hover{ background: rgba(255,255,255,.20); }

/* Phase details (expanded) */
.phase-details .phase-meta{
  margin-top:6px;
  font-size:0.92rem;
  opacity:0.88;
}
.phase-details .phase-basis{
  margin-top:4px;
  font-size:0.9rem;
  opacity:0.78;
}

/* Moon phase strip */
.moon-strip {
  width: min(920px, 94vw);
  margin: 22px auto 0;
  padding: 0;
}

.moon-strip-frame{
  position: relative;
  width: 100%;
  height: 124px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-strip-image{
  display: block;
  width: auto;
  height: 95px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.moon-strip-frame::after{
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 13px;
  height: 1.5px;
  background: rgba(0,0,0,.55);
}

.moon-phase-dot{
  position: absolute;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 2px rgba(245,240,230,.95);
  transform: translateX(-50%);
}

img.moon-strip-image{
  height: 95px !important;
  width: auto !important;
  max-width: 100% !important;
}

@media (max-width: 760px){
  .moon-strip {
    width: min(920px, 96vw);
    margin-top: 18px;
  }

  .moon-strip-frame{
    position: relative;
    width: 100%;
    height: 104px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .moon-strip-frame::after{
    left: 7%;
    right: 7%;
    bottom: 11px;
    height: 1.25px;
  }

  .moon-strip-image{
    display: block;
    width: auto;
    height: 78px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
  }

  .moon-phase-dot{
    width: 9px;
    height: 9px;
    bottom: 6px;
  }

  img.moon-strip-image{
    height: 78px !important;
  }
}

/* Permanent Editha badge in the phase board */
.phase-card-next{
  overflow:hidden;
}

.phase-next-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) clamp(132px, 14.5vw, 190px);
  gap:18px;
  align-items:center;
}

.phase-next-copy{
  min-width:0;
}

.phase-editha-badge{
  width:100%;
  max-width:190px;
  height:auto;
  justify-self:end;
  align-self:center;
  display:block;
  opacity:.92;
  transform: translate(-10px, -12px);
  filter: drop-shadow(0 8px 16px rgba(42,34,24,.14));
  pointer-events:none;
  user-select:none;
}

@media (max-width: 760px){
  .phase-next-layout{
    grid-template-columns:1fr;
    gap:12px;
  }

  .phase-editha-badge{
    width:min(165px, 48vw);
    justify-self:center;
    opacity:.88;
    margin-top:0;
    transform: translate(0, -4px);
  }
}

/* Solar Calendar */
.solar-calendar{
  margin: 26px 0 18px;
  padding: 18px;
  border: 1px solid rgba(83, 69, 48, 0.18);
  border-radius: 18px;
  background: rgba(251, 246, 233, 0.74);
  box-shadow: 0 1px 0 rgba(255,255,255,0.50) inset;
}
.solar-calendar-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.solar-calendar h2{
  margin:0;
}
.solar-calendar-kicker{
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(60, 83, 47, 0.88);
  text-align:right;
}
.solar-calendar-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.solar-card{
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(83, 69, 48, 0.13);
}
.solar-card-title{
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(67, 56, 42, 0.72);
  margin-bottom: 8px;
}
.solar-card-main{
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.35rem;
  color: rgba(37, 58, 37, 0.94);
  margin-bottom: 6px;
}
.solar-card-note{
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(45, 42, 35, 0.78);
}
.solar-progress-track{
  height: 12px;
  border-radius: 999px;
  background: rgba(83, 69, 48, 0.12);
  overflow: hidden;
  margin: 8px 0 10px;
}
.solar-progress-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(181,132,38,0.55), rgba(90,128,66,0.65));
}
@media (max-width: 760px){
  .solar-calendar-head{display:block;}
  .solar-calendar-kicker{text-align:left; margin-top:4px;}
  .solar-calendar-grid{grid-template-columns:1fr;}
}
