/* Building footprints case study: page-only styles. Shared nav/footer come from ../project-shell.css, typography from ../site-typography.css. Every visible label is at least 12px. */
*{box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth}
body{margin:0;color:#25434e;line-height:1.75;background:linear-gradient(180deg,#D4EEF3 0%,#DAF0EA 20%,#E8EDDF 42%,#F0ECE2 64%,#F5F0E8 84%,#EDE6DA 100%);overflow-x:hidden}
a{color:#2B6A7C}

/* Hero */
.hero{position:relative;isolation:isolate;overflow:hidden;background:#1f5560 url('hero.svg') center/cover no-repeat;color:#fff;padding:3.2rem 2rem 2.8rem;text-align:center}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(160deg,#123440e0,#18404cd1 45%,#204c58c7)}
.hero .tag{font-size:12px;font-weight:600;letter-spacing:2px;color:#A8E0D0;text-transform:uppercase}
.hero h1{font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.3;margin:.5rem auto .7rem;max-width:860px;text-shadow:0 2px 18px #0004}
.hero p{max-width:680px;margin:0 auto;color:#fffffff0;font-size:clamp(15px,1.6vw,17px);line-height:1.75}
.hero .chips{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-top:1.3rem}
.hero .chips span{font-size:13px;border:1px solid #ffffff4d;padding:.3rem .8rem;border-radius:20px;line-height:1.5}

/* NDA badge, shown once */
.case-story .bf-nda{display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;padding:5px 12px;border:1px solid #b9d3cc;border-radius:999px;background:#ffffffb3;color:#3c5f66;font-size:13px;line-height:1.5;text-align:left}
.case-story .bf-nda::before{content:"";width:8px;height:8px;border-radius:50%;background:#c9853a;flex-shrink:0}

/* Flow diagram (HTML so labels stay readable on phones) */
.bf-flow-wrap{max-width:1100px;margin:30px auto 8px}
.case-story ol.bf-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;list-style:none;margin:0!important;padding:0!important;counter-reset:none}
.case-story ol.bf-flow>li{position:relative;min-width:0;margin:0;padding:16px 14px 15px;background:#ffffffc7;border:1px solid #cfdfdc;border-radius:12px;font-size:14px;line-height:1.6;text-align:left!important}
.case-story ol.bf-flow>li::after{content:"→";position:absolute;right:-13px;top:50%;transform:translateY(-50%);width:12px;text-align:center;font-size:15px;line-height:1;color:#2b6a7c;z-index:1}
.case-story ol.bf-flow>li:last-child::after{display:none}
.bf-flow .bf-step{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;color:#2b6a7c;margin-bottom:6px}
.bf-flow strong{display:block;font-size:16px;line-height:1.45;color:#21414a;margin-bottom:5px}
.bf-flow .bf-sub{display:block;font-size:13px;line-height:1.6;color:#536b73}
.case-story ol.bf-flow>li.bf-flow-end{background:#2b6a7c;border-color:#2b6a7c}
.bf-flow .bf-flow-end strong{color:#fff}
.bf-flow .bf-flow-end .bf-step{color:#bfeadd}
.bf-flow .bf-flow-end .bf-sub{color:#e6f5f0}
.bf-flow-wrap figcaption,.bf-mock-wrap figcaption{max-width:760px;margin:12px auto 0;font-size:14px;line-height:1.75;color:#536b73}

/* Review page mock */
.bf-mock-wrap{max-width:1040px;margin:30px auto 8px}
.bf-gui{border:1px solid #9cb8b1;border-radius:12px;overflow:hidden;box-shadow:0 22px 55px #214e4c22;background:#fff;color:#2c4546;line-height:1.5;text-align:left}
.bf-gui *{box-sizing:border-box}
.bf-gui p,.bf-gui dd,.bf-gui dt{margin:0;padding:0}
.bf-gui dl{margin:0}
.bf-titlebar{display:flex;align-items:center;gap:10px;background:#193f3e;color:#f1faf7;padding:11px 18px;min-height:50px}
.bf-titlebar strong{font-size:14px;font-weight:600}
.bf-appmark{border:1px solid #76ab9e;background:#32635b;width:26px;height:26px;display:grid;place-items:center;border-radius:6px;font-size:14px;font-weight:700;flex-shrink:0}
.bf-badge{margin-left:auto;background:#285551;border:1px solid #548b80;color:#ddf3ed;border-radius:20px;padding:3px 10px;font-size:12px;white-space:nowrap}
.bf-casebar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;padding:12px 18px;background:#f7faf9;border-bottom:1px solid #dbe6e1}
.bf-casebar .bf-permit{font-size:16px;font-weight:700;color:#21414a;margin-right:4px}
.bf-pill{font-size:12px;padding:3px 9px;border-radius:14px;border:1px solid #cee5db;background:#edf7f1;color:#286653;white-space:nowrap}
.bf-pill.bf-mid{border-color:#efd3a6;background:#fdf3e2;color:#8a5a14}
.bf-panes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px 18px 6px}
.bf-pane{min-width:0;border:1px solid #dfe8e3;border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.bf-panehead{display:flex;align-items:center;min-height:44px;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;padding:8px 12px;border-bottom:1px solid #e3ebe7;background:#fbfdfc}
.bf-panehead strong{font-size:13px;font-weight:600;color:#365a51}
.bf-legend{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#5b706a}
.bf-legend i{display:inline-block;width:14px;height:10px;border:2px solid #d2402f;border-radius:1px}
.bf-tools{display:flex;flex-wrap:wrap;gap:5px}
.bf-tools span{font-size:12px;padding:2px 8px;border:1px solid #c8d8d1;border-radius:5px;background:#fff;color:#3e655b;white-space:nowrap}
.bf-tools span.bf-on{background:#24786a;border-color:#24786a;color:#fff}
.bf-pane svg{display:block;width:100%;height:auto}
.bf-pane svg text{font-family:'jf-openhuninn',system-ui,sans-serif}
.bf-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:12px 18px 14px}
.bf-fields>div{min-width:0;padding:8px 10px;border:1px solid #e1eae5;border-radius:6px;background:#f6f9f7}
.bf-fields dt{font-size:12px;color:#5c726c;line-height:1.4}
.bf-fields dd{font-size:14px;color:#21414a;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.bf-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:10px 18px;background:#f7faf8;border-top:1px solid #dbe5df;font-size:12px;color:#5b7469}
.bf-saved{display:inline-flex;align-items:center;gap:7px}
.bf-saved::before{content:"";width:7px;height:7px;border-radius:50%;background:#479a7b}
.bf-actions{display:flex;flex-wrap:wrap;gap:6px}
.bf-actions span{font-size:12px;padding:4px 10px;border:1px solid #bfcec8;border-radius:5px;background:#fff;color:#365d55;white-space:nowrap}
.bf-actions span.bf-ok{background:#24786a;border-color:#24786a;color:#fff}

/* Results */
.bf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:6px 0 26px}
.bf-stats>div{min-width:0;padding:16px 16px 14px;border:1px solid #cfdfdc;border-radius:12px;background:#ffffffc7}
.bf-stats strong{display:block;font-size:30px;line-height:1.2;font-weight:700;color:#2b6a7c;margin-bottom:6px}
.bf-stats span{display:block;font-size:14px;line-height:1.55;color:#536b73}
.bf-stats>div.bf-next{background:#edf4f1}

@media(max-width:980px){
  .case-story ol.bf-flow{grid-template-columns:repeat(3,minmax(0,1fr))}
  .case-story ol.bf-flow>li:nth-child(3)::after{display:none}
  .bf-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .hero{padding:2.4rem 1.25rem 2.2rem}
  .bf-panes{grid-template-columns:1fr;padding:12px 12px 4px}
  .bf-casebar,.bf-fields,.bf-bottom{padding-left:12px;padding-right:12px}
  .bf-titlebar{padding:10px 12px}
  .bf-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bf-stats strong{font-size:26px}
}
@media(max-width:560px){
  .case-story ol.bf-flow{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .case-story ol.bf-flow>li::after{display:none}
  .case-story ol.bf-flow>li{padding:13px 12px}
  .bf-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .bf-titlebar{flex-wrap:wrap}
  .bf-badge{margin-left:0}
}
