
/* =========================================================
   V25.5 — Final visual polish for Faculty Academic Profile
   Focus: academic contact + remaining lower-section spacing.
   ========================================================= */

/* Preserve approved upper profile. Only refine lower content. */
.faculty-profile-v8__content{
  gap:7px !important;
}

/* Final consistent section shell */
.faculty-profile-v8__section{
  min-height:0 !important;
  height:auto !important;
  padding:14px 16px !important;
  border-radius:14px !important;
}

.faculty-profile-v8__section-heading{
  margin-bottom:6px !important;
}

.faculty-profile-v8__section-heading h2{
  margin:3px 0 0 !important;
}

/* Courses: single item looks like a full-width academic row */
.faculty-profile-v8__course-grid:has(> :only-child) .faculty-course-card{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) !important;
  align-items:center !important;
  min-height:64px !important;
  padding:10px 13px !important;
}

.faculty-profile-v8__course-grid:has(> :only-child) .faculty-course-card__icon{
  width:40px !important;
  height:40px !important;
  font-size:17px !important;
}

.faculty-profile-v8__course-grid:has(> :only-child) .faculty-course-card__body{
  text-align:right !important;
}

/* Research single item: full-width compact row */
.faculty-research-grid:has(> :only-child) .faculty-research-card{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  min-height:62px !important;
  padding:9px 13px !important;
}

.faculty-research-grid:has(> :only-child) .faculty-research-card__icon{
  width:38px !important;
  height:38px !important;
  flex-basis:38px !important;
  font-size:18px !important;
}

/* Publication: prevent oversized inner whitespace */
.faculty-profile-v103__publication-grid:has(> :only-child) .faculty-profile-v103__publication-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  min-height:118px !important;
  height:auto !important;
  padding:11px 13px !important;
}

.faculty-profile-v103__publication-grid:has(> :only-child) .faculty-profile-v103__publication-top{
  margin-bottom:6px !important;
}

.faculty-profile-v103__publication-grid:has(> :only-child) .faculty-profile-v103__publication-body h3{
  margin-bottom:5px !important;
}

.faculty-profile-v103__publication-grid:has(> :only-child) .faculty-profile-v103__publication-actions{
  margin-top:4px !important;
  padding-top:6px !important;
}

/* Academic contact — exact classes used by the current Blade view */
#academic-contact.faculty-profile-v11__contact-section{
  padding:14px 16px !important;
}

#academic-contact .faculty-profile-v11__contact-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
  gap:8px !important;
  width:100% !important;
}

#academic-contact .faculty-profile-v11__contact-grid:has(> :only-child){
  grid-template-columns:minmax(0,1fr) !important;
}

#academic-contact .faculty-profile-v11__contact-card{
  width:100% !important;
  max-width:none !important;
  min-height:58px !important;
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) 24px !important;
  gap:10px !important;
  align-items:center !important;
  padding:9px 11px !important;
  border-radius:11px !important;
}

#academic-contact .faculty-profile-v11__contact-icon{
  width:34px !important;
  height:34px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:9px !important;
}

#academic-contact .faculty-profile-v11__contact-card small{
  font-size:7px !important;
}

#academic-contact .faculty-profile-v11__contact-card strong{
  margin-top:2px !important;
  font-size:8.5px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

/* Empty contact state should also be compact */
#academic-contact .faculty-profile-v11__empty-contact{
  min-height:74px !important;
  padding:12px !important;
}

/* Improve consistency of all lower item borders/radius */
.faculty-course-card,
.faculty-research-card,
.faculty-profile-v103__publication-card,
.faculty-profile-v105__experience-card,
.faculty-profile-v8__timeline article{
  border-radius:12px !important;
}

/* Desktop multi-item layouts remain structured */
@media(min-width:980px){
  #academic-contact .faculty-profile-v11__contact-grid:not(:has(> :only-child)){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Tablet */
@media(max-width:979px){
  #academic-contact .faculty-profile-v11__contact-grid{
    grid-template-columns:1fr !important;
  }
}

