* {
  box-sizing: border-box;
}

:root {
  --brand-claret: #920E38;
  --site-background-light: #FEFEFE;
  --eyebrow-color: #143D59;
  --brand: var(--brand-claret);
  --brand-dark: var(--brand-claret);
  --background: var(--site-background-light);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #0C0D0F;
  --color-text: var(--text);
  --muted: #4E535B;
  --line: rgba(12, 13, 15, 0.12);
  --shadow: 0 24px 48px rgba(12, 13, 15, 0.08);
  --shadow-soft: 0 18px 34px rgba(12, 13, 15, 0.08);
  --site-logo-size: 28px;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--background);
}

img {
  max-width: 100%;
  display: block;
}

main {
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--focus-outline-color, #920E38);
  outline-offset: 3px;
  border-radius: 6px;
  opacity: 1;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: #111111;
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus-visible {
  top: 12px;
  outline-color: #FFFFFF;
}

.skip-link {
  --focus-outline-color: #FFFFFF;
}

.site-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.project-main {
  padding: 0 0 88px;
}

.project-context {
  padding-top: 24px;
  padding-bottom: 24px;
}

.text-link,
.back-link,
.footer-link,
.case-study-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}

.back-link::before,
.footer-link::before,
.case-study-footer-link::before {
  content: "←";
}

.text-link:hover,
.back-link:hover,
.footer-link:hover,
.case-study-footer-link:hover,
.text-link:focus-visible,
.back-link:focus-visible,
.footer-link:focus-visible,
.case-study-footer-link:focus-visible {
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-color: var(--brand);
}

.text-link:focus-visible,
.back-link:focus-visible,
.footer-link:focus-visible,
.case-study-footer-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.case-study-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: 12px;
}

.case-study-hero__copy {
  max-width: 40rem;
}

.case-study-hero--single {
  grid-template-columns: 1fr;
  justify-items: start;
}

.case-study-hero__copy--wide {
  width: 100%;
  max-width: 936px;
}

.project-kicker,
.section-label,
.case-study .section-eyebrow,
.case-study .eyebrow {
  margin: 0 0 12.8px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.48px;
  line-height: 19.968px;
  font-weight: 700;
  letter-spacing: 1.6224px;
  text-transform: uppercase;
}

body:not(.dark-mode) .project-kicker,
body:not(.dark-mode) .section-label,
body:not(.dark-mode) .case-study .section-eyebrow,
body:not(.dark-mode) .case-study .eyebrow {
  color: var(--eyebrow-color);
}

.case-study-hero h1 {
  margin: 0;
  max-width: 100%;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.055em;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  color: #17202A;
  text-align: left;
  white-space: normal;
  text-wrap: balance;
}

.project-subtitle {
  margin: 22px 0 0;
}

.project-intro {
  margin: 24px 0 0;
}

.project-subtitle,
.project-intro {
  max-width: 68ch;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: normal;
  color: #5D6875;
}

.hero-visual {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual img {
  width: 100%;
  max-width: 30rem;
  height: auto;
  object-fit: contain;
}


.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(32px, 6vw, 56px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-secondary {
  border: 2px solid var(--brand);
  color: var(--brand);
}

.case-study-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 6vw, 56px);
  margin-top: clamp(48px, 8vw, 80px);
}

.case-study-section h2 {
  margin: 0 0 18px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.055em;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  color: #17202A;
  text-align: left;
  text-wrap: balance;
}

.case-study-section p {
  margin: 0;
  max-width: 72ch;
}

.case-study-section p,
.case-study-section li,
.project-intro,
.project-subtitle,
.section-note,
.placeholder-message,
.summary-item dd,
.screenshot-figure figcaption,
.theme-grid p {
  color: #5D6875;
  line-height: 1.7;
}

.case-study-section p + p {
  margin-top: 16px;
}

.case-study-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.case-study-section__layout--reverse .case-study-section__body {
  order: 2;
}

.case-study-section__layout--reverse .section-figure {
  order: 1;
}

.case-study-section__body {
  min-width: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  margin: 0;
}

