/* demo-cents.css: the platform demo's Common Cents page (round 64, DEMO-CENTS), a preview of a page the platform has
   not built yet. The founder (11 Nov): "beautifully laid out with the coin up the top and 'Common Cents' as a title,
   and then use one of the products as an example, and then have all of the breakdown of the charges".
   Every value is the platform's own, written literally (the captured Tailwind build has only the classes the app used
   on 2 Nov): the card (16px corner, 1px #e2e4e9, the rest shadow, 20px padding), the inks (#18191b, #4d5057, #676b73),
   the page title (22px, 800), the neutral status pill (md: 24px, 11px), and the reports' breakdown table (34px rows,
   alternate rows on #f5f5f6 with 8px corners, the total under a 1px #eaecf0 rule at weight 650).
   The split's colours: the website's Common Cents families (blue, cyan, gold, pink, purple, one neutral; the house's
   success green for what you make alone), stepped for a white card and run through the dataviz validator on #ffffff in
   the bar's order: lightness band, CVD (worst adjacent 10.5) and normal vision (worst adjacent 20.0) all pass; the
   neutral's chroma "fail" is the grey it is meant to be; four marks under 3:1 are relieved by the key and the ledger,
   which names every group. Blue is the platform report's own series 1. */

.dcc {
  --dcc-ink: #18191b;
  --dcc-muted: #4d5057;
  --dcc-faint: #676b73;
  --dcc-edge: #e2e4e9;
  --dcc-band: #f5f5f6;
  --dcc-rule: #eaecf0;
  --dcc-ok-ink: #248a3d;
  --dcc-ok-bg: rgb(52 199 89 / 0.13);
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  color: var(--dcc-ink);
  font-variant-numeric: tabular-nums;
}
.dcc-g-product {
  --c: #2f6fed;
}
.dcc-g-shipping {
  --c: #17b3c8;
}
.dcc-g-duty {
  --c: #d9a21b;
}
.dcc-g-payments {
  --c: #e8638f;
}
.dcc-g-marketing {
  --c: #6a3fc8;
}
.dcc-g-returns {
  --c: #a3a6ad;
}
.dcc-g-left {
  --c: #34c759;
}

/* ---------- the head (R75, 2026-11-12, the founder: "The common [cents] shouldn't have a big coin at the top above it
   ... We just have common [cents] next to the actual name itself, and that layout needs to look much more premium").
   The platform's page head: the title with its mark beside it and one line under it in the muted ink (the HS search's
   head: 22px/800 title, a 4px step, 12.5px line). The mark is the module's coin, inside the title before its name at
   the capitals' height with a round shape's overshoot, as the website's Common Cents title has it (LmProfit .lmz-coin);
   the Preview pill beside the title; every left edge on the cards' edge, nothing above. ---------- */
.dcc-head {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 0 0 4px;
}
.dcc-tl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.dcc-h1 {
  margin: 0;
  font-size: 22px;
  line-height: 28.8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dcc-ink);
  white-space: nowrap;
}
.dcc-coin {
  display: inline-block;
  width: auto;
  height: 0.78em;
  margin: 0 0.26em 0 0;
  vertical-align: -0.04em;
  user-select: none;
}
.dcc-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 18.4px;
  color: var(--dcc-muted);
}
.dcc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: #4a4a4a;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.dcc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- the cards ---------- */
.dcc-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--dcc-edge);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 3px 0 rgb(16 24 40 / 0.06),
    0 2px 28px -2px rgb(16 24 40 / 0.05);
}

/* the product: its picture, its name and market, its price */
.dcc-prod {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: 'pic pn price';
  align-items: center;
  gap: 4px 16px;
}
.dcc-pic {
  grid-area: pic;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--dcc-edge);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
.dcc-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dcc-pn {
  grid-area: pn;
  min-width: 0;
}
.dcc-name {
  margin: 0;
  font-size: 15px;
  line-height: 21.6px;
  font-weight: 600;
  letter-spacing: -0.006em;
}
.dcc-name a {
  color: inherit;
  text-decoration: none;
}
.dcc-name a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dcc-mk {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 18.4px;
  color: var(--dcc-muted);
}
.dcc-flag {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  outline: 1px solid rgb(0 0 0 / 0.08);
  outline-offset: -1px;
}
.dcc-price {
  grid-area: price;
  margin: 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* the split: the price as one bar, a segment a group, what you make last; its key under it */
.dcc-bar {
  display: flex;
  gap: 2px;
  height: 14px;
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: 4px;
}
.dcc-seg {
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 2px;
  background: var(--c);
}
.dcc-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 18.4px;
  color: var(--dcc-muted);
}
.dcc-key li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.dcc-k {
  display: block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}
/* the key never leaves "What you make" alone on a line (round 64): where the seven do not fit on one line (about 770px
   of card), a shorter measure wraps them four and three, and on a phone two, three and two, in the bar's order */
.dcc-sum {
  container: dcc-sum / inline-size;
}
@container dcc-sum (width < 790px) {
  .dcc-key {
    max-width: 470px;
  }
}
@container dcc-sum (width < 450px) {
  .dcc-key {
    max-width: 290px;
  }
}

