.market-day {
  --day-ink: #162d24;
  --day-rule: #b8c1ac;
  padding-block: clamp(2.7rem, 5vw, 5.25rem);
  color: var(--day-ink);
  background: #f3f1e5;
}
.day-overview { position: relative; }
.day-overview, .day-anchor, .day-key { scroll-margin-top: 5.4rem; }
.day-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.day-heading { display: flex; align-items: end; justify-content: space-between; gap: .4rem 1.2rem; flex-wrap: wrap; margin-bottom: clamp(1rem, 2vw, 1.7rem); }
.day-heading .eyebrow { margin-bottom: .45rem; color: #435b45; }
.day-heading h2 { font-size: clamp(2.7rem, 5.2vw, 5.2rem); line-height: 1; letter-spacing: -.067em; font-weight: 590; }
.day-heading h2 em { font: italic 400 1.05em/1 var(--editorial); letter-spacing: -.04em; }
.day-demo { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .94rem; font-weight: 620; text-underline-offset: .27em; }
.day-figure { margin: 0; }
.day-window { position: relative; aspect-ratio: 1800 / 731; overflow: hidden; background: #efdbab; border: 1px solid #b7a98b; }
.day-stage { position: absolute; top: -8.2%; left: 0; width: 100%; aspect-ratio: 1800 / 858; }
.day-drawing, .day-motion { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.day-motion { overflow: visible; pointer-events: none; }
.day-transfer, .day-stocktake { opacity: 0; pointer-events: none; }
.day-transfer { color: #314f49; }
.day-transfer[data-transfer="payback"], .day-transfer[data-transfer="invoice"] { color: #633d33; }
.day-trail { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 9; }
.day-parcel { filter: drop-shadow(0 2px 1px #fdf0cf); }
.day-tick { fill: none; stroke: #385b36; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
[data-product="connect"] { --product-ink: #214e60; }
[data-product="hub"] { --product-ink: #30563a; }
[data-product="pro"] { --product-ink: #634239; }
[data-product="plus"] { --product-ink: #80521e; }
.day-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .38em .75em;
  border: 1px solid #f9f1c5;
  border-radius: 1.5em;
  background: var(--product-ink);
  color: #fffbea;
  box-shadow: 0 2px 4px #162b1e60;
  font-size: clamp(.72rem, 1.05vw, 1rem);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.day-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: clamp(.35rem, 1.05vw, 1rem); background: var(--product-ink); box-shadow: 1px 0 #f8f1cb; }
.day-pin::before { content: ""; width: .43em; height: .43em; border-radius: 50%; background: #f7edca; }
.day-pin:hover, .day-pin:focus-visible { outline: 3px solid #fffbed; outline-offset: 1px; }
.day-pin[data-current]::before { background: #e0fb76; box-shadow: 0 0 0 3px #e0fb763f; }
.pin-connect { --x: 14%; --y: 36.5%; }
.pin-hub { --x: 48%; --y: 26.5%; }
.pin-pro { --x: 86.5%; --y: 32%; }
.pin-plus { --x: 77%; --y: 57%; }
.day-strip { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: .62rem clamp(.85rem, 1.75vw, 1.55rem); background: #1b3429; color: #fcf9e9; }
.day-narration { display: flex; align-items: baseline; gap: .35rem 1rem; font-size: .94rem; line-height: 1.45; }
.day-narration strong { flex: none; min-width: 8.5rem; color: #e1f3a5; font: 700 .79rem/1.3 var(--office-mono); }
.day-toggle { flex: none; display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; padding: 0 .15rem; border: none; background: transparent; color: inherit; }
.day-toggle[hidden] { display: none; }
.day-toggle b { font-size: .83rem; font-weight: 595; }
.day-toggle span { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border: 1px solid #9eae96; border-radius: 50%; }
.day-toggle span::after { content: ""; width: .56rem; height: .64rem; background: currentColor; clip-path: polygon(8% 0,100% 50%,8% 100%); }
.day-overview[data-running] .day-toggle span::after { clip-path: none; background: linear-gradient(90deg,currentColor 30%,transparent 30% 70%,currentColor 70%); }
.day-toggle:hover { color: #e1f3a5; }
.day-key { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--day-rule); }
.day-key a { display: grid; align-content: start; gap: .33rem; padding: clamp(.9rem, 1.55vw, 1.5rem) clamp(.85rem, 1.7vw, 1.65rem); color: inherit; text-decoration: none; }
.day-key a + a { border-left: 1px solid var(--day-rule); }
.key-role { display: flex; align-items: center; gap: .5rem; color: #435745; font: 600 .73rem/1.25 var(--office-mono); }
.key-role::before { content: ""; width: .58rem; height: .58rem; flex: none; border-radius: 50%; background: var(--product-ink); }
.day-key strong { display: flex; align-items: baseline; gap: .45rem; font-size: clamp(1.35rem, 2.15vw, 2.05rem); line-height: 1.2; letter-spacing: -.055em; }
.day-key strong span { color: var(--product-ink); font-size: .53em; }
.key-copy { max-width: 32ch; font-size: clamp(.88rem, 1.06vw, .99rem); line-height: 1.45; }
.day-key a:hover, .day-key a:focus-visible { background: #e6e8d5; }
.day-key a:hover strong, .day-key a:focus-visible strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.security-fallback:not(:target) { display: none; }
@media (min-width: 60rem) {
  .day-overview {
    display: grid;
    grid-template-columns: minmax(0, 2.85fr) minmax(15rem, 1fr);
    column-gap: clamp(1rem, 2vw, 2rem);
    align-items: start;
  }
  .day-heading { grid-column: 1 / -1; }
  .day-key { display: flex; align-self: stretch; flex-direction: column; border-top: 1px solid var(--day-rule); }
  .day-key a {
    flex: 1;
    align-content: center;
    grid-template-columns: auto 1fr;
    grid-template-areas: "name role" "copy copy";
    align-items: baseline;
    gap: .2rem .7rem;
    padding: .65rem .2rem;
  }
  .day-key a + a { border-left: 0; border-top: 1px solid var(--day-rule); }
  .day-key strong { grid-area: name; }
  .key-role { grid-area: role; }
  .key-copy { grid-area: copy; max-width: 42ch; }
  .day-narration { display: grid; gap: .12rem; }
  .day-strip { min-height: 5.15rem; }
}
@media (max-width: 55rem) {
  .day-key { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .day-key a:nth-child(3) { border-left: 0; }
  .day-key a:nth-child(n+3) { border-top: 1px solid var(--day-rule); }
  .day-narration { display: grid; gap: .16rem; }
  .day-strip { min-height: 5.25rem; }
}
@media (max-width: 43rem) {
  .market-day { padding-block: 2.4rem; }
  .day-heading { position: relative; align-items: baseline; }
  .day-heading h2 { font-size: clamp(2.45rem, 8.8vw, 3.4rem); }
  .day-demo { position: absolute; top: -.75rem; right: 0; min-height: 2.6rem; font-size: .81rem; }
  .day-window { aspect-ratio: 1800 / 820; }
  .day-stage { top: -2%; }
  .day-pin { font-size: .7rem; padding: .24em .48em; gap: .24em; }
  .day-pin::before { width: .36em; height: .36em; }
  .day-strip { align-items: start; gap: .6rem; padding: .7rem .8rem; }
  .day-narration { min-height: 5.3em; font-size: .81rem; align-content: start; }
  .day-narration strong { min-width: 0; font-size: .74rem; }
  .day-toggle { min-width: 2.75rem; justify-content: center; }
  .day-toggle b { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
  .day-key a { padding: .85rem .55rem; }
  .key-role { font-size: .65rem; gap: .32rem; }
  .key-role::before { width: .4rem; height: .4rem; }
  .key-copy { font-size: .84rem; }
}
@media (max-width: 22rem) {
  .day-overview, .day-anchor, .day-key { scroll-margin-top: 8rem; }
  .day-heading { gap: 0; }
}
@media (max-width: 48rem) {
  html:not(.has-menu) :is(.day-overview,.day-anchor,.day-key) { scroll-margin-top: 11rem; }
}
@media (max-width: 22rem) {
  html:not(.has-menu) :is(.day-overview,.day-anchor,.day-key) { scroll-margin-top: 14rem; }
}
