/* Xpress Cash brand and design system specimens for the case study.
   Scoped to .ds so the portfolio's own styles are untouched. Values mirror xpress-product.css. */
.ds { --deep: #087a50; --green: #159b50; --lime: #b5de72; --mint: #55c9a0; --orange: #f47b35; --ivory: #f5f8ec; --charcoal: #172b27;
  --tint: #e4f1de; --lime-tint: #eaf4cd; --mint-tint: #d9f3e8; --line: #dce4d0; --edge: #c3cdb8; --muted: #566a63; --danger: #b3261e;
  display: grid; gap: 24px; }
.ds h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.ds .ds-sub { color: var(--muted, #566a63); font-size: 0.95rem; margin: 0; max-width: 64ch; }
.ds + .ds { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 8px; }

/* Swatches */
.ds-sw { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ds-sw > div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px 16px; }
.ds-sw > div + div { border-top: 1px solid var(--line); }
.ds-chip { width: 72px; height: 72px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.08); }
.ds-sw b { display: block; font-size: 1.05rem; }
.ds-sw code { font: 700 0.95rem Helvetica, Arial, sans-serif; letter-spacing: 0.02em; }
.ds-sw p { margin: 2px 0 0; font-size: 0.9rem; color: #566a63; }
.ds-sw .ds-flag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--tint); color: var(--deep); font-size: 0.78rem; font-weight: 700; }
.ds-balance { display: grid; gap: 10px; }
.ds-bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ds-bar span { display: block; }
.ds-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: #566a63; margin: 0; padding: 0; list-style: none; }
.ds-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, 0.1); }

