/* SAPlytics blog: same brand tokens as the home page */
:root{
  --ground:#0B1A33;--ground-2:#11284B;--ground-3:#173360;--line:#24395A;
  --ink:#F2F6FB;--muted:#A9BCD3;--teal:#3CC8BE;--accent:#F39C12;--navy-ink:#0B1A33;
  --m:clamp(20px,4vw,64px);--ease:cubic-bezier(.19,1,.22,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--ground);color:var(--ink);font-family:'Montserrat',system-ui,sans-serif;font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{display:block;max-width:100%;height:auto}
::selection{background:var(--accent);color:var(--navy-ink)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--navy-ink);padding:12px 18px;font-weight:700;z-index:60}
.skip:focus{left:0}
.wrap{max-width:calc(1280px + 2 * var(--m));margin:0 auto;padding:0 var(--m)}

/* bar */
.bar{position:sticky;top:0;z-index:50;background:var(--ground)}
.bar .wrap{display:flex;align-items:center;gap:28px;height:80px}
.wm img{width:64px;height:64px}
.tagline{margin-left:-12px;font-size:15px;font-weight:600;line-height:1.35;color:var(--muted);flex:0 1 auto;min-width:0;max-width:540px;text-wrap:balance}
  .bar nav,.bar .btn{flex:none}
  .bar nav a,.bar .btn{white-space:nowrap}
