/* Blog hub, blog pages and category and tag pages (DEV-503: UX reviews 2026-11-24 rounds 1 and 2,
   consistency review BH3 2026-11-25). Colours, card, filter panel and page width follow /courses/
   (.os-a tokens, .os-a-card, .os-a-filters in os-training-snippets) so the blog reads as the same site. */
.os-hub{--os-hub-blue:#2f62af;--os-hub-blue-soft:rgba(47,98,175,.10);--os-hub-text:#1e293b;--os-hub-muted:#64748b;--os-hub-line:#e5e7eb;--os-hub-shadow:0 1px 3px rgba(15,23,42,.06);--os-hub-shadow-lg:0 6px 24px rgba(15,23,42,.10)}

/* Full width on our views only: the theme's content column lets go, the band runs edge to edge and the body sets its own width. */
body.os-blog-wide .shoptimizer-archive > .col-full{max-width:none;padding-left:0;padding-right:0}
body.os-blog-wide #primary.os-hub{float:none;width:100%;max-width:none;margin:0}
.os-hub__main{padding:0 0 40px;color:var(--os-hub-text)}

/* Band (review H1): the os-band index hero of /learning-paths/, /challenges/ and /pricing/. */
.os-hub-band{position:relative;overflow:hidden;box-sizing:border-box;width:100%;padding:44px 0 48px;color:#fff;background:radial-gradient(900px 380px at 85% -10%,rgba(252,185,0,.28),transparent 60%),radial-gradient(700px 400px at 0% 110%,rgba(96,150,255,.35),transparent 60%),linear-gradient(135deg,#0f2347,#2f62af)}
.os-hub-band::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:36px 36px;-webkit-mask-image:linear-gradient(120deg,transparent 30%,#000);mask-image:linear-gradient(120deg,transparent 30%,#000);pointer-events:none}
.os-hub-band__in{position:relative;z-index:1;box-sizing:border-box;max-width:1500px;margin:0 auto;padding:0 24px}
.os-hub-band--feat .os-hub-band__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
.os-hub-band__eye{margin:0 0 10px;color:#fcb900;font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.os-hub-band__eye a{color:#fcb900;text-decoration:none}
.os-hub-band__eye a:hover{text-decoration:underline;text-underline-offset:3px}
.os-hub-band h1{margin:0;font-size:clamp(30px,4.6vw,48px);line-height:1.08;letter-spacing:-.02em;color:#fff;text-wrap:balance}
.os-hub-band__sub{font-size:18px;max-width:48ch;margin:14px 0 0;color:#dbe6fb}
.os-hub-band--term{padding:32px 0 36px}
.os-hub-band--term h1{font-size:clamp(26px,3.4vw,38px)}
.os-hub-band--term .os-hub-stats{margin-top:12px}
.os-hub-search{display:flex;max-width:520px;margin:22px 0 0;background:#fff;border-radius:999px;padding:4px}
.os-hub-search input[type=search]{flex:1;min-width:0;min-height:44px;border:0;background:transparent;box-shadow:none;padding:0 18px;font-size:16px;color:var(--os-hub-text)}
.os-hub-search input[type=search]:focus{outline:none}
.os-hub-search:focus-within{outline:3px solid #fcb900;outline-offset:2px}
.os-hub-search button{flex:0 0 auto;min-height:44px;border:0;border-radius:999px;background:#fcb900;color:#1b1500;font-weight:800;padding:0 22px;cursor:pointer}
.os-hub-search button:focus-visible{outline:2px solid #0f2347;outline-offset:2px}
.os-hub-stats{display:flex;flex-wrap:wrap;gap:8px 22px;margin:20px 0 0;color:#dbe6fb;font-size:15px}
.os-hub-stats b{color:#fff;font-size:20px;font-variant-numeric:tabular-nums}
.os-hub-feat{background:rgba(8,20,48,.35);border:1px solid rgba(255,255,255,.22);border-radius:16px;overflow:hidden}
.os-hub-feat__l{margin:0;padding:12px 16px 8px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#dbe6fb}
.os-hub-feat .os-hub-card{background:transparent;border:0;border-radius:0;box-shadow:none}
.os-hub-feat .os-hub-card:hover,.os-hub-feat .os-hub-card:focus-within{transform:none;box-shadow:none}
.os-hub-feat .os-hub-card__media{aspect-ratio:2.2/1}
.os-hub-feat .os-hub-card__body{padding:14px 16px 16px}
.os-hub .os-hub-feat .os-hub-card__title{font-size:20px;min-height:0;-webkit-line-clamp:3}
.os-hub-feat .os-hub-card__title a,.os-hub-feat .os-hub-card__summary,.os-hub-feat .os-hub-card__by,.os-hub-feat .os-hub-card__foot{color:#eaf1fd}
.os-hub-feat .os-hub-card__topic,.os-hub-feat .os-hub-card__more{color:#fcb900}
.os-hub-feat .os-hub-card__foot{border-top-color:rgba(255,255,255,.18)}
.os-hub-feat .os-hub-card__summary{font-size:15px}
.os-hub .os-hub-feat .os-ap-chip{background:rgba(255,255,255,.14);color:#fff}
.os-hub-feat a:focus-visible{outline-color:#fcb900}

/* Body: the /courses/ page and filter panel (BH3 U3, U5). */
.os-hub-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;box-sizing:border-box;max-width:1500px;margin:32px auto 0;padding:0 24px}
.os-hub-col{min-width:0}
.os-hub-side{position:sticky;top:100px;align-self:start;max-height:calc(100vh - 120px);overflow-y:auto;box-sizing:border-box;padding:22px;background:#fff;border:1px solid var(--os-hub-line);border-radius:14px;box-shadow:var(--os-hub-shadow);font-size:14px}
.admin-bar .os-hub-side{top:132px;max-height:calc(100vh - 152px)}
.os-hub .os-hub-side h2{margin:0 0 10px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--os-hub-muted)}
.os-hub-side section{padding-bottom:18px;margin:0 0 18px;border-bottom:1px solid var(--os-hub-line)}
.os-hub-side section:last-of-type{padding-bottom:0;margin-bottom:0;border-bottom:0}
.os-hub-side ul{list-style:none;margin:0;padding:0}
.os-hub-side li{margin:0}
.os-hub-side li a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:0 10px;border-radius:8px;color:var(--os-hub-text);text-decoration:none;transition:background-color .15s ease,color .15s ease}
.os-hub-side li a:hover{background:#f1f5f9;color:var(--os-hub-blue)}
.os-hub-side li a span{color:var(--os-hub-muted);font-size:12px;font-variant-numeric:tabular-nums}
.os-hub-side li a[aria-current="page"]{background:var(--os-hub-blue-soft);color:var(--os-hub-blue);font-weight:700;box-shadow:inset 3px 0 0 var(--os-hub-blue)}
.os-hub-side li li a{padding-left:24px}
.os-hub-side li li li a{padding-left:38px}
.os-hub-filterbtn,.os-hub-sheet-head,.os-hub-sheet-done{display:none}
.os-hub-sheet-backdrop{display:none;position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.45)}

.os-hub-sec{margin:0 0 36px}
.os-hub-sec__hd{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding-bottom:8px;border-bottom:1px solid var(--os-hub-line)}
.os-hub .os-hub-sec__hd h2{font-size:22px;margin:0;color:var(--os-hub-text)}
.os-hub-sec__hd a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;font-weight:600;color:var(--os-hub-blue);text-decoration:none;white-space:nowrap}
.os-hub-sec__hd a::after{content:"\2192"}
.os-hub-sec__hd a:hover{text-decoration:underline;text-underline-offset:3px}
.os-hub-list__hd span{font-size:14px;color:var(--os-hub-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
/* One trainer's articles (DEV-593): back to their profile, or to every trainer. */
.os-hub-list__who{display:flex;flex-wrap:wrap;gap:0 18px;margin:-6px 0 14px}
.os-hub-list__who a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:var(--os-hub-blue);text-decoration:none}
.os-hub-list__who a:hover{text-decoration:underline;text-underline-offset:3px}
.os-hub a:focus-visible,.os-hub button:focus-visible{outline:2px solid var(--os-hub-blue);outline-offset:2px}

/* Cards: the /courses/ card (BH3 U1, U4). */
.os-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.os-hub-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--os-hub-line);border-radius:12px;box-shadow:var(--os-hub-shadow);transition:transform .15s ease,box-shadow .15s ease}
.os-hub-card:hover,.os-hub-card:focus-within{transform:translateY(-4px);box-shadow:var(--os-hub-shadow-lg)}
.os-hub-card__media{display:block;aspect-ratio:16/9;overflow:hidden;background:#0e2a33}
.os-hub-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.os-hub-card__noimg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;box-sizing:border-box;padding:16px;text-align:center;font-size:15px;font-weight:700;line-height:1.3;color:#fff;background:linear-gradient(135deg,#1e3a6f,#2f62af)}
.os-hub-card__noimg svg{width:28px;height:28px;flex:none;opacity:.9}
.os-hub-card__body{display:flex;flex-direction:column;gap:6px;flex:1;padding:16px}
.os-hub-card__topic{align-self:flex-start;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--os-hub-blue);text-decoration:none}
a.os-hub-card__topic:hover{text-decoration:underline;text-underline-offset:3px}
.os-hub .os-hub-card__title{font-size:15px;font-weight:600;line-height:1.35;margin:0;min-height:2.7em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.os-hub-card__title a{color:var(--os-hub-text);text-decoration:none}
.os-hub-card__title a:hover{text-decoration:underline;text-underline-offset:3px}
.os-hub-card__summary{font-size:14px;color:var(--os-hub-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.os-hub-card__by{display:flex;align-items:center;gap:8px;min-width:0;margin-top:auto;padding-top:6px;font-size:13px;color:var(--os-hub-muted)}
.os-hub-card__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.os-hub-card__by .os-hub-card__avatar{flex:none;width:24px;height:24px;border-radius:50%}
.os-hub .os-ap-chip{flex:none;background:var(--os-hub-blue-soft);color:var(--os-hub-blue)}
.os-hub-card__foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:10px;border-top:1px solid var(--os-hub-line);font-size:13px;color:var(--os-hub-muted);font-variant-numeric:tabular-nums}
.os-hub-card__more{font-weight:600;color:var(--os-hub-blue);text-decoration:none;white-space:nowrap}
.os-hub-card__more::after{content:" \2192"}

.os-hub-pag{display:flex;align-items:center;justify-content:center;gap:16px;margin:32px 0 0;font-size:14px}
.os-hub-pag a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--os-hub-blue)}
.os-hub-empty{max-width:640px;margin:8px auto 32px;padding:36px 24px;text-align:center;border:1px dashed #cbd5e1;border-radius:12px}
.os-hub-empty svg{width:40px;height:40px;color:var(--os-hub-blue)}
.os-hub .os-hub-empty h2{font-size:20px;margin:10px 0 6px}
.os-hub-empty p{color:var(--os-hub-muted);margin:0 0 16px}
.os-hub-empty a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:12px 22px;border-radius:8px;font-weight:600;text-decoration:none;background:var(--os-hub-blue);color:#fff}

@media (prefers-reduced-motion:reduce){
	.os-hub-card,.os-hub-side li a{transition:none}
	.os-hub-card:hover,.os-hub-card:focus-within{transform:none}
}
@media (max-width:1100px){
	.os-hub-col .os-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
	.os-hub-band{padding:28px 0 32px}
	.os-hub-band__in{padding:0 16px}
	.os-hub-band--feat .os-hub-band__in{grid-template-columns:1fr;gap:24px}
	.os-hub-band__sub{font-size:16px}
	.os-hub-body{grid-template-columns:1fr;gap:0;margin-top:20px;padding:0 16px}
	.os-hub-side{position:static;max-height:none;overflow:visible;margin:0 0 20px}
	/* Phones: the Filter and sort button and bottom sheet of /courses/ (BH3 U5, "Bottom sheet like /courses/"). */
	.os-hub-js .os-hub-filterbtn{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:0 0 16px;padding:10px 16px;background:#fff;border:1px solid var(--os-hub-line);border-radius:10px;color:var(--os-hub-text);font-size:15px;font-weight:600;text-align:left;cursor:pointer}
	.os-hub-js .os-hub-side{display:none;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:100000;max-height:85vh;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:0 20px 20px;border:0;border-radius:16px 16px 0 0;box-shadow:var(--os-hub-shadow-lg)}
	.os-hub-js .os-hub-side.is-open{display:block}
	.os-hub-js .os-hub-sheet-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;margin:0 -20px 16px;padding:8px 8px 8px 20px;background:#fff;border-bottom:1px solid var(--os-hub-line)}
	.os-hub .os-hub-side .os-hub-sheet-title{margin:0;font-size:17px;letter-spacing:0;text-transform:none;color:var(--os-hub-text)}
	.os-hub-sheet-close{width:44px;height:44px;background:none;border:0;color:var(--os-hub-muted);font-size:28px;line-height:1;cursor:pointer}
	.os-hub-js .os-hub-sheet-done{display:block;width:100%;min-height:44px;margin-top:16px;background:var(--os-hub-blue);border:0;border-radius:8px;color:#fff;font-size:15px;font-weight:700;cursor:pointer}
	html.os-hub-sheet-on{overflow:hidden}
	.os-hub-js .os-hub-sheet-backdrop:not([hidden]){display:block}
}
@media (max-width:600px){
	.os-hub .os-hub-sec__hd h2{font-size:20px}
	.os-hub .os-hub-feat .os-hub-card__title{font-size:18px}
	/* Phones: stacked cards as on /courses/ (BH3 U7, "Stacked like /courses/", replaces round 1 compact rows). */
	.os-hub-col .os-hub-grid{grid-template-columns:1fr;gap:12px}
	.os-hub-pag{gap:10px}
}
