/* Same banner and footer adjustments as the supplement case study. */
section.blockchain.white-section {
    background: #f9f9f9 !important;
}
.footer_section {
    margin-top: -1em !important;
}
.slider-header_content h1 {
    bottom: 3.6vw;
    position: absolute !important;
    padding-right: 1vw;
}
@media only screen and (max-width: 1440px) {
    .slider-header_content h1 { bottom: 4vw; }
}
@media only screen and (max-width: 1024px) {
    .slider-header_content h1 { bottom: 6vw; }
}
@media only screen and (max-width: 768px) {
    .slider-header_content h1 { bottom: 8vw; }
}
@media only screen and (max-width: 500px) {
    .slider-header_content h1 { bottom: 14vw; }
}
@media only screen and (max-width: 375px) {
    .slider-header_content h1 { bottom: 16vw; }
}

/*
  Figures for this case study. Everything is scoped to .dd so none of it
  reaches the shared insight styles. Series colours follow the Outcome as a
  Service page: red for the outcome path, grey for the baseline.
*/
.dd {
    --dd-red: #ef0d33;
    --dd-red-2: #ff6b82;
    --dd-red-3: #ffb3bf;
    --dd-grey: #8f97a1;
    --dd-grey-2: #b9bfc6;
    --dd-grey-3: #dde0e4;
    --dd-ink: #191919;
    --dd-ink-2: #4a4f55;
    --dd-muted: #6b7178;
    --dd-line: #e6e8eb;
    --dd-panel: #f7f8f9;
    --dd-fs: max(13px, 0.95vw);
    --dd-fs-sm: max(12px, 0.8vw);
}
.dd .dd-kicker {
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dd-red);
    margin: 0 0 0.4em;
}
.dd h3 {
    font-family: montserrat_semibold, sans-serif;
    font-weight: 400;
    font-size: max(17px, 1.35vw);
    color: var(--dd-ink);
    margin: 1.6em 0 0.5em;
    line-height: 1.3;
}
.dd a { color: #c20a2a; text-decoration: underline; text-underline-offset: 2px; }
.dd a:hover { color: var(--dd-red); }

/* Hypothetical notice */
.dd-note {
    border-left: 3px solid var(--dd-red);
    background: #fff5f7;
    padding: 1em 1.2em;
    margin: 0 0 2em;
    font-family: montserrat_regular, sans-serif;
    font-size: var(--dd-fs);
    line-height: 1.6;
    color: var(--dd-ink-2);
}
.dd-note strong { color: var(--dd-ink); font-family: montserrat_semibold, sans-serif; font-weight: 400; }

/* Figures */
.dd-fig {
    margin: 2.2em 0 2.4em;
    padding: 1.6em 1.6em 1.3em;
    background: #fff;
    border: 1px solid var(--dd-line);
    border-radius: 10px;
    font-family: montserrat_regular, sans-serif;
    font-size: var(--dd-fs);
    color: var(--dd-ink);
}
.dd-fig__title {
    font-family: montserrat_semibold, sans-serif;
    font-size: max(15px, 1.1vw);
    margin: 0 0 0.25em;
    color: var(--dd-ink);
    line-height: 1.35;
}
.dd-fig__sub {
    color: var(--dd-muted);
    font-size: var(--dd-fs-sm);
    margin: 0 0 1.3em;
    line-height: 1.5;
}
.dd-fig figcaption {
    text-align: left;
    margin-top: 1.1em;
    padding-top: 0.8em;
    border-top: 1px solid var(--dd-line);
    color: var(--dd-muted);
    font-size: var(--dd-fs-sm);
    line-height: 1.55;
}
.dd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1.4em;
    margin: 0 0 1.1em;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
}
.dd-legend span::before {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    border-radius: 3px;
    margin-right: 0.45em;
    vertical-align: -0.1em;
    background: var(--sw);
}

/* At-a-glance stat tiles */
.dd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 2px;
    background: var(--dd-line);
    border: 1px solid var(--dd-line);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.4em 0 2.2em;
}
.dd-stat {
    background: #fff;
    padding: 1.2em 1.1em 1.1em;
    font-family: montserrat_regular, sans-serif;
}
.dd-stat__v {
    font-family: montserrat_bold, sans-serif;
    font-size: max(26px, 2.3vw);
    line-height: 1;
    color: var(--dd-ink);
    letter-spacing: -0.02em;
}
.dd-stat__v small {
    font-size: 0.5em;
    color: var(--dd-muted);
    font-family: montserrat_semibold, sans-serif;
    letter-spacing: 0;
}
.dd-stat__v.is-red { color: var(--dd-red); }
.dd-stat__l {
    margin-top: 0.55em;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
    line-height: 1.45;
}