/* Mobile */
@media(max-width:650px){
  .faculty-profile-v8__section{
    padding:13px 12px !important;
  }

  #academic-contact .faculty-profile-v11__contact-card{
    grid-template-columns:34px minmax(0,1fr) 20px !important;
    min-height:54px !important;
  }
}


/* =========================================================
   V45.7 — Academic faculty profile readability
   Loaded in faculty-profile-v255.css (last profile stylesheet).
   ========================================================= */

/* Tabs */
.faculty-profile-v8__tabs a{
  min-height:38px !important;
  padding:0 13px !important;
  color:#405970 !important;
  font-size:11.5px !important;
  font-weight:850 !important;
}

/* Main academic sections */
.faculty-profile-v8__eyebrow{
  color:#0b65ba !important;
  font-size:12.5px !important;
  font-weight:900 !important;
}

.faculty-profile-v8__section-heading h2,
.faculty-profile-v8__contact-card h2{
  color:#102f52 !important;
  font-size:23px !important;
  line-height:1.5 !important;
  font-weight:900 !important;
}

.faculty-profile-v8__section p{
  color:#344b62 !important;
  font-size:15px !important;
  line-height:1.9 !important;
  font-weight:550 !important;
}

/* Right sidebar / contact information */
.faculty-profile-v8__facts small{
  color:#5c7186 !important;
  font-size:11.5px !important;
  font-weight:750 !important;
}

.faculty-profile-v8__facts strong,
.faculty-profile-v8__facts a{
  color:#263f59 !important;
  font-size:12px !important;
  font-weight:800 !important;
}

/* Summary stat cards */
.faculty-profile-v8__stats small{
  color:#526a80 !important;
  font-size:11.5px !important;
  font-weight:700 !important;
}

/* Qualifications timeline */
.faculty-profile-v8__timeline strong{
  color:#203b56 !important;
  font-size:14px !important;
  line-height:1.6 !important;
  font-weight:850 !important;
}
.faculty-profile-v8__timeline p{
  color:#405970 !important;
  font-size:13px !important;
  line-height:1.8 !important;
}
.faculty-profile-v8__timeline small{
  color:#64788c !important;
  font-size:11.5px !important;
  font-weight:700 !important;
}

/* Courses / chips */
.faculty-profile-v8__course-grid strong{
  color:#263f59 !important;
  font-size:12.5px !important;
  line-height:1.6 !important;
  font-weight:800 !important;
}
.faculty-profile-v8__chips span{
  min-height:38px !important;
  color:#0b5eaf !important;
  font-size:11.5px !important;
  font-weight:850 !important;
}

/* Academic navigation/links and contact cards */
.faculty-profile-v11__mini-heading small,
.faculty-profile-v11__academic-grid small,
.faculty-profile-v11__contact-card small{
  color:#61768a !important;
  font-size:11px !important;
  font-weight:700 !important;
}
.faculty-profile-v11__mini-heading strong,
.faculty-profile-v11__academic-grid strong,
.faculty-profile-v11__contact-card strong{
  color:#263f59 !important;
  font-size:12px !important;
  font-weight:800 !important;
}

/* Empty-state and lower-section helper text */
.faculty-profile-v8__empty,
.faculty-profile-v103__empty p,
.faculty-profile-v105__experience-empty p{
  color:#526a80 !important;
  font-size:12.5px !important;
  line-height:1.8 !important;
  font-weight:650 !important;
}

/* Publications / experience metadata */
.faculty-profile-v103__publication-meta,
.faculty-profile-v105__experience-period,
.faculty-profile-v105__experience-org,
.faculty-profile-v105__experience-desc{
  color:#526a80 !important;
  font-size:11.5px !important;
  line-height:1.75 !important;
  font-weight:650 !important;
}

@media(max-width:760px){
  .faculty-profile-v8__section p{font-size:14.5px !important}
  .faculty-profile-v8__tabs a{font-size:11px !important}
}


/* =========================================================
   V45.8 — Academic profile detail polish
   Builds directly on V45.7.
   ========================================================= */

