/* ============================================================
   Devquo Games — base styles
   White background · blue buttons · white button text
   No outlines · rounded corners on buttons and image frames
   ============================================================ */

:root{
  --blue:        #1f6feb;
  --blue-hover:  #1a5fd0;
  --blue-soft:   #eaf1fe;
  --blue-axis:   #1a4fa8;   /* timeline axis + end caps */
  --ink:         #10151c;
  --ink-muted:   #5c6673;
  --bg:          #ffffff;
  --radius:      14px;
  --radius-lg:   20px;
  --maxw:        1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; border-radius:var(--radius-lg); }

a{ color:var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---------- Header ---------- */
.site-header{
  max-width:var(--maxw);
  margin:0 auto;
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-weight:800;
  font-size:1.2rem;
  letter-spacing:-.015em;
}
.brand:hover{ text-decoration:none; }

/* the wordmark image carries the name, so the anchor holds no text */
.brand-wordmark{
  display:block;
  height:30px;
  width:auto;
  flex:none;
  border-radius:0;     /* the global img rule rounds every image */
}

.nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.nav-btn{
  display:inline-block;
  padding:9px 16px;
  border:none;
  border-radius:var(--radius);
  background:transparent;
  color:var(--ink-muted);
  font-weight:600;
  font-size:.97rem;
  transition:background .18s ease, color .18s ease;
}
.nav-btn:hover{
  background:var(--blue-soft);
  color:var(--blue);
  text-decoration:none;
}
.nav-btn[aria-current="page"]{
  background:var(--blue-soft);
  color:var(--blue);
}

@media (max-width: 520px){
  .site-header{ padding:16px; gap:10px; }
  .brand-wordmark{ height:26px; }
  .nav{ width:100%; justify-content:flex-start; }
  .nav-btn{ padding:8px 12px; }
}

/* ---------- Hero ---------- */
.hero{
  max-width:var(--maxw);
  margin:0 auto;
  padding:72px 24px 52px;
  text-align:center;
}

.hero-mark{
  display:block;
  width:114px;
  height:114px;
  margin:0 auto 26px;
  border-radius:30px;
}

/* Deliberately close to the lede below it -- the mark carries the weight. */
.hero h1{
  margin:0 0 10px;
  font-size:clamp(1.35rem, 3vw, 1.7rem);
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:800;
}

.lede{
  margin:0 auto;
  max-width:640px;
  font-size:clamp(1.05rem, 2.2vw, 1.25rem);
  color:var(--ink-muted);
}

.actions{
  margin-top:32px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding:13px 26px;
  border:none;
  border-radius:var(--radius);
  background:var(--blue);
  color:#fff;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}
.btn:hover{ background:var(--blue-hover); text-decoration:none; transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn-soft{ background:var(--blue-soft); color:var(--blue); }
.btn-soft:hover{ background:#dde8fd; }

/* ---------- Stats ---------- */
.stats{
  max-width:var(--maxw);
  margin:0 auto;
  padding:24px 24px 96px;
  display:flex;
  gap:56px;
  justify-content:center;
  flex-wrap:wrap;
}

.stat{ display:flex; flex-direction:column; align-items:center; }

.stat-num{
  font-size:clamp(2rem, 5vw, 2.75rem);
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--blue);
  line-height:1.1;
}

.stat-label{
  font-size:.95rem;
  color:var(--ink-muted);
}

/* ---------- Live chart embed ---------- */
.live{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px 88px;
}

.live h2{
  margin:0 0 6px;
  font-size:clamp(1.5rem, 3vw, 2rem);
  font-weight:800;
  letter-spacing:-.02em;
  text-align:center;
}

.section-note{
  margin:0 0 26px;
  font-size:.98rem;
  color:var(--ink-muted);
  text-align:center;
}

.chart-embed{
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:transparent;
}

.chart-embed iframe{
  display:block;
  width:100%;
  height:740px;
  border:0;
}

/* ---------- Devlog timeline ---------- */
.timeline-section{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px 72px;   /* the community rail now sits under this */
}

.timeline-section h2{
  margin:0 0 6px;
  font-size:clamp(1.5rem, 3vw, 2rem);
  font-weight:800;
  letter-spacing:-.02em;
  text-align:center;
}

.timeline-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  padding:6px 2px 8px;
  cursor:grab;
  /* the strip is dragged and wheeled, so the bar is just noise */
  scrollbar-width:none;          /* Firefox */
  -ms-overflow-style:none;       /* old Edge */
  overscroll-behavior-x:contain; /* no back-swipe navigation off the ends */
  -webkit-overflow-scrolling:touch;
}
.timeline-viewport::-webkit-scrollbar{ width:0; height:0; display:none; }
.timeline-viewport.is-dragging{ cursor:grabbing; scroll-behavior:auto; }
.timeline-viewport.is-dragging *{ user-select:none; }
.timeline-viewport:focus-visible{
  border-radius:var(--radius-lg);
  outline:3px solid var(--blue-soft);
  outline-offset:4px;
}

.timeline-track{
  position:relative;
  display:flex;
  align-items:stretch;
  /* Without this the track box is only viewport-wide, so the axis line and
     its end cap stop short of the months that overflow to the right. */
  width:max-content;
  min-width:100%;
  user-select:none;
  -webkit-user-select:none;
  height:400px;
  padding:0 30px;
}

/* The horizontal axis the branches hang off. */
.timeline-track::before{
  content:"";
  position:absolute;
  left:0; right:0; top:50%;
  height:2px;
  margin-top:-1px;
  background:var(--blue-axis);
}

.tl-cap{
  position:absolute;
  top:50%;
  width:10px; height:10px;
  margin-top:-5px;
  border-radius:50%;
  background:var(--blue-axis);
}
.tl-cap.start{ left:0; }
.tl-cap.end{ right:0; }

.timeline-loading{
  margin:0;
  padding:44px 4px;
  color:var(--ink-muted);
  font-size:.95rem;
}

/* ----- one month ----- */
.tl-month{
  position:relative;
  flex:0 0 152px;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:0;
  color:var(--ink);
}

/* Two separate buttons rather than one: the icon opens the game's build
   log, the month name opens the day log. */
.tl-icon-btn,
.tl-label{
  padding:0;
  border:none;
  background:transparent;
  font:inherit;
  color:inherit;
  cursor:pointer;
}
.tl-icon-btn{ border-radius:22px; display:block; line-height:0; }
.tl-icon-btn:focus-visible,
.tl-label:focus-visible{
  outline:3px solid var(--blue-soft);
  outline-offset:3px;
  border-radius:10px;
}

.tl-slot{
  flex:1 1 0;
  min-height:0;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.tl-slot-top{ justify-content:flex-end; }
.tl-slot-bottom{ justify-content:flex-start; }

/* the dot sitting on the axis */
.tl-dot{
  position:relative;
  z-index:2;
  flex:none;
  width:13px; height:13px;
  border-radius:50%;
  background:var(--c, var(--blue));
  transition:transform .18s ease;
}
.tl-month:hover .tl-dot{ transform:scale(1.3); }
.tl-month.is-now .tl-dot{ box-shadow:0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }

/* the branch: stem + ring + icons */
.tl-stem{
  flex:none;
  width:2px;
  height:44px;
  background:var(--c);
  opacity:.5;
}

.tl-tip{
  flex:none;
  width:11px; height:11px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 3px var(--c);
}

.tl-icons{
  display:flex;
  gap:14px;            /* room for the halo ring on each icon */
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  max-width:120px;
}
.tl-slot-top .tl-icons{ margin-bottom:14px; }
.tl-slot-bottom .tl-icons{ margin-top:14px; }

.tl-icon{
  width:90px; height:90px;
  border-radius:22px;
  object-fit:cover;
  background:#fff;
  flex:none;
  /* thick, soft blue ring -- the same treatment as the is-now dot */
  box-shadow:0 0 0 6px rgba(31,111,235,.22);
  box-shadow:0 0 0 6px color-mix(in srgb, var(--blue) 22%, transparent);
  transition:transform .18s ease, box-shadow .18s ease;
}
.tl-icon-btn:hover .tl-icon{
  box-shadow:0 0 0 7px rgba(31,111,235,.32);
  box-shadow:0 0 0 7px color-mix(in srgb, var(--blue) 32%, transparent);
}
.tl-icon-btn:hover .tl-icon{ transform:translateY(-2px) scale(1.06); }

.tl-icon-more{
  font-size:.75rem;
  font-weight:700;
  color:var(--ink-muted);
}

/* month name on the opposite side of the axis */
.tl-label{
  font-size:1.55rem;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1;
  color:var(--c, var(--blue));
}
.tl-slot-bottom .tl-label{ padding-top:20px; }
.tl-slot-top .tl-label{ padding-bottom:20px; }

.tl-month.is-empty .tl-label{ opacity:.34; }
/* Empty months are not clickable, so they should not look like it. */
span.tl-label{ cursor:default; }
.tl-month.is-empty .tl-dot{ opacity:.4; }

/* ---------- Day popup ---------- */
body.modal-open{ overflow:hidden; }
/* body alone does not stop the wheel reaching the page behind the overlay. */
html:has(> body.modal-open){ overflow:hidden; }

.modal{ position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:20px; }
/* `hidden` must win over the display:flex above, or the backdrop keeps
   swallowing clicks across the whole page while the modal is closed. */
.modal[hidden]{ display:none; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(16,21,28,.45); }

.modal-panel{
  position:relative;
  width:min(620px, 100%);
  max-height:min(86vh, 760px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:0 24px 60px rgba(16,21,28,.22);
  overflow:hidden;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px 20px 14px;
}
.modal-head h3{ margin:0; font-size:1.3rem; font-weight:800; letter-spacing:-.02em; }
.modal-sub{ margin:2px 0 0; font-size:.9rem; color:var(--ink-muted); }

.modal-close{
  flex:none;
  width:34px; height:34px;
  border:none;
  border-radius:10px;
  background:#f4f6f9;
  color:var(--ink-muted);
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
}
.modal-close:hover{ background:var(--blue-soft); color:var(--blue); }

.day-nav{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 14px 12px;
}

.day-step{
  flex:none;
  width:30px; height:30px;
  border:none;
  border-radius:9px;
  background:#f4f6f9;
  color:var(--ink-muted);
  font-size:1.1rem;
  line-height:1;
  cursor:pointer;
}
.day-step:hover:not(:disabled){ background:var(--blue-soft); color:var(--blue); }
.day-step:disabled{ opacity:.35; cursor:default; }

.day-picker{
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding:2px;
  scrollbar-width:thin;
}

.day-chip{
  flex:0 0 auto;
  min-width:32px;
  padding:6px 4px;
  border:none;
  border-radius:9px;
  background:transparent;
  color:var(--ink-muted);
  font:inherit;
  font-size:.85rem;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.day-chip:hover{ background:#f0f3f7; }
.day-chip.has-entries{ color:var(--blue); }
.day-chip.is-selected{ background:var(--blue); color:#fff; }

.day-body{
  flex:1 1 auto;
  overflow-y:auto;
  padding:4px 20px 22px;
  border-top:1px solid #eef1f5;
}

.day-heading{
  margin:14px 0 10px;
  font-size:.9rem;
  font-weight:700;
  color:var(--ink-muted);
}

.day-empty{
  margin:26px 0;
  color:var(--ink-muted);
  font-size:.95rem;
}

.day-grid{ display:flex; flex-direction:column; }

.hour-row{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:10px;
  align-items:start;
  min-height:32px;
  padding:2px 0;
}
.hour-row + .hour-row{ border-top:1px solid #f2f4f7; }

.hour-label{
  font-size:.72rem;
  font-weight:600;
  color:#9aa4b1;
  padding-top:8px;
  font-variant-numeric:tabular-nums;
}
.hour-row.has-entries .hour-label{ color:var(--blue); }

.hour-slot{ display:flex; flex-direction:column; gap:8px; padding:4px 0; min-height:24px; }

.log-entry{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:var(--radius);
  background:#f6f8fb;
}

.log-icon{
  width:26px; height:26px;
  border-radius:8px;
  object-fit:cover;
  background:#fff;
  flex:none;
}

.log-time{
  display:block;
  font-size:.72rem;
  font-weight:700;
  color:var(--blue);
  font-variant-numeric:tabular-nums;
}

.log-text{ margin:2px 0 0; font-size:.93rem; line-height:1.5; }

@media (max-width: 520px){
  .timeline-section{ padding:0 16px 72px; }
  .tl-month{ flex-basis:132px; }
  .timeline-track{ height:340px; }
  .tl-icon{
    width:76px; height:76px;
    border-radius:19px;
    box-shadow:0 0 0 5px rgba(31,111,235,.22);
    box-shadow:0 0 0 5px color-mix(in srgb, var(--blue) 22%, transparent);
  }
  .tl-icons{ max-width:104px; }
  .modal{ padding:0; }
  .modal-panel{ max-height:100vh; height:100%; border-radius:0; width:100%; }
  .hour-row{ grid-template-columns:44px 1fr; }
}

/* ---------- Game build log (full-screen day spine) ---------- */
.game-overlay{
  position:fixed;
  inset:0;
  z-index:70;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  /* mostly opaque white, with the site just readable through it */
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  cursor:pointer;              /* the whole sheet is the close target */
}
.game-overlay[hidden]{ display:none !important; }
.game-overlay:focus{ outline:none; }

.game-overlay-inner{
  max-width:760px;
  margin:0 auto;
  padding:4px 24px 120px;
}

.game-overlay-head{
  position:sticky;
  top:0;
  z-index:5;
  /* fades the spine out as it scrolls under the title */
  background:linear-gradient(rgba(255,255,255,.97) 74%, rgba(255,255,255,0));
}

.game-overlay-head-inner{
  max-width:760px;
  margin:0 auto;
  padding:38px 24px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}

.game-head-icon{
  width:64px; height:64px;
  border-radius:16px;
  object-fit:cover;
  flex:none;
  box-shadow:0 0 0 5px rgba(31,111,235,.22);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--blue) 22%, transparent);
}

.game-overlay-head-inner h3{
  margin:0;
  font-size:1.45rem;
  font-weight:800;
  letter-spacing:-.02em;
}

.game-overlay-head-inner .modal-sub{ margin:0; }

/* ----- the day spine ----- */
.build-days{
  position:relative;
  list-style:none;
  margin:0;
  padding:6px 0 4px;
}
/* the dashed spine down the middle */
.build-days::before{
  content:"";
  position:absolute;
  left:50%;
  top:6px; bottom:6px;
  border-left:2px dashed #c9ced6;
  transform:translateX(-1px);
}

.build-day{
  display:grid;
  grid-template-columns:1fr 70px 1fr;
  align-items:start;
  margin-bottom:26px;
}
.build-day:last-child{ margin-bottom:0; }

/* The same dot the month strip uses: solid, 13px, no number inside — the
   Day N pill next to it already says which day this is. */
.build-day-node{
  /* grid-row is pinned because sparse auto-placement would otherwise push the
     node onto a second row whenever the card sits in column 3. */
  grid-row:1;
  grid-column:2;
  justify-self:center;
  position:relative;
  z-index:1;
  width:13px; height:13px;
  /* sits the dot centre on the dashed connector running out to the card */
  margin-top:6.5px;
  border-radius:50%;
  background:var(--c, var(--blue));
  transition:transform .18s ease;
}
.build-day:hover .build-day-node{ transform:scale(1.3); }

.build-day-card{ position:relative; grid-row:1; }
.build-day.is-left  .build-day-card{ grid-column:1; text-align:right; }
.build-day.is-right .build-day-card{ grid-column:3; text-align:left; }

/* the short dashed connector out to the spine */
.build-day .build-day-card::after{
  content:"";
  position:absolute;
  top:12px;
  width:22px;
  border-top:2px dashed #c9ced6;
}
.build-day.is-left  .build-day-card::after{ right:-28px; }
.build-day.is-right .build-day-card::after{ left:-28px; }

.build-day-pill{
  display:inline-block;
  padding:5px 13px;
  border-radius:999px;
  background:var(--c, var(--blue));
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
}

.build-day-items{
  list-style:none;
  margin:9px 0 0;
  padding:0;
}
.build-day-items li{
  font-size:.9rem;
  line-height:1.45;
  color:var(--ink-muted);
}
.build-day-items li + li{ margin-top:2px; }

@media (max-width: 520px){
  .game-overlay-inner{ padding:4px 16px 96px; }
  .game-overlay-head-inner{ padding:28px 16px 18px; }
  .game-head-icon{ width:56px; height:56px; border-radius:14px; box-shadow:0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
  .build-day{ grid-template-columns:1fr 56px 1fr; }
  .build-day-node{ width:11px; height:11px; margin-top:7.5px; }
  .build-day-pill{ font-size:.76rem; padding:4px 10px; }
  .build-day-items li{ font-size:.84rem; }
  .build-day.is-left  .build-day-card::after{ right:-24px; width:18px; }
  .build-day.is-right .build-day-card::after{ left:-24px; width:18px; }
}

/* ---------- Inner page hero ---------- */
.page-hero{
  max-width:var(--maxw);
  margin:0 auto;
  padding:96px 24px 140px;
  text-align:center;
}

.page-hero h1{
  margin:0 0 14px;
  font-size:clamp(2rem, 5vw, 3rem);
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:800;
}

.soon{
  margin:18px 0 0;
  font-size:.95rem;
  font-weight:600;
  color:var(--blue);
}

/* ---------- Footer ---------- */
.site-footer{
  max-width:var(--maxw);
  margin:0 auto;
  padding:24px 24px 52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  flex-wrap:wrap;
  font-size:.9rem;
  color:var(--ink-muted);
}

.footer-copy{ margin:0; }

.footer-links{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.footer-btn{
  padding:7px 13px;
  border-radius:var(--radius);
  color:var(--ink-muted);
  font-weight:600;
  transition:background .18s ease, color .18s ease;
}
.footer-btn:hover{
  background:var(--blue-soft);
  color:var(--blue);
  text-decoration:none;
}
.footer-btn:focus-visible{
  outline:3px solid var(--blue-soft);
  outline-offset:2px;
}

.footer-note{ padding-left:7px; }

@media (max-width: 700px){
  .site-footer{
    flex-direction:column;
    align-items:flex-start;
    padding:20px 16px 44px;
  }
  .footer-links{ margin-left:-13px; }   /* pull the pills back to the text edge */
  .footer-note{ padding-left:13px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}

/* ---------- Community panels ---------- */
.community{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px 104px;
}

.community h2{
  margin:0 0 6px;
  font-size:clamp(1.5rem, 3vw, 2rem);
  font-weight:800;
  letter-spacing:-.02em;
  text-align:center;
}

.panel-rail{
  /* fit-content keeps the row centred while there are only a few panels;
     max-width lets it scroll once there are more than fit across. */
  width:fit-content;
  max-width:100%;
  margin:0 auto;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.panel-rail::-webkit-scrollbar{ width:0; height:0; display:none; }

.panels{
  list-style:none;
  margin:0;
  padding:4px 2px;
  display:flex;
  gap:16px;
}

/* .panel sets display:flex, which would otherwise defeat the hidden
   attribute the YouTube panel uses until its data arrives. */
.panel[hidden]{ display:none !important; }

.panel{
  flex:0 0 auto;
  min-width:250px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:26px 28px 22px;
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:0 0 0 1px #e9edf3, 0 1px 2px rgba(16,21,28,.04);
  text-align:center;
}

.panel-num{
  font-size:clamp(1.9rem, 4vw, 2.5rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.1;
  color:var(--blue);
}

.panel-label{ font-size:1rem; font-weight:700; color:var(--ink); }
.panel-sub{ font-size:.85rem; color:var(--ink-muted); }

@media (max-width: 520px){
  .community{ padding:0 16px 72px; }
  .timeline-section{ padding:0 16px 48px; }
  .panel{ min-width:210px; padding:22px 22px 18px; }
}

/* ============================================================
   Month game cluster -- collapsed pill that fans out sideways
   A month with two or more games used to stack them vertically, which
   ran the icons straight out of the strip. They now sit behind a count
   pill and open into a single row floating over the neighbouring months.
   While open the branch retracts and the pill shrinks to a chevron, so
   the row always clears the top of the viewport (which clips on y).
   ============================================================ */
.tl-cluster{
  position:relative;
  flex:none;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.tl-slot-top .tl-cluster{ margin-bottom:14px; }
.tl-slot-bottom .tl-cluster{ margin-top:14px; }
.tl-slot-top .tl-cluster.is-open{ margin-bottom:8px; }
.tl-slot-bottom .tl-cluster.is-open{ margin-top:8px; }

/* the full icons, held out of flow so opening one never reflows the strip */
.tl-cluster .tl-icons{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:none;
  flex-wrap:nowrap;   /* side by side, never stacked */
  /* An absolute box is only as wide as its shrink-to-fit parent, which is
     the pill -- without this the global img max-width squashes the icons. */
  width:max-content;
  max-width:none;
  margin:0;
}
.tl-cluster .tl-icon{ max-width:none; }
.tl-slot-top .tl-cluster .tl-icons{ bottom:100%; margin-bottom:10px; }
.tl-slot-bottom .tl-cluster .tl-icons{ top:100%; margin-top:10px; }
.tl-cluster.is-open .tl-icons{ display:flex; }

/* an open month sits above the months its row reaches over */
.tl-month.has-open-cluster{ z-index:40; }
/* and pulls its branch in to make room for the row.
   Deliberately not transitioned: a throttled tab can park a height
   transition mid-flight, and the row would be left clipped. */
.tl-month.has-open-cluster .tl-stem{ height:24px; }

/* ----- the toggle ----- */
.tl-cluster-btn{
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 12px 6px 8px;
  border:none;
  border-radius:999px;
  background:#fff;
  box-shadow:0 0 0 1px #e4e9f1, 0 6px 16px rgba(16,21,28,.10);
  font:inherit;
  font-size:.9rem;
  font-weight:700;
  color:var(--ink);
  cursor:pointer;
  transition:box-shadow .18s ease, transform .18s ease, padding .18s ease;
}
.tl-cluster-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 0 0 1px #d3ddec, 0 8px 20px rgba(16,21,28,.14);
}
.tl-cluster-btn:focus-visible{
  outline:3px solid var(--blue-soft);
  outline-offset:3px;
}

/* the icons overlap in the pill, so a shut month still says what is in it */
.tl-cluster-stack{ display:flex; align-items:center; }
.tl-mini{
  width:26px; height:26px;
  border-radius:8px;
  object-fit:cover;
  background:#fff;
  flex:none;
  box-shadow:0 0 0 2px #fff;
}
.tl-mini + .tl-mini{ margin-left:-9px; }

.tl-cluster-count{
  color:var(--ink-muted);
  font-size:.85rem;
  font-variant-numeric:tabular-nums;
}

.tl-cluster-chev{
  color:var(--c, var(--blue));
  font-size:.7rem;
  line-height:1;
  transition:transform .18s ease;
}
.tl-cluster.is-open .tl-cluster-chev{ transform:rotate(180deg); }

/* Open, the row already shows the icons -- the pill drops to a chevron. */
.tl-cluster.is-open .tl-cluster-stack,
.tl-cluster.is-open .tl-cluster-count{ display:none; }
.tl-cluster.is-open .tl-cluster-btn{ padding:5px 10px; }

@media (max-width: 520px){
  .tl-mini{ width:22px; height:22px; border-radius:7px; }
  .tl-mini + .tl-mini{ margin-left:-8px; }
  .tl-cluster-btn{ font-size:.82rem; padding:5px 10px 5px 7px; }
  .tl-slot-top .tl-cluster .tl-icons{ margin-bottom:8px; }
  .tl-slot-bottom .tl-cluster .tl-icons{ margin-top:8px; }
  .tl-month.has-open-cluster .tl-stem{ height:20px; }
}

/* Indented sub-bullets inside a build-log day */
.build-day-subitems{
  list-style:none;
  margin:2px 0 0;
  padding:0 0 0 16px;
}
.build-day-subitems li{
  position:relative;
  font-size:.8rem;
}
.build-day-subitems li::before{
  content:"\2022";
  position:absolute;
  left:-12px;
  opacity:.6;
}
.build-day.is-left .build-day-subitems{ padding:0 16px 0 0; }
.build-day.is-left .build-day-subitems li::before{ left:auto; right:-12px; }

/* Golden highlight node on the build-log spine (timeline.json "milestones") */
.build-milestone{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  margin-bottom:26px;
}
.build-milestone-pill{
  display:inline-block;
  padding:7px 18px;
  border-radius:999px;
  background:linear-gradient(135deg, #ffd84a 0%, #f5b301 100%);
  color:#3d2a00;
  font-size:.88rem;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(245, 179, 1, .45);
}

/* Date tooltip on a milestone pill (hover, or focus/tap) */
.build-milestone-pill[data-date]{
  position:relative;
  cursor:default;
  outline:none;
}
.build-milestone-pill[data-date]::after{
  content:attr(data-date);
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translate(-50%, 4px);
  padding:6px 11px;
  border-radius:8px;
  background:#1f2430;
  color:#fff;
  font-size:.78rem;
  font-weight:600;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s ease, transform .15s ease;
}
.build-milestone-pill[data-date]::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 4px);
  transform:translate(-50%, 4px);
  border:6px solid transparent;
  border-top-color:#1f2430;
  border-bottom:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s ease, transform .15s ease;
}
.build-milestone-pill[data-date]:hover::after,
.build-milestone-pill[data-date]:hover::before,
.build-milestone-pill[data-date]:focus::after,
.build-milestone-pill[data-date]:focus::before{
  opacity:1;
  transform:translate(-50%, 0);
}

/* Blue milestone pill for smaller events ("tone": "blue") */
.build-milestone-pill.is-blue{
  padding:5px 15px;
  background:linear-gradient(135deg, #5b8def 0%, var(--blue) 100%);
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  box-shadow:0 3px 10px rgba(47, 107, 230, .28);
}
.build-milestone:last-child{ margin-bottom:0; }
