/* SJA Learning — "hub" layout (26 Sep 2026): the JAIIB learning hub (/jaiib/) and the Blog index (/blog/) after the
   SJA-JAIIB / SJA-Blog design references. Loaded after theme.css; everything is scoped under .hub so the shared nav,
   footer, island, chat and pop-ups keep their own styles. Icons: Lucide (ISC, https://lucide.dev). */
.hub{--navy:#223b83;--pale:#e6def5;--mint:#c7f2eb;--soft:var(--blue-soft);color:var(--ink);background:var(--bg2)}
.hub .wrap{max-width:1180px}
.hub .ico{width:18px;height:18px;flex:none}
.hub h1,.hub h2,.hub h3,.hub p{margin:0}
.hub h1{font-size:clamp(34px,4.6vw,48px);font-weight:800;letter-spacing:-.035em;line-height:1.14}
.hub h2{font-size:clamp(23px,2.5vw,28px);font-weight:800;letter-spacing:-.025em;line-height:1.25}
.hub h3{font-size:18px;font-weight:800;letter-spacing:-.01em;line-height:1.3}
.hub .eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--blue);text-transform:uppercase}
.hub .crumb{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--mut);padding-top:24px}
.hub .crumb a{color:var(--mut)}.hub .crumb a:hover{color:var(--blue);text-decoration:none}
.hub .crumb .ico{width:13px;height:13px}
.hub .hbtn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 18px;border-radius:11px;background:var(--blue);color:#fff;font-size:14.5px;font-weight:800;border:1.5px solid var(--blue);text-decoration:none;cursor:pointer;font-family:inherit;transition:background .15s,box-shadow .15s,border-color .15s}
.hub .hbtn:hover{background:var(--blue-d);border-color:var(--blue-d);text-decoration:none;box-shadow:0 10px 26px -14px rgba(85,64,199,.8)}
.hub .hbtn.outline{background:#fff;border-color:var(--line);color:var(--ink)}
.hub .hbtn.outline:hover{background:var(--blue-soft);border-color:var(--blue-line);box-shadow:none}
.hub .hbtn.white{background:#fff;border-color:#fff;color:var(--navy)}
.hub .hbtn.white:hover{background:#e9f0ff;border-color:#e9f0ff;box-shadow:none}
.hub .hbtn .ico{width:16px;height:16px}
.hub .iconbox{display:grid;place-items:center;background:var(--soft);color:var(--blue);border-radius:11px;width:38px;height:38px;flex:none}
.hub .iconbox .ico{width:19px;height:19px}
.hub .tag{color:var(--blue);font-weight:800;font-size:12.5px}
.hub .search{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1.5px solid var(--line);background:#fff;border-radius:11px;min-width:260px;color:var(--mut)}
.hub .search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.hub .search .ico{width:16px;height:16px}
.hub .search input{min-width:0;width:100%;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14.5px;outline:none}
.hub .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hub [hidden]{display:none!important}
.hub .hero{padding:32px 0 30px;display:flex;align-items:flex-end;justify-content:space-between;gap:36px}
.hub .hero h1{margin:14px 0 16px}
.hub .hero h1 span{color:var(--blue)}
.hub .hero p{font-size:16px;color:var(--mut);max-width:620px;line-height:1.6}
.hub .hero-note{font-size:13.5px;color:var(--mut);max-width:220px;border-left:2px solid var(--line);padding-left:18px;margin-bottom:8px;line-height:1.6}
.hub .section-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:36px 0 20px}
.hub .section-head p{color:var(--mut);font-size:14px;margin-top:6px}
.hub .cta{display:flex;justify-content:space-between;align-items:center;gap:25px;background:var(--soft);border:1px solid var(--blue-line);border-radius:16px;padding:24px 28px;margin:32px 0 40px}
.hub .cta h2{font-size:21px}
.hub .cta p{font-size:14px;color:var(--mut);margin-top:5px}
.hub .source-note{font-size:13px;color:var(--mut);margin:16px 0 0}
.hub button:focus-visible,.hub a:focus-visible,.hub input:focus-visible,.hub summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* ---- JAIIB hub ---- */
.hub .jaiib-hero{align-items:center}
.hub .hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hub .starter{background:var(--navy);color:#fff;padding:26px;border-radius:18px;min-width:270px;max-width:320px;box-shadow:0 24px 50px -28px rgba(52,55,140,.55)}
.hub .starter .eyebrow{color:var(--mint);font-size:11.5px}
.hub .starter h2{font-size:23px;margin:13px 0 10px;color:#fff}
.hub .starter p{font-size:13.5px;color:var(--pale);margin-bottom:18px}
.hub .starter .hbtn{width:100%}
.hub .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.hub .stats>div{display:flex;align-items:center;gap:13px}
.hub .stats strong{font-size:24px;font-weight:800;display:block;line-height:1.2}
.hub .stats span{display:block;font-size:13px;color:var(--mut)}
.hub .stats .iconbox{width:42px;height:42px}
.hub .papers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}
.hub .papers button{border:1px solid var(--line);background:#fff;color:var(--ink);padding:17px;text-align:left;border-radius:12px;min-width:0;font:inherit;cursor:pointer;transition:border-color .15s,background .15s}
.hub .papers button:hover{border-color:var(--blue-line);background:var(--blue-soft)}
.hub .papers button[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.hub .papers small{display:block;font-size:11.5px;color:var(--mut);margin-bottom:7px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.hub .papers strong{font-size:19px;font-weight:800}
.hub .papers span{display:block;font-size:13px;color:var(--mut);margin-top:4px}
.hub .papers button[aria-pressed="true"] small,.hub .papers button[aria-pressed="true"] span{color:var(--pale)}
.hub .explorer{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:var(--shadow)}
.hub .explorer-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.hub .explorer h3{font-size:22px}
.hub .explorer-heading p{color:var(--mut);font-size:14px;margin-top:6px}
.hub .explorer-heading p a{color:var(--blue);font-weight:700}
.hub .free-tag{font-size:12.5px;font-weight:800;color:var(--blue);background:var(--soft);border-radius:8px;padding:7px 11px;white-space:nowrap}
.hub .module{border-top:1px solid var(--line)}
.hub .module summary{list-style:none;display:flex;align-items:center;gap:13px;padding:17px 0;font-size:15px;font-weight:800;cursor:pointer}
.hub .module summary::-webkit-details-marker{display:none}
.hub .module summary:hover .module-title{color:var(--blue)}
.hub .module-code{width:34px;height:34px;display:grid;place-items:center;color:var(--blue);background:var(--soft);border-radius:9px;font-size:13px;flex:none}
.hub .module summary .module-title{flex:1}
.hub .module summary small{font-size:13px;color:var(--mut);font-weight:500;white-space:nowrap}
.hub .module summary .ico{width:16px;height:16px;transition:transform .15s}
.hub .module[open] summary .ico{transform:rotate(180deg)}
.hub .units{list-style:none;margin:0;padding:0 0 14px 47px}
.hub .unit-link{display:flex;align-items:center;gap:11px;padding:11px 0;border-top:1px solid var(--line);font-size:14px;color:var(--ink);text-decoration:none}
.hub .unit-link:hover strong{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.hub .unit-link>span:first-child{font-size:12.5px;color:var(--mut);min-width:40px}
.hub .unit-link strong{font-weight:500;flex:1}
.hub .unit-link .unit-action{font-size:12.5px;color:var(--blue);white-space:nowrap;font-weight:700}
.hub .unit-link .ico{width:14px;height:14px;color:var(--blue)}
.hub .search-results .unit-link{padding:14px 0}
.hub .search-results .unit-link>span:first-child{min-width:84px}
.hub .search-results .count{font-size:13px;color:var(--mut);margin-bottom:6px}
.hub .empty{padding:32px;border:1px dashed var(--line);border-radius:14px;text-align:center}
.hub .empty p{color:var(--mut);margin:10px 0 18px}
.hub .module-note{font-size:13px;color:var(--mut);margin-top:14px}
.hub .method{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:26px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:30px}
.hub .method strong{font-size:15px;display:block}
.hub .method p{font-size:14px;color:var(--mut);margin-top:6px}
.hub .method .tag{margin-bottom:8px;display:block;letter-spacing:.06em}
.hub .essentials{background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 22px;box-shadow:var(--shadow)}
.hub .essential+.essential{border-top:1px solid var(--line)}
.hub .essential summary{display:flex;align-items:center;justify-content:space-between;gap:18px;list-style:none;font-weight:800;font-size:15px;padding:18px 0;cursor:pointer}
.hub .essential summary::-webkit-details-marker{display:none}
.hub .essential summary:hover{color:var(--blue)}
.hub .essential summary .ico{width:16px;height:16px;transition:transform .15s}
.hub .essential[open] summary .ico{transform:rotate(180deg)}
.hub .guide-body{font-size:14.5px;line-height:1.75;padding:0 0 20px;color:var(--text)}
.hub .guide-body p{margin:12px 0}
.hub .guide-body ul{padding-left:21px;margin:6px 0}
.hub .guide-body li{margin:7px 0}
.hub .guide-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.hub .guide-body table{width:100%;border-collapse:collapse;font-size:13.5px}
.hub .guide-body td,.hub .guide-body th{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.hub .guide-body th{color:var(--mut);font-weight:700}
.hub .guide-body .steps{display:grid;gap:12px;margin:9px 0}
.hub .guide-body .steps>div{background:var(--bg2);border:1px solid var(--line2);border-radius:10px;padding:12px 14px}
.hub .guide-body .table-wrap{max-width:100%;overflow-x:auto}
.hub .guide-body b{color:var(--ink)}
.hub .guide-body dl{margin:0}.hub .guide-body dt{font-weight:800;color:var(--ink);margin-top:14px}.hub .guide-body dd{margin:4px 0 0}

/* ---- Blog index ---- */
.hub .feature{background:var(--navy);color:#fff;border-radius:18px;padding:30px 34px;display:grid;grid-template-columns:1.3fr 1fr;gap:40px;box-shadow:0 24px 50px -28px rgba(52,55,140,.55)}
.hub .feature .eyebrow{color:var(--mint)}
.hub .feature h2{font-size:clamp(24px,2.8vw,31px);line-height:1.3;margin:12px 0;color:#fff}
.hub .feature p{color:var(--pale);font-size:14.5px;max-width:500px;margin-bottom:22px}
.hub .feature aside{padding:18px 0 10px 26px;border-left:1px solid rgba(255,255,255,.22);display:grid;gap:20px;align-content:center}
.hub .feature-step{display:flex;gap:13px;align-items:flex-start}
.hub .feature-step>span{color:var(--mint);font-size:13px;font-weight:800;padding-top:3px}
.hub .feature-step strong{font-size:15px;display:block}
.hub .feature-step small{display:block;color:var(--pale);font-size:13px;margin-top:3px}
.hub .filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.hub .filters button{border:1px solid var(--line);background:#fff;color:var(--mut);padding:9px 14px;border-radius:9px;font:inherit;font-size:13.5px;font-weight:700;min-height:40px;cursor:pointer;transition:background .15s,color .15s}
.hub .filters button:hover{color:var(--ink);background:var(--bg3)}
.hub .filters button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.hub .count{font-size:13px;color:var(--mut);margin-bottom:14px}
.hub .articles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.hub .article{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);transition:transform .15s var(--ease),border-color .15s,box-shadow .15s}
.hub .article:hover{transform:translateY(-3px);border-color:var(--blue-line);box-shadow:var(--shadow-lg);text-decoration:none}
.hub .article-top{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.hub .article h3{font-size:18px;line-height:1.4;margin-bottom:10px}
.hub .article p{color:var(--mut);font-size:14px;line-height:1.7;margin-bottom:18px}
.hub .article-bottom{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-top:auto}
.hub .article-bottom span{color:var(--mut)}
.hub .article-bottom strong{display:flex;align-items:center;gap:7px;color:var(--blue);font-size:13px}
.hub .article-bottom .ico{width:14px;height:14px}
.hub .load{text-align:center;margin-top:22px}
.hub .guides{background:var(--soft);border:1px solid var(--blue-line);border-radius:16px;padding:26px;margin-top:34px}
.hub .guides h2{font-size:22px}
.hub .guides>p{font-size:14px;color:var(--mut);margin-top:5px}
.hub .guide-list{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:20px}
.hub .guide-list a{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px 14px;font-size:14px;font-weight:800;color:var(--ink);text-decoration:none;transition:border-color .15s}
.hub .guide-list a:hover{border-color:var(--blue-line);text-decoration:none}
.hub .guide-list a>span{display:block;color:var(--blue);font-size:11.5px;margin-bottom:9px;letter-spacing:.06em}
.hub .guide-list .ico{width:14px;height:14px;margin-top:11px;display:block;color:var(--blue)}

/* ---- responsive ---- */
@media(max-width:960px){.hub .articles{grid-template-columns:repeat(2,1fr)}.hub .guide-list{grid-template-columns:repeat(3,1fr)}.hub .feature{gap:24px;padding:26px}.hub .hero-note{display:none}.hub .jaiib-hero{gap:22px}.hub .starter{min-width:240px}}
@media(max-width:720px){.hub .hero{padding:24px 0;display:block}.hub .hero p{font-size:15px}.hub .feature{grid-template-columns:1fr;padding:24px;gap:20px}.hub .feature aside{border-left:0;border-top:1px solid rgba(255,255,255,.22);padding:18px 0 0;gap:14px}.hub .section-head{display:block;margin-top:28px}.hub .section-head>.hbtn{margin-top:14px}.hub .search{margin-top:16px;min-width:0}.hub .search input{font-size:16px}.hub .articles{grid-template-columns:1fr;gap:13px}.hub .guide-list{grid-template-columns:1fr 1fr}.hub .guides{padding:22px}.hub .cta{display:block;padding:22px}.hub .cta>.hbtn{width:100%;margin-top:16px}.hub .starter{max-width:none;min-width:0;margin-top:22px;padding:22px}.hub .starter .hbtn{width:auto}.hub .stats{gap:10px;padding:16px 0}.hub .stats .iconbox{display:none}.hub .papers{grid-template-columns:repeat(2,1fr)}.hub .papers button{padding:15px}.hub .explorer{padding:18px}.hub .explorer-heading{display:block}.hub .free-tag{display:inline-block;margin-top:11px}.hub .module summary{gap:9px;font-size:14px;align-items:flex-start}.hub .module summary .module-title{padding-top:6px;overflow-wrap:anywhere}.hub .module summary small{padding-top:7px}.hub .module summary .ico{margin-top:8px}.hub .module-code{width:28px;height:30px;font-size:12px}.hub .units{padding-left:0}.hub .unit-link{align-items:flex-start;gap:8px}.hub .unit-link .unit-action{display:none}.hub .unit-link>span:first-child{min-width:34px}.hub .unit-link .ico{margin-top:4px}.hub .method{grid-template-columns:1fr;gap:19px}.hub .essentials{padding:0 18px}.hub .hero-actions .hbtn{flex:1;font-size:13.5px;padding:11px}}
@media(max-width:420px){.hub .filters{gap:6px}.hub .filters button{padding:8px 10px;font-size:13px}.hub .guide-list{grid-template-columns:1fr}.hub .papers{grid-template-columns:1fr 1fr;gap:8px}.hub .papers strong{font-size:17px}.hub .stats{grid-template-columns:1fr 1fr 1fr;gap:6px}.hub .stats strong{font-size:20px}.hub .stats span{font-size:11.5px}.hub .guide-body td,.hub .guide-body th{font-size:12.5px;padding:9px 5px}.hub .search-results .unit-link>span:first-child{min-width:64px;font-size:11.5px}}
@media(prefers-reduced-motion:reduce){.hub *{transition:none!important;scroll-behavior:auto!important}}

/* bold face from the design reference (Amitesh, 26 Sep 2026) */
.hub h1,.hub h2,.hub h3,.hub .eyebrow,.hub .hbtn,.hub .tag,.hub .free-tag,.hub .papers strong,.hub .papers small,.hub .stats strong,.hub .module summary,.hub .module-code,.hub .essential summary,.hub .feature-step strong,.hub .feature-step>span,.hub .guide-list a,.hub .filters button,.hub .article-bottom strong,.hub .method strong,.hub .unit-link .unit-action,.hub .guide-body dt,.hub .guide-body th{font-family:"SJA Bold",Manrope,system-ui,sans-serif}
.hub h1{font-size:clamp(30px,4.2vw,44px)}.hub h2{font-size:clamp(22px,2.3vw,26px)}.hub h3{font-size:17px}.hub .article h3{font-size:17px}.hub .explorer h3{font-size:21px}.hub .feature h2{font-size:clamp(23px,2.6vw,29px)}.hub .starter h2{font-size:22px}

/* ---- Violet pattern (28 Sep 2026) — same pattern as the homepage; tokens in theme.css ---- */
.hub .eyebrow{color:var(--acc-d)}
.hub .hbtn{background:var(--grad);border-color:transparent;box-shadow:0 10px 26px -14px rgba(85,64,199,.8)}
.hub .hbtn:hover{background:var(--grad-d);border-color:transparent}
.hub .hbtn.outline{background:#fff;border-color:var(--acc-line);color:#253458;box-shadow:none}
.hub .hbtn.outline:hover{background:var(--acc-soft);border-color:var(--acc-line)}
.hub .hbtn.white{background:#fff;border-color:#fff;color:#452585}
.hub .hbtn.white:hover{background:#efe9ff;border-color:#efe9ff}
.hub .tag,.hub .free-tag,.hub .guide-list a>span,.hub .papers small,.hub .stats strong{color:var(--acc-d)}
.hub .free-tag,.hub .iconbox{background:var(--acc-soft)}
.hub .iconbox{color:var(--acc-d)}
.hub .starter,.hub .feature{background:var(--deep-grad)}
.hub .starter .eyebrow,.hub .feature .eyebrow{color:var(--mint)}
.hub .hero{background:#eee8ff;box-shadow:0 0 0 100vmax #eee8ff;clip-path:inset(-8px -100vmax)}
.hub .hero h1 span{color:var(--acc)}
/* the four paper tabs and stats wear their own colours */
.hub .papers button{--pc:var(--violet);--pc-soft:var(--violet-soft);--pc-line:var(--violet-line);background:var(--pc-soft);border-color:transparent;border-top:4px solid var(--pc)}
.hub .papers button[data-paper="ppb"]{--pc:var(--teal);--pc-soft:var(--teal-soft);--pc-line:var(--teal-line)}
.hub .papers button[data-paper="afm"]{--pc:var(--amber);--pc-soft:var(--amber-soft);--pc-line:var(--amber-line)}
.hub .papers button[data-paper="rbwm"]{--pc:var(--rose);--pc-soft:var(--rose-soft);--pc-line:var(--rose-line)}
.hub .papers button small,.hub .papers button strong{color:var(--pc)}
.hub .papers button:hover{background:#fff;border-color:var(--pc-line);border-top-color:var(--pc)}
.hub .papers button[aria-pressed="true"]{background:var(--pc);border-color:var(--pc);color:#fff}
.hub .papers button[aria-pressed="true"] small,.hub .papers button[aria-pressed="true"] strong,.hub .papers button[aria-pressed="true"] span{color:#fff}
.hub .papers button[aria-pressed="true"] small,.hub .papers button[aria-pressed="true"] span{opacity:.85}
.hub .stats>div:nth-child(2) strong{color:var(--teal)}.hub .stats>div:nth-child(2) .iconbox{background:var(--teal-soft);color:var(--teal)}
.hub .stats>div:nth-child(3) strong{color:var(--amber)}.hub .stats>div:nth-child(3) .iconbox{background:var(--amber-soft);color:var(--amber)}
.hub .articles .article:nth-child(3n+1){border-top:4px solid #cf7893;background:linear-gradient(155deg,#fff0f4,#fff 65%)}
.hub .articles .article:nth-child(3n+2){border-top:4px solid #62a89c;background:linear-gradient(155deg,#eaf8f2,#fff 65%)}
.hub .articles .article:nth-child(3n){border-top:4px solid #9b88d2;background:linear-gradient(155deg,#f1eaff,#fff 65%)}
@media(prefers-reduced-motion:reduce){.hub *{transition:none!important;scroll-behavior:auto!important}}