/* Sticky academic-profile navigation */
.faculty-profile-v8__tabs{
  gap:9px !important;
  padding:11px 13px !important;
}
.faculty-profile-v8__tabs a{
  min-height:40px !important;
  padding:0 15px !important;
  color:#334e68 !important;
  font-size:12.5px !important;
  font-weight:900 !important;
}

/* Contact / identity sidebar */
.faculty-profile-v8__contact-card{
  padding:20px !important;
}
.faculty-profile-v8__contact-card h2{
  margin-top:7px !important;
  font-size:24px !important;
  line-height:1.5 !important;
}
.faculty-profile-v8__facts{
  gap:10px !important;
}
.faculty-profile-v8__facts>div{
  min-height:64px !important;
  padding:11px 12px !important;
}
.faculty-profile-v8__facts small{
  color:#536b82 !important;
  font-size:12px !important;
  line-height:1.5 !important;
  font-weight:800 !important;
}
.faculty-profile-v8__facts strong,
.faculty-profile-v8__facts a{
  color:#1f3a55 !important;
  font-size:12.5px !important;
  line-height:1.55 !important;
  font-weight:850 !important;
}

/* Four summary cards */
.faculty-profile-v8__stats article{
  min-height:96px !important;
  padding:17px 14px !important;
}
.faculty-profile-v8__stats strong{
  font-size:25px !important;
}
.faculty-profile-v8__stats small{
  color:#435b73 !important;
  font-size:12px !important;
  line-height:1.55 !important;
  font-weight:800 !important;
}

/* Section labels and headings */
.faculty-profile-v8__section-heading{
  margin-bottom:9px !important;
}
.faculty-profile-v8__section-heading h2{
  margin-top:4px !important;
  font-size:24px !important;
}
.faculty-profile-v8__eyebrow{
  font-size:13px !important;
}

/* Academic qualifications: stronger hierarchy */
#qualifications .faculty-profile-v8__timeline strong{
  font-size:14.5px !important;
}
#qualifications .faculty-profile-v8__timeline p{
  font-size:13.5px !important;
}
#qualifications .faculty-profile-v8__timeline small{
  font-size:12px !important;
}

/* Lower profile metadata */
.faculty-profile-v103__count,
.faculty-profile-v105__experience-count{
  font-size:11.5px !important;
  font-weight:900 !important;
}
.faculty-profile-v103__publication-meta,
.faculty-profile-v105__experience-period,
.faculty-profile-v105__experience-org,
.faculty-profile-v105__experience-desc{
  color:#435b73 !important;
  font-size:12px !important;
}

/* Maintain compact rhythm on smaller screens */
@media(max-width:760px){
  .faculty-profile-v8__tabs a{font-size:11.5px !important;padding:0 12px !important}
  .faculty-profile-v8__facts small{font-size:11.5px !important}
  .faculty-profile-v8__facts strong,
  .faculty-profile-v8__facts a{font-size:12px !important}
  .faculty-profile-v8__stats small{font-size:11.5px !important}
}


/* =========================================================
   V45.9 — Academic profile tabs final polish
   Builds directly on V45.8.
   ========================================================= */
.faculty-profile-v8__tabs{
  gap:11px !important;
  padding:12px 14px !important;
}

.faculty-profile-v8__tabs a{
  min-height:42px !important;
  padding:0 16px !important;
  color:#2f4a64 !important;
  font-size:13.5px !important;
  line-height:1.4 !important;
  font-weight:900 !important;
  border-radius:10px !important;
}

.faculty-profile-v8__tabs a.is-current,
.faculty-profile-v8__tabs a.is-active,
.faculty-profile-v8__tabs a:hover{
  color:#ffffff !important;
  background:#0a4f9f !important;
}

@media(max-width:760px){
  .faculty-profile-v8__tabs{
    gap:8px !important;
    padding:10px !important;
  }
  .faculty-profile-v8__tabs a{
    min-height:39px !important;
    padding:0 13px !important;
    font-size:12px !important;
  }
}