.summary-item {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-item--no-divider {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-item dt {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.48px;
  line-height: 19.968px;
  font-weight: 700;
  letter-spacing: 1.6224px;
  text-transform: uppercase;
  color: #143D59;
}

.summary-item dd {
  margin: 10px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.approach-list,
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.approach-list {
  display: grid;
  gap: 16px;
  max-width: 72ch;
}

.approach-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.approach-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  max-width: 860px;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
}

.section-figure {
  margin: 0;
}

.section-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.feature-visuals {
  display: grid;
  gap: 24px;
}

.gallery-intro {
  margin-top: 16px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 28px;
  margin-top: 32px;
}

.screenshot-figure {
  margin: 0;
}

.screenshot-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.screenshot-figure figcaption {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}

.placeholder-page .case-study-hero {
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: 24px;
}

.placeholder-page .project-subtitle {
  max-width: none;
}

.placeholder-message {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.project-footer {
  padding-top: 40px;
  padding-bottom: 56px;
}

body.dark-mode {
  color-scheme: dark;
  --color-heading-dark-mode: #F8FAFC;
  --background: #111827;
  --surface: rgba(17, 24, 39, 0.86);
  --surface-soft: rgba(17, 24, 39, 0.76);
  --text: #F8FAFC;
  --muted: #CBD5E1;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 48px rgba(2, 6, 23, 0.4);
  --shadow-soft: 0 18px 34px rgba(2, 6, 23, 0.34);
  color: var(--text);
  background: #111827;
}

body.dark-mode .skip-link {
  background: #F8FAFC;
  color: #0C0D0F;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 760px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-figure--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .case-study-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-study-section__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-study-section__layout--reverse .case-study-section__body,
  .case-study-section__layout--reverse .section-figure {
    order: initial;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(1120px, calc(100% - 32px));
  }

  .project-main {
    padding-bottom: 64px;
  }

  .summary-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }


  .case-study-section {
    padding-top: 32px;
    margin-top: 44px;
  }

  .screenshot-grid {
    gap: 28px;
  }
}

.case-study-section h3 {
  margin: 0 0 12px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #17202A;
}

.case-study-section .approach-list,
.case-study-section .feature-list {
  margin-top: 20px;
}

.case-study-section .approach-list + p {
  margin-top: 20px;
}

.case-study-section__layout + .case-study-section__layout {
  margin-top: clamp(28px, 5vw, 48px);
}


.hero-visual--text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 360px;
  padding: clamp(28px, 4vw, 44px);
  color: #FFFFFF;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18) 0 14%, transparent 15%),
    linear-gradient(135deg, #920E38 0%, #920E38 52%, #111827 100%);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.hero-visual--text .project-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.hero-visual--text p:last-child {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.22;
  font-weight: 700;
}

.section-note {
  margin-top: 18px !important;
  max-width: 74ch;
  font-size: 0.98rem;
}


.summary-item--wide {
  grid-column: 1 / -1;
}

.process-list {
  display: grid;
  gap: 14px;
  max-width: 72ch;
  margin: 22px 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.process-list li::marker {
  color: var(--brand);
  font-weight: 700;
}

.theme-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.theme-grid section,
.stat-grid li {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.theme-grid p {
  font-size: 0.98rem;
}

.stat-grid {
  padding: 0;
  list-style: none;
}

.stat-grid--context {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 860px;
}

.stat-grid--context li {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
  padding: 24px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  color: var(--brand);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat-grid span {
  margin-top: 12px;
  color: var(--text);
  font-weight: 600;
}

.stat-grid + p {
  margin-top: 22px;
}

.footer-link--contact::before {
  content: "→";
}

@media (max-width: 900px) {
  .theme-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual--text {
    min-height: 280px;
  }
}

/* Dude, Where's My Bike design system documentation styles (moved from legacy design-system/bike-design-system.css). */
:root {
  --ds-shell: #FFFFFF;
  --app-ink: #251238;
  --app-purple: #4B1D67;
  --app-purple-2: #7B2CBF;
  --app-pink: #FF4F9A;
  --app-coral: #FF6B5F;
  --app-orange: #FF9F1C;
  --app-cream: #FFF7ED;
  --app-card: #FFFFFF;
  --app-line: rgba(75, 29, 103, .16);
  --app-muted: #75647F;
  --app-green: #159A72;
  --app-amber: #B85C00;
  --app-red: #C9364C;
  --app-gradient: linear-gradient(135deg, #FF9F1C 0%, #FF6B5F 34%, #FF4F9A 66%, #7B2CBF 100%);
  --app-shadow: 0 18px 36px rgba(75, 29, 103, .18);
  --app-radius-lg: 28px;
  --app-radius-md: 20px;
  --app-radius-sm: 14px;
}
body.bike-ds-page { background: #FFFFFF; }
.bike-ds-page .ds-main { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.bike-ds-page .ds-hero { padding: clamp(42px, 7vw, 88px) 0 clamp(32px, 5vw, 64px); }
.bike-ds-page .ds-hero h1 { max-width: 68ch; }
.app-ui, .panel-preview { font-family: 'Nunito Sans', system-ui, sans-serif; }
.app-status { display:flex; justify-content:space-between; font-weight:900; font-size:.8rem; color:var(--app-purple); }
.app-search { padding: 14px 16px; border-radius: 18px; background: #FFF3DF; border: 1px solid rgba(255,159,28,.35); font-weight:900; }
.mini-map { position:relative; min-height: 150px; margin: 16px 0; border-radius: 24px; background: linear-gradient(135deg,#FFE8B8,#FFD2D9 48%,#E8D7FF); overflow:hidden; }
.mini-map span { position:absolute; width:34px; height:34px; border-radius:50% 50% 50% 8px; transform:rotate(-45deg); background:var(--app-purple); box-shadow:var(--app-shadow); }
.mini-map span:nth-child(1){left:22%;top:38%;background:var(--app-coral)}.mini-map span:nth-child(2){left:56%;top:20%;background:var(--app-green)}.mini-map span:nth-child(3){left:70%;top:58%;background:var(--app-orange)}
.docs-layout { display:grid; grid-template-columns: 300px minmax(0,1fr); gap: clamp(24px,4vw,54px); align-items:start; padding-bottom: 80px; }
header.case-study-section.ds-section-heading { margin-top: 56px; margin-bottom: 48px; }
.docs-sidebar { position: sticky; top: 112px; max-height: calc(100vh - 132px); overflow:auto; padding:0 28px 0 0; border:0; border-radius:0; background:#fff; box-shadow:none; backdrop-filter:none; }
.section-select-label,.section-select{display:none}.nav-group{padding:14px 0;border-bottom:1px solid var(--line)}.nav-group:last-child{border:0}.nav-group h2,.panel-meta{margin:0 0 10px;color:var(--brand);font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.docs-nav-link{width:100%;min-height:auto;border:0;border-radius:0;background:transparent;color:var(--muted);font-weight:800;text-align:left;padding:5px 0;cursor:pointer}.docs-nav-link:hover{background:transparent;color:var(--text);text-decoration:underline;text-underline-offset:.22em}.docs-nav-link.is-active{background:transparent;color:var(--brand);box-shadow:none;text-decoration:underline;text-underline-offset:.24em}
.docs-panel{min-width:0;padding:0 0 0 clamp(28px,5vw,64px);border:0;border-left:1px solid #E5E2DE;border-radius:0;background:#fff;box-shadow:none}.docs-panel h2{margin:6px 0 8px;font-family:'Playfair Display',Georgia,serif;color:var(--brand);font-size:clamp(2.4rem,6vw,4.8rem);line-height:.96;letter-spacing:-.03em}.panel-description{max-width:760px;color:var(--muted);font-size:1.08rem}.panel-preview{padding:clamp(18px,3vw,32px) 0;border:0;border-radius:0;background:#fff;overflow:hidden;color:var(--app-ink)}.panel-notes{margin-top:24px;display:grid;grid-template-columns:160px 1fr;gap:20px}.panel-notes h3,.token-callout h3{margin:0}.token-callout{margin-top:20px;padding:16px;border-radius:18px;background:#fff;border:1px solid var(--line)}code{display:inline-block;margin:5px 6px 0 0;padding:4px 8px;border-radius:9px;background:#FFF0E1;color:var(--app-purple);font-weight:800}.brand-board,.swatches,.gradient-grid,.radius-grid,.shadow-grid,.card-grid,.state-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:16px}.brand-board>* ,.type-card,.mini-card,.provider,.booking-card,.review,.empty,.price-card,.compare>*,.steps li{background:var(--app-card);border:1px solid var(--app-line);border-radius:var(--app-radius-md);padding:20px;box-shadow:0 8px 20px rgba(75,29,103,.08)}.hero-preview{min-height:280px;display:grid;align-content:end;gap:8px;padding:28px;border-radius:28px;color:#fff;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.35),transparent 24%),var(--app-gradient)}.hero-preview strong{font-size:clamp(2.2rem,6vw,4.8rem);line-height:.9;letter-spacing:-.05em}.swatches i{display:block;height:92px;border-radius:18px;margin-bottom:10px;border:1px solid rgba(0,0,0,.08)}.swatches b{display:block;margin-bottom:12px}.swatches code{margin-top:0}.type-card h1{margin:0;font-size:clamp(2.2rem,7vw,4.8rem);line-height:.9;letter-spacing:-.05em}.type-card h2{color:var(--app-purple);font-size:1.8rem}.type-card label{display:block;color:var(--app-muted);font-weight:900;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.button-stack,.chips,.badges,.form-demo,.logo-row{display:flex;flex-wrap:wrap;gap:14px}.bike-logo{display:grid;place-items:center;min-height:150px;flex:1 1 260px;border-radius:28px;background:var(--app-gradient);color:#fff;font-weight:900;font-size:1.45rem}.bike-logo.inverse{background:var(--app-ink)}.ds-btn{min-height:48px;border:0;border-radius:999px;padding:0 22px;font-weight:900;cursor:pointer;color:var(--app-ink);background:#fff;border:1px solid var(--app-line)}.ds-btn.primary{color:#fff;background:var(--app-gradient);box-shadow:0 14px 28px rgba(255,79,154,.28)}.ds-btn.secondary{color:var(--app-purple);background:#FFF1DD;border-color:rgba(255,159,28,.38)}.ds-btn.ghost{background:transparent;color:var(--app-purple);border-color:transparent}.ds-btn:disabled,.chip:disabled,.disabled,.unavailable-card{opacity:.55;cursor:not-allowed}.chip{min-height:42px;border:1px solid var(--app-line);border-radius:999px;background:#fff;color:var(--app-purple);padding:0 16px;font-weight:900;cursor:pointer}.chip.active{background:var(--app-purple);color:#fff;border-color:var(--app-purple)}.badge,.state-grid span{display:inline-flex;align-items:center;gap:6px;justify-content:center;min-height:34px;border-radius:999px;padding:6px 12px;font-size:.82rem;font-weight:900}.available,.good{color:#075E49;background:#DDF8EC}.low,.warn{color:#7A3A00;background:#FFE3B0}.unavailable,.bad{color:#8F1B2E;background:#FFE1E5}.verified,.ok{color:#4B1D67;background:#EEE0FF}.family{color:#A32768;background:#FFE1F0}.provider{display:grid;gap:10px}.provider::before{content:'';height:76px;border-radius:18px;background:radial-gradient(circle at 70% 24%,#fff,transparent 18%),var(--app-gradient)}.selected{border-color:var(--app-pink);box-shadow:inset 0 0 0 2px rgba(255,79,154,.22),0 14px 30px rgba(75,29,103,.12)}.booking-card{background:linear-gradient(135deg,#fff,#FFF2DB)}.price-card{max-width:520px;color:#fff;background:linear-gradient(135deg,var(--app-ink),var(--app-purple))}.price-card div{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.18)}.price-card div:last-child{border:0;font-size:1.2rem}.form-demo label{flex:1 1 250px;display:grid;gap:8px;padding:14px 16px;border:1px solid var(--app-line);border-radius:18px;background:#fff}.form-demo label span{font-size:.78rem;font-weight:900;color:var(--app-muted);text-transform:uppercase;letter-spacing:.08em}.form-demo input{border:0;outline:0;background:transparent;color:var(--app-ink)}.search-demo{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px 13px 20px;border-radius:24px;background:#fff;border:1px solid var(--app-line);box-shadow:var(--app-shadow);color:var(--app-muted);font-weight:800}.bottom-nav{display:flex;gap:8px;padding:10px;border-radius:26px;background:#fff;border:1px solid var(--app-line);overflow:auto}.bottom-nav a{flex:1;min-width:84px;text-align:center;padding:12px;border-radius:18px;text-decoration:none;font-weight:900;color:var(--app-muted)}.bottom-nav .active{background:var(--app-gradient);color:#fff}.map-demo,.sheet-demo{position:relative;min-height:320px;border-radius:28px;background:linear-gradient(135deg,#FFE8B8,#FFD2D9 48%,#E8D7FF);overflow:hidden}.pin{position:absolute;display:grid;place-items:center;width:44px;height:44px;border-radius:50% 50% 50% 10px;transform:rotate(-45deg);background:var(--app-coral);color:#fff;font-weight:900;box-shadow:var(--app-shadow)}.p1{left:22%;top:36%}.p2{left:56%;top:18%;background:var(--app-green)}.p3{left:70%;top:56%;background:var(--app-orange)}.sheet{position:absolute;left:18px;right:18px;bottom:18px;padding:22px;border-radius:28px;background:#fff;box-shadow:0 -18px 40px rgba(75,29,103,.18)}.pattern-flow,.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;list-style:none;padding:0;margin:0}.steps{grid-template-columns:repeat(4,1fr)}.pattern-flow span,.steps li{text-align:center;background:#fff;border:1px solid var(--app-line);border-radius:18px;padding:18px;font-weight:900}.compare{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1px;overflow:hidden;border:1px solid var(--app-line);border-radius:20px}.compare>*{border-radius:0;box-shadow:none}.compare b{background:#FFF0E1}.review strong{font-size:2rem;color:var(--app-pink)}
@media(max-width:980px){.bike-ds-page .ds-main{width:min(100% - 32px, 760px)}.bike-ds-page .ds-hero{grid-template-columns:1fr}.docs-layout{grid-template-columns:1fr}.docs-sidebar{position:static;max-height:none}.docs-nav{display:none}.section-select-label,.section-select{display:block}.section-select{width:100%;margin-top:8px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);font-weight:800}.panel-notes{grid-template-columns:1fr}}
@media(max-width:720px){.bike-ds-page .ds-main{width:min(100% - 28px, 520px)}.docs-panel{border-radius:26px}.pattern-flow,.steps,.compare{grid-template-columns:1fr}.button-stack,.search-demo{align-items:stretch;flex-direction:column}.ds-btn{width:100%}}

/* Screen-derived documentation refinements */
.bike-ds-page {
  --app-deep-purple: #4B1D67;
  --app-map-gradient: linear-gradient(135deg, #FFE8B8 0%, #FFD2D9 48%, #E8D7FF 100%);
}

.docs-nav-link[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(146, 14, 56, .22);
}

.panel-preview :where(button, input, a):focus-visible {
  outline: 3px solid #251238;
  outline-offset: 3px;
}

.gradient-grid > div,
.spacing-scale span,
.radius-grid span,
.shadow-grid span {
  min-height: 116px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius-md);
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 8px;
  font-weight: 900;
}

.spacing-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.spacing-scale span {
  min-height: calc(var(--space-height, 1) * 18px + 42px);
  background: #fff;
  color: var(--app-purple);
  text-align: center;
}
.spacing-scale span:nth-child(1) { --space-height: .5; }
.spacing-scale span:nth-child(2) { --space-height: .75; }
.spacing-scale span:nth-child(3) { --space-height: 1; }
.spacing-scale span:nth-child(4) { --space-height: 1.25; }
.spacing-scale span:nth-child(5) { --space-height: 1.5; }
.spacing-scale span:nth-child(6) { --space-height: 1.75; }
.spacing-scale span:nth-child(7) { --space-height: 2.25; }

.type-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.type-card.display {
  grid-column: 1 / -1;
  background: var(--app-gradient);
  color: #fff;
}
.type-card.display label { color: rgba(255,255,255,.85); }
.type-card h3 { margin: 0; color: var(--app-deep-purple); font-size: 1.35rem; }
.ui-label { font-weight: 900; color: var(--app-purple); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.caption { color: var(--app-muted); font-weight: 800; font-size: .88rem; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}
.icon-row span {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius-md);
  background: #fff;
  color: var(--app-purple);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(75,29,103,.08);
}
.icon-row small { font-size: .84rem; color: var(--app-muted); }

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius-lg);
  padding: 34px;
  box-shadow: 0 8px 20px rgba(75,29,103,.08);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: var(--app-gradient);
  color: #fff;
  font-size: 2rem;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
  align-items: start;
}
.screen-card {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.app-screen-frame {
  display: inline-block;
  width: min(100%, 320px);
  margin-inline: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.app-screen-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.screen-card__frame {
  width: min(100%, 320px);
}
.screen-card figcaption {
  color: var(--app-ink);
  font-weight: 900;
  text-align: center;
}

@media(max-width:980px){
  .spacing-scale{grid-template-columns:repeat(4,1fr)}
  .screen-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%, 220px),1fr))}
}
@media(max-width:520px){
  .spacing-scale{grid-template-columns:repeat(2,1fr)}
  .screen-grid{grid-template-columns:1fr}
}

/* Editorial redesign and interactive component states */
body.bike-ds-page {
  background: #FFFFFF;
}

.bike-ds-page .ds-main {
  width: min(1180px, calc(100% - 48px));
}

.bike-ds-page .ds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
  padding: clamp(48px, 7vw, 92px) 0 clamp(28px, 5vw, 56px);
}

.bike-ds-page .ds-hero h1,
.bike-ds-page .ds-hero .project-intro {
  width: 100%;
  max-width: 68ch;
}

.bike-ds-page .case-study-hero__copy,
.case-study-intro__prototype {
  align-self: start;
  margin-top: 0;
}

.case-study-intro__prototype {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

.image-frame.is-missing img {
  opacity: 0;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface, #FFFFFF);
  color: var(--muted);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-frame.is-missing .image-fallback {
  opacity: 1;
}

.image-fallback p {
  max-width: 28ch;
}

.prototype-frame {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 390 / 812;
  margin: 0;
  padding: clamp(10px, 2vw, 14px);
  border-radius: 44px;
  border: 1px solid rgba(12, 13, 15, 0.18);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(235, 238, 242, 0.72)),
    #F7F8FA;
  box-shadow:
    0 34px 72px rgba(12, 13, 15, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.prototype-frame::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 25px;
  border-radius: 999px;
  background: #0C0D0F;
  transform: translateX(-50%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.prototype-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(12, 13, 15, 0.14);
  background: #FFFFFF;
}

.prototype-frame iframe,
.prototype-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}

.prototype-frame img {
  object-fit: cover;
  object-position: top center;
}

.prototype-frame__fallback {
  position: absolute;
  inset: 0;
  display: none;
}

.prototype-frame.is-fallback iframe {
  display: none;
}

.prototype-frame.is-fallback .prototype-frame__fallback {
  display: block;
}


.docs-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  padding-bottom: 88px;
}

.docs-sidebar {
  top: 104px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.docs-panel {
  padding: 0 0 0 clamp(28px, 5vw, 64px);
  border: 0;
  border-left: 1px solid #E5E2DE;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-preview {
  border-radius: 0;
  background: #FFFFFF;
}

.docs-nav-link {
  border-radius: 10px;
}

.docs-nav-link:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.docs-nav-link:focus-visible {
  background: transparent;
  color: var(--text);
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.docs-nav-link.is-active,
.docs-nav-link[aria-current="page"] {
  background: transparent;
  color: var(--brand);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .24em;
  box-shadow: none;
}

.state-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.state-sample {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.state-sample > span:first-child {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--app-muted);
  text-transform: uppercase;
}

.ds-btn,
.chip,
.form-demo input,
.bottom-nav a,
.provider,
.mini-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.ds-btn:hover,
.chip:hover,
.provider:hover,
.mini-card:hover,
.bottom-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(75,29,103,.14);
}

.ds-btn:active,
.chip:active,
.provider:active,
.mini-card:active,
.bottom-nav a:active,
.ds-btn.is-active,
.chip.is-active {
  transform: translateY(0) scale(.98);
}

.ds-btn:focus-visible,
.chip:focus-visible,
.form-demo input:focus-visible,
.bottom-nav a:focus-visible,
.provider:focus-visible,
.mini-card:focus-visible {
  outline: 3px solid #251238;
  outline-offset: 3px;
}

.ds-btn.is-hover,
.chip.is-hover,
.provider.is-hover,
.mini-card.is-hover,
.bottom-nav a.is-hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(75,29,103,.14);
}

.ds-btn.is-focus,
.chip.is-focus,
.form-demo label.is-focus,
.bottom-nav a.is-focus,
.provider.is-focus,
.mini-card.is-focus {
  outline: 3px solid #251238;
  outline-offset: 3px;
}

.ds-btn.is-disabled,
.chip.is-disabled,
.bottom-nav a.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.form-demo label.is-error {
  border-color: var(--app-red);
  box-shadow: inset 0 0 0 1px rgba(201,54,76,.35);
}

.form-demo label.is-error span,
.field-error {
  color: var(--app-red);
}

.search-demo.is-error {
  border-color: var(--app-red);
  box-shadow: 0 0 0 3px rgba(201,54,76,.12);
}

@media (max-width: 980px) {
  .bike-ds-page .ds-main { width: min(100% - 32px, 760px); }
  .bike-ds-page .ds-hero { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; padding: 0 0 24px; }
  .docs-panel { padding: 28px 0 0; border-left: 0; border-top: 1px solid #E5E2DE; }
}

@media (max-width: 640px) {
  .project-subtitle,
  .project-intro {
    font-size: 19px;
    line-height: 30px;
  }
}

@media (max-width: 720px) {
  .bike-ds-page .ds-main { width: min(100% - 28px, 520px); }
  .prototype-frame { width: min(100%, 340px); }
  .prototype-screen { border-radius: 29px; }
  .panel-preview { padding-inline: 0; border-left: 0; border-right: 0; }
}

/* Minimal documentation pass: open sidebar, text-only nav and unframed previews */
.docs-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
}

.docs-sidebar {
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
  backdrop-filter: none;
}

.docs-panel {
  padding: 0 0 0 clamp(28px, 5vw, 64px);
  border: 0;
  border-left: 1px solid #E5E2DE;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
}

.nav-group {
  border-bottom-color: #EEEAE6;
}

.nav-group h2,
.panel-meta {
  margin-left: 0;
  margin-right: 0;
}

.docs-nav-link {
  min-height: auto;
  margin: 3px 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  box-shadow: none;
}

.docs-nav-link:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.docs-nav-link:focus-visible {
  background: transparent;
  color: var(--text);
  outline: 3px solid var(--brand);
  outline-offset: 4px;
  text-decoration: none;
}

.docs-nav-link.is-active,
.docs-nav-link[aria-current="page"] {
  background: transparent;
  color: var(--brand);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .24em;
  box-shadow: none;
}

.panel-preview {
  padding: clamp(18px, 3vw, 32px) 0;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
}

.state-demo {
  gap: clamp(18px, 3vw, 32px);
}

.state-sample {
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-board > *,
.type-card,
.gradient-grid > div,
.spacing-scale span,
.radius-grid span,
.shadow-grid span,
.icon-row span,
.pattern-flow span,
.steps li,
.compare {
  border-color: transparent;
  box-shadow: none;
}

.spacing-scale span,
.radius-grid span,
.shadow-grid span,
.icon-row span,
.pattern-flow span,
.steps li {
  background: #FFF7ED;
}

@media (max-width: 980px) {
  .docs-sidebar {
    padding: 0 0 24px;
    background: #FFFFFF;
  }

  .docs-panel {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid #E5E2DE;
  }

  .section-select {
    border: 1px solid #E5E2DE;
    border-radius: 12px;
    background: #FFFFFF;
  }
}

/* Unpanelled documentation nav */
.docs-sidebar {
  max-height: none;
  overflow: visible;
  background: transparent;
}

@media (max-width: 980px) {
  .docs-sidebar {
    background: transparent;
  }
}

/* Design system documentation alignment corrections */
.docs-layout {
  align-items: start;
}

.docs-sidebar,
.docs-panel {
  align-self: start;
  margin-top: 0;
}

#panel-title {
  font-size: 44.8px;
}

/* White documentation canvas */
.bike-ds-page,
.bike-ds-page .ds-main,
.docs-layout,
.docs-sidebar,
.docs-panel,
.docs-nav {
  background: #FFFFFF;
  background-image: none;
  box-shadow: none;
}

.docs-sidebar::before,
.docs-sidebar::after,
.docs-layout::before,
.docs-layout::after {
  content: none;
  background: transparent;
  box-shadow: none;
}

/* Content-led documentation sidebar and product-accurate assets */
@media (min-width: 981px) {
  .docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
    column-gap: clamp(48px, 5vw, 64px);
    row-gap: 0;
    align-items: stretch;
  }

  .docs-sidebar {
    align-self: stretch;
    width: 100%;
    max-width: 230px;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 32px 0 0;
    border-right: 1px solid #E5E2DE;
  }

  .docs-nav,
  .nav-group {
    width: 100%;
    max-width: 230px;
    min-width: 0;
    box-sizing: border-box;
  }

  .docs-nav-link {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  .docs-panel {
    align-self: stretch;
    padding-left: 0;
    border-left: 0;
  }
}

#panel-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.product-logo-demo {
  display: grid;
  gap: 20px;
}

.product-logo-card {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 180px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--app-radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--app-line);
  box-shadow: 0 8px 20px rgba(75,29,103,.08);
}

.product-logo-card.gradient {
  background: var(--app-gradient);
}

.product-logo-card.gradient .product-logo__eyebrow,
.product-logo-card.gradient .product-logo__title {
  color: #FFFFFF;
}

.product-logo__eyebrow {
  margin: 0;
  color: #EF3D5B;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .36em;
  text-transform: uppercase;
}

.product-logo__title {
  margin: 0;
  color: #101828;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.045em;
}

.logo-guidance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.logo-guidance div,
.icon-tile {
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius-md);
  background: #FFFFFF;
  padding: 18px;
}

.logo-guidance b,
.icon-tile b {
  display: block;
  color: var(--app-ink);
}

.logo-guidance span,
.icon-tile span {
  color: var(--app-muted);
  font-weight: 800;
}

.icon-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px;
}

.icon-tile {
  min-height: 132px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.icon-tile svg {
  width: 32px;
  height: 32px;
  color: var(--app-purple);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile .filled-heart,
.icon-tile .filled-star {
  fill: currentColor;
}

.icon-tile .filled-star {
  color: #FFB300;
  stroke: #FFB300;
}

.icon-tile .active-icon {
  color: #EF3D5B;
}

@media (max-width: 980px) {
  .docs-sidebar {
    border-right: 0;
  }

  .icon-inventory {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
}

/* Responsive documentation hardening for standalone and embedded contexts */
.design-system-docs,
.design-system-docs * {
  box-sizing: border-box;
}

.design-system-docs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.design-system-docs__layout,
.design-system-docs__content,
.design-system-docs__section,
.docs-layout,
.docs-panel,
.panel-preview,
.panel-notes,
.token-callout,
.state-demo,
.state-sample,
.card-grid,
.brand-board,
.swatches,
.gradient-grid,
.radius-grid,
.shadow-grid,
.icon-inventory,
.screen-grid,
.type-spec,
.form-demo,
.search-demo,
.bottom-nav,
.map-demo,
.sheet-demo,
.price-card,
.compare,
.pattern-flow,
.steps {
  min-width: 0;
  max-width: 100%;
}

.design-system-docs img,
.design-system-docs svg,
.design-system-docs iframe {
  max-width: 100%;
}

.design-system-docs .case-study-section,
.design-system-docs .docs-layout,
.design-system-docs .docs-panel {
  scroll-margin-top: 112px;
}

.design-system-docs .brand-board,
.design-system-docs .swatches,
.design-system-docs .gradient-grid,
.design-system-docs .radius-grid,
.design-system-docs .shadow-grid,
.design-system-docs .card-grid,
.design-system-docs .state-grid,
.design-system-docs .type-spec,
.design-system-docs .logo-guidance {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.design-system-docs .icon-inventory {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
}

.design-system-docs .state-demo {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.design-system-docs .screen-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.design-system-docs .compare {
  overflow-x: auto;
}

.design-system-docs .compare > * {
  min-width: 0;
}

@media (max-width: 980px) {
  .design-system-docs .docs-layout {
    grid-template-columns: 1fr;
  }

  .design-system-docs .docs-sidebar {
    position: static;
    inset: auto;
    max-height: none;
    overflow: visible;
  }

  .design-system-docs .docs-nav {
    display: none;
  }

  .design-system-docs .section-select-label,
  .design-system-docs .section-select {
    display: block;
  }

  .design-system-docs .docs-panel {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid #E5E2DE;
  }

  .design-system-docs #panel-title {
    font-size: clamp(2rem, 8vw, 3.25rem);
    line-height: 1;
  }
}

@media (max-width: 600px) {
  .project-main.ds-main,
  .bike-ds-page .ds-main {
    width: 100%;
    padding-inline: clamp(16px, 4vw, 48px);
  }

  .design-system-docs .spacing-scale,
  .design-system-docs .pattern-flow,
  .design-system-docs .steps,
  .design-system-docs .compare {
    grid-template-columns: 1fr;
  }

  .design-system-docs .search-demo,
  .design-system-docs .button-stack {
    align-items: stretch;
    flex-direction: column;
  }

  .design-system-docs .ds-btn {
    width: 100%;
  }

  .design-system-docs .panel-notes {
    grid-template-columns: 1fr;
  }
}

/* Dude, Where's My Bike case-study polish */
body.dude-page .site-shell {
  width: min(
    var(--section-shell-max),
    calc(100% - var(--section-shell-gutter))
  );
  max-width: none;
  margin-inline: auto;
}

body.dude-page .case-study {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

body.dude-page .project-context,
body.dude-page .project-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

body.dude-page .project-context {
  padding-top: 24px;
  padding-bottom: 24px;
}

body.dude-page .project-footer {
  padding-top: 40px;
  padding-bottom: 56px;
}

body.dude-page .project-context .back-link,
body.dude-page .project-footer .case-study-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  position: static;
  left: auto;
  transform: none;
}

body.dude-page .back-link::before,
body.dude-page .case-study-footer-link::before {
  position: static;
  flex: 0 0 auto;
}

body.dude-page .case-study-hero,
body.dude-page .case-study-section,
body.dude-page .case-study-actions,
body.dude-page [data-design-system-docs],
body.dude-page .design-system-docs {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.dude-page .case-study-hero {
  width: 100%;
  margin-inline: 0;
}

.dude-page .case-study-hero {
  align-items: start;
}

.dude-page .case-study-hero__copy,
.dude-page .case-study-intro__prototype {
  align-self: start;
}


body.dude-page .prototype-section {
  margin-top: clamp(32px, 5vw, 56px);
}

body.dude-page .prototype-section__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 390px);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
  width: 100%;
  margin-inline: 0;
}

body.dude-page .prototype-section__copy {
  min-width: 0;
}

body.dude-page
  .prototype-section
  .section-header {
  max-width: none;
}

body.dude-page
  .prototype-section
  .prototype-frame {
  align-self: start;
  justify-self: end;
  width: min(100%, 390px);
  margin: 0;
}

body.dude-page .prototype-direction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 14px;
  max-width: 48ch;
}

body.dude-page .prototype-direction__text {
  display: inline;
  min-width: 0;
}

body.dude-page
  .prototype-direction__desktop,
body.dude-page
  .prototype-direction__mobile {
  white-space: nowrap;
}

body.dude-page .prototype-direction__mobile {
  display: none;
}

body.dude-page .prototype-direction__icon {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex: 0 0 auto;
}


@media (max-width: 900px) {
  body.dude-page .prototype-section__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.dude-page
    .prototype-section
    .prototype-frame {
    justify-self: center;
  }

  body.dude-page
    .prototype-direction__desktop {
    display: none;
  }

  body.dude-page
    .prototype-direction__mobile {
    display: inline;
  }

  body.dude-page .prototype-direction__icon {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  body.dude-page .prototype-direction {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  body.dude-page .prototype-direction__icon {
    justify-self: start;
  }
}

body.dark-mode.dude-page h1,
body.dark-mode.dude-page h2,
body.dark-mode.dude-page h3,
body.dark-mode.dude-page .project-kicker,
body.dark-mode.dude-page .eyebrow,
body.dark-mode.dude-page .section-label,
body.dark-mode.dude-page .project-main a:not(.button),
body.dark-mode.dude-page .project-footer a,
body.dark-mode.dude-page .text-link,
body.dark-mode.dude-page .back-link,
body.dark-mode.dude-page .footer-link,
body.dark-mode.dude-page .case-study-footer-link,
body.dark-mode.dude-page .project-main a:not(.button):hover,
body.dark-mode.dude-page .project-main a:not(.button):focus-visible,
body.dark-mode.dude-page .project-footer a:hover,
body.dark-mode.dude-page .project-footer a:focus-visible,
body.dark-mode.dude-page .text-link:hover,
body.dark-mode.dude-page .text-link:focus-visible,
body.dark-mode.dude-page .back-link:hover,
body.dark-mode.dude-page .back-link:focus-visible,
body.dark-mode.dude-page .footer-link:hover,
body.dark-mode.dude-page .footer-link:focus-visible,
body.dark-mode.dude-page .case-study-footer-link:hover,
body.dark-mode.dude-page .case-study-footer-link:focus-visible {
  color: var(--color-heading-dark-mode);
}

.design-system-docs,
.design-system-docs__layout,
.design-system-docs__content,
.design-system-docs__section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.design-system-docs .docs-layout {
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
}

.design-system-docs img,
.design-system-docs svg,
.design-system-docs iframe {
  height: auto;
}

.design-system-docs .compare,
.design-system-docs .panel-preview,
.design-system-docs .screen-grid,
.design-system-docs .icon-inventory {
  max-width: 100%;
  overflow-x: auto;
}

.dude-page .design-system-docs {
  width: 100%;
  max-width: 100%;
}

body.dude-page .design-system-docs,
body.dude-page .design-system-docs__layout,
body.dude-page .design-system-docs .docs-layout,
body.dude-page .design-system-docs .docs-sidebar,
body.dude-page .design-system-docs .docs-panel,
body.dude-page .design-system-docs .docs-nav {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

body.dark-mode .design-system-docs,
body.dark-mode .design-system-docs .docs-layout,
body.dark-mode .design-system-docs .docs-sidebar,
body.dark-mode .design-system-docs .docs-panel,
body.dark-mode .design-system-docs .docs-nav {
  background: var(--background);
  background-image: none;
  color: var(--text);
  box-shadow: none;
}

body.dark-mode .design-system-docs .panel-preview,
body.dark-mode .design-system-docs .token-callout,
body.dark-mode .design-system-docs .product-logo-card,
body.dark-mode .design-system-docs .logo-guidance div,
body.dark-mode .design-system-docs .icon-tile,
body.dark-mode .design-system-docs .brand-board > *,
body.dark-mode .design-system-docs .type-card,
body.dark-mode .design-system-docs .mini-card,
body.dark-mode .design-system-docs .provider,
body.dark-mode .design-system-docs .review,
body.dark-mode .design-system-docs .empty,
body.dark-mode .design-system-docs .form-demo label,
body.dark-mode .design-system-docs .search-demo,
body.dark-mode .design-system-docs .bottom-nav,
body.dark-mode .design-system-docs .sheet,
body.dark-mode .design-system-docs .pattern-flow span,
body.dark-mode .design-system-docs .steps li {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

body.dark-mode .design-system-docs .docs-panel,
body.dark-mode .design-system-docs .docs-sidebar {
  border-color: var(--line);
}

body.dark-mode .design-system-docs .panel-description,
body.dark-mode .design-system-docs .docs-nav-link,
body.dark-mode .design-system-docs .state-sample > span:first-child,
body.dark-mode .design-system-docs .logo-guidance span,
body.dark-mode .design-system-docs .icon-tile span {
  color: var(--muted);
}

body.dark-mode .design-system-docs .docs-panel h2,
body.dark-mode .design-system-docs .nav-group h2,
body.dark-mode .design-system-docs .panel-meta,
body.dark-mode .design-system-docs .docs-nav-link:hover,
body.dark-mode .design-system-docs .docs-nav-link:focus-visible,
body.dark-mode .design-system-docs .docs-nav-link.is-active,
body.dark-mode .design-system-docs .docs-nav-link[aria-current="page"],
body.dark-mode .design-system-docs .logo-guidance b,
body.dark-mode .design-system-docs .icon-tile b {
  color: var(--color-heading-dark-mode);
}

body.dark-mode .design-system-docs .section-select {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

@media (max-width: 980px) {
  .design-system-docs .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.dude-page .site-shell {
    width: calc(100% - var(--section-shell-gutter-mobile));
  }
}

/* Integrated Design System documentation backgrounds */
body.bike-ds-page {
  background: var(--background);
}

body.bike-ds-page .design-system-docs {
  --docs-background: var(--background);
}

body.dude-page .design-system-docs {
  --docs-background: transparent;
}

body.bike-ds-page .design-system-docs,
body.bike-ds-page .design-system-docs__layout,
body.bike-ds-page .design-system-docs__content,
body.bike-ds-page .design-system-docs__section,
body.bike-ds-page .design-system-docs .docs-layout,
body.bike-ds-page .design-system-docs .docs-sidebar,
body.bike-ds-page .design-system-docs .docs-panel,
body.bike-ds-page .design-system-docs .docs-nav,
body.bike-ds-page .design-system-docs .panel-preview,
body.bike-ds-page .design-system-docs .panel-notes,
body.bike-ds-page .design-system-docs .token-callout {
  background: var(--docs-background);
  background-image: none;
  box-shadow: none;
}

body.dude-page .design-system-docs,
body.dude-page .design-system-docs__layout,
body.dude-page .design-system-docs__content,
body.dude-page .design-system-docs__section,
body.dude-page .design-system-docs .docs-layout,
body.dude-page .design-system-docs .docs-sidebar,
body.dude-page .design-system-docs .docs-panel,
body.dude-page .design-system-docs .docs-nav,
body.dude-page .design-system-docs .panel-preview,
body.dude-page .design-system-docs .panel-notes,
body.dude-page .design-system-docs .token-callout {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

body.dark-mode.dude-page .design-system-docs,
body.dark-mode.dude-page .design-system-docs__layout,
body.dark-mode.dude-page .design-system-docs__content,
body.dark-mode.dude-page .design-system-docs__section,
body.dark-mode.dude-page .design-system-docs .docs-layout,
body.dark-mode.dude-page .design-system-docs .docs-sidebar,
body.dark-mode.dude-page .design-system-docs .docs-panel,
body.dark-mode.dude-page .design-system-docs .docs-nav,
body.dark-mode.dude-page .design-system-docs .panel-preview,
body.dark-mode.dude-page .design-system-docs .panel-notes,
body.dark-mode.dude-page .design-system-docs .token-callout {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

/* Responsive hardening for embedded Design System previews */
.design-system-docs,
.design-system-docs__layout,
.design-system-docs__content,
.design-system-docs__section,
.design-system-docs__nav,
.design-system-docs .docs-layout,
.design-system-docs .docs-sidebar,
.design-system-docs .docs-panel,
.design-system-docs .panel-preview,
.design-system-docs .panel-notes,
.design-system-docs .token-callout {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.design-system-docs__layout,
.design-system-docs .docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.design-system-docs .docs-sidebar,
.design-system-docs .docs-panel {
  align-self: start;
}

.design-system-docs .nav-group:first-child {
  padding-top: 0;
}

.design-system-docs__content,
.design-system-docs .docs-panel {
  width: 100%;
  padding-inline: clamp(24px, 4vw, 56px);
}

.design-system-docs .panel-preview {
  width: 100%;
  overflow: visible;
}

.design-system-docs .panel-preview :where(p, span, small, figcaption, code, b, strong, li, h1, h2, h3, label) {
  overflow-wrap: anywhere;
}

.design-system-docs .panel-preview :where(button, .ds-btn, .chip, .badge, .bottom-nav a) {
  overflow-wrap: normal;
  white-space: normal;
}

.design-system-docs .panel-preview__grid,
.design-system-docs .component-state-grid,
.design-system-docs .button-state-grid,
.design-system-docs .chip-state-grid,
.design-system-docs .state-demo,
.design-system-docs .card-grid,
.design-system-docs .brand-board,
.design-system-docs .swatches,
.design-system-docs .gradient-grid,
.design-system-docs .radius-grid,
.design-system-docs .shadow-grid,
.design-system-docs .state-grid,
.design-system-docs .type-spec,
.design-system-docs .logo-guidance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

.design-system-docs .state-sample,
.design-system-docs .state-sample > *,
.design-system-docs .form-demo label,
.design-system-docs .search-demo,
.design-system-docs .price-card,
.design-system-docs .booking-card,
.design-system-docs .empty,
.design-system-docs .provider,
.design-system-docs .mini-card,
.design-system-docs .review {
  min-width: 0;
  max-width: 100%;
}

.design-system-docs .search-demo {
  flex-wrap: wrap;
}

.design-system-docs .search-demo > span {
  min-width: min(100%, 12rem);
}

.design-system-docs .button-stack,
.design-system-docs .chips,
.design-system-docs .badges,
.design-system-docs .form-demo,
.design-system-docs .logo-row {
  width: 100%;
  max-width: 100%;
}

.design-system-docs img,
.design-system-docs svg,
.design-system-docs iframe,
.design-system-docs canvas {
  max-width: 100%;
  height: auto;
}

.design-system-docs .docs-table-wrap,
.design-system-docs .wide-example-wrap,
.design-system-docs .compare {
  max-width: 100%;
  overflow-x: auto;
}

.design-system-docs .screen-grid,
.design-system-docs .icon-inventory {
  overflow-x: visible;
}

@media (max-width: 980px) {
  .design-system-docs__layout,
  .design-system-docs .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-system-docs__content,
  .design-system-docs .docs-panel {
    padding-inline: clamp(16px, 4vw, 32px);
  }
}

/* Shared case-study typography alignment with homepage editorial styles. */
.project-subtitle,
.project-intro {
  line-height: 36px;
}

body.dark-mode .case-study-hero h1,
body.dark-mode .case-study-section h2,
body.dark-mode .case-study-section h3 {
  color: #FFFFFF;
}

body.dark-mode .project-subtitle,
body.dark-mode .project-intro,
body.dark-mode .case-study-section p,
body.dark-mode .case-study-section li,
body.dark-mode .section-note,
body.dark-mode .placeholder-message,
body.dark-mode .summary-item dd,
body.dark-mode .screenshot-figure figcaption,
body.dark-mode .theme-grid p {
  color: #B7C0CE;
}

body.dark-mode .project-kicker,
body.dark-mode .section-label,
body.dark-mode .case-study .section-eyebrow,
body.dark-mode .case-study .eyebrow,
body.dark-mode .summary-item dt {
  color: #B9D3E5;
}

@media (max-width: 640px) {
  .project-subtitle,
  .project-intro {
    font-size: 19px;
    line-height: 30px;
  }
}

/* Financial Services Platform dark-mode claret accent override. */
body.financial-services-page.dark-mode {
  --brand: #FFFFFF;
  --brand-dark: #FFFFFF;
  --brand-claret: #FFFFFF;
  --focus-outline-color: #FFFFFF;
}

body.financial-services-page.dark-mode .site-header,
body.financial-services-page.dark-mode .site-header a,
body.financial-services-page.dark-mode .site-header button,
body.financial-services-page.dark-mode .site-header svg,
body.financial-services-page.dark-mode .site-header svg path,
body.financial-services-page.dark-mode .site-header .menu-icon line,
body.financial-services-page.dark-mode .site-header a:hover,
body.financial-services-page.dark-mode .site-header a:focus-visible,
body.financial-services-page.dark-mode .site-header button:hover,
body.financial-services-page.dark-mode .site-header button:focus-visible,
body.financial-services-page.dark-mode .site-header .dropdown-menu a:hover,
body.financial-services-page.dark-mode .site-header .dropdown-menu a:focus-visible,
body.financial-services-page.dark-mode .site-header .dropdown-social-links a:hover,
body.financial-services-page.dark-mode .site-header .dropdown-social-links a:focus-visible {
  color: #FFFFFF;
}

body.financial-services-page.dark-mode .site-header a:hover,
body.financial-services-page.dark-mode .site-header a:focus-visible,
body.financial-services-page.dark-mode .site-header .dropdown-menu a:hover,
body.financial-services-page.dark-mode .site-header .dropdown-menu a:focus-visible,
body.financial-services-page.dark-mode .site-header .dropdown-social-links a:hover,
body.financial-services-page.dark-mode .site-header .dropdown-social-links a:focus-visible {
  text-decoration-color: #FFFFFF;
}

body.financial-services-page.dark-mode .text-link,
body.financial-services-page.dark-mode .back-link,
body.financial-services-page.dark-mode .footer-link,
body.financial-services-page.dark-mode .case-study-footer-link,
body.financial-services-page.dark-mode .project-main a:not(.button),
body.financial-services-page.dark-mode .project-footer a {
  color: #FFFFFF;
}

body.financial-services-page.dark-mode .text-link:hover,
body.financial-services-page.dark-mode .text-link:focus-visible,
body.financial-services-page.dark-mode .back-link:hover,
body.financial-services-page.dark-mode .back-link:focus-visible,
body.financial-services-page.dark-mode .footer-link:hover,
body.financial-services-page.dark-mode .footer-link:focus-visible,
body.financial-services-page.dark-mode .case-study-footer-link:hover,
body.financial-services-page.dark-mode .case-study-footer-link:focus-visible,
body.financial-services-page.dark-mode .project-main a:not(.button):hover,
body.financial-services-page.dark-mode .project-main a:not(.button):focus-visible,
body.financial-services-page.dark-mode .project-footer a:hover,
body.financial-services-page.dark-mode .project-footer a:focus-visible {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

body.financial-services-page.dark-mode .approach-list li::before,
body.financial-services-page.dark-mode .feature-list li::before {
  background: #FFFFFF;
}

body.financial-services-page.dark-mode .process-list li::marker {
  color: #FFFFFF;
}

body.financial-services-page.dark-mode .stat-grid strong {
  color: #FFFFFF;
}

body.financial-services-page.dark-mode .button-primary,
body.financial-services-page.dark-mode .button-secondary {
  background: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

body.financial-services-page.dark-mode .button-primary:hover,
body.financial-services-page.dark-mode .button-primary:focus-visible,
body.financial-services-page.dark-mode .button-secondary:hover,
body.financial-services-page.dark-mode .button-secondary:focus-visible {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #111827;
}

body.financial-services-page.dark-mode :where(a, button):focus-visible {
  outline-color: #FFFFFF;
}

/* ChartStudio dark-mode claret accent override. */
body.chartstudio-page.dark-mode {
  --brand: #FFFFFF;
  --brand-dark: #FFFFFF;
  --brand-claret: #FFFFFF;
  --focus-outline-color: #FFFFFF;
}

body.chartstudio-page.dark-mode .site-header,
body.chartstudio-page.dark-mode .site-header a,
body.chartstudio-page.dark-mode .site-header button,
body.chartstudio-page.dark-mode .site-header svg,
body.chartstudio-page.dark-mode .site-header svg path,
body.chartstudio-page.dark-mode .site-header .menu-icon line,
body.chartstudio-page.dark-mode .site-header a:hover,
body.chartstudio-page.dark-mode .site-header a:focus-visible,
body.chartstudio-page.dark-mode .site-header button:hover,
body.chartstudio-page.dark-mode .site-header button:focus-visible,
body.chartstudio-page.dark-mode .site-header .dropdown-menu a:hover,
body.chartstudio-page.dark-mode .site-header .dropdown-menu a:focus-visible,
body.chartstudio-page.dark-mode .site-header .dropdown-social-links a:hover,
body.chartstudio-page.dark-mode .site-header .dropdown-social-links a:focus-visible {
  color: #FFFFFF;
}

body.chartstudio-page.dark-mode .site-header a:hover,
body.chartstudio-page.dark-mode .site-header a:focus-visible,
body.chartstudio-page.dark-mode .site-header .dropdown-menu a:hover,
body.chartstudio-page.dark-mode .site-header .dropdown-menu a:focus-visible,
body.chartstudio-page.dark-mode .site-header .dropdown-social-links a:hover,
body.chartstudio-page.dark-mode .site-header .dropdown-social-links a:focus-visible {
  text-decoration-color: #FFFFFF;
}

body.chartstudio-page.dark-mode .text-link,
body.chartstudio-page.dark-mode .back-link,
body.chartstudio-page.dark-mode .footer-link,
body.chartstudio-page.dark-mode .case-study-footer-link,
body.chartstudio-page.dark-mode .project-main a:not(.button),
body.chartstudio-page.dark-mode .project-footer a {
  color: #FFFFFF;
}

body.chartstudio-page.dark-mode .text-link:hover,
body.chartstudio-page.dark-mode .text-link:focus-visible,
body.chartstudio-page.dark-mode .back-link:hover,
body.chartstudio-page.dark-mode .back-link:focus-visible,
body.chartstudio-page.dark-mode .footer-link:hover,
body.chartstudio-page.dark-mode .footer-link:focus-visible,
body.chartstudio-page.dark-mode .case-study-footer-link:hover,
body.chartstudio-page.dark-mode .case-study-footer-link:focus-visible,
body.chartstudio-page.dark-mode .project-main a:not(.button):hover,
body.chartstudio-page.dark-mode .project-main a:not(.button):focus-visible,
body.chartstudio-page.dark-mode .project-footer a:hover,
body.chartstudio-page.dark-mode .project-footer a:focus-visible {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

body.chartstudio-page.dark-mode .approach-list li::before,
body.chartstudio-page.dark-mode .feature-list li::before {
  background: #FFFFFF;
}

body.chartstudio-page.dark-mode .process-list li::marker {
  color: #FFFFFF;
}

body.chartstudio-page.dark-mode .stat-grid strong {
  color: #FFFFFF;
}

body.chartstudio-page.dark-mode .button-primary,
body.chartstudio-page.dark-mode .button-secondary {
  background: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

body.chartstudio-page.dark-mode .button-primary:hover,
body.chartstudio-page.dark-mode .button-primary:focus-visible,
body.chartstudio-page.dark-mode .button-secondary:hover,
body.chartstudio-page.dark-mode .button-secondary:focus-visible {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #111827;
}

body.chartstudio-page.dark-mode :where(a, button):focus-visible {
  outline-color: #FFFFFF;
}

/* Financial Services Platform alignment with the shared header shell. */
body.financial-services-page .site-shell {
  width: min(
    var(--section-shell-max),
    calc(100% - var(--section-shell-gutter))
  );
  max-width: none;
  margin-inline: auto;
}

body.financial-services-page .project-context {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 0;
  text-align: left;
}

body.financial-services-page .project-context .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  position: static;
  left: auto;
  transform: none;
}

body.financial-services-page .project-context .back-link::before {
  position: static;
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
}

body.financial-services-page .case-study,
body.financial-services-page .case-study-hero,
body.financial-services-page .case-study-section {
  margin-left: 0;
  margin-right: 0;
}

body.financial-services-page .project-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 0 56px;
  text-align: left;
}

body.financial-services-page .case-study-footer-link {
  margin: 0;
  padding: 0;
  position: static;
  transform: none;
}

body.financial-services-page .case-study,
body.financial-services-page .case-study-section,
body.financial-services-page .summary-grid {
  width: 100%;
  max-width: none;
}

@media (max-width: 640px) {
  body.financial-services-page .site-shell {
    width: calc(100% - var(--section-shell-gutter-mobile));
  }
}

/* ChartStudio alignment with the shared header shell. */
body.chartstudio-page .site-shell {
  width: min(
    var(--section-shell-max),
    calc(100% - var(--section-shell-gutter))
  );
  max-width: none;
  margin-inline: auto;
}

body.chartstudio-page .case-study {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.chartstudio-page .project-context,
body.chartstudio-page .project-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

body.chartstudio-page .project-context {
  padding-top: 24px;
  padding-bottom: 24px;
}

body.chartstudio-page .project-footer {
  padding-top: 40px;
  padding-bottom: 56px;
}

body.chartstudio-page .project-context .back-link,
body.chartstudio-page .project-footer .case-study-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  position: static;
  left: auto;
  transform: none;
}

body.chartstudio-page .back-link::before,
body.chartstudio-page .case-study-footer-link::before {
  position: static;
  flex: 0 0 auto;
}

body.chartstudio-page .case-study-hero,
body.chartstudio-page .case-study-section,
body.chartstudio-page .case-study-section__layout,
body.chartstudio-page .summary-grid {
  width: 100%;
}

@media (max-width: 640px) {
  body.chartstudio-page .site-shell {
    width: calc(100% - var(--section-shell-gutter-mobile));
  }
}

/* Dude design system panel title alignment */
.dude-page .design-system-docs #panel-title {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.055em;
  color: #17202A;
}

body.dark-mode.dude-page .design-system-docs #panel-title {
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .dude-page .design-system-docs #panel-title {
    font-size: clamp(32px, 10vw, 40px);
  }
}

/* Dude design-system docs sidebar scroll behavior */
@media (min-width: 981px) {
  .dude-page .design-system-docs .docs-sidebar {
    position: sticky;
    top: 112px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
}

@media (max-width: 980px) {
  .dude-page .design-system-docs .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
