/* Revision 6 — quiet, purposeful interaction over Labeeb's existing design. */
:root{--lv-ease:cubic-bezier(.22,.8,.3,1)}

/* The shared header and footer respond without changing destinations or menus. */
.lb-nav__top{position:relative}
.lb-nav__top::after{content:"";position:absolute;inset-inline:.8rem;bottom:.42rem;height:2px;border-radius:2px;background:currentColor;transform:scaleX(0);transform-origin:left center;opacity:.7;pointer-events:none}
html[dir="rtl"] .lb-nav__top::after{transform-origin:right center}
.lb-has-mega:hover > .lb-nav__top::after,.lb-has-mega:focus-within > .lb-nav__top::after,.lb-nav__top:hover::after,.lb-nav__top:focus-visible::after{transform:scaleX(1)}
.lb-foot__col a,.lb-foot__contact a,.lb-foot__legalnav a{text-decoration-thickness:1px;text-underline-offset:.28em}
.lb-foot__col a:hover,.lb-foot__col a:focus-visible,.lb-foot__contact a:hover,.lb-foot__contact a:focus-visible{text-decoration:underline}
.lb-foot__in > .lb-foot__col{padding-top:.85rem;border-top:2px solid rgba(255,255,255,.2)}
.lb-foot__in > .lb-foot__col:nth-child(2){border-top-color:#65c39e}
.lb-foot__in > .lb-foot__col:nth-child(3){border-top-color:#e4aa6a}
.lb-foot__in > .lb-foot__col:nth-child(4){border-top-color:#86afe9}
.lb-foot__in > .lb-foot__col:nth-child(2) .lb-foot__h{color:#a7e3c8}
.lb-foot__in > .lb-foot__col:nth-child(3) .lb-foot__h{color:#f3cb9f}
.lb-foot__in > .lb-foot__col:nth-child(4) .lb-foot__h{color:#b6d3f4}
.lb-mega__col a:hover,.lb-mega__col a:focus-visible{background:color-mix(in srgb,var(--lv-hub,#3654bb) 6%,#fff);border-radius:5px}

/* One reliable focus language for the local visual system. */
:is(.lh-pcard,.lh-fcard,.labeeb-related__card,.labeeb-careerdir a,.labeeb-archive-card a,.lb-link-list a):focus-visible,
:is(.lh-btn,.labeeb-svc__sec .btn,.lb-cta,.lbh-cta):focus-visible{
  outline:3px solid color-mix(in srgb,var(--lv-hub,#3756c6) 65%,#fff)!important;
  outline-offset:3px!important;
}

/* The three disciplines stay distinct while a visitor considers one. */
.labeeb-home .lh-pcard{transition:background-color .28s var(--lv-ease),transform .28s var(--lv-ease),border-color .28s var(--lv-ease)!important}
.labeeb-home .lh-pcard:is(:hover,:focus-within){background:color-mix(in srgb,var(--lv-hub) 10%,#fff)!important}
.labeeb-home .lh-pcard:is(:hover,:focus-within) .lh-pcard__ic{background:color-mix(in srgb,var(--lv-hub) 18%,#fff)!important}
.labeeb-home .lh-pcard:is(:hover,:focus-within) .lh-pcard__cta .lh-btn{filter:saturate(1.13)}
.labeeb-home .lh-pcard .lh-btn:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--lv-hub) 32%,#fff)!important}
.labeeb-home .lh-fgroup .lh-fcard:is(:hover,:focus-within){background:color-mix(in srgb,var(--lv-hub) 9%,#fff)!important}
.labeeb-home .lh-fgroup .lh-fcard:is(:hover,:focus-within) h4{color:var(--lv-hub)!important}
.labeeb-home .lh-aud .lh-acard{transition:background-color .22s ease,border-color .22s ease!important}
.labeeb-home .lh-aud .lh-acard:is(:hover,:focus-visible){background:color-mix(in srgb,var(--lv-hub) 8%,#fff)!important;border-color:color-mix(in srgb,var(--lv-hub) 45%,#d6dfe5)!important}
.labeeb-home .lh-aud .lh-acard:is(:hover,:focus-visible) .lh-acard__go{color:var(--lv-hub)!important;text-decoration:underline;text-underline-offset:.22em}

/* Career reads as a pathway, Business as a decision brief, Academic as a research index. */
:is(body.page-id-69,body.page-id-4525) .labeeb-careerdir li a:is(:hover,:focus-visible){background:#dcefe3!important;text-decoration:none!important;box-shadow:inset 3px 0 #177754!important}
html[dir="rtl"] :is(body.page-id-69,body.page-id-4525) .labeeb-careerdir li a:is(:hover,:focus-visible){box-shadow:inset -3px 0 #177754!important}
:is(body.page-id-71,body.page-id-4590) #groups a:is(:hover,:focus-visible){text-decoration-thickness:2px;text-underline-offset:.25em}
:is(body.page-id-71,body.page-id-4590) #groups .lbh-group li:is(:hover,:focus-within){background:#f6e8d8;box-shadow:inset 3px 0 #ab642a}
html[dir="rtl"] :is(body.page-id-71,body.page-id-4590) #groups .lbh-group li:is(:hover,:focus-within){box-shadow:inset -3px 0 #ab642a}
:is(body.page-id-72,body.page-id-4658) :is(#academic-services,#free-guides,#ar-guides) a:is(:hover,:focus-visible){color:#144a9d!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em}
:is(body.page-id-72,body.page-id-4658) #academic-services .labeeb-related__card:is(:hover,:focus-visible){background:#e1edfb!important;box-shadow:inset 0 -2px #386bb6!important}
:is(body.page-id-72,body.page-id-4658) #academic-services .lbh-group li:is(:hover,:focus-within){background:#e1edfb;box-shadow:inset 0 -2px #386bb6}
body.page-id-4658 #academic-services .lbh-group__link:is(:hover,:focus-visible){background:#e1edfb!important;box-shadow:inset 0 -2px #386bb6!important}

/* Related choices get a clear state without reflow. Method text remains calm. */
.labeeb-related__card:is(:hover,:focus-visible) .labeeb-related__t{color:var(--lv-hub,#3154ad)!important}
.lb-link-list li{transition:border-color .2s var(--lv-ease),background-color .2s var(--lv-ease)}
.lb-link-list li:is(:hover,:focus-within){border-color:#92acda;background:#f5f8ff}

/* Article recommendations: one featured reading route and a compact reference list.
   The existing titles, featured images and destinations remain untouched. */
.lb-link-list:has(> li:first-child .lb-related-thumb){gap:0!important;border-top:3px solid #3566b5;padding-top:.35rem!important}
.lb-link-list:has(> li:first-child .lb-related-thumb) a{border:0;box-shadow:none;border-radius:0;background:transparent;transform:none!important}
.lb-link-list:has(> li:first-child .lb-related-thumb) a:is(:hover,:focus-visible){background:#f0f5fc;color:#173e82}
.lb-link-list:has(> li:first-child .lb-related-thumb) li:not(:first-child) a{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:1rem;padding:1rem .4rem!important;border-bottom:1px solid #cbd9ed;font-size:.96rem;line-height:1.45}
.lb-link-list:has(> li:first-child .lb-related-thumb) li:not(:first-child) a:not(:has(img)){grid-template-columns:1fr}
.lb-link-list:has(> li:first-child .lb-related-thumb) li:not(:first-child) .lb-related-thumb{width:116px;max-width:116px;height:76px;aspect-ratio:auto;margin:0;border:0;border-radius:3px;object-fit:cover}
@media(min-width:760px){
  .lb-link-list:has(> li:first-child .lb-related-thumb){grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-rows:repeat(3,auto);column-gap:1.6rem}
  .lb-link-list:has(> li:first-child .lb-related-thumb) li:first-child{grid-column:1;grid-row:1/4}
  .lb-link-list:has(> li:first-child .lb-related-thumb) li:not(:first-child){grid-column:2}
  .lb-link-list:has(> li:first-child .lb-related-thumb) li:first-child a{display:block;height:100%;padding:.55rem .4rem 1.2rem!important;border-bottom:2px solid #a8c2e5;font-size:1.12rem;line-height:1.45}
  .lb-link-list:has(> li:first-child .lb-related-thumb) li:first-child .lb-related-thumb{display:block;width:100%;max-width:none;height:auto;aspect-ratio:16/9;margin:0 0 1.05rem;border:0;border-radius:3px;object-fit:cover}
}
@media(max-width:759px){
  .lb-link-list:has(> li:first-child .lb-related-thumb){grid-template-columns:1fr}
  .lb-link-list:has(> li:first-child .lb-related-thumb) li:first-child a{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:1rem;padding:1rem .4rem!important;border-bottom:2px solid #9dbbe1;font-size:1rem;line-height:1.45}
  .lb-link-list:has(> li:first-child .lb-related-thumb) li:first-child .lb-related-thumb{width:110px;max-width:110px;height:78px;aspect-ratio:auto;margin:0;border:0;border-radius:3px;object-fit:cover}
}
@media(max-width:400px){
  .lb-link-list:has(> li:first-child .lb-related-thumb) li a{grid-template-columns:82px minmax(0,1fr)!important;gap:.75rem!important;font-size:.9rem!important}
  .lb-link-list:has(> li:first-child .lb-related-thumb) .lb-related-thumb{width:82px!important;max-width:82px!important;height:68px!important}
}

/* Editorial imagery and link hierarchy respond as a single article choice. */
.labeeb-archive-card__imgwrap{overflow:hidden}
.labeeb-archive-card__imgwrap img{transition:transform .42s var(--lv-ease)}
.labeeb-archive-card:is(:hover,:focus-within) .labeeb-archive-card__imgwrap img{transform:scale(1.025)}
.labeeb-archive-card:is(:hover,:focus-within) .labeeb-archive-card__title{color:#284caa}

/* The visual response on controls is restrained and leaves click geometry stable. */
:is(.lh-btn,.labeeb-svc__sec .btn,.lb-cta,.lbh-cta){transition:background-color .2s ease,color .2s ease,border-color .2s ease,filter .2s ease,transform .2s var(--lv-ease)!important}
:is(.lh-btn,.labeeb-svc__sec .btn,.lb-cta,.lbh-cta):is(:hover,:focus-visible){filter:saturate(1.1)}
:is(.lh-btn,.labeeb-svc__sec .btn,.lb-cta,.lbh-cta):active{transform:translateY(1px)!important}

/* A content-safe chapter entrance. No pre-script hidden or shifted state. */
@keyframes lv-chapter-arrive{from{opacity:.82;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes lv-hero-arrive{from{opacity:.86;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
  .lv-motion-ready main h1{animation:lv-hero-arrive .58s var(--lv-ease) both}
  .lv-motion-ready main section.lv-chapter-seen h2{animation:lv-chapter-arrive .55s var(--lv-ease) both}
  .lb-nav__top::after{transition:transform .22s var(--lv-ease)}
  .labeeb-home .lh-pcard:hover{transform:translateY(-3px)!important}
  .labeeb-related__card .labeeb-related__t,.labeeb-archive-card__title{transition:color .2s ease}
}

/* An unobtrusive location cue for long editorial reading. */
.lv-reading-progress{position:fixed;z-index:9999;inset-inline-start:0;top:var(--wp-admin--admin-bar--height,0px);width:100%;height:3px;background:#315eb4;transform:scaleX(0);transform-origin:left center;opacity:0;pointer-events:none}
body:has(.lbb-article[data-pillar="career"]) .lv-reading-progress{background:#0d7658}
body:has(.lbb-article[data-pillar="business"]) .lv-reading-progress{background:#ab642a}
html[dir="rtl"] .lv-reading-progress{transform-origin:right center}
.lv-reading-progress.is-active{opacity:1}

@media(hover:none){
  .labeeb-home .lh-pcard:active,.labeeb-home .lh-fgroup .lh-fcard:active{background:color-mix(in srgb,var(--lv-hub) 10%,#fff)!important}
}
@media(prefers-reduced-motion:reduce){
  .lv-motion-ready main h1,.lv-motion-ready main section.lv-chapter-seen h2{animation:none!important}
  :is(.lh-pcard,.lh-fcard,.labeeb-svc__tile,.labeeb-archive-card__imgwrap img,.lh-btn,.labeeb-svc__sec .btn,.lb-cta,.lbh-cta){transition:none!important;transform:none!important}
  .lb-nav__top::after{transition:none!important}
}