/* Horizontal bars (stage comparison, cost) */
.dd-bars { display: grid; gap: 1.1em; }
.dd-bars__row { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 0.4em 1em; align-items: center; }
.dd-bars__label { font-size: var(--dd-fs-sm); color: var(--dd-ink-2); line-height: 1.35; }
.dd-bars__tracks { display: grid; gap: 4px; }
.dd-bar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 20px;
}
.dd-bar__fill {
    height: 16px;
    border-radius: 0 4px 4px 0;
    background: var(--c, var(--dd-grey));
    width: var(--w);
    min-width: 3px;
    transition: filter 0.15s;
}
.dd-bar__val {
    margin-left: 0.55em;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
    white-space: nowrap;
}
.dd-bar:hover .dd-bar__fill,
.dd-seg:hover { filter: brightness(0.88); }
.dd-bars__total {
    display: grid;
    grid-template-columns: minmax(120px, 30%) 1fr;
    gap: 1em;
    padding-top: 0.9em;
    border-top: 1px solid var(--dd-line);
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs-sm);
}

/* Stacked single bars (where the time goes, cost) */
.dd-stack {
    display: flex;
    gap: 2px;
    height: 34px;
    width: var(--w, 100%);
    margin: 0.4em 0 0.6em;
}
.dd-seg {
    background: var(--c);
    flex: var(--f) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs-sm);
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}
.dd-seg:first-child { border-radius: 4px 0 0 4px; }
.dd-seg:last-child { border-radius: 0 4px 4px 0; }
.dd-seg.is-dark-text { color: var(--dd-ink); }
.dd-stack__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1em;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
    margin-top: 1em;
}
.dd-stack__head strong { font-family: montserrat_semibold, sans-serif; font-weight: 400; color: var(--dd-ink); }
.dd-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em 1.2em;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
}
.dd-keys span::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    border-radius: 2px;
    margin-right: 0.4em;
    vertical-align: -0.05em;
    background: var(--sw);
}

/* Funnel */
.dd-funnel { display: grid; gap: 6px; }
.dd-funnel__row {
    display: grid;
    grid-template-columns: 1fr minmax(110px, 26%);
    gap: 1em;
    align-items: center;
}
.dd-funnel__bar {
    justify-self: center;
    width: var(--w);
    height: 36px;
    border-radius: 4px;
    background: var(--c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: montserrat_bold, sans-serif;
    font-size: var(--dd-fs-sm);
    white-space: nowrap;
    min-width: 44px;
    cursor: default;
}
.dd-funnel__bar.is-dark-text { color: var(--dd-ink); }
.dd-funnel__txt { font-size: var(--dd-fs-sm); line-height: 1.35; color: var(--dd-ink-2); }
.dd-funnel__txt b { display: block; color: var(--dd-ink); font-family: montserrat_semibold, sans-serif; font-weight: 400; }
.dd-funnel__split {
    display: grid;
    grid-template-columns: 1fr minmax(110px, 26%);
    gap: 1em;
    margin: 0.3em 0;
    color: var(--dd-muted);
    font-size: var(--dd-fs-sm);
}
.dd-funnel__split span { text-align: center; border-top: 1px dashed var(--dd-grey-2); padding-top: 0.35em; }

/* Architecture */
.dd-arch {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    position: relative;
}
.dd-arch__col {
    background: var(--dd-panel);
    border-radius: 8px;
    padding: 0.9em 0.8em;
    position: relative;
}
.dd-arch__col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--dd-red);
    border-right: 2px solid var(--dd-red);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}
.dd-arch__h {
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dd-red);
    margin-bottom: 0.7em;
}
.dd-arch__item {
    background: #fff;
    border: 1px solid var(--dd-line);
    border-radius: 6px;
    padding: 0.5em 0.6em;
    font-size: var(--dd-fs-sm);
    line-height: 1.35;
    color: var(--dd-ink);
    margin-bottom: 6px;
}
.dd-arch__item small { display: block; color: var(--dd-muted); font-size: 0.92em; margin-top: 0.15em; }
.dd-arch__loop {
    margin-top: 12px;
    border: 1.5px dashed var(--dd-red-2);
    border-radius: 8px;
    padding: 0.6em 0.9em;
    text-align: center;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
}
.dd-arch__loop b { color: var(--dd-red); font-family: montserrat_semibold, sans-serif; font-weight: 400; }