.bar nav{margin-left:auto;display:flex;gap:26px;font-size:16px}
@media (min-width:1040px) and (max-width:1279px){
  .tagline{font-size:14px;line-height:1.3}
  .bar .wrap{gap:22px}
  .bar nav{gap:20px;font-size:15px}
}
@media (max-width:1039px){.tagline{display:none}}
.bar nav a,.tlink{font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;text-decoration-color:transparent;transition:text-decoration-color .25s,text-underline-offset .25s}
.bar nav a:hover,.tlink:hover,.bar nav a[aria-current]{text-decoration-color:currentColor;text-underline-offset:4px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;background:var(--accent);color:var(--navy-ink);font-weight:700;font-size:15px;text-decoration:none;transition:transform .25s var(--ease),background .25s}
.btn:hover{background:#FFB238;transform:translateY(-2px)}
.btn.ghost{background:var(--ground-3);color:var(--ink)}

.menu-btn{display:none;flex:none;width:48px;height:48px;border:0;background:var(--ground-3);cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.menu-btn span{display:block;width:22px;height:2px;background:var(--ink);transition:transform .25s,opacity .25s}
.bar.open .menu-btn span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.bar.open .menu-btn span:nth-child(2){opacity:0}
.bar.open .menu-btn span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* blog index */
.b-head{padding:clamp(40px,5vw,72px) 0 clamp(28px,3vw,40px)}
.b-head h1{font-size:clamp(34px,4vw,56px);font-weight:800;letter-spacing:-.035em;line-height:1.05}
.b-head h1 span{color:var(--teal)}
.b-head p{margin-top:14px;font-size:clamp(18px,1.5vw,22px);color:var(--muted);max-width:40em}
.posts{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-bottom:clamp(56px,6vw,96px)}
.posts a{display:flex;flex-direction:column;gap:10px;height:100%;background:var(--ground-2);padding:28px 28px 26px;text-decoration:none;border-top:4px solid var(--teal);transition:transform .25s var(--ease),background .25s}
.posts a:hover{transform:translateY(-3px);background:var(--ground-3)}
.posts .k{font-size:14px;font-weight:600;color:var(--teal)}
.posts h2{font-size:clamp(21px,1.7vw,25px);font-weight:700;letter-spacing:-.02em;line-height:1.25}
.posts p{font-size:16px;color:var(--muted);line-height:1.6}
.posts .more{margin-top:auto;padding-top:8px;font-size:15px;font-weight:700;color:var(--accent)}

/* article */
.crumb{padding-top:clamp(28px,3vw,40px);font-size:14px;color:var(--muted)}
.crumb a{color:var(--muted)}
article{max-width:760px;margin:0 auto}
.a-head{padding:clamp(14px,2vw,22px) 0 clamp(24px,3vw,36px)}
.a-head .k{font-size:15px;font-weight:600;color:var(--teal)}
.a-head h1{margin-top:10px;font-size:clamp(32px,3.6vw,50px);font-weight:800;letter-spacing:-.035em;line-height:1.1;text-wrap:balance}
.a-head .lede{margin-top:18px;font-size:clamp(19px,1.5vw,22px);color:var(--muted);line-height:1.55}
.a-head .by{margin-top:22px;display:flex;align-items:center;gap:12px;font-size:15px;color:var(--muted)}
.a-head .by img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.a-head .by b{color:var(--ink);font-weight:700}
.prose h2{margin:44px 0 12px;font-size:clamp(24px,2vw,30px);font-weight:700;letter-spacing:-.025em;line-height:1.2}
.prose h3{margin:30px 0 8px;font-size:20px;font-weight:700;letter-spacing:-.01em;color:var(--teal)}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{margin:0 0 20px 1.3em}
.prose li{margin-bottom:8px}
.prose li::marker{color:var(--accent)}
.prose strong{color:#fff}
.prose a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.prose code{font-family:Consolas,'Cascadia Code',Menlo,monospace;font-size:.88em;background:#081428;padding:2px 6px}
.prose pre{margin:0 0 22px;background:#081428;padding:20px 22px;overflow-x:auto;font-family:Consolas,'Cascadia Code',Menlo,monospace;font-size:14px;line-height:1.6;color:#D5E1F0}
.prose pre code{background:none;padding:0;font-size:inherit}
.prose table{width:100%;border-collapse:collapse;margin:6px 0 24px;font-size:16px}
.prose th{text-align:left;font-weight:700;padding:10px 12px;background:var(--ground-3)}
.prose td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.prose figure{margin:0 0 28px}
.prose figure img{width:100%;height:auto}
.prose figcaption{margin-top:10px;font-size:14px;color:var(--muted);text-align:center}
.prose .note{background:var(--ground-2);border-left:4px solid var(--accent);padding:18px 22px;margin:0 0 22px}
.prose .note p:last-child{margin:0}
.a-cta{margin:48px 0 clamp(56px,6vw,96px);background:var(--ground-2);padding:clamp(28px,4vw,44px);text-align:center}
.a-cta h2{font-size:clamp(24px,2.2vw,32px);font-weight:800;letter-spacing:-.025em}
.a-cta h2 span{color:var(--teal)}
.a-cta p{margin:10px auto 22px;max-width:34em;color:var(--muted)}
.a-cta .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

footer{padding:40px 0 32px}
footer .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;font-size:15px;color:var(--muted)}
footer .f-brand{grid-column:2;display:flex;align-items:center;gap:20px}
footer .f-brand img{width:72px;height:72px}
footer .f-tag{font-size:clamp(18px,1.4vw,21px);font-weight:700;color:var(--ink);letter-spacing:-.02em}
footer .f-tag span{color:var(--teal)}
footer .f-copy{grid-column:3;justify-self:end}

@media (max-width:960px){
  .bar .wrap{position:relative}
  .menu-btn{display:flex}
  .bar nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;flex-direction:column;gap:0;background:var(--ground);padding:6px var(--m) 18px;box-shadow:0 14px 30px rgba(0,0,0,.45)}
  .bar.open nav{display:flex}
  .bar nav a{display:flex;align-items:center;min-height:52px;font-size:18px;border-bottom:1px solid var(--line)}
  .bar nav a:last-child{border-bottom:0}
  .bar .btn{margin-left:auto}
  .posts{grid-template-columns:1fr}
  footer .wrap{grid-template-columns:1fr;justify-items:center;text-align:center}
  footer .f-brand,footer .f-copy{grid-column:1;justify-self:center}
  footer .f-brand{flex-direction:column;gap:12px}
}
@media (max-width:560px){
  body{font-size:17px}
  .bar .wrap{height:68px}
  .wm img{width:52px;height:52px}
  .prose table{font-size:14px}
  .a-head h1{font-size:27px}
  .b-head h1{font-size:30px}
  .a-cta .btn{width:100%}
}
/* gentle entrance */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.b-head > *,.posts li,.a-head > *,.prose,.a-cta{animation:rise .8s var(--ease) both}
.b-head p,.a-head .k{animation-delay:.06s}
.a-head h1{animation-delay:.1s}
.a-head .lede,.posts li:nth-child(2){animation-delay:.16s}
.a-head .by{animation-delay:.22s}
.prose,.posts li:nth-child(3){animation-delay:.28s}
.posts li:nth-child(4){animation-delay:.34s}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.posts a{transition:none}*{animation:none!important}}
