.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,.62);
}

.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; }

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

.btn:hover{ background:rgba(255,255,255,.55); }

.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;
}

/* Subtle link above the insect dropdown (Porkbun build) */
.insect-page-link{
  margin: 4px 0 10px 0;
  font-size: 0.9rem;
}
.insect-page-link a{
  color: #1b3a2f;
  text-decoration: none;
  border-bottom: 1px solid rgba(27,58,47,0.32);
}
.insect-page-link a:hover{
  color: #1b3a2f;
  border-bottom-color: rgba(27,58,47,0.65);
}


  /* keep dial centered */
  .dial-wrap{ padding:12px 0 6px; }
  /* panel becomes a centered card below */
  .panel{
    width:min(640px, 94vw);
    margin:0 auto;
  }
}


/* Responsive tuning:
   - Keep two-column layout on iPad/medium screens without clipping
   - Collapse to one column only on narrow screens
*/



/* === Bird Section Size Adjustments === */
/* Add or merge these rules into assets/css/panels.css */

.bird-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

/* Preview panel containing the bird illustration */
.bird-preview {
  max-width: 360px;
  margin: auto;
  padding: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 14px;
}

/* Bird image sizing */
.bird-preview img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
}

/* Optional: slightly tighten bird cards */
.bird-card {
  padding: 14px 16px;
}



@keyframes heartBreath{
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -50%) scale(1.02); }
  100% { transform: translate(-50%, -50%) scale(1); }
}


/* MERGED: Center GIF (BOLD 68% + optical center correction) */
.clock-center-gif{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -57%);
  width:74% !important;
  height:74% !important;
  object-fit:contain;
  z-index:10;
  pointer-events:none;
}



/* ===== FINAL CENTER GIF SIZE LOCK (DESKTOP + MOBILE) ===== */
.clock-center-gif{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -57%);
  width:74% !important;
  height:74% !important;
  object-fit:contain;
  z-index:10;
  pointer-events:none;
}

/* override any desktop media rules */






/* ===== CENTER LIFE GIF — FINAL 80% CENTERED ===== */
.clock-center-life{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -57%);
  width:65% !important;
  height:65% !important;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:10;
}

.clock-center-life img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}



/* ===== CONTAINMENT FIX: KEEP GIF INSIDE CLOCK ===== */

.clock-stage{
  overflow:hidden;
}

.clock-center-life{
  clip-path:circle(46% at 50% 50%);
}


/* ===== TUNING: Nudge specimen down to clear upper label ===== */
.clock-center-life img{
  transform: translateY(10%);
}

/* ===== ENLARGE ALL INSECT HUB SPECIMENS (GLOBAL) =====
   This keeps the existing center masking/clip-path behavior,
   but scales the specimen up so it reads better on all screens.
*/
.clock-center-life img{
  /* keep the existing nudge, but enlarge the specimen */
  transform: translateY(10%) scale(1.10);
}

/* a touch larger on bigger screens */


/* ===== 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;
}


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

  .moon-strip-frame{
  position: relative;
  width: 100%;
  height: 124px;
  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: 95px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

  .moon-phase-dot{
    width: 9px;
    height: 9px;
    bottom: 6px;
  }
}
  .bird-popup{
    width: min(280px, calc(100vw - 36px));
  }
}


.birds-panel{
  width:100%;
  max-width:none;
  margin: 26px 0 0;
  padding: 18px 18px 20px;
  border-top:1px solid rgba(60,52,44,.18);
  color:rgba(40,34,28,.92);
  box-sizing:border-box;
}

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

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

.birds-layout{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap:16px;
  align-items:start;
}

.bird-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.bird-card,
.bird-preview{
  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);
}

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

.bird-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.bird-name{
  appearance:none;
  border:0;
  background:none;
  padding:0;
  margin:0;
  flex:1 1 auto;
  font: inherit;
  font-size: 21px;
  line-height:1.2;
  color: rgba(30,26,22,.92);
  cursor:pointer;
  text-align:left;
  border-bottom: 1px solid transparent;
}

.bird-name:hover,
.bird-name:focus-visible,
.bird-name.is-active{
  color: rgba(64,78,62,.98);
  border-bottom-color: rgba(64,78,62,.45);
  outline:none;
}

.bird-note{
  margin:0;
  font-size:16px;
  line-height:1.55;
  color: rgba(40,34,28,.82);
}

.bird-preview{
  position: sticky;
  top: 16px;
}

.bird-preview-frame{
  width:100%;
  aspect-ratio: 4 / 5;
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.74);
  border:1px solid rgba(60,52,44,.12);
  display:flex;
  align-items:center;
  justify-content:center;
}

.bird-preview-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

@media (max-width: 900px){
  .birds-layout{
    grid-template-columns: 1fr;
  }

  .bird-preview{
    position: static;
    order: -1;
  }
}

@media (max-width: 640px){
  .bird-grid{
    grid-template-columns: 1fr;
  }
}


/* === Bird preview audio button refinement === */
.bird-head{
  display:block;
}

.bird-preview-frame{
  position:relative;
}

.bird-preview-play{
  position:absolute;
  right:14px;
  bottom:14px;
  width:44px;
  height:44px;
  border:1px solid rgba(60,52,44,.28);
  border-radius:999px;
  background:rgba(248,246,240,.92);
  color:rgba(30,26,22,.92);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size:18px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
}

.bird-preview-play:hover{
  background:rgba(255,255,255,.98);
}

.bird-preview-play.is-playing{
  background:rgba(235,232,222,.98);
  transform:scale(1.03);
}


.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%);
}

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

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

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

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



/* Seasonal markers (quiet extension) */
.seasonal-markers{
  width: 100%;
  margin: 28px auto 10px;
  display: flex;
  justify-content: center;
}

.markers-inner{
  width: min(820px, 92vw);
  padding: 8px 0;
}

.marker{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 0.95rem;
  color: rgba(40,34,28,0.85);
}

.marker-icon{
  font-size: 1rem;
  opacity: 0.8;
}

.marker-text strong{
  font-weight: 600;
}



.markers-table{
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.markers-table td{
  width: 50%;
  padding: 10px 8px;
  vertical-align: top;
}

.marker-icon{
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  opacity: 0.8;
}

.marker-text{
  font-size: 0.95rem;
  color: rgba(40,34,28,0.85);
}

.marker-sub{
  font-size: 0.8rem;
  opacity: 0.7;
}


/* Hard clamp for Edge / Chromium quirks */
img.moon-strip-image{
  width: clamp(80px, 10vw, 160px);
  height: auto;
  display:block;
  margin:0 auto;
}


/* Moon size override */
@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: 95px !important;
  width: auto !important;
  max-width: 100% !important;
}
@media (max-width: 760px){
  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);
  }
}


.insect-page-link {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.insect-page-link a + a {
  margin-left: 0;
}