/* Enrichment curve */
.dd-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.dd-chart .ax { stroke: #c9cdd2; stroke-width: 1; }
.dd-chart .grid { stroke: #eef0f2; stroke-width: 1; }
.dd-chart text { font-family: montserrat_regular, sans-serif; fill: var(--dd-muted); font-size: 13px; }
.dd-chart text.lab { fill: var(--dd-ink); font-family: montserrat_semibold, sans-serif; }
.dd-chart .hit { fill: transparent; cursor: default; }
.dd-chart .hit:hover + .pt, .dd-chart .pt:hover { r: 7; }

/* Gantt */
.dd-gantt { display: grid; gap: 7px; }
.dd-gantt__scale,
.dd-gantt__row {
    display: grid;
    grid-template-columns: minmax(120px, 30%) 1fr;
    gap: 1em;
    align-items: center;
}
.dd-gantt__weeks {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    font-size: var(--dd-fs-sm);
    color: var(--dd-muted);
    border-bottom: 1px solid var(--dd-line);
    padding-bottom: 0.3em;
}
.dd-gantt__weeks span { border-left: 1px solid var(--dd-line); padding-left: 0.3em; }
.dd-gantt__label { font-size: var(--dd-fs-sm); color: var(--dd-ink-2); line-height: 1.3; }
.dd-gantt__track {
    position: relative;
    height: 20px;
    background: repeating-linear-gradient(to right, transparent 0, transparent calc(12.5% - 1px), var(--dd-line) calc(12.5% - 1px), var(--dd-line) 12.5%);
}
.dd-gantt__bar {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: calc(var(--s) / 8 * 100%);
    width: calc((var(--e) - var(--s)) / 8 * 100%);
    background: var(--c, var(--dd-red));
    border-radius: 4px;
    cursor: default;
}
.dd-gantt__bar:hover { filter: brightness(0.88); }
.dd-gantt__row.is-milestone .dd-gantt__bar {
    width: 12px;
    height: 12px;
    top: 4px;
    border-radius: 2px;
    transform: translateX(-6px) rotate(45deg);
    background: var(--dd-ink);
}

/* Gates (target vs projected) */
.dd-gates { display: grid; gap: 1.2em; }
.dd-gate__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1em;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink-2);
    margin-bottom: 0.45em;
}
.dd-gate__head b { color: var(--dd-ink); font-family: montserrat_semibold, sans-serif; font-weight: 400; }
.dd-gate__pass {
    font-family: montserrat_semibold, sans-serif;
    color: #1d7a4f;
    white-space: nowrap;
}
.dd-gate__pass::before { content: "\2713\00a0"; }
.dd-gate__track {
    position: relative;
    height: 12px;
    background: var(--dd-grey-3);
    border-radius: 6px;
}
.dd-gate__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--v);
    background: var(--dd-red);
    border-radius: 6px;
}
.dd-gate__target {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: var(--t);
    width: 2px;
    background: var(--dd-ink);
}
.dd-gate__scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--dd-muted);
    margin-top: 0.3em;
}

/* Tables */
.dd-table-wrap { overflow-x: auto; margin: 1.4em 0 2em; -webkit-overflow-scrolling: touch; }
.dd table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-family: montserrat_regular, sans-serif;
    font-size: var(--dd-fs-sm);
    color: var(--dd-ink);
}
.dd th, .dd td {
    text-align: left;
    padding: 0.75em 0.8em;
    border-bottom: 1px solid var(--dd-line);
    vertical-align: top;
    line-height: 1.45;
}
.dd th {
    font-family: montserrat_semibold, sans-serif;
    font-weight: 400;
    background: var(--dd-panel);
    color: var(--dd-ink);
}
.dd td.is-ours, .dd th.is-ours { background: #fff5f7; }
.dd th.is-ours { color: var(--dd-red); }

/* Risk cards */
.dd-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 1.4em 0 2em;
}
.dd-card {
    border: 1px solid var(--dd-line);
    border-radius: 8px;
    padding: 1em 1.1em;
    font-family: montserrat_regular, sans-serif;
    font-size: var(--dd-fs-sm);
    line-height: 1.55;
    color: var(--dd-ink-2);
    background: #fff;
}
.dd-card b {
    display: block;
    font-family: montserrat_semibold, sans-serif;
    font-weight: 400;
    color: var(--dd-ink);
    font-size: var(--dd-fs);
    margin-bottom: 0.35em;
}
.dd-card em { font-style: normal; color: var(--dd-red); font-family: montserrat_semibold, sans-serif; }

