/* Use the published shell without the old visualization toolbar. */
#jai-depth-proposal { padding-top: 112px; }
#jai-depth-proposal > .jaf-navigation { --b-header-h: 90px; }
#jai-depth-proposal .jaf-navigation .jaf-case-language-note { display: none; }
#jai-depth-proposal .jaf-navigation .header { font-family: 'DM Sans', Arial, sans-serif; }
#jai-depth-proposal .jaf-navigation .wordmark { cursor: pointer; }
#jai-depth-proposal .jaf-navigation p { font-family: 'DM Sans', Arial, sans-serif; }
#jai-depth-proposal .jaf-footer { margin-top: 36px; }
#jai-depth-proposal .pd-full, #jai-depth-proposal .pd-story { min-width: 0; }
#jai-depth-proposal .pd-toc,
#jai-depth-proposal .pd-enterprise .pd-toc,
#jai-depth-proposal .pd-view-star .star-story-layout > .star-toc {
  position: sticky; top: 108px; max-height: calc(100svh - 128px); overflow-y: auto;
}
#jai-depth-proposal .pd-chapter,
#jai-depth-proposal .pd-enterprise .pd-chapter,
#jai-depth-proposal .pd-main,
#jai-depth-proposal .star-section { scroll-margin-top: 128px; }
#jai-depth-proposal .pd-detail summary span { transition: rotate .18s ease; }
#jai-depth-proposal .pd-detail[open] summary span { rotate: 45deg; }
body.menu-open { overflow: hidden; }
@media(max-width:1099px) {
  #jai-depth-proposal .pd-full, #jai-depth-proposal .pd-enterprise .pd-full { grid-template-columns: minmax(0, 1fr); }
  #jai-depth-proposal .pd-toc, #jai-depth-proposal .pd-enterprise .pd-toc {
    position: sticky; top: 94px; z-index: 8; display: flex; flex-wrap: nowrap;
    gap: 6px; width: 100%; min-width: 0; max-width: 100%; max-height: none;
    padding: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    border: 1px solid #c7c7b9; border-radius: 14px; background: #f7f7f2f5;
    backdrop-filter: blur(16px); scrollbar-width: thin;
  }
  #jai-depth-proposal .pd-toc a, #jai-depth-proposal .pd-enterprise .pd-toc a {
    flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center;
    padding: 10px 12px; border-radius: 9px; font-size: 13px; line-height: 1.4;
  }
  #jai-depth-proposal .pd-toc a[aria-current=location] { background: #171715; color: #f7f7f2; }
  #jai-depth-proposal .pd-chapter, #jai-depth-proposal .pd-enterprise .pd-chapter { scroll-margin-top: 186px; }
}
@media(max-width:640px) {
  #jai-depth-proposal { padding-top: 90px; }
  #jai-depth-proposal > .jaf-navigation { --b-header-h: 74px; }
  #jai-depth-proposal .pd-toc, #jai-depth-proposal .pd-enterprise .pd-toc,
  #jai-depth-proposal .pd-view-star .star-story-layout > .star-toc { top: 82px; }
  #jai-depth-proposal .pd-chapter, #jai-depth-proposal .pd-enterprise .pd-chapter,
  #jai-depth-proposal .star-section { scroll-margin-top: 174px; }
  #jai-depth-proposal .jaf-footer .jaf-footer-inner { width: calc(100% - 36px); }
}
@media(prefers-reduced-motion:reduce) { #jai-depth-proposal .pd-detail summary span { transition: none; } }

/* L3 uses the same canvas, content width and components as home and L2. */
html:root { background: #f7f7f2 !important; }
#jai-depth-proposal { max-width: none; padding: 90px 0 0; background: #f7f7f2; }
#jai-depth-proposal .pd-product { border: 0; border-radius: 0; overflow: visible; }
#jai-depth-proposal .pd-main { width: min(1100px, calc(100% - 120px)); margin: 0 auto; padding: 34px 0 64px; }
#jai-depth-proposal .pd-depth-review { gap: 8px; margin-bottom: 34px; font-size: 12px; }
#jai-depth-proposal .pd-depth-review > span { margin-right: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
#jai-depth-proposal .pd-depth-review a { min-height: 38px; padding: 8px 16px; border-color: #c7c7b9; font-weight: 500; }
#jai-depth-proposal .pd-crumb { margin-bottom: 28px; font-size: 12px; line-height: 1.5; }
#jai-depth-proposal .pd-tag { padding: 8px 12px; margin-bottom: 22px; border: 1px solid #b7b7aa; border-radius: 7px; background: #e6e6dc; color: #23231e; font-size: 12px; line-height: 1.35; font-weight: 600; }
#jai-depth-proposal .pd-case-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: start; margin-bottom: 38px; }
#jai-depth-proposal .pd-product .pd-case-heading h1 { max-width: 760px; font-size: clamp(40px, 4.5vw, 58px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; margin: 0 0 24px; }
#jai-depth-proposal .pd-case-heading h1 em { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
#jai-depth-proposal .pd-case-heading .pd-intro { max-width: 68ch; margin: 0; color: #51514a; font-size: 17px; line-height: 1.8; }
#jai-depth-proposal .pd-product .b-pill-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 46px; padding: 11px 20px; border: 1.5px solid #171715; border-radius: 999px; background: #171715; color: #fff; font-size: 14px; font-weight: 550; line-height: 1.4; text-align: center; text-decoration: none; transition: background .18s, color .18s; }
#jai-depth-proposal .pd-product .b-pill-button:hover { background: transparent; color: #171715; }
#jai-depth-proposal .pd-figma-link { margin-top: 8px; white-space: nowrap; }
#jai-depth-proposal .b-arrow { width: 19px; height: 19px; flex: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#jai-depth-proposal .pd-product .b-case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; padding: 23px 0; border: 1.5px solid #20201d; border-radius: 12px; margin: 30px 0 0; }
#jai-depth-proposal .b-case-meta > div { padding: 0 24px; border-right: 1px solid #a9a99e; }
#jai-depth-proposal .b-case-meta > div:last-child { border: 0; }
#jai-depth-proposal .b-case-meta dt { font-size: 11px; line-height: 1.5; color: #51514b; margin-bottom: 9px; }
#jai-depth-proposal .b-case-meta dd { font-size: 13px; line-height: 1.5; margin: 0; color: #171715; }
#jai-depth-proposal .star-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 20px; }
#jai-depth-proposal .star-skills > span { font-size: 12.5px; line-height: 1.4; padding: 8px 11px; border: 1px solid #b6b6ac; border-radius: 50px; color: #41413c; }
#jai-depth-proposal .pd-product .pd-collaboration { max-width: none; margin: 0; color: #595951; font-size: 13px; line-height: 1.7; }
#jai-depth-proposal .pd-enterprise .pd-full { grid-template-columns: 176px minmax(0, 1fr); gap: 64px; margin-top: 64px; }
#jai-depth-proposal .pd-product .pd-toc { border-top: 1.5px solid #171715; padding-top: 16px; gap: 5px; }
#jai-depth-proposal .pd-toc-label { margin: 0 10px 12px; font-size: 10px; font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: .09em; color: #64645a; }
#jai-depth-proposal .pd-product .pd-toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px 10px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; line-height: 1.45; color: #5a5a50; text-decoration: none; }
#jai-depth-proposal .pd-toc .pd-toc-number { font-size: 11px; font-variant-numeric: tabular-nums; color: inherit; }
#jai-depth-proposal .pd-product .pd-toc a:hover { background: #e9e9df; color: #171715; }
#jai-depth-proposal .pd-product .pd-toc a[aria-current=location] { background: #171715; color: #fff; font-weight: 500; }
#jai-depth-proposal .pd-enterprise .pd-chapter { padding: 44px 0 52px; }
#jai-depth-proposal .pd-enterprise .pd-chapter:first-child { padding-top: 0; }
#jai-depth-proposal .pd-chapter-heading { grid-column: 1; grid-row: 1; }
#jai-depth-proposal .pd-chapter-label { display: inline-flex; align-items: center; gap: 11px; width: fit-content; margin: 0 0 20px; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; text-decoration: none; color: #5c5c52; }
#jai-depth-proposal .pd-chapter-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b8b8aa; border-radius: 8px; color: #171715; background: #e8e8de; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
#jai-depth-proposal .pd-product .pd-enterprise .pd-split h2 { max-width: 24ch; font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.17; letter-spacing: -.035em; }
#jai-depth-proposal .pd-product .pd-enterprise .pd-copy { max-width: 66ch; font-size: 16px; line-height: 1.85; color: #51514a; }
#jai-depth-proposal .pd-product .pd-decision { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 17px; max-width: none; margin: 30px 0; padding: 24px; border: 1px solid #d0d0c3; border-radius: 14px; background: #eaeae0; }
#jai-depth-proposal .pd-decision-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #20201b; color: #fff; }
#jai-depth-proposal .pd-decision-symbol svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#jai-depth-proposal .pd-component-label { display: block; margin: 1px 0 11px; color: #626257; font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
#jai-depth-proposal .pd-product .pd-decision h3 { margin: 0 0 10px; color: #262620; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
#jai-depth-proposal .pd-product .pd-decision p { font-size: 15px; line-height: 1.8; color: #4c4c43; }
#jai-depth-proposal .pd-product .pd-detail { padding: 0; margin: 28px 0 0; border: 1px solid #c8c8bb; border-radius: 12px; background: #fff; overflow: hidden; }
#jai-depth-proposal .pd-product .pd-detail > summary { gap: 22px; min-height: 74px; padding: 18px 22px; font-size: 16px; font-weight: 550; line-height: 1.5; cursor: pointer; transition: background .18s; }
#jai-depth-proposal .pd-product .pd-detail > summary:hover { background: #f0f0e8; }
#jai-depth-proposal .pd-product .pd-detail > summary::after { display: none; content: none; }
#jai-depth-proposal .pd-detail-toggle { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid #c8c8bb; border-radius: 50%; background: #f4f4ed; }
#jai-depth-proposal .pd-detail-toggle svg { width: 18px; height: 18px; stroke: #34342d; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#jai-depth-proposal .pd-product .pd-detail[open] .pd-detail-toggle { rotate: 180deg; background: #e7e7dc; }
#jai-depth-proposal .pd-product .pd-detail > div { max-width: none; padding: 22px; border-top: 1px solid #deded2; font-size: 15px; line-height: 1.85; }
#jai-depth-proposal .pd-product .pd-detail > div p:last-child { margin-bottom: 0; }
#jai-depth-proposal .pd-product .pd-figure { margin: 32px 0; padding: 0; overflow: hidden; border: 1px solid #d0d0c4; border-radius: 16px; background: #fff; }
#jai-depth-proposal .pd-product .pd-figure > button { display: block; padding: 0; border-radius: 0; width: 100%; }
#jai-depth-proposal .pd-product .pd-figure img { border-radius: 0; }
#jai-depth-proposal .pd-product .pd-figure figcaption { max-width: none; padding: 16px 20px; margin: 0; border-top: 1px solid #deded2; font-size: 13px; line-height: 1.65; color: #5a5a51; }
#jai-depth-proposal .pd-product .pd-sources { padding: 28px; margin-top: 28px; border: 1px solid #d0d0c4; border-radius: 16px; background: #edede3; }
#jai-depth-proposal .pd-product .pd-sources h3 { font-size: 20px; font-weight: 550; }
#jai-depth-proposal .pd-product .pd-sources a { border-bottom: 1px solid #d1d1c4; padding: 12px 0; }
#jai-depth-proposal .pd-product .pd-sources .pd-note { margin-bottom: 0; font-size: 13px; line-height: 1.8; }
#jai-depth-proposal .pd-chapter:focus { outline: none; }
#jai-depth-proposal .pd-chapter:focus-visible { outline: 2px solid #171715; outline-offset: 8px; }
#jai-depth-proposal .pd-product .pd-detail > summary:focus-visible { outline-offset: -4px; border-radius: 12px; }
@media(max-width:1099px) {
  #jai-depth-proposal .pd-enterprise .pd-full { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; }
  #jai-depth-proposal .pd-product .pd-toc { border: 1px solid #c7c7b9; padding: 7px; }
  #jai-depth-proposal .pd-toc-label { display: none; }
  #jai-depth-proposal .pd-product .pd-toc a { display: inline-flex; min-height: 44px; gap: 8px; padding: 9px 12px; white-space: nowrap; }
  #jai-depth-proposal .pd-enterprise .pd-chapter:first-child { padding-top: 12px; }
}
@media(max-width:900px) {
  #jai-depth-proposal .pd-main { width: calc(100% - 64px); }
  #jai-depth-proposal .pd-case-heading { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #jai-depth-proposal .pd-figma-link { justify-self: start; margin: 0; }
  #jai-depth-proposal .b-case-meta > div { padding-inline: 17px; }
}
@media(max-width:700px) {
  #jai-depth-proposal .pd-product .b-case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  #jai-depth-proposal .b-case-meta > div:nth-child(2) { border: 0; }
}
@media(max-width:640px) {
  #jai-depth-proposal { padding-top: 74px; }
  #jai-depth-proposal .pd-main { width: calc(100% - 40px); padding: 24px 0 44px; }
  #jai-depth-proposal .pd-depth-review { margin-bottom: 28px; gap: 6px; }
  #jai-depth-proposal .pd-depth-review a { min-height: 44px; padding: 8px 12px; }
  #jai-depth-proposal .pd-depth-review > span { font-size: 9px; }
  #jai-depth-proposal .pd-crumb { gap: 7px; font-size: 11px; }
  #jai-depth-proposal .pd-product .pd-case-heading h1 { font-size: 39px; margin-bottom: 22px; }
  #jai-depth-proposal .pd-case-heading .pd-intro { font-size: 16px; line-height: 1.8; }
  #jai-depth-proposal .pd-case-heading { margin-bottom: 28px; }
  #jai-depth-proposal .pd-product .b-case-meta { margin-top: 24px; padding-block: 22px; }
  #jai-depth-proposal .b-case-meta > div { padding-inline: 15px; }
  #jai-depth-proposal .b-case-meta dd { font-size: 12px; }
  #jai-depth-proposal .star-skills { gap: 7px; }
  #jai-depth-proposal .star-skills > span { font-size: 12px; padding: 8px 10px; }
  #jai-depth-proposal .pd-enterprise .pd-full { margin-top: 36px; }
  #jai-depth-proposal .pd-product .pd-enterprise .pd-split h2 { font-size: 31px; }
  #jai-depth-proposal .pd-enterprise .pd-chapter { padding: 32px 0 38px; }
  #jai-depth-proposal .pd-product .pd-decision { grid-template-columns: 28px minmax(0, 1fr); gap: 13px; padding: 20px 17px; margin: 25px 0; }
  #jai-depth-proposal .pd-decision-symbol { width: 28px; height: 28px; }
  #jai-depth-proposal .pd-decision-symbol svg { width: 17px; height: 17px; }
  #jai-depth-proposal .pd-product .pd-decision h3 { font-size: 19px; }
  #jai-depth-proposal .pd-product .pd-decision p { font-size: 15px; }
  #jai-depth-proposal .pd-product .pd-detail > summary { padding: 16px; gap: 15px; font-size: 15px; }
  #jai-depth-proposal .pd-product .pd-detail > div { padding: 18px; }
  #jai-depth-proposal .pd-product .pd-figure figcaption { padding: 14px 16px; }
  #jai-depth-proposal .pd-product .pd-sources { padding: 22px 18px; }
}
@media(prefers-reduced-motion:reduce) { #jai-depth-proposal .pd-product .b-pill-button, #jai-depth-proposal .pd-product .pd-detail > summary { transition: none; } }

/* The explanation and the product are visible together in every L3 preview. */
#jai-depth-proposal .pd-view-star .star-task > .pd-figure { grid-column: 1 / -1; margin: 12px 0 0; }
#jai-depth-proposal .pd-view-star .star-section > .pd-figure img { max-height: 640px; object-fit: contain; background: #eaeae1; }
#jai-depth-proposal .pd-main { padding-top: 24px; }
#jai-depth-proposal .pd-depth-review { margin-bottom: 22px; }
#jai-depth-proposal .pd-crumb { margin-bottom: 20px; }
#jai-depth-proposal .pd-case-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 44px; margin-bottom: 32px; }
#jai-depth-proposal .pd-case-hero-split > .pd-case-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; margin: 0; }
#jai-depth-proposal .pd-product .pd-case-hero-split h1 { font-size: clamp(35px, 3.6vw, 47px); line-height: 1.1; margin-bottom: 22px; }
#jai-depth-proposal .pd-case-hero-split .pd-intro { font-size: 16px; line-height: 1.8; }
#jai-depth-proposal .pd-case-hero-split .pd-figma-link { margin-top: 0; }
#jai-depth-proposal .pd-product .pd-case-hero-split > .pd-figure { min-width: 0; width: 100%; margin: 0; align-self: stretch; display: flex; flex-direction: column; }
#jai-depth-proposal .pd-product .pd-case-hero-split .pd-zoom { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 360px; background: #eaeae1; }
#jai-depth-proposal .pd-product .pd-case-hero-split img { width: 100%; height: auto; max-height: 440px; object-fit: contain; }
#jai-depth-proposal .pd-product .pd-case-hero-split figcaption { flex: none; padding: 12px 16px; font-size: 12px; }
#jai-depth-proposal .pd-enterprise .pd-full { margin-top: 48px; }
@media(max-width:850px) {
  #jai-depth-proposal .pd-case-hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #jai-depth-proposal .pd-product .pd-case-hero-split .pd-zoom { min-height: 0; }
  #jai-depth-proposal .pd-product .pd-case-hero-split img { max-height: 440px; }
}
@media(max-width:640px) {
  #jai-depth-proposal .pd-product .pd-case-hero-split h1 { font-size: 38px; }
  #jai-depth-proposal .pd-case-hero-split { gap: 25px; margin-bottom: 24px; }
  #jai-depth-proposal .pd-enterprise .pd-full { margin-top: 32px; }
}

#jai-depth-proposal .pd-product .pd-case-heading .pd-intro{margin:0}

/* Product artwork keeps its own ratio; no empty frame above or below it. */
#jai-depth-proposal .pd-product .pd-case-hero-split > .pd-figure{align-self:center}
#jai-depth-proposal .pd-product .pd-case-hero-split .pd-zoom{display:block;flex:none;min-height:0;background:transparent;line-height:0}
#jai-depth-proposal .pd-product .pd-case-hero-split img[data-asset]{display:block;width:100%;height:auto;max-height:none}
#jai-depth-proposal .pd-product .pd-figma-link .pd-figma-logo{display:block;flex:none;width:15px;height:22px;max-height:none;margin:0;border:0;object-fit:contain;background:transparent}