/* ---------- the ledger: the reports' breakdown table, a group at a time ---------- */
.dcc-led {
  padding: 16px 20px 20px;
}
.dcc-grp,
.dcc-tot {
  display: grid;
  margin: 0;
}
.dcc-grp + .dcc-grp {
  margin-top: 12px;
}
.dcc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  box-sizing: border-box;
}
.dcc-grp > .dcc-row:nth-child(odd) {
  background: var(--dcc-band);
}
.dcc-row dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  margin: 0;
}
.dcc-row dt .dcc-k {
  align-self: center;
}
.dcc-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 20.8px;
  white-space: nowrap;
  color: var(--dcc-ink);
}
.dcc-l {
  font-size: 13.5px;
  line-height: 20.8px;
  font-weight: 500;
  color: var(--dcc-ink);
}
.dcc-b {
  min-width: 0;
  font-size: 12.5px;
  line-height: 18.4px;
  color: var(--dcc-faint);
}
.dcc-gh .dcc-l,
.dcc-gh dd {
  font-weight: 600;
}
/* a group's lines sit past its key, under its name */
.dcc-ln dt {
  padding-left: 18px;
}

/* the end: the price, the cost lines' sum, and what you make, under the total's rule */
.dcc-tot {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--dcc-rule);
}
.dcc-tr .dcc-l,
.dcc-tr dd {
  font-weight: 500;
}
.dcc-tr .dcc-l {
  padding-left: 18px;
}
.dcc-make {
  min-height: 44px;
  margin-top: 6px;
  background: var(--dcc-ok-bg);
}
.dcc-make .dcc-l,
.dcc-make dd {
  font-size: 14.5px;
  line-height: 22.4px;
  font-weight: 650;
}
.dcc-make dd {
  color: var(--dcc-ok-ink);
}
.dcc-pct {
  font-weight: 500;
}

/* the sources: a quiet fold at the foot, closed */
.dcc-src {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--dcc-rule);
}
.dcc-src summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  list-style: none;
  font-size: 12.5px;
  line-height: 18.4px;
  font-weight: 500;
  color: var(--dcc-muted);
  cursor: pointer;
  user-select: none;
}
.dcc-src summary::-webkit-details-marker {
  display: none;
}
.dcc-src summary:hover {
  background: var(--dcc-band);
  color: var(--dcc-ink);
}
.dcc-src summary:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.dcc-src summary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dcc-src[open] summary svg {
  transform: rotate(180deg);
}
.dcc-srcl {
  display: grid;
  margin: 6px 0 0;
  padding: 0 10px;
  list-style: none;
}
.dcc-srcl li {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 8px 0;
  border-top: 1px solid var(--dcc-band);
  font-size: 12.5px;
  line-height: 18.4px;
}
.dcc-sl {
  font-weight: 500;
  color: var(--dcc-ink);
}
.dcc-sp {
  min-width: 0;
  color: var(--dcc-muted);
  overflow-wrap: anywhere;
}
a.dcc-sp {
  text-decoration: underline;
  text-decoration-color: rgb(77 80 87 / 0.35);
  text-underline-offset: 2px;
}
a.dcc-sp:hover {
  color: var(--dcc-ink);
  text-decoration-color: currentColor;
}

/* ---------- the phone: the price under the name, every basis under its label ---------- */
@media (max-width: 599.98px) {
  .dcc {
    gap: 16px;
  }
  .dcc-card {
    padding: 16px;
  }
  .dcc-led {
    padding: 12px 12px 16px;
  }
  .dcc-prod {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      'pic pn'
      'pic price';
    align-items: start;
    column-gap: 14px;
  }
  .dcc-pic {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
  .dcc-price {
    margin-top: 6px;
    font-size: 22px;
    line-height: 26px;
  }
  .dcc-bar {
    margin-top: 16px;
  }
  .dcc-key {
    gap: 6px 14px;
  }
  .dcc-row {
    align-items: flex-start;
    padding: 7px 10px;
  }
  .dcc-b {
    flex-basis: 100%;
  }
  .dcc-gh .dcc-b {
    padding-left: 18px;
  }
  .dcc-make {
    align-items: center;
  }
  .dcc-srcl li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* R64 THE CALCULATING MOMENT (demo-cents.js; the founder on the Dawn ring: "have that load and then show the card").
   The ring is LmLoadMarks' "ring" (src/components/preview/LmLoadMarks.astro): a hairline track and the house gradient
   travelling round the solid ember mark. Only while html carries dcc-wait (motion allowed, script on). */
.dcc { position: relative; }
.dcc-calc { display: none; }
.dcc-wait .dcc-calc {
  position: absolute;
  z-index: 2;
  /* R75: where it was over the summary card (15rem), less the 66px the head gave up with the big coin */
  top: 174px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dcc-wait.dcc-done .dcc-calc { opacity: 0; }
.dcc-calc-mark { position: relative; z-index: 1; display: block; width: 40px; height: 40px; }
.dcc-ring { position: absolute; inset: -2px; border-radius: 50%; }
.dcc-ring::before,
.dcc-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2.6px), #000 calc(100% - 2px), #000 calc(100% - 0.6px), #0000 100%);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 2.6px), #000 calc(100% - 2px), #000 calc(100% - 0.6px), #0000 100%);
}
.dcc-ring::before { background: rgb(24 25 27 / 0.07); }
.dcc-ring::after {
  background: conic-gradient(from 0turn, rgb(206 196 255 / 0) 0turn, rgb(206 196 255) 0.38turn, rgb(255 232 214) 0.62turn, rgb(255 178 140) 0.97turn, rgb(255 178 140 / 0) 0.995turn);
  animation: dcc-turn 1.4s linear infinite;
}
@keyframes dcc-turn { to { transform: rotate(1turn); } }
.dcc-wait .dcc-card { opacity: 0; transform: translateY(8px); }
.dcc-wait.dcc-done .dcc-card {
  opacity: 1;
  transform: none;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dcc-wait.dcc-done .dcc-card + .dcc-card { transition-delay: 120ms; }
.dcc-wait .dcc-seg { transform: scaleX(0); transform-origin: left center; }
.dcc-wait.dcc-done .dcc-seg { transform: none; transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 220ms; }
