
/* GraFabLab Weekly Card Preview v0.9
   Compact top weekly bar sized closer to the lower "Next Week" bar.
   Countdown pill remains the shrinking day-progress element. */

#featured .gfl-weekly-meta,
#featured .gfl-next-week{
  border-radius:18px;
  border:1px solid rgba(214,171,111,.38);
  background:
    linear-gradient(180deg, rgba(39,31,25,.94), rgba(18,14,11,.97));
  box-shadow:
    inset 0 1px 0 rgba(255,241,220,.04),
    0 12px 28px rgba(0,0,0,.18);
  position:relative;
  overflow:hidden;
}

#featured .gfl-weekly-meta::before,
#featured .gfl-next-week::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(226,181,118,.50), transparent);
}

/* Top bar: compact, visually similar in height to bottom bar */
#featured .gfl-weekly-meta{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:18px;
  margin:0 0 16px;
  padding:13px 16px;
}

#featured .gfl-weekly-kicker{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#dfae69;
  font-size:12px;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

#featured .gfl-weekly-kicker strong{
  color:#f6eee4;
  font-size:14px;
  font-weight:900;
  letter-spacing:.09em;
  white-space:nowrap;
}

#featured .gfl-weekly-dot{
  color:rgba(223,174,105,.50);
}

#featured .gfl-weekly-days-wrap{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
  width:100%;
}

#featured .gfl-weekly-days{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  width:min(100%, 300px);
  padding:8px 12px;
  border:1px solid rgba(221,178,117,.46);
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(33,27,22,.98), rgba(16,13,10,.96));
  color:#f7efe5;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(0,0,0,.12);
  overflow:hidden;
}

#featured .gfl-weekly-days-fill{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:42.857%;
  border-radius:999px;
  background:
    linear-gradient(90deg, rgba(164,122,74,.36), rgba(224,176,111,.54));
  box-shadow:
    inset 0 1px 0 rgba(255,247,235,.15),
    0 0 14px rgba(224,176,111,.10);
  pointer-events:none;
  transition:width .35s ease;
}

#featured .gfl-weekly-hourglass,
#featured .gfl-weekly-days strong{
  position:relative;
  z-index:1;
}

#featured .gfl-weekly-hourglass{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:50%;
  border:1px solid rgba(224,179,116,.54);
  background:rgba(10,8,7,.72);
  color:#e5b676;
  font-size:11px;
}

/* Bottom bar: keep current stronger presence */
#featured .gfl-next-week{
  display:grid;
  grid-template-columns:54px 1fr auto;
  align-items:center;
  gap:16px;
  margin-top:16px;
  padding:14px 16px;
}

#featured .gfl-next-week[hidden]{
  display:none!important;
}

#featured .gfl-next-week-mark{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:50%;
  border:1px solid rgba(224,179,116,.60);
  background:
    radial-gradient(circle, rgba(74,57,42,.74), rgba(16,13,11,.98));
  color:#f3e6d5;
  font:500 25px/1 Georgia,serif;
  box-shadow:0 0 22px rgba(201,160,106,.08);
}

#featured .gfl-next-week-copy{
  min-width:0;
}

#featured .gfl-next-week-copy span{
  display:block;
  margin-bottom:3px;
  color:#d8a967;
  font-size:10px;
  font-weight:900;
  letter-spacing:.17em;
  text-transform:uppercase;
}

#featured .gfl-next-week-copy strong{
  display:block;
  color:#f7efe5;
  font-size:17px;
  line-height:1.15;
  font-weight:700;
}

#featured .gfl-next-week-copy small{
  display:block;
  margin-top:4px;
  color:#a99c8f;
  font-size:11px;
  line-height:1.4;
}



@media(max-width:700px){
  #featured .gfl-weekly-meta,
  #featured .gfl-next-week{
    border-radius:17px;
  }

  #featured .gfl-weekly-meta{
    grid-template-columns:1fr;
    gap:9px;
    padding:11px 13px;
    margin-bottom:13px;
  }

  #featured .gfl-weekly-kicker{
    font-size:9.5px;
    letter-spacing:.12em;
  }

  #featured .gfl-weekly-kicker strong{
    font-size:11.5px;
  }

  #featured .gfl-weekly-days{
    width:100%;
    padding:7px 10px;
    font-size:10.5px;
  }

  #featured .gfl-weekly-hourglass{
    width:23px;
    height:23px;
    flex-basis:23px;
    font-size:10px;
  }

  #featured .gfl-next-week{
    grid-template-columns:42px 1fr;
    gap:11px;
    margin-top:13px;
    padding:12px 13px;
  }

  #featured .gfl-next-week-mark{
    width:40px;
    height:40px;
    font-size:20px;
  }

  #featured .gfl-next-week-copy span{
    font-size:9px;
  }

  #featured .gfl-next-week-copy strong{
    font-size:14px;
  }

  #featured .gfl-next-week-copy small{
    font-size:9.5px;
  }

  
}


/* v1.2 published-week safety state */
#featured .gfl-weekly-meta.is-pending{
  border-color:rgba(214,171,111,.62);
}
#featured .gfl-weekly-meta.is-pending .gfl-weekly-days{
  border-color:rgba(214,171,111,.58);
}
#featured .gfl-weekly-meta.is-pending .gfl-weekly-days-fill{
  width:0!important;
}
#featured .gfl-next-week.is-pending{
  border-color:rgba(214,171,111,.56);
}
#featured .gfl-next-week.is-pending .gfl-next-week-mark{
  font-size:0;
  position:relative;
}
#featured .gfl-next-week.is-pending .gfl-next-week-mark::after{
  content:"↻";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  color:#e5b676;
  transform:translateY(-1px);
}
#featured.gfl-weekly-pending .featured{
  opacity:.94;
}

/* Missing or invalid current-week data: never present the preceding cards as
   current content. One neutral hand-over card is shown instead. */
#featured .gfl-weekly-switch-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  align-items:center;
  gap:18px;
  min-height:158px;
  padding:24px;
  border:1px solid rgba(214,171,111,.42);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(41,32,25,.98),rgba(18,14,11,.98));
  box-shadow:inset 0 1px 0 rgba(255,241,220,.045),0 12px 28px rgba(0,0,0,.18);
}
#featured .gfl-weekly-switch-mark{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border:1px solid rgba(224,179,116,.60);
  border-radius:50%;
  color:#e5b676;
  background:radial-gradient(circle,rgba(74,57,42,.74),rgba(16,13,11,.98));
  font:400 31px/1 Georgia,serif;
}
#featured .gfl-weekly-switch-card > div > span{
  display:block;
  margin-bottom:6px;
  color:#d8a967;
  font-size:10px;
  font-weight:900;
  letter-spacing:.17em;
}
#featured .gfl-weekly-switch-card h3{margin:0;color:#f7efe5;font-size:22px;line-height:1.15;}
#featured .gfl-weekly-switch-card p{margin:7px 0 0;color:#b9ab9d;font-size:14px;line-height:1.5;}
@media(max-width:700px){
  #featured .gfl-weekly-switch-card{grid-template-columns:45px minmax(0,1fr);gap:12px;min-height:124px;padding:17px;border-radius:17px;}
  #featured .gfl-weekly-switch-mark{width:42px;height:42px;font-size:24px;}
  #featured .gfl-weekly-switch-card > div > span{margin-bottom:4px;font-size:9px;}
  #featured .gfl-weekly-switch-card h3{font-size:17px;}
  #featured .gfl-weekly-switch-card p{margin-top:5px;font-size:12px;}
}
