/* Hub and index pages (the library, Webinars, the blog index): only what shared/product.css lacks.
   Owned by the pages-hubs tab, 3 Nov. Linked from those three pages only.
   Hub review fixes (3 Nov): 1 (#0b7a66 small teal), 2, 7, 9, 10, 12, 13, 16, 20. */

/* hero: words on the left, a picture on the right, as the full-site report's library mockup drew it */
.hero.hub { min-height: 0; text-align: left; padding-bottom: clamp(96px, 10vw, 150px); }
.hero.hub .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); justify-items: stretch; align-items: center; gap: clamp(32px, 5vw, 96px); }
.hub-words { display: grid; gap: 24px; justify-items: start; }
.hero.hub h1 { max-width: 13ch; }
.hero.hub h1 em { font-style: normal; color: var(--teal-deep); }
.hero.hub .btns { justify-content: flex-start; }
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; margin: 4px 0 8px; }
/* the live hero picture has a white background baked in, so it sits on a plain white tile */
.hub-shot { background: var(--paper); border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line); padding: 6%; aspect-ratio: 1; display: grid; place-items: center; }
.hub-shot img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- the live lesson library (its own code and styles, scoped to #ayl-lib), dressed to the page ---------- */
.lib-sec { padding-top: clamp(48px, 5vw, 80px); }
.lib-embed #ayl-lib { --ink: #0c355c; --ink-2: #46607a; --ink-3: #5a6c80; --navy: #0c355c; --cardbg: var(--cream); --surface: #fff; --line: #e6e1d8; --hover: #efece6; --teal: #2cd1b1; --teal-ink: #0f9c83; font-size: 16px; }
.lib-embed #ayl-lib .ayl-card { border: 0; border-radius: var(--r-xl); padding: clamp(16px, 2.6vw, 40px); }
/* the six formats: picture tiles that act as tabs */
.lib-embed #ayl-lib .ayl-tabs { gap: 10px; margin-bottom: 24px; }
/* Five tabs, five slots (going-over point 93, Oli, 5 Nov): the Compliance tab went on 3 Nov, so the row now reaches the search box */
.lib-embed #ayl-lib .ayl-tabs { --ayl-tabs: 5; }
.lib-embed #ayl-lib .ayl-tab { border: 0; border-radius: var(--r-m); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
@media (min-width: 561px) { .lib-embed #ayl-lib .ayl-tab { padding: 10px 10px 16px; } }
.lib-embed #ayl-lib .ayl-tab:hover { box-shadow: 0 0 0 1px rgba(12, 53, 92, .15); }
@media (min-width: 561px) { .lib-embed #ayl-lib .ayl-tab-img { height: auto; aspect-ratio: 16 / 10; border-radius: 8px; background: #f7f6f3; } }
.lib-embed #ayl-lib .ayl-tab-name { font-weight: 500; font-size: 16px; padding: 0 4px; }
.lib-embed #ayl-lib .ayl-tab-count, .lib-embed #ayl-lib .ayl-tab-hit { padding: 0 4px; font-size: 12px; }
.lib-embed #ayl-lib .ayl-tab[aria-selected="true"] .ayl-tab-count { color: #9fb3c6; opacity: 1; }
/* search and topic */
.lib-embed #ayl-lib .ayl-search, .lib-embed #ayl-lib .ayl-topic-select { border: 1px solid var(--line); min-height: 48px; padding-left: 22px; font-size: 15px; }
.lib-embed #ayl-lib .ayl-topic-select { font-weight: 400; }
.lib-embed #ayl-lib .ayl-topic-select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lib-embed #ayl-lib .ayl-count { font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 20px 0 12px; }
.lib-embed #ayl-lib .ayl-count b { color: var(--ink-soft); font-weight: 500; }
/* one lesson row */
.lib-embed #ayl-lib .ayl-rows { gap: 6px; }
.lib-embed #ayl-lib .ayl-row { border: 0; border-radius: var(--r-m); }
.lib-embed #ayl-lib .ayl-row.is-sample { box-shadow: inset 0 0 0 1px var(--teal); }
.lib-embed #ayl-lib .ayl-head { padding: 16px 20px; }
.lib-embed #ayl-lib .ayl-toggle { font-weight: 400; font-size: 17px; }
.lib-embed #ayl-lib .ayl-sample { font-weight: 500; }
.lib-embed #ayl-lib .ayl-topic { background: transparent; color: var(--ink-soft); font-size: 13px; padding: 0; }
.lib-embed #ayl-lib .ayl-fmt { background: transparent; color: var(--sun-deep); font-weight: 500; padding: 0; }
.lib-embed #ayl-lib .ayl-badge { background: transparent; border: 0; color: #0b7a66; font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; padding: 0; min-width: 92px; text-align: right; }
.lib-embed #ayl-lib .ayl-badge.is-course { background: transparent; color: var(--ink); }
.lib-embed #ayl-lib .ayl-caret { border-color: var(--ink); border-width: 0 1.5px 1.5px 0; width: 10px; height: 10px; }
.lib-embed #ayl-lib .ayl-body { border-top: 0; padding: 0 20px 22px; }
.lib-embed #ayl-lib .ayl-objlabel { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--ink); margin-top: 16px; }
.lib-embed #ayl-lib .ayl-more { border: 0; border-radius: var(--r-m); text-align: left; font-weight: 400; color: var(--ink); min-height: 52px; padding: 0 20px; }
.lib-embed #ayl-lib .ayl-more:hover { box-shadow: 0 0 0 1px rgba(12, 53, 92, .15); }
/* the AI Confidence Method panel, and each format's own call to action at the foot of the list */
.lib-embed #ayl-lib .ayl-promo { border: 0; border-radius: var(--r-l); }
.lib-embed #ayl-lib .ayl-promo-title { font-weight: 300; letter-spacing: -0.035em; }
.lib-embed #ayl-lib .ayl-promo-sub { font-weight: 400; }
.lib-embed #ayl-lib .ayl-cta { margin-top: 24px; border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); gap: 24px; }
.lib-embed #ayl-lib .ayl-cta p { font-size: var(--t-h4); font-weight: 400; line-height: 1.3; max-width: 560px; }
.lib-embed #ayl-lib .ayl-btn { border-radius: 999px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; }
.lib-embed #ayl-lib .ayl-btn-ghost { border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.lib-embed #ayl-lib .ayl-btn-outline { border: 0; box-shadow: inset 0 0 0 1px rgba(12, 53, 92, .35); }

@media (max-width: 767px) {
  .hero.hub .wrap { grid-template-columns: minmax(0, 1fr); }
  .ticks.two { grid-template-columns: minmax(0, 1fr); }
  .hub-shot { aspect-ratio: auto; max-width: 260px; justify-self: center; }
  .hub-shot img { height: auto; }
  .lib-embed #ayl-lib .ayl-head { padding: 14px 16px; }
  .lib-embed #ayl-lib .ayl-badge { min-width: 0; text-align: left; }
  .lib-embed #ayl-lib .ayl-body { padding: 0 16px 18px; }
}
@media (max-width: 560px) { .lib-embed #ayl-lib .ayl-card { padding: 12px; } }

/* ---------- Webinars (one replay sign-up page) ---------- */
.eyebrow { font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.hero.book h1.long { max-width: 18ch; font-size: clamp(36px, 3.8vw, 60px); }
.hero.book .form-window h2 { font-size: var(--t-h4); font-weight: 400; margin-bottom: 12px; }
.dashes { list-style: none; display: grid; gap: 6px; color: var(--ink); }
.dashes li { padding-left: 22px; position: relative; }
.dashes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1.5px; background: var(--teal-deep); }
.stat-card { background: var(--cream); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); display: grid; gap: 16px; align-content: center; }
.stat-card .ico { width: 56px; height: auto; }
.stat-card .big { font-size: var(--t-h3); font-weight: 300; line-height: 1.3; letter-spacing: -0.02em; }
.stat-card .big b { display: block; font-size: clamp(56px, 6vw, 96px); font-weight: 300; letter-spacing: -0.045em; line-height: 1; color: var(--teal-deep); margin-bottom: 8px; }
.stat-card .src { font-size: var(--t-small); color: var(--ink-soft); }
.stat-card .line { border-top: 1px solid var(--line); padding-top: 16px; }
.agenda { padding-left: 1.3em; display: grid; gap: 8px; }
.agenda li::marker { color: var(--teal-deep); font-weight: 500; }
.points .ticks { gap: 10px; }
.person .pic.hosts { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.person .pic.hosts img { object-fit: contain; object-position: 50% 50%; padding: 6%; }
.prose h2 .sub, .head h2 .sub { display: block; color: var(--teal-deep); }
.prose h2 { font-size: var(--t-h2); }
.closer.with-form .form-note { font-size: var(--t-h4); font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.closer.with-form .shot { width: min(480px, 100%); height: auto; border-radius: var(--r-l); }
/* Webinars: the hosts picture in the closing panel sits on white, as in "Your hosts" (going-over point 101, 5 Nov) */
.closer.with-form .shot.hosts { width: min(400px, 100%); background: #fff; padding: 4%; box-shadow: 0 0 0 1px var(--line); }
/* Webinars: "Next live session", a small white panel above the replay sign-up (going-over point 99, 5 Nov) */
.hero-side { width: 100%; display: grid; gap: 16px; }
.next-live { background: var(--paper); border-radius: var(--r-l); box-shadow: 0 0 0 1px rgba(12, 53, 92, .08); padding: 16px clamp(16px, 2vw, 24px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.next-live > div { display: grid; gap: 2px; }
.next-live .next-when { font-size: var(--t-small); color: var(--ink-soft); }
.next-live .next-title { font-size: var(--t-h4); font-weight: 400; line-height: 1.3; }
.awards.three { grid-template-columns: repeat(3, minmax(0, 160px)); }
.aw-row .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.aw-row .head { margin: 0; }
@media (max-width: 767px) {
  .aw-row .wrap { flex-direction: column; align-items: stretch; }
  .awards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Blog index: topic filter, posts as cards, nine a page ---------- */
.blog-hero { padding-bottom: clamp(96px, 10vw, 150px); }
.blog-sec { padding-top: clamp(48px, 5vw, 80px); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics button { font: 400 15px/1 "Outfit", sans-serif; color: var(--ink); background: var(--cream); border: 0; border-radius: 999px; padding: 12px 18px; min-height: 44px; cursor: pointer; transition: background .3s var(--ease); }
.topics button:hover { background: #ebe7df; }
.topics button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.post-count { margin: 24px 0 20px; font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(20px, 2.4vw, 32px); }
.post { display: flex; flex-direction: column; gap: 12px; }
.post .link { margin-top: auto; align-self: flex-start; }
.post[hidden] { display: none; }
.post-pic { display: block; border-radius: var(--r-l); overflow: hidden; background: var(--cream); aspect-ratio: 16 / 10; margin-bottom: 4px; }
.post-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-pic img { transform: scale(1.03); }
.post-topics { font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #0b7a66; min-height: 1.4em; }
.post h3 { font-size: var(--t-h4); }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post p:not(.post-topics) { color: var(--ink-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.pager button { min-width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); font: 400 15px/1 "Outfit", sans-serif; cursor: pointer; display: grid; place-items: center; }
.pager button:hover:not(:disabled) { background: #ebe7df; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
@media (max-width: 1100px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
  .topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--inner)); padding: 0 var(--inner); }
  .topics::-webkit-scrollbar { display: none; }
  .topics button { flex: none; }
}