/* Tables */
.ds-tbl-wrap { overflow-x: auto; }
.ds-tbl { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.92rem; }
.ds-tbl th, .ds-tbl td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-top: 1px solid var(--line); }
.ds-tbl thead th { border-top: 0; font-size: 0.82rem; color: #566a63; }
.ds-tbl tbody th { font-weight: 700; }
.ds-pair { display: inline-grid; place-items: center; min-width: 64px; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; }
.ds-res { font-weight: 700; white-space: nowrap; }
.ds-res.ok::before { content: "Pass  "; color: var(--deep); }
.ds-res.lg::before { content: "Large text only  "; color: #8a5200; }
.ds-res.no::before { content: "Fail  "; color: var(--danger); }

/* Type */
.ds-type { display: grid; border-top: 1px solid var(--line); }
.ds-type > div { display: grid; grid-template-columns: 90px 1fr; gap: 6px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ds-type small { color: #566a63; font-size: 0.82rem; }
.ds-type .s { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; color: #172b27; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.ds-type .role { grid-column: 2; color: #566a63; font-size: 0.85rem; margin-top: -2px; }
@media (min-width: 760px) { .ds-type > div { grid-template-columns: 90px 1fr 300px; } .ds-type .role { grid-column: 3; margin: 0; } }

/* Scales */
.ds-scale { display: grid; gap: 8px; }
.ds-scale > div { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; font-size: 0.88rem; color: #566a63; }
.ds-scale i { display: block; height: 14px; background: var(--green); border-radius: 3px; }
.ds-radii { display: flex; flex-wrap: wrap; gap: 20px; }
.ds-radii div { display: grid; gap: 6px; justify-items: start; font-size: 0.85rem; color: #566a63; max-width: 150px; }
.ds-radii i { display: block; width: 76px; height: 56px; background: var(--tint); border: 1.5px solid var(--green); }

/* Specimen stage and components */
.ds-stage { padding: 28px; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 28px; color: var(--charcoal); font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ds-stage.dark { background: var(--deep); color: #fff; }
.ds-stage h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #566a63; }
.ds-stage.dark h4 { color: rgba(255, 255, 255, 0.8); }
.ds-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ds-grid2 { display: grid; gap: 28px; }
@media (min-width: 900px) { .ds-grid2 { grid-template-columns: 1fr 1fr; } }
.b-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: 700 15px Helvetica, Arial, sans-serif; cursor: default; }
.b-btn.hover { background: var(--deep); }
.b-btn.press { background: var(--charcoal); }
.b-btn.focus { outline: 2px solid var(--deep); outline-offset: 2px; }
.b-btn.ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.b-btn.inv { background: #fff; color: var(--deep); }
.b-btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.b-btn.off { opacity: 0.5; }
.b-link { color: var(--deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.b-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.b-seg span { display: grid; place-items: center; min-height: 44px; padding: 4px 14px; border: 1px solid var(--edge); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; }
.b-seg span.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--tint); color: var(--charcoal); }
.b-field { display: grid; gap: 6px; max-width: 320px; }
.b-field small { font-size: 13px; color: #566a63; }
.b-input { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; background: #fff; border: 1px solid var(--edge); border-radius: 10px; font-weight: 700; font-size: 22px; }
.b-input.focus { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.b-input em { font-style: normal; font-size: 14px; color: #566a63; }
.b-switch { position: relative; display: inline-block; width: 48px; height: 26px; border-radius: 13px; background: #b6c1ab; }
.b-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.b-switch.on { background: var(--green); }
.b-switch.on::after { left: 25px; }
.b-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.b-tag.best { background: var(--lime); color: var(--charcoal); }
.b-tag.promo { background: var(--orange); color: var(--charcoal); }
.b-tag.alt { background: #fff; box-shadow: inset 0 0 0 1px #9bab92; }
.b-tag.sample { border: 1px dashed #6f8078; background: transparent; }
.b-msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.b-msg.banner { background: var(--tint); }
.b-msg.insight { background: var(--lime-tint); }
.b-msg.note { background: #fff; border: 1px solid var(--line); }
.b-rows { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.b-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 48px; align-items: center; font-size: 14px; }
.b-rows > div + div { border-top: 1px solid var(--line); }
.b-rows > div span:first-child { color: #566a63; }
.b-rows > div.strong span { color: var(--charcoal); font-weight: 700; font-size: 15px; }
.b-res { display: grid; gap: 2px; padding: 12px 14px; background: #fff; }
.b-res + .b-res { border-top: 1px solid var(--line); }
.b-res.best { background: var(--tint); }
.b-res .n { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.b-res .n i { font-style: normal; font-size: 14px; font-weight: 400; color: #566a63; margin-left: 8px; }
.b-res .m { font-size: 13px; color: #566a63; }
.b-scale { display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.b-scale .h { display: flex; justify-content: space-between; font-size: 14px; }
.b-track { position: relative; height: 8px; margin: 6px 4px 26px; border-radius: 4px; background: #e1e8d6; }
.b-track i { position: absolute; inset: 0 auto 0 0; width: 26%; background: var(--green); border-radius: 4px; }
.b-track s { position: absolute; top: -6px; width: 2px; height: 20px; background: var(--charcoal); }
.b-track s em { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; white-space: nowrap; color: #566a63; }
.b-nav { display: grid; gap: 2px; padding: 12px; background: var(--deep); border-radius: 12px; max-width: 260px; }
.b-nav span { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 15px; }
.b-nav span.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.b-tabs { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.b-tabs span { display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; font-size: 12px; font-weight: 700; color: #566a63; }
.b-tabs span.on { color: var(--deep); }
.b-tabs i { width: 22px; height: 22px; border: 1.8px solid currentColor; border-radius: 5px; }
.b-sheet { max-width: 360px; background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 0 0 1px var(--line); }
.b-sheet h5 { margin: 0; font-size: 17px; }
.b-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font-size: 28px; font-weight: 700; }
.b-wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ds-dd { display: grid; gap: 16px; }
@media (min-width: 760px) { .ds-dd { grid-template-columns: 1fr 1fr; } }
.ds-dd > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ds-dd h5 { margin: 0 0 8px; font-size: 0.95rem; }
.ds-dd ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.92rem; }
.ds-dd .yes h5 { color: var(--deep); }
.ds-dd .no h5 { color: var(--danger); }
.cs-section:has(.ds) .cs-label { position: static; }
.ds-res::before { content: none !important; }
.ds-res.ok { color: var(--deep); }
.ds-res.lg { color: #8a5200; }
.ds-res.no { color: var(--danger); }
.b-rows > div.b-res { display: grid; align-items: start; justify-content: stretch; gap: 2px; }
.ds-stage.dark { gap: 14px; }

.ds-icons { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 24px; }
.ds-icons li { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #dce4d0; color: #172b27; }
.ds-icons svg { width: 24px; height: 24px; grid-row: span 2; color: #087a50; }
.ds-icons span { font-weight: 700; font-size: 15px; }
.ds-icons small { font-size: 13px; color: #566a63; }

/* Colour and contrast, compact: a strip of swatches and a grid of contrast pairs */
.xcc-sw { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.xcc-chip { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 64px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.08); }
.xcc-chip code { font: 700 0.82rem Helvetica, Arial, sans-serif; letter-spacing: 0.02em; }
.xcc-chip em { font-style: normal; font-size: 0.72rem; font-weight: 700; opacity: 0.9; }
.xcc-sw b { display: block; margin-top: 8px; font-size: 0.92rem; }
.xcc-sw small { display: block; font-size: 0.8rem; line-height: 1.3; color: #566a63; }
.xcc-ct { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.xcc-ct li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.xcc-aa { flex: none; display: grid; place-items: center; width: 46px; height: 36px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.08); font-weight: 700; font-size: 0.95rem; }
.xcc-ct b { display: block; font-size: 0.92rem; }
.xcc-ct i { font-style: normal; font-weight: 700; margin-left: 4px; }
.xcc-ct i.ok { color: var(--deep); }
.xcc-ct i.lg { color: #8a5200; }
.xcc-ct i.no { color: var(--danger); }
.xcc-ct small { display: block; font-size: 0.8rem; line-height: 1.3; color: #566a63; }

/* Product strategy, compact */
.xs-wrap { display: grid; gap: 14px; min-width: 0; }
.xs-wrap h3 { margin: 0; font-size: 1.05rem; }
.xs-pr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; }
.xs-pr li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.xs-pr b { font-size: .98rem; }
.xs-pr span { font-size: .93rem; color: var(--muted); }
.xs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.xs-facts p { margin: 6px 0 0; font-size: .95rem; line-height: 1.55; }
.cs-section:has(.xs-wrap) .cs-label { position: static; }

/* Figma and design files, compact */
.fg { display: grid; gap: 4px 48px; align-items: start; }
@media (min-width: 860px) { .fg { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.fg h3 { margin: 0 0 6px; }
.fg .ds-sub { margin: 0; }
.fg-links { display: grid; gap: 10px; align-content: start; }
.fg-links .cs-links { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* Accessibility, scannable */
.xa-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; }
.xa-list li { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.xa-list b { font-size: .95rem; color: var(--deep, #087A50); }
.xa-list span { font-size: .93rem; color: var(--muted); }
.xa-gap { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.xa-gap b { color: #8a5200; }

/* Section headings (h3) at 24px */
.cs-section h3:not(.xc-title) { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
