/* Battlecard page: single-screen, no page-level scroll */
html,body{height:100%;}
body{height:100vh; overflow:hidden;}


  .hero{
    max-width:1200px;
    margin:0 auto;
    padding:16px 28px 4px;
    text-align:center;
    flex:0 0 auto;
  }
  .hero h1{
    font-size:clamp(22px,3vw,30px);
    font-weight:700;
    color:var(--wf-ink);
    margin:0 auto 4px;
    letter-spacing:-0.01em;
  }
  .hero h1 em{font-style:normal;color:var(--wf-blue);}
  .hero p{
    max-width:560px;
    margin:0 auto;
    font-size:13.5px;
    color:var(--wf-ink-soft);
  }

  /* ---------------- Map ---------------- */
  .map-section{
    max-width:1200px;
    width:100%;
    margin:10px auto 14px;
    padding:0 28px;
    flex:1 1 auto;
    display:flex;
    min-height:0;
  }
  .map-card{
    background:var(--wf-card);
    border:1px solid var(--wf-line);
    border-radius:var(--radius);
    padding:20px 20px 20px;
    width:100%;
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .map-flex{
    display:flex;
    gap:22px;
    align-items:center;
    justify-content:center;
    flex:1 1 auto;
    min-height:0;
  }
  .map-stage{
    position:relative;
    width:100%;
    max-width:782px;
    aspect-ratio: 959 / 593;
    overflow:visible;
    flex:1 1 auto;
  }
  .map-stage svg{
    width:100%;
    height:100%;
    display:block;
    overflow:visible;
  }
  .map-stage svg path, .map-stage svg circle{
    fill:var(--map-fill);
    stroke:var(--map-stroke);
    stroke-width:1.1;
    stroke-linejoin:round;
  }
  /* Faint regional tints, matched to each region's pin color */
  .map-stage svg .region-pnw{ fill:#D3E9F7; }               /* Brad Smith - blue */
  .map-stage svg .region-sw{  fill:#E0EFD8; }               /* Kimberly Schentur - green */
  .map-stage svg .region-mw{  fill:#DEE7FC; }               /* Christian Meyer - blue */
  .map-stage svg .region-sc{  fill:#FBDFE4; }               /* Tracey Kroehle - red/pink */
  .map-stage svg .region-se{  fill:#F1E3C8; }               /* Nicole Johnson - gold/brown */
  .map-stage svg .region-ne{  fill:#D9F0EE; }               /* Northeast - unassigned */
  .map-stage svg g.region-ne path, .map-stage svg g.region-ne circle{ fill:#D9F0EE; }

  /* ---- Enterprise rail (right-aligned, outside the map) ---- */
  .enterprise-rail{
    flex:0 0 148px;
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
    align-self:center;
  }
  .rail-label{
    font-size:10.5px;
    font-weight:600;
    letter-spacing:0.05em;
    text-transform:uppercase;
    color:var(--wf-ink-soft);
    text-align:center;
    margin-bottom:2px;
  }
  .rail-card{
    background:#fff;
    border:1px solid var(--wf-line);
    border-radius:12px;
    padding:10px 10px 10px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,30,45,0.04);
  }
  .rail-avatar{
    width:76px;
    height:76px;
    border-radius:50%;
    margin:0 auto 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Poppins',sans-serif;
    font-weight:700;
    font-size:24px;
    color:#fff;
    border:3px solid #fff;
    box-shadow:0 0 0 1px var(--wf-line);
  }
  .rail-name{
    font-family:'Poppins',sans-serif;
    font-weight:600;
    font-size:12px;
    color:var(--wf-ink);
    margin-bottom:1px;
  }
  .rail-title{
    font-size:9.5px;
    color:var(--wf-ink-soft);
    margin-bottom:7px;
  }
  .rail-book{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    text-decoration:none;
    font-family:'Inter',sans-serif;
    font-weight:600;
    font-size:10.5px;
    color:#fff;
    background:var(--wf-blue);
    padding:6px 8px;
    border-radius:999px;
    width:100%;
    transition:background .15s ease;
  }
  .rail-book:hover{background:var(--wf-blue-dark);}
  .rail-book svg{width:11px;height:11px;flex-shrink:0;}

  /* ---- Pin marker ---- */
  .pin{
    position:absolute;
    transform:translate(-50%,-100%);
    z-index:5;
  }
  .pin:hover,
  .pin:focus-within{
    z-index:100;
  }
  .pin-marker{
    position:relative;
    width:92px;
    height:92px;
    cursor:pointer;
  }
  .pin-ring{
    position:absolute;
    inset:-12px;
    border-radius:50%;
    background:rgba(0,124,188,0.20);
    animation:pulse 2.6s ease-in-out infinite;
  }
  @keyframes pulse{
    0%,100%{transform:scale(1);opacity:0.55;}
    50%{transform:scale(1.4);opacity:0.12;}
  }
  .pin-photo{
    position:relative;
    width:100%;
    height:100%;
    border-radius:50%;
    border:5px solid #fff;
    box-shadow:0 6px 16px rgba(0,30,45,0.28), 0 0 0 5px var(--pin-accent, var(--wf-blue));
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Poppins',sans-serif;
    font-weight:700;
    font-size:28px;
    color:#fff;
    z-index:2;
    background-size:cover;
    background-position:center;
  }
  .pin-point{
    position:absolute;
    bottom:-11px;
    left:50%;
    transform:translateX(-50%);
    width:0; height:0;
    border-left:11px solid transparent;
    border-right:11px solid transparent;
    border-top:15px solid var(--pin-accent, var(--wf-blue));
    z-index:1;
    filter:drop-shadow(0 2px 2px rgba(0,30,45,0.2));
  }
  .pin-tag{
    position:absolute;
    top:calc(100% + 5px);
    left:50%;
    transform:translateX(-50%);
    font-family:'Poppins',sans-serif;
    font-weight:600;
    font-size:11px;
    color:var(--wf-ink);
    background:#fff;
    padding:2px 9px;
    border-radius:999px;
    border:1px solid var(--wf-line);
    white-space:nowrap;
    pointer-events:none;
    box-shadow:0 2px 6px rgba(0,30,45,0.06);
  }

  /* ---- Hover card with no dead-zone gap (bridge via padding) ---- */
  .hover-zone{
    position:absolute;
    left:50%;
    bottom:100%;
    transform:translateX(-50%);
    width:220px;
    padding-bottom:16px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .15s ease, visibility .15s ease;
    z-index:50;
  }
  .pin.flip-up .hover-zone{
    bottom:auto;
    top:100%;
    padding-bottom:0;
    padding-top:16px;
  }
  .pin.align-left .hover-zone{ left:0; transform:translateX(0); }
  .pin.align-right .hover-zone{ left:auto; right:0; transform:translateX(0); }
  .pin:hover .hover-zone,
  .pin:focus-within .hover-zone{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .hover-card{
    background:#fff;
    border:1px solid var(--wf-line);
    border-radius:14px;
    padding:16px 14px 14px;
    box-shadow:0 16px 36px rgba(0,30,45,0.18);
    text-align:center;
  }

  .hc-avatar{
    width:112px;
    height:112px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Poppins',sans-serif;
    font-weight:700;
    font-size:32px;
    color:#fff;
    margin:0 auto 8px;
    border:4px solid #fff;
    box-shadow:0 0 0 1px var(--wf-line);
    background-size:cover;
    background-position:center;
  }
  .hc-name{
    font-family:'Poppins',sans-serif;
    font-weight:600;
    font-size:14px;
    color:var(--wf-ink);
    margin-bottom:6px;
  }
  .hc-title{
    font-size:11px;
    color:var(--wf-ink-soft);
    margin-top:-4px;
    margin-bottom:8px;
  }
  .hc-region{
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-size:11px;
    font-weight:600;
    color:var(--wf-blue-dark);
    background:rgba(0,124,188,0.09);
    padding:4px 10px;
    border-radius:999px;
    margin-bottom:12px;
  }
  .hc-region svg{width:10px;height:10px;flex-shrink:0;}

  .book-btn{
    display:inline-flex;
    align-items:center;
    gap:7px;
    text-decoration:none;
    font-family:'Inter',sans-serif;
    font-weight:600;
    font-size:12px;
    color:#fff;
    background:var(--wf-blue);
    padding:9px 14px;
    border-radius:999px;
    width:100%;
    justify-content:center;
    transition:background .15s ease;
  }
  .book-btn:hover{background:var(--wf-blue-dark);}
  .book-btn svg{width:12px;height:12px;flex-shrink:0;}

  @media (max-width:800px){
    .map-flex{flex-direction:column;}
    .enterprise-rail{
      flex-direction:row;
      flex:0 0 auto;
      width:100%;
      justify-content:center;
    }
    .rail-card{width:140px;}
    .rail-label{display:none;}
  }

  main.bc-main{
    max-width:1180px;
    margin:0 auto;
    padding:0 28px 16px;
    display:grid;
    grid-template-columns:220px 1fr;
    gap:32px;
    align-items:start;
    flex:1 1 auto;
    width:100%;
    min-height:0;
    overflow:hidden;
  }

  #card-stage{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
  }

  nav.sidebar{
    display:flex;
    flex-direction:column;
    gap:2px;
    padding:6px 0;
    overflow-y:auto;
    max-height:100%;
  }
  nav.sidebar .group-label{
    font-size:10.5px;
    font-weight:700;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:var(--wf-ink-soft);
    margin:14px 6px 6px;
  }
  nav.sidebar .group-label:first-child{ margin-top:2px; }
  nav.sidebar a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:8px 10px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    color:var(--wf-ink);
    text-decoration:none;
  }
  nav.sidebar a:hover{ background:rgba(0,124,188,0.07); }
  nav.sidebar a.active{ background:rgba(0,124,188,0.1); color:var(--wf-blue-dark); }
  .threat-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
  .dot-high{ background:#C4443A; }
  .dot-med{ background:#B9822E; }
  .dot-low{ background:var(--wf-green); }

  .bc-note{
    font-size:13px;
    color:var(--wf-ink-soft);
    margin:0 0 22px;
    max-width:720px;
  }

  .bc-card{
    display:none;
    background:var(--wf-card);
    border:1px solid var(--wf-line);
    border-radius:var(--radius);
    margin-bottom:0;
    overflow:hidden;
    height:100%;
    min-height:0;
    flex-direction:column;
  }
  .bc-card.active{ display:flex; }
  .bc-card-head{
    padding:18px 22px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
    border-left:5px solid var(--accent, var(--wf-blue));
  }
  .bc-card-head h2{
    font-size:19px;
    font-weight:600;
    color:var(--wf-ink);
    margin-bottom:3px;
  }
  .bc-card-head h2 span.sub{
    font-size:13px;
    font-weight:400;
    color:var(--wf-ink-soft);
  }
  .bc-origin-tag{ font-size:12px; color:var(--wf-ink-soft); font-weight:500; }
  .threat-chip{
    font-size:11px;
    font-weight:700;
    letter-spacing:0.02em;
    padding:5px 12px;
    border-radius:999px;
    white-space:nowrap;
  }
  .chip-high{ background:#FBE4E1; color:#B23A2F; }
  .chip-med{ background:#F1E3C8; color:#8A5F17; }
  .chip-low{ background:rgba(95,168,69,0.14); color:var(--wf-green-dark); }

  .bc-stat-line{
    font-size:12.5px;
    color:var(--wf-ink-soft);
    padding:0 22px 16px;
    border-bottom:1px solid var(--wf-line);
  }
  .bc-stat-line b{ color:var(--wf-ink); }

  .bc-body{ padding:16px 22px 18px; flex:1 1 auto; min-height:0; overflow-y:auto; }
  .bc-quick-take{
    font-size:14px;
    color:var(--wf-ink);
    line-height:1.55;
    margin-bottom:16px;
  }
  .bc-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:16px;
  }
  .bc-box{
    border-radius:12px;
    padding:14px 16px;
  }
  .bc-box.win{ background:rgba(95,168,69,0.08); border:1px solid rgba(95,168,69,0.25); }
  .bc-box.watch{ background:rgba(196,68,58,0.06); border:1px solid rgba(196,68,58,0.2); }
  .bc-box h3{
    font-size:12px;
    font-weight:700;
    letter-spacing:0.02em;
    text-transform:uppercase;
    margin-bottom:8px;
  }
  .bc-box.win h3{ color:var(--wf-green-dark); }
  .bc-box.watch h3{ color:#B23A2F; }
  .bc-box ul{ margin:0; padding-left:18px; }
  .bc-box li{ font-size:13px; color:var(--wf-ink); line-height:1.5; margin-bottom:5px; }
  .bc-box li:last-child{ margin-bottom:0; }

  .bc-talk{
    display:flex;
    gap:10px;
    align-items:flex-start;
    background:rgba(0,124,188,0.06);
    border:1px solid rgba(0,124,188,0.18);
    border-radius:12px;
    padding:13px 16px;
    margin-bottom:12px;
    font-size:13.5px;
    color:var(--wf-ink);
    font-style:italic;
  }
  .bc-talk svg{ flex-shrink:0; margin-top:2px; color:var(--wf-blue); }
  .bc-talk .lbl{
    display:block;
    font-style:normal;
    font-size:10.5px;
    font-weight:700;
    letter-spacing:0.05em;
    text-transform:uppercase;
    color:var(--wf-blue-dark);
    margin-bottom:3px;
  }
  .bc-ask{
    display:flex;
    gap:10px;
    align-items:flex-start;
    font-size:13.5px;
    color:var(--wf-ink);
    padding:0 2px;
  }
  .bc-ask svg{ flex-shrink:0; margin-top:2px; color:var(--wf-ink-soft); }
  .bc-ask .lbl{
    display:block;
    font-size:10.5px;
    font-weight:700;
    letter-spacing:0.05em;
    text-transform:uppercase;
    color:var(--wf-ink-soft);
    margin-bottom:3px;
  }

  @media (max-width:860px){
    main.bc-main{ grid-template-columns:1fr; overflow-y:auto; }
    body{ overflow-y:auto; }
    nav.sidebar{
      position:static;
      flex-direction:row;
      flex-wrap:wrap;
      gap:8px;
      max-height:none;
      overflow:visible;
    }
    nav.sidebar .group-label{ display:none; }
    nav.sidebar a{ border:1px solid var(--wf-line); padding:6px 12px; }
    .bc-cols{ grid-template-columns:1fr; }
    .bc-card.active{ height:auto; }
    .bc-body{ overflow-y:visible; }
  }
