*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;background:#f8fafc;color:#0f172a;line-height:1.6;-webkit-font-smoothing:antialiased}

/* Nav */
.nav{background:#0f2341;position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(255,255,255,.07)}
.nav-inner{max-width:1080px;margin:0 auto;padding:0 1.5rem;height:58px;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff}
.logo-img{height:28px;width:auto;display:block}
.logo-sub{font-size:12px;font-weight:500;color:rgba(255,255,255,.4);padding-left:10px;border-left:1px solid rgba(255,255,255,.18);margin-left:2px;text-decoration:none}
.logo-sub:hover{color:rgba(255,255,255,.75)}
.nav-btn{background:#2563eb;color:#fff;text-decoration:none;padding:7px 16px;border-radius:8px;font-size:13px;font-weight:600;transition:background .15s}
.nav-btn:hover{background:#1d4ed8}
.lang-switch{color:rgba(255,255,255,.7);text-decoration:none;font-size:13px;font-weight:600;padding:6px 12px;border:1px solid rgba(255,255,255,.18);border-radius:8px;white-space:nowrap;transition:color .15s,border-color .15s,background .15s}
.lang-switch:hover{color:#fff;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.08)}

/* Nav search. Lived inline in every article page, byte for byte the same in
   all six, until it moved here. .nav-search is the offset parent .suggestions
   positions against, which is what lets the dropdown work in the nav bar. */
.nav-inner{gap:16px}
.nav-search{flex:1;max-width:500px;position:relative}
.nav-search>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:rgba(255,255,255,.35);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* input[type=search] below is global and was written for the hero box. These
   selectors carry the attribute too, so the compact nav sizing wins on
   specificity rather than on source order, which a tie would decide. */
.nav-search input[type=search]{width:100%;padding:8px 14px 8px 36px;font-size:13px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.09);color:#fff;outline:none;font-family:inherit;-webkit-appearance:none;transition:border-color .15s,background .15s}
.nav-search input[type=search]::placeholder{color:rgba(255,255,255,.32)}
.nav-search input[type=search]:focus{border-color:#60a5fa;background:rgba(255,255,255,.13);box-shadow:none}

/* Hero */
.hero{background:#0b1a38;padding:80px 0 72px;text-align:center;position:relative}
/* The background is its own clipped layer, so the search suggestions can hang below the hero without being cut off */
.hero-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:
  radial-gradient(ellipse 75% 100% at 50% -15%,rgba(59,130,246,.38) 0%,rgba(59,130,246,0) 70%),
  radial-gradient(ellipse 45% 70% at 100% 110%,rgba(99,102,241,.28) 0%,rgba(99,102,241,0) 70%),
  linear-gradient(180deg,#0b1a38 0%,#0f2447 100%)}
.hero-bg::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(147,197,253,.45),transparent)}
.hero-inner{position:relative;z-index:1;max-width:680px;margin:0 auto;padding:0 1.25rem}
.hero-badge{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.7);font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:5px 14px;border-radius:100px;margin-bottom:1.5rem}
.hero-h1{font-size:clamp(2rem,5vw,3.6rem);font-weight:800;line-height:1.1;letter-spacing:-.04em;color:#fff;margin-bottom:.9rem}
.hero-h1 em{font-style:normal;color:#93c5fd}
.hero-sub{font-size:.97rem;color:rgba(255,255,255,.5);max-width:400px;margin:0 auto 2.25rem;line-height:1.7}

/* Search */
.search-wrap{max-width:560px;margin:0 auto;position:relative;z-index:300}
.search-box{position:relative}
.search-box .si{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:rgba(255,255,255,.35);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
input[type=search]{width:100%;padding:15px 46px;font-size:15px;border:1.5px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;outline:none;font-family:inherit;-webkit-appearance:none;transition:border-color .15s,background .15s,box-shadow .15s}
input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
input[type=search]::placeholder{color:rgba(255,255,255,.32)}
input[type=search]:focus{border-color:#60a5fa;background:rgba(255,255,255,.13);box-shadow:0 0 0 4px rgba(96,165,250,.15)}
.clear-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.12);border:none;border-radius:50%;width:23px;height:23px;cursor:pointer;display:none;align-items:center;justify-content:center;color:rgba(255,255,255,.7);font-size:15px;line-height:1;transition:background .12s}
.clear-btn.on{display:flex}
.clear-btn:hover{background:rgba(255,255,255,.2)}
.search-hint{margin-top:10px;font-size:12px;color:rgba(255,255,255,.3)}
.search-hint kbd{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:4px;padding:1px 5px;font-size:11px;font-family:inherit}
.hero-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;flex-shrink:0;display:inline-block}

/* Suggestions dropdown */
.suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 16px 48px rgba(15,35,65,.16),0 4px 16px rgba(15,35,65,.08);overflow:hidden;display:none;z-index:400}
.suggestions.open{display:block;animation:sugIn .14s cubic-bezier(.22,1,.36,1)}
@keyframes sugIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.sug-group-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8;padding:10px 16px 4px;background:#f8fafc;border-bottom:1px solid #f1f5f9;text-align:left}
.sug-item{display:flex;align-items:center;gap:12px;padding:11px 16px;cursor:pointer;border-bottom:1px solid #f1f5f9;transition:background .1s;text-decoration:none;text-align:left}
.sug-item:last-of-type{border-bottom:none}
.sug-item.active,.sug-item:hover{background:#f0f7ff}
.sug-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}
.sug-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sug-body{flex:1;min-width:0}
.sug-title{font-size:14px;font-weight:600;color:#0f2341;line-height:1.3}
.sug-title mark{background:#fef9c3;font-style:normal;border-radius:2px;padding:0 2px}
.sug-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sug-snippet{font-size:12px;color:#64748b;line-height:1.45;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* The nav dropdown is narrower than the hero one, so the url has to be allowed
   to disappear before it crushes the title into one word per line. */
.nav-search .sug-meta{max-width:45%;overflow:hidden}
.nav-search .sug-url{overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sug-snippet mark{background:#fef9c3;font-style:normal;border-radius:2px;padding:0 2px}
.sug-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex-shrink:0}
.sug-tag{font-size:10px;font-weight:700;background:#dbeafe;color:#1d4ed8;padding:2px 8px;border-radius:100px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.sug-url{font-size:10px;color:#94a3b8;font-weight:500;white-space:nowrap}
.sug-arrow{color:#cbd5e1;flex-shrink:0;transition:transform .13s,color .13s}
.sug-arrow svg{width:13px;height:13px}
.sug-item.active .sug-arrow,.sug-item:hover .sug-arrow{transform:translateX(2px);color:#2563eb}
.sug-footer{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;background:#f8fafc;border-top:1px solid #e2e8f0}
.sug-footer-q{font-size:12px;font-weight:600;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.sug-footer-hint{font-size:11px;color:#94a3b8;display:flex;align-items:center;gap:5px;flex-shrink:0}
.sug-kbd{background:#e2e8f0;border:1px solid #cbd5e1;border-radius:4px;padding:1px 5px;font-size:11px;font-family:inherit;color:#475569;line-height:1.4}

/* Main */
.main{padding:48px 0 88px}
.wrap{max-width:1080px;margin:0 auto;padding:0 1.5rem}

/* Results */
#results-section{display:none}
.results-meta{font-size:13px;color:#64748b;margin-bottom:16px}
.results-meta strong{color:#0f172a;font-weight:600}
.r-item{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:17px 20px;margin-bottom:8px;text-decoration:none;display:flex;align-items:flex-start;gap:13px;transition:border-color .13s,box-shadow .13s,transform .1s}
.r-item:hover{border-color:#bfdbfe;box-shadow:0 4px 14px rgba(15,35,65,.08);transform:translateY(-1px)}
.r-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;flex-shrink:0;margin-top:1px}
.r-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r-body{flex:1;min-width:0}
.r-title{font-size:15px;font-weight:700;color:#0f2341;margin-bottom:3px}
.r-title mark{background:#fef9c3;border-radius:2px;padding:0 2px;font-style:normal}
.r-url{font-size:11px;color:#2563eb;font-weight:600;margin-bottom:4px}
.r-desc{font-size:13px;color:#64748b;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.r-desc mark{background:#fef9c3;border-radius:2px;padding:0 2px}
.r-tag{font-size:10px;font-weight:700;background:#dbeafe;color:#1d4ed8;padding:2px 9px;border-radius:100px;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0;margin-top:2px}
.r-arrow{color:#cbd5e1;flex-shrink:0;margin-top:4px;transition:transform .13s,color .13s}
.r-arrow svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r-item:hover .r-arrow{transform:translateX(3px);color:#2563eb}
.no-results{text-align:center;padding:52px 20px;color:#64748b}
.no-results strong{display:block;font-size:17px;color:#0f172a;margin-bottom:6px}

/* Browse */
.sec-label{font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#2563eb;margin-bottom:6px}
.sec-title{font-size:clamp(1.5rem,2.5vw,2rem);font-weight:800;color:#0f2341;letter-spacing:-.04em;margin-bottom:6px}
.sec-desc{font-size:.9rem;color:#64748b;margin-bottom:1.75rem}

/* Pills */
.pills{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:28px}
.pill{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #e2e8f0;color:#475569;text-decoration:none;padding:6px 13px;border-radius:100px;font-size:13px;font-weight:500;transition:background .12s,color .12s,border-color .12s}
.pill:hover{background:#dbeafe;border-color:#bfdbfe;color:#1d4ed8}
.pill svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:22px;text-decoration:none;display:block;position:relative;overflow:hidden;transition:border-color .15s,box-shadow .15s,transform .12s}
.card::after{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#2563eb,#60a5fa);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.card:hover::after{transform:scaleX(1)}
.card:hover{border-color:#bfdbfe;box-shadow:0 6px 18px rgba(15,35,65,.08);transform:translateY(-2px)}
.card-ic{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;margin-bottom:13px}
.card-ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.card h3{font-size:14px;font-weight:700;color:#0f2341;margin-bottom:5px}
.card p{font-size:13px;color:#64748b;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-arr{position:absolute;bottom:14px;right:14px;opacity:0;color:#2563eb;transition:opacity .15s}
.card-arr svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.card:hover .card-arr{opacity:1}

/* Icon tints */
.ic-b{background:#eff6ff;color:#2563eb}.ic-p{background:#f5f3ff;color:#7c3aed}.ic-g{background:#f0fdf4;color:#16a34a}.ic-o{background:#fff7ed;color:#ea580c}.ic-r{background:#fef2f2;color:#dc2626}.ic-t{background:#f0fdfa;color:#0d9488}.ic-pk{background:#fdf4ff;color:#a21caf}.ic-i{background:#eef2ff;color:#4f46e5}.ic-a{background:#fffbeb;color:#d97706}.ic-c{background:#ecfeff;color:#0891b2}.ic-s{background:#f1f5f9;color:#475569}

/* Empty states. The suggestions panel used to close itself when nothing
   matched, so a mistyped search gave no feedback at all. */
.sug-empty{padding:22px 18px 20px;text-align:center}
.sug-empty-ic{width:34px;height:34px;border-radius:10px;background:#f1f5f9;color:#94a3b8;display:grid;place-items:center;margin:0 auto 10px}
.sug-empty-ic svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sug-empty-title{font-size:13.5px;font-weight:700;color:#0f2341;margin-bottom:12px}
.sug-empty-lead{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8;margin-bottom:9px}
.sug-empty-terms{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.sug-term,.nr-term{background:#eff6ff;border:1px solid #bfdbfe;color:#2563eb;border-radius:100px;font-size:12px;font-weight:600;padding:2px 10px;cursor:pointer;font-family:inherit;transition:background .13s}
.sug-term:hover,.nr-term:hover{background:#dbeafe}
.nr-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:34px 24px;text-align:center}
.nr-ic{width:44px;height:44px;border-radius:12px;background:#f1f5f9;color:#64748b;display:grid;place-items:center;margin:0 auto 14px}
.nr-ic svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nr-title{font-size:15px;font-weight:700;color:#0f2341;margin-bottom:6px}
.nr-sub{font-size:13px;color:#64748b;line-height:1.7;margin-bottom:6px}
.nr-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.nr-link{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:8px 13px;font-size:12.5px;font-weight:600;color:#0f2341;text-decoration:none;transition:border-color .13s,box-shadow .13s}
.nr-link:hover{border-color:#bfdbfe;box-shadow:0 2px 8px rgba(15,35,65,.06)}
.nr-link-ic{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;flex-shrink:0}
.nr-link-ic svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Footer */
.footer{background:#0f2341;border-top:1px solid rgba(255,255,255,.06);padding:26px 24px}
.footer-inner{max-width:1080px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.footer p{font-size:13px;color:rgba(255,255,255,.35)}
.footer-links{display:flex;gap:20px}
.footer-links a{font-size:13px;color:rgba(255,255,255,.35);text-decoration:none;transition:color .13s}
.footer-links a:hover{color:rgba(255,255,255,.75)}

@media(max-width:640px){
  .logo-sub{display:none}
  .nav-search{display:none}
  .hero{padding:52px 0 44px}
  .hero-h1{font-size:2rem}
  .grid{grid-template-columns:1fr}
  .footer-inner{flex-direction:column;text-align:center}
  .footer-links{justify-content:center}
}

/* Browse page: the two audiences and one box per category (a short list of links, the rest on request) */
.aud-tabs{display:inline-flex;background:#f1f5f9;border-radius:5px;padding:4px;gap:4px;margin:0 0 22px}
.aud-tab{border:0;background:transparent;padding:8px 16px;border-radius:5px;font-family:inherit;font-size:13px;font-weight:600;color:#64748b;cursor:pointer;transition:background .12s,color .12s}
.aud-tab:hover{color:#0f2341}
.aud-tab[aria-selected="true"]{background:#fff;color:#0f2341;box-shadow:0 1px 3px rgba(15,35,65,.12)}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.tile{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;background:#fff;border:1px solid #bfdbfe;border-radius:5px;font-family:inherit;font-size:13.5px;font-weight:500;color:#1d4ed8;text-align:center;cursor:pointer;transition:background .12s,border-color .12s,box-shadow .12s}
.tile:hover{background:#eff6ff;border-color:#60a5fa}
.tile[aria-expanded="true"]{background:#dbeafe;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.tile-count{font-size:11.5px;color:#94a3b8;font-weight:500}
.panel{margin-top:18px;background:#fff;border:1px solid #e2e8f0;border-radius:5px;padding:18px 20px}
.panel-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #f1f5f9}
.panel-head h3{font-size:15px;font-weight:700;color:#0f2341;margin:0}
.panel-head span{font-size:12px;color:#94a3b8}
.panel-list{list-style:none;margin:0;padding:0;columns:2 280px;column-gap:28px}
.panel-list li{break-inside:avoid}
.panel-list a{display:block;padding:7px 8px;border-radius:7px;font-size:13.5px;line-height:1.4;color:#334155;text-decoration:none}
.panel-list a:hover{background:#eff6ff;color:#1d4ed8}
.popular{margin-top:30px}
.pop-title{font-size:15px;font-weight:700;color:#0f2341;margin:0 0 8px}
.recent{margin-top:30px}
.recent-list{list-style:none;margin:0;padding:0;border-top:1px solid #e2e8f0}
.recent-list a{display:grid;grid-template-columns:150px 1fr auto;gap:14px;align-items:baseline;padding:12px 4px;border-bottom:1px solid #e2e8f0;text-decoration:none}
.recent-list a:hover{background:#f8fafc}
.recent-cat{font-size:12px;font-weight:600;color:#2563eb}
.recent-title{font-size:13.5px;color:#0f2341}
.recent-date{font-size:12px;color:#94a3b8;white-space:nowrap}
@media(max-width:640px){.recent-list a{grid-template-columns:1fr;gap:2px}}
.hc-index{display:flex;flex-direction:column;min-height:100vh}
.hc-index .main{flex:1}
/* The browse page has sharp corners: the search field and its suggestions too */
.hc-index .search-box input[type=search],.hc-index .suggestions{border-radius:5px}

/* Corners of the navigation and of the cards inside articles (owner request, 2026-11-10). Articles carry their own inline <style> after this file, so
   these rules are written with a heavier selector. Round pills (badges, chips, step numbers) are left alone. */
.nav-btn,.lang-switch,.nav-search input[type=search]{border-radius:5px}
html body .toc,html body .toc a,html body .toc-back,html body .mob-jump,html body .mob-jump select,html body .intro-card,html body .callout,html body .helpful,
html body .helpful-btn,html body .related-link,html body .qt-card,html body .qt-icon,html body .scenario,html body .logic-demo,html body .action-card,
html body .journey,html body .journey li a,html body .np,html body .art-content code,html body .qt-example,html body .qt-example-input{border-radius:5px}
