/* =====================================================================
   BMO SOP module product page. Static, no external dependencies.
   All classes are prefixed "sop-" so they do not clash with site CSS.
   Map these variables to the website theme when integrating.
   ===================================================================== */
.sop-page{
  --sop-navy:var(--ink); --sop-blue:var(--blue); --sop-blue-soft:#E6ECFB; --sop-orange:#D96A1A; --sop-orange-soft:#FBE9DA;
  --sop-green:#15803D; --sop-ink:var(--ink-2); --sop-muted:#53627c; --sop-line:var(--line); --sop-bg:#FFFFFF; --sop-bg-alt:var(--surface);
  --sop-radius:16px; --sop-max:1200px;
  --sop-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
}
.sop-content *{box-sizing:border-box}
.sop-content{margin:0;background:var(--sop-bg);color:var(--sop-ink);font-family:inherit;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
.sop-content img{max-width:100%;height:auto;display:block}
.sop-content a{color:var(--sop-blue)}
.sop-wrap{max-width:var(--sop-max);margin:0 auto;padding:0 24px}
.sop-section{padding:88px 0}
.sop-alt{background:var(--sop-bg-alt)}
.sop-eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--sop-blue);margin:0 0 12px}
.sop-eyebrow.emp{color:var(--sop-orange)}
.sop-h1{font-size:clamp(34px,4.6vw,56px);line-height:1.08;font-weight:800;color:var(--sop-navy);margin:0 0 20px;letter-spacing:-.02em}
.sop-h2{font-size:clamp(28px,3.2vw,40px);line-height:1.15;font-weight:800;color:var(--sop-navy);margin:0 0 16px;letter-spacing:-.01em}
.sop-h3{font-size:22px;line-height:1.3;font-weight:700;color:var(--sop-navy);margin:0 0 10px}
.sop-lead{font-size:20px;color:var(--sop-muted);margin:0 0 28px;max-width:640px}
.sop-center{text-align:center}.sop-center .sop-lead{margin-left:auto;margin-right:auto}
.sop-btns{display:flex;gap:12px;flex-wrap:wrap}
.sop-btn{display:inline-flex;align-items:center;gap:8px;padding:14px 26px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;border:2px solid var(--sop-blue);transition:transform .15s,box-shadow .15s}
.sop-btn.pri{background:var(--sop-blue);color:#fff}
.sop-btn.sec{background:transparent;color:var(--sop-blue)}
.sop-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(30,79,216,.18)}
.sop-shot{border-radius:var(--sop-radius);border:1px solid var(--sop-line);box-shadow:0 18px 40px rgba(20,33,61,.10);background:#fff}
.sop-shot.flat{border:0;box-shadow:none;background:transparent;border-radius:var(--sop-radius)}
.sop-content figure{margin:0}
.sop-content figcaption{font-size:14px;color:var(--sop-muted);margin-top:10px;text-align:center}

/* hero */
.sop-hero{padding:72px 0 56px;background:linear-gradient(180deg,#EEF2FC 0%,#FFFFFF 100%)}
.sop-hero-grid{display:grid;grid-template-columns:1fr;gap:40px;align-items:center}
.sop-hero-copy{max-width:820px;margin:0 auto;text-align:center}
.sop-hero-copy .sop-lead{margin-left:auto;margin-right:auto}
.sop-hero-copy .sop-btns{justify-content:center}
.sop-pills{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:28px 0 0;padding:0;list-style:none}
.sop-pills li{background:#fff;border:1px solid var(--sop-line);border-radius:999px;padding:8px 16px;font-size:15px;font-weight:600;color:var(--sop-navy)}

/* problem */
.sop-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
.sop-card{background:#fff;border:1px solid var(--sop-line);border-radius:var(--sop-radius);padding:28px}
.sop-card p{margin:0;color:var(--sop-muted)}
.sop-ico{width:44px;height:44px;border-radius:12px;background:var(--sop-blue-soft);color:var(--sop-blue);display:grid;place-items:center;margin-bottom:16px}
.sop-ico svg{width:24px;height:24px}
.sop-ico.emp{background:var(--sop-orange-soft);color:var(--sop-orange)}

/* steps */
.sop-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:44px;counter-reset:s}
.sop-step{position:relative}
.sop-step .sop-num{counter-increment:s;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--sop-blue);color:#fff;font-weight:800;margin-bottom:14px}
.sop-step .sop-num::before{content:counter(s)}
.sop-step p{color:var(--sop-muted);margin:0 0 18px}

/* feature rows */
.sop-row{display:grid;grid-template-columns:5fr 7fr;gap:56px;align-items:center;margin-top:72px}
.sop-row:first-of-type{margin-top:48px}
.sop-row.rev{grid-template-columns:7fr 5fr}
.sop-row.rev .sop-row-copy{order:2}
.sop-row-copy p{color:var(--sop-muted);margin:0 0 14px}
.sop-list{list-style:none;padding:0;margin:16px 0 0}
.sop-list li{position:relative;padding-left:30px;margin:0 0 10px}
.sop-list li::before{content:"";position:absolute;left:0;top:6px;width:18px;height:18px;border-radius:50%;background:var(--sop-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231E4FD8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat}
.sop-list.emp li::before{background-color:var(--sop-orange-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23D96A1A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E")}
.sop-duo{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* step types */
.sop-types{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:40px}
.sop-type{background:#fff;border:1px solid var(--sop-line);border-radius:14px;padding:20px}
.sop-type b{display:block;color:var(--sop-navy);font-size:17px;margin-bottom:4px}
.sop-type span{color:var(--sop-muted);font-size:15px}

/* record table */
.sop-rec{width:100%;border-collapse:collapse;margin-top:18px;font-size:15px;background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--sop-line)}
.sop-rec th,.sop-rec td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--sop-line);vertical-align:top}
.sop-rec th{width:38%;color:var(--sop-navy);font-weight:700;background:#FAFBFD}
.sop-rec tr:last-child th,.sop-rec tr:last-child td{border-bottom:0}

/* industries */
.sop-inds{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:40px}
.sop-ind{background:#fff;border:1px solid var(--sop-line);border-radius:14px;padding:18px}
.sop-ind small{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sop-blue);margin-bottom:6px}
.sop-ind b{color:var(--sop-navy);font-size:16px;line-height:1.35}

/* faq */
.sop-faq{max-width:860px;margin:36px auto 0}
.sop-faq details{background:#fff;border:1px solid var(--sop-line);border-radius:14px;padding:0 22px;margin-bottom:12px}
.sop-faq summary{cursor:pointer;list-style:none;font-weight:700;color:var(--sop-navy);padding:18px 32px 18px 0;position:relative}
.sop-faq summary::-webkit-details-marker{display:none}
.sop-faq summary::after{content:"+";position:absolute;right:0;top:14px;font-size:24px;color:var(--sop-blue);font-weight:400}
.sop-faq details[open] summary::after{content:"−"}
.sop-faq details p{margin:0 0 18px;color:var(--sop-muted)}

/* cta */
.sop-cta{background:var(--sop-navy);color:#fff;border-radius:24px;padding:64px 48px;text-align:center}
.sop-cta .sop-h2{color:#fff}
.sop-cta p{color:#C9D5F2;font-size:19px;max-width:620px;margin:0 auto 28px}
.sop-cta .sop-btns{justify-content:center}
.sop-cta .sop-btn.pri{background:#fff;color:var(--sop-navy);border-color:#fff}
.sop-cta .sop-btn.sec{color:#fff;border-color:rgba(255,255,255,.6)}

/* responsive */
@media (max-width:980px){
  .sop-section{padding:64px 0}
  .sop-row,.sop-row.rev{grid-template-columns:1fr;gap:28px;margin-top:56px}
  .sop-row.rev .sop-row-copy{order:0}
  .sop-cards,.sop-steps{grid-template-columns:1fr}
  .sop-types{grid-template-columns:repeat(2,1fr)}
  .sop-inds{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .sop-content{font-size:16px}
  .sop-wrap{padding:0 16px}
  .sop-types,.sop-inds,.sop-duo{grid-template-columns:1fr}
  .sop-cta{padding:44px 22px}
  .sop-lead{font-size:18px}
}
/* print: one clean document, no shadows or buttons, sections kept together */
@media print{
  @page{size:A4;margin:14mm}
  .sop-content{font-size:11pt;color:#000;background:#fff}
  .sop-section,.sop-hero{padding:18pt 0;background:#fff!important}
  .sop-btns,.sop-cta .sop-btns{display:none}
  .sop-shot{box-shadow:none;border:1px solid #ccc}
  .sop-row,.sop-row.rev{grid-template-columns:1fr 1fr;gap:16pt;margin-top:18pt;break-inside:avoid}
  .sop-card,.sop-type,.sop-ind,.sop-faq details,.sop-rec,.sop-content figure{break-inside:avoid}
  .sop-faq details{display:block}.sop-faq details>p{display:block}
  .sop-faq summary::after{content:""}
  .sop-cta{background:#fff;color:#000;border:1px solid #999}.sop-cta .sop-h2,.sop-cta p{color:#000}
  .sop-content a{color:#000;text-decoration:none}
  h2,h3{break-after:avoid}
}

/* Integration with the BizCloud HRM shell. */
.sop-content section[id] { scroll-margin-top: 108px; }
.sop-content picture { display: block; min-width: 0; }
.sop-content img { width: 100%; }
.sop-content .sop-ico svg { flex-shrink: 0; }
.sop-breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; font-size: 14px; color: var(--sop-muted); }
.sop-breadcrumb a { text-decoration: none; }
.sop-jumpnav { border-block: 1px solid var(--sop-line); background: #fff; }
.sop-jumpnav .sop-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; padding-block: 18px; }
.sop-jumpnav a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 4px 0; }
.sop-content a:focus-visible, .sop-content summary:focus-visible { outline: 3px solid var(--sop-blue); outline-offset: 5px; }
.sop-feature-links { margin-top: 40px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sop-btn { transition: none; } }
@media print { .site-navbar, .site-footer, .skip-link, .sop-jumpnav, .sop-breadcrumb { display: none; } }

/* Updated document-control and PDF/signing samples. */
.sop-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 24px; }
.sop-hero-links a { font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.sop-sample { scroll-margin-top: 108px; border: 1px solid var(--sop-line); border-radius: 24px; padding: 32px; margin-top: 64px; background: #fff; }
.sop-sample-heading { max-width: 760px; margin-bottom: 28px; }
.sop-sample-heading > p:last-child { color: var(--sop-muted); font-size: 17px; }
.sop-sample-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.sop-pdf-card { min-width: 0; margin: 0; border: 1px solid var(--sop-line); border-radius: 14px; overflow: hidden; }
.sop-pdf-card-label { display: flex; gap: 10px; justify-content: space-between; padding: 14px 16px; background: #edf4ff; color: #1256c7; font-size: 12px; font-weight: 700; }
.sop-content .sop-pdf-card img { height: 480px; width: 100%; object-fit: contain; padding: 12px; background: #f6f8fc; }
.sop-pdf-card figcaption { padding: 18px 18px 0; margin: 0; text-align: left; }
.sop-pdf-card figcaption strong { display: block; color: var(--sop-navy); font-size: 15px; }
.sop-pdf-card figcaption span { display: block; color: var(--sop-muted); font-size: 13px; margin-top: 5px; }
.sop-pdf-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 18px; }
.sop-pdf-actions .sop-btn { font-size: 13px; padding: 10px 16px; }
.sop-pdf-actions > a:last-child { font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.sop-sample-stages { min-width: 0; }
.sop-sample-stages details { border: 1px solid var(--sop-line); border-radius: 14px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.sop-sample-stages summary { padding: 18px; font-size: 15px; font-weight: 750; color: var(--sop-navy); cursor: pointer; }
.sop-sample-stages summary > span { color: var(--sop-blue); margin-right: 8px; }
.sop-sample-stages details[open] summary { background: #edf4ff; }
.sop-sample-stage-body { padding: 18px; }
.sop-sample-stage-body > p { color: var(--sop-muted); font-size: 14px; line-height: 1.75; margin: 0 0 16px; }
.sop-enlarge { display: block; text-decoration: none; }
.sop-enlarge picture { border: 1px solid var(--sop-line); border-radius: 10px; overflow: hidden; }
.sop-enlarge > span { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sop-sample-note { font-size: 13px; color: var(--sop-muted); margin: 22px 0 0; }
.sop-approval-flow { margin-top: 32px; padding: 24px; border: 1px solid #d5e4ff; border-radius: 18px; background: #fff; }
.sop-approval-flow > p { color: var(--sop-muted); font-size: 14px; margin: 0 0 22px; }
.sop-approval-flow ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; gap: 30px; padding: 0; margin: 0; }
.sop-approval-flow li { position: relative; min-width: 0; }
.sop-approval-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -22px; top: 28px; color: #7e96bf; font-size: 22px; }
.sop-approval-flow li > span { display: block; color: var(--sop-blue); font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.sop-approval-flow strong { display: block; font-size: 16px; color: var(--sop-navy); }
.sop-approval-flow small { display: block; font-size: 12px; color: var(--sop-muted); margin-top: 5px; }
.sop-image-dialog { width: min(1240px,96vw); max-height: 92vh; padding: 0; border: 1px solid var(--sop-line); border-radius: 16px; background: #fff; color: var(--sop-navy); }
.sop-image-dialog::backdrop { background: rgba(11,23,57,.75); }
.sop-image-dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--sop-line); background: #fff; }
.sop-image-dialog-head h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.sop-image-dialog-head button { border: 1px solid #c9d7ef; border-radius: 8px; background: #edf4ff; padding: 8px 12px; color: #1256c7; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.sop-image-dialog > img { display: block; width: 100%; height: auto; }
@media (max-width: 800px) { .sop-sample-grid { grid-template-columns: 1fr; } .sop-sample { padding: 24px; } .sop-approval-flow ol { grid-template-columns: 1fr; gap: 30px; } .sop-approval-flow li:not(:last-child)::after { content: '↓'; left: 0; right: auto; top: auto; bottom: -28px; } }
@media (max-width: 520px) { .sop-sample { padding: 20px 16px; margin-top: 44px; border-radius: 18px; } .sop-pdf-card-label { flex-wrap: wrap; } .sop-content .sop-pdf-card img { height: auto; padding: 8px; } .sop-hero-links { gap: 12px; flex-direction: column; } .sop-image-dialog-head { padding: 12px; gap: 10px; } .sop-image-dialog-head h2 { font-size: 13px; } .sop-image-dialog-head button { font-size: 12px; } }
@media print { .sop-image-dialog { display: none; } .sop-sample, .sop-pdf-card { break-inside: avoid; } .sop-pdf-actions { display: none; } .sop-sample-stages details > div { display: block; } }
