/* ==========================================================
   Redwood Frontier - Development updates page (needs base.css)
   ========================================================== */
body { overflow-x: hidden; }
.page { max-width: 1040px; }

/* ---------- Top bar ---------- */
.utop {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px clamp(14px, 4vw, 36px);
  background:
    repeating-linear-gradient(95deg, rgba(255, 210, 160, .03) 0, rgba(255, 210, 160, .03) 2px, transparent 2px, transparent 9px),
    linear-gradient(to bottom, var(--wood-700), var(--wood-800));
  border-bottom: 3px solid #120905;
  box-shadow: 0 3px 0 var(--wood-600), 0 10px 26px rgba(0, 0, 0, .5);
}
.ubrand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.ubrand img { flex: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }
.ubrand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ubrand strong { font-family: var(--font-display); font-weight: 400; font-size: 19px; white-space: nowrap; }
.ubrand small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }

.live {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 14px; font-size: 13px; color: var(--sand);
  background: rgba(10, 4, 2, .6); border: 2px solid #120905; border-radius: 999px;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #777; }
.live.on .dot { background: #7fd35e; box-shadow: 0 0 10px #7fd35e; animation: pulse 2s infinite; }
.live.demo .dot { background: var(--orange-hot); box-shadow: 0 0 10px var(--orange-hot); animation: pulse 2s infinite; }
.live.off .dot { background: var(--error); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.uhero { padding: 26px 0 22px; text-align: center; display: flex; flex-direction: column; align-items: center; animation: rise .7s both; }
.uhero h1 { font-size: clamp(32px, 7.5vw, 56px); line-height: 1.1; text-shadow: 0 3px 0 #120905, 0 0 30px rgba(232, 135, 58, .3); }
.uhero h1 span { color: var(--orange-hot); }
.uhero .lead { max-width: 600px; margin: 14px auto 0; font-size: 16px; line-height: 1.6; color: var(--cream-dim); }

.block { margin-top: 44px; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(22px, 4.6vw, 28px); text-shadow: 0 2px 0 #120905; }
.pill { padding: 5px 12px; font-size: 12.5px; letter-spacing: .08em; color: var(--sand); background: rgba(10, 4, 2, .6); border: 2px solid #120905; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* ---------- Progress bars ---------- */
.meter { height: 14px; background: rgba(10, 4, 2, .7); border: 2px solid #120905; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); }
.meter.big { height: 26px; }
.meter > span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 240, 200, .18) 0 10px, transparent 10px 20px),
    linear-gradient(to right, var(--orange), var(--orange-hot));
  background-size: 28px 28px, 100% 100%;
  transition: width .9s cubic-bezier(.2, .8, .2, 1);
}
.meter.moving > span { animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: 28px 0, 0 0; } }
.meter.done > span { background: linear-gradient(to right, #6fa653, var(--ok)); animation: none; }
.meter.blocked > span { background: linear-gradient(to right, #a8452d, var(--error)); animation: none; }
.meter.queued > span { background: linear-gradient(to right, #7a6446, var(--sand)); animation: none; }

/* ---------- Overall panel ---------- */
.overall { padding: 24px clamp(16px, 4vw, 32px) 22px; animation: rise .6s .1s both; }
.ov-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ov-top h2 { font-size: clamp(20px, 4.4vw, 26px); text-shadow: 0 2px 0 #120905; }
.sub { margin-top: 6px; font-size: 13.5px; color: var(--cream-dim); }
.bigpct { font-family: var(--font-display); font-size: clamp(44px, 11vw, 72px); line-height: 1; color: var(--orange-hot); text-shadow: 0 3px 0 #120905; font-variant-numeric: tabular-nums; }
.bigpct small { font-size: .45em; margin-left: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.stats > div { padding: 12px 10px; text-align: center; background: rgba(10, 4, 2, .45); border: 2px solid #120905; border-radius: 8px; }
.stats dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
.stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 26px; color: var(--cream); font-variant-numeric: tabular-nums; }

.last { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; background: rgba(10, 4, 2, .5); border: 2px dashed rgba(201, 172, 132, .4); border-radius: 10px; }
.last-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #e9c48a, #9a6d3a 60%, #4a2f16); border: 2px solid #120905; }
.last-ico svg { width: 22px; height: 22px; fill: #2a150b; }
.last-body { min-width: 0; }
.last-body small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.last-body p { margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.last-body .when { margin-top: 6px; font-size: 13px; color: var(--cream-dim); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.last-body .when b { font-weight: 400; color: var(--cream); font-variant-numeric: tabular-nums; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 6px 14px; font: inherit; font-size: 13px; color: var(--cream-dim);
  background: rgba(10, 4, 2, .55); border: 2px solid #120905; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: rgba(232, 135, 58, .6); }
.chip.on { color: var(--ink); background: var(--orange-hot); border-color: var(--orange-hot); }
.chip:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ---------- Task cards ---------- */
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 4px; }
.task { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; animation: rise .5s both; }
.task[hidden] { display: none; }
.task-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task h3 { font-size: 19px; text-shadow: 0 2px 0 #120905; line-height: 1.25; }
.badge { flex: none; padding: 4px 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 2px solid #120905; border-radius: 999px; background: var(--sand); }
.badge.active { background: var(--orange-hot); }
.badge.done { background: var(--ok); }
.badge.blocked { background: var(--error); }
.task .desc { font-size: 13.5px; line-height: 1.5; color: var(--cream-dim); }
.task-pct { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--cream-dim); font-variant-numeric: tabular-nums; }
.task-pct b { font-weight: 400; color: var(--cream); }
.task-last { margin-top: 2px; padding-top: 10px; border-top: 1px dashed rgba(201, 172, 132, .3); font-size: 12.5px; line-height: 1.45; color: var(--cream-dim); }
.task-last .t { display: block; margin-top: 3px; color: var(--sand); font-variant-numeric: tabular-nums; }
.task-last .t i { font-style: normal; color: var(--cream-dim); }
.task.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(242, 161, 76, .8); } 100% { box-shadow: 0 0 0 14px rgba(242, 161, 76, 0); } }
.empty { padding: 26px; text-align: center; color: var(--cream-dim); }

/* ---------- Feed ---------- */
.feed { list-style: none; margin: 0; padding: 8px 20px; }
.feed li { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 12px 0 12px 22px; border-top: 1px dashed rgba(201, 172, 132, .28); animation: rise .4s both; }
.feed li:first-child { border-top: 0; }
.feed li::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(232, 135, 58, .2); }
.feed time { font-size: 12.5px; color: var(--sand); font-variant-numeric: tabular-nums; padding-top: 1px; }
.feed time small { display: block; margin-top: 2px; font-size: 11px; color: var(--cream-dim); }
.feed p { line-height: 1.45; font-size: 14px; overflow-wrap: anywhere; }
.feed p em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }

.foot { margin-top: 40px; text-align: center; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 238, 205, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.foot .star { color: var(--orange-hot); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .task-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ubrand small { display: none; }
  .ubrand strong { font-size: 17px; }
  .live { padding: 6px 11px; font-size: 12px; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .feed time small { display: inline; margin-left: 8px; }
  .filters { width: 100%; }
  .chip { flex: 1; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