/* Related reading */
.dd-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 1.2em 0 2em;
}
.dd .dd-related a {
    display: block;
    text-decoration: none;
    border: 1px solid var(--dd-line);
    border-radius: 8px;
    padding: 1em 1.1em;
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs-sm);
    line-height: 1.45;
    color: var(--dd-ink);
    background: #fff;
    transition: border-color 0.15s, transform 0.15s;
}
.dd .dd-related a:hover { border-color: var(--dd-red); transform: translateY(-2px); }
.dd-related a span {
    display: block;
    font-family: montserrat_regular, sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dd-red);
    margin-bottom: 0.4em;
}

/* FAQ */
.dd-faq details {
    border-bottom: 1px solid var(--dd-line);
    padding: 0.9em 0;
    font-family: montserrat_regular, sans-serif;
}
.dd-faq summary {
    cursor: pointer;
    list-style: none;
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs);
    color: var(--dd-ink);
    display: flex;
    justify-content: space-between;
    gap: 1em;
}
.dd-faq summary::-webkit-details-marker { display: none; }
.dd-faq summary::after { content: "+"; color: var(--dd-red); font-size: 1.3em; line-height: 1; }
.dd-faq details[open] summary::after { content: "\2212"; }
.dd-faq details p { margin-top: 0.6em; }

/* References */
.dd-refs {
    font-family: montserrat_regular, sans-serif;
    font-size: var(--dd-fs-sm);
    line-height: 1.6;
    color: var(--dd-ink-2);
    padding-left: 1.3em;
}
.dd-refs li { font-size: var(--dd-fs-sm) !important; margin-bottom: 0.4em; color: var(--dd-ink-2) !important; }

/* CTA */
.dd-cta {
    margin: 2.4em 0 1em;
    padding: 1.8em;
    border-radius: 10px;
    background: #0b0c0e;
    color: #fff;
    font-family: montserrat_regular, sans-serif;
}
.dd-cta h3 { color: #fff; margin-top: 0; }
.dd-cta p { color: rgba(255, 255, 255, 0.78) !important; }
.dd .dd-cta a.dd-btn {
    display: inline-block;
    margin-top: 0.6em;
    padding: 0.8em 1.4em;
    background: var(--dd-red);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-family: montserrat_semibold, sans-serif;
    font-size: var(--dd-fs-sm);
}
.dd .dd-cta a.dd-btn:hover { background: #c20a2a; }
.dd .dd-cta a:not(.dd-btn) { color: #fff; }

/* Tooltip, shared by every [data-tip] mark */
.dd-tip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: #191919;
    color: #fff;
    font-family: montserrat_regular, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    padding: 0.55em 0.75em;
    border-radius: 6px;
    max-width: 260px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.1s;
}
.dd-tip.is-on { opacity: 1; }

@media only screen and (max-width: 768px) {
    .dd-stats { grid-template-columns: 1fr 1fr; }
    .dd-stat:first-child { grid-column: 1 / -1; }
    .dd-fig { padding: 1.1em 1em 1em; }
    .dd-arch { grid-template-columns: 1fr 1fr; }
    .dd-arch__col:nth-child(2)::after { display: none; }
    .dd-bars__row,
    .dd-bars__total,
    .dd-gantt__scale,
    .dd-gantt__row { grid-template-columns: 1fr; gap: 0.3em; }
    .dd-gantt__scale > :first-child { display: none; }
    .dd-funnel__row,
    .dd-funnel__split { grid-template-columns: 1fr; gap: 0.3em; }
    .dd-funnel__bar { justify-self: start; }
    .dd-funnel__split span { text-align: left; }
}
@media only screen and (max-width: 480px) {
    .dd-arch { grid-template-columns: 1fr; }
    .dd-arch__col::after { display: none; }
}
