/* components.css — styles for the block library in components.js.
   Each block is visually distinct on purpose: sections are composed from
   different blocks so no two subjects read the same way. */

/* -------------------------------------------------------------- timeline -- */
.tl { margin-top: 34px; max-width: 1280px; }
.tl__item { display: grid; grid-template-columns: 150px 24px minmax(0, 1fr); gap: 0 14px;
  padding: 0 0 30px; position: relative; }
.tl__item::before { content: ""; position: absolute; left: 161px; top: 14px; bottom: -6px; width: 2px;
  background: var(--rule); }
.tl__item:last-child::before { display: none; }
.tl__when { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); text-align: right; padding-top: 4px; }
.tl__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--bad); margin: 7px 0 0 5px;
  position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--paper); }
.band--tint .tl__dot { box-shadow: 0 0 0 5px var(--band); }
.tl__title { font-size: 1.2rem; margin: 0 0 4px; }
.tl__what { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.tl__what--gone { color: var(--faint); }
.tl__what--new { color: var(--bad); }
.tl__note { font-size: .92rem; margin: 0 0 8px; max-width: var(--measure); }
/* Wide screens put the detail beside the event rather than under it. */
@media (min-width: 1180px) {
  .tl__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .tl__title, .tl__what { grid-column: 1; }
  .tl__note { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .tl__body .src { grid-column: 1; }
}
@media (max-width: 700px) {
  .tl__item { grid-template-columns: 20px minmax(0, 1fr); }
  .tl__when { grid-column: 2; text-align: left; padding: 0 0 4px; }
  .tl__dot { grid-row: 1 / 3; margin-top: 4px; }
  .tl__item::before { left: 6px; }
}

/* ------------------------------------------------------ promise vs receipt -- */
.pvr { margin-top: 34px; max-width: 1180px; }
.pvr__item { padding: 26px 0; border-top: 1px solid var(--rule); }
.pvr__item:first-child { border-top: 0; }
.pvr__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px; }
.pvr__title { font-size: clamp(1.15rem, 1.7vw, 1.5rem); margin: 0; }
.pvr__verdict { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pvr__verdict.bad { color: var(--bad); }
.pvr__verdict.good { color: var(--good); }
.pvr__rows { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; }
.pvr__lab { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pvr__track { height: 30px; background: #e8e3da; }
.band--tint .pvr__track { background: #e3ddd2; }
.pvr__bar { display: block; height: 100%; width: 0; transition: width .9s var(--ease); }
.pvr__bar--promise { background: #b6aea1; }
.pvr__bar--bad { background: var(--bad); }
.pvr__bar--good { background: var(--good); }
.pvr__val { font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.pvr__note { font-size: .9rem; margin: 14px 0 0; max-width: var(--measure); }
@media (max-width: 620px) {
  .pvr__rows { grid-template-columns: 76px minmax(0, 1fr); }
  .pvr__val { grid-column: 2; text-align: right; margin-top: -6px; }
}

/* ------------------------------------------------------------ claim check -- */
.cc { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: 0 clamp(30px, 4vw, 70px); }
.cc__item { padding: 24px 0; border-top: 1px solid var(--rule); }
.cc__q { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: 1.18rem;
  color: var(--ink); line-height: 1.2; margin: 0 0 10px; max-width: 40ch; }
.cc__a { font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.5; margin: 0 0 8px;
  padding-left: 22px; border-left: 3px solid var(--bad); max-width: var(--measure); }
.cc__note { font-size: .9rem; margin: 0 0 8px; padding-left: 25px; max-width: var(--measure); }
.cc__item .src { margin-left: 25px; }
@media (max-width: 640px) { .cc { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- waffle -- */
.waffle { margin-top: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px); align-items: center; }
.waffle__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: min(340px, 60vw); }
.waffle__cell { aspect-ratio: 1; background: #ded7cb; }
.band--tint .waffle__cell { background: #d9d2c5; }
.band--dark .waffle__cell { background: #262d38; }
.waffle__cell.on { background: var(--bad); animation: waffleIn .4s var(--ease) backwards;
  animation-delay: calc(var(--i) * 12ms); }
@keyframes waffleIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.waffle__pct { font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--bad); line-height: 1; display: block; }
.waffle__label { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 10px 0 6px; max-width: 34ch; }
.waffle__note { font-size: .92rem; margin: 0 0 8px; max-width: var(--measure); }
@media (max-width: 700px) { .waffle { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- split compare -- */
.split { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px); align-items: center; max-width: 1200px; }
.split__side { padding: 26px 0; border-top: 3px solid var(--rule); }
.split__side--a { border-top-color: var(--bad); }
.split__side--b { border-top-color: var(--ink); }
.split__label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.split__value { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: .95; color: var(--ink); }
.split__side--a .split__value { color: var(--bad); }
.split__note { font-size: .92rem; margin: 12px 0 8px; max-width: 34ch; }
.split__vs { font-family: var(--display); font-weight: 800; font-size: clamp(.8rem, 1.1vw, 1rem);
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: center;
  padding: 8px 12px; border: 2px solid var(--rule); border-radius: 999px; white-space: nowrap; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split__vs { justify-self: start; } }

/* ------------------------------------------------------------- stage flow -- */
.flow { margin-top: 34px; max-width: 1100px; }
.flow__stage { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.flow__step { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--paper);
  background: var(--ink); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.band--dark .flow__step { background: #fff; color: var(--dark); }
.flow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.flow__title { font-size: 1.12rem; margin: 0; }
.flow__value { font-size: clamp(1.3rem, 2vw, 1.75rem); color: var(--ink); }
.band--dark .flow__value { color: #fff; }
.flow__track { display: block; height: 22px; background: #e8e3da; }
.band--tint .flow__track { background: #e3ddd2; }
.flow__bar { display: block; height: 100%; width: 0; background: var(--ink); transition: width .9s var(--ease); }
.flow__bar.last { background: var(--bad); }
.flow__note { font-size: .9rem; margin: 10px 0 0; max-width: var(--measure); }

/* ----------------------------------------------------------------- quote -- */
.quote { margin: 34px 0 0; padding: 0 0 0 clamp(20px, 3vw, 44px); border-left: 4px solid var(--bad);
  max-width: 900px; }
.quote__text { font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.22; color: var(--ink); margin: 0 0 16px; }
.quote__by { font-size: .9rem; color: var(--body); font-weight: 600; }
.quote__by span { display: block; font-weight: 400; color: var(--faint); font-size: .86rem; margin: 3px 0 6px; }

/* ---------------------------------------------------------------- ranked -- */
.ranked { margin-top: 34px; max-width: 1200px; }
.ranked__row { display: grid; grid-template-columns: 34px minmax(min(140px, 100%), 260px) minmax(0, 1fr) auto;
  gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit; }
.ranked__row:first-child { border-top: 0; }
.ranked__row:hover .ranked__name { color: var(--bad); }
.ranked__n { font-size: .8rem; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.ranked__name { font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ranked__name em { display: block; font-style: normal; font-weight: 400; font-size: .8rem; color: var(--faint); }
.ranked__track { height: 20px; background: #e8e3da; }
.band--tint .ranked__track { background: #e3ddd2; }
.ranked__bar { display: block; height: 100%; width: 0; background: var(--ink);
  transition: width .8s var(--ease); transition-delay: var(--d, 0ms); }
.ranked__row.hl .ranked__bar { background: var(--bad); }
.ranked__row.hl .ranked__name, .ranked__row.hl .ranked__val { color: var(--bad); }
.ranked__val { font-size: 1rem; color: var(--ink); white-space: nowrap; }
.ranked__foot { margin-top: 14px; }
@media (max-width: 700px) {
  .ranked__row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .ranked__track { grid-column: 2 / -1; }
}

/* ------------------------------------------------------------- share bar -- */
.share { margin-top: 34px; max-width: 1100px; }
.share__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.share__pct { font-size: clamp(2.6rem, 5vw, 4rem); color: var(--bad); line-height: 1; }
.share__say { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 0; max-width: 44ch; }
.share__track { display: block; height: 46px; background: #e8e3da; position: relative; }
.band--tint .share__track { background: #e3ddd2; }
.share__fill { display: block; height: 100%; width: 0; background: var(--bad); transition: width 1s var(--ease); }
.share__ends { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px;
  font-size: .84rem; color: var(--faint); flex-wrap: wrap; }
