/* DEPARTMENT LAYOUT */
.container{
  display:flex;
  min-height:100vh;
  overflow-x:hidden;
  gap:14px !important;
}

/* DEPARTMENTS SIDE BAR */
.sidebar {
  width: 100px;
  flex: 0 0 100px;
  background-color: transparent;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: none;
  position: relative;
  top: 0;
  height: auto;
  overflow: visible;
  z-index: 1;
}

.sidebar::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100px;
  height: calc(100vh);
  background-color: #004080;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  pointer-events: none;
  z-index: 300;
}

.sidebar-menu {
  list-style: none;
  padding: 6px 4px;
  margin: 0;
  width: 100px;
}

.sidebar .sidebar-menu {
  position: fixed;
  left: 0;
  top: 70px;
  width: 100px;
  height: calc(100vh - 70px);
  overflow: hidden;
  padding: 20px;
  margin: 0;
  z-index: 400;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-x: hidden;
}

/* SIDEBAR LOGOS */
.sidebar-logo {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-logo img {
  width: 80px;
  height: auto;
}

.sidebar-logo h2 {
  font-size: 16px;
  margin-top: 10px;
}

/* SIDEBAR NAV */
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 15px 0;
  font-size: 20px;
}

.sidebar-nav a {
  color: black;
  text-decoration: none;
  font-weight: 750;
}

.sidebar-nav a:hover {
  text-decoration: underline;
}

.menu-item {
  margin-bottom: 10px;
}

.menu-item img {
  width: 75px;
  height: auto;
  transition: filter 0.3s ease;
}

.menu-item img:hover {
  filter: brightness(0.7);
}

/* PAGING SYSTEM PROFESSOR STATUSES AND DIMENSIONS*/
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #6b7280;
  --brand: #3D5EB2;
  --accent: #F4B400;
  --ok: #16a34a;
  --off: #cbd5e1;
  --ring: 0 0 0 3px rgba(61,94,178,.15);
  --radius: 16px;
  --shadow: 0 8px 24px rgba(2,6,23,.06);
  --card-h: 480px;
  --photo-h: 280px;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

/* BODY */
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

/* LAYOUT */
.page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

h2 {
  margin: 24px 0 0 15px;
  text-align: left;
  color: var(--brand);
  letter-spacing: .2px;
}

.professor-list{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 8px 16px 24px;
  align-items: stretch;
  max-width: 1320px;
  margin: 16px auto 0;
}

/* PROFESSORS CARD */
.prof-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid #eef1f7;
  display: flex;
  flex-direction: column;
  height: var(--card-h);
}

.prof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2,6,23,.10);
}

.prof-photo {
  position: relative;
  height: 300px;
  width: 300px;
  background: #f1f5f9;
  flex: 0 0 auto;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.prof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prof-photo .status-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: var(--ring);
}

.status-dot.available { background: var(--ok); }
.status-dot.not-available { background: #9ca3af; }

.prof-body {
  flex: 1 1 auto;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prof-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  min-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.prof-actions { 
  margin-top: 8px; 
}

.status-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 44px;
  width: 100%;
}

.status-btn.available {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--ring);
}

.status-btn.available:hover { transform: translateY(-1px); }
.status-btn.available:active { transform: translateY(0); }

.status-btn.offline {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

.img-fallback {
  object-fit: contain !important;
  padding: 16px;
  filter: grayscale(10%);
  background: #f8fafc;
  border-bottom: 1px solid #eef1f7;
}

@supports not (object-fit: cover) {
  .prof-photo img { width: auto; height: 100%; }
}




/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 24px;
}

.modal.show { 
  display: flex; 
}

.modal.show .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* MODAL CARD FOR STUDENT FORM */
.modal-content {
  width: min(1000px, 95vw);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(2,6,23,.25);
  padding: 20px 20px 16px;
  position: relative;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.modal-content .close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 22px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  user-select: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.modal-content .close:hover { 
  background: #f1f5f9; 
}

/* STUDENT FORM TITLE */
.modal-content h2 {
  margin: 4px 0 14px;
  color: #1f2a44;
  font-size: 20px;
}

/* FORM */
#studentForm { 
  display: block; 
}

#studentForm.student-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
}

.prof-side {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prof-photo-lg {
  width: 300px;
  height: 300px;
  background: gray;
  border-radius: 12px;
  overflow: hidden;
}

.prof-photo-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.prof-photo-lg.has-img img { 
  display: block; 
}

.prof-name-label { 
  font-weight: 700; 
  color: #1f2a44; 
  text-align: center; 
}

.fields-col {
  grid-column: 2;
  display: grid;
  grid-auto-rows: min-content;
  row-gap: 14px;
}

.field { 
  grid-column: auto; 
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #1f2a44;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  outline: 0;
}

.field input:focus,
.reason-box:focus {
  border-color: #3D5EB2;
  box-shadow: 0 0 0 3px rgba(61,94,178,.16);
}

.left-big-label {
  grid-column: 1;
  align-self: start;
  font-weight: 700;
  color: #1f2a44;
  margin-top: 6px;
}

.reason-box {
  grid-column: 1 / -1;
  min-height: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  resize: vertical;
}

.submit-btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
  background: #3D5EB2;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(61,94,178,.25);
  cursor: pointer;
}

.submit-btn:hover { 
  transform: translateY(-1px); 
}
.submit-btn:active { 
  transform: translateY(0); 
}

/* MOBILE */
@media (max-width: 720px) {
  #studentForm.student-form { grid-template-columns: 1fr; }
  .left-big-label, .reason-box { grid-column: 1; }
}

#studentForm .row-full { 
  grid-column: 1 / -1; 
}

#studentForm label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

#studentForm input[type="text"],
#studentForm input[type="tel"],
#studentForm textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border .12s ease, box-shadow .12s ease;
}

#studentForm textarea { resize: vertical; min-height: 84px; }

#studentForm input:focus,
#studentForm textarea:focus {
  border-color: #3D5EB2;
  box-shadow: 0 0 0 3px rgba(61,94,178,.16);
}

#professorName[readonly] {
  background: #f8fafc;
  color: #334155;
}

.form-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

#studentForm input:invalid,
#studentForm textarea:invalid {
  border-color: #ef4444;
}

#studentForm input:invalid:focus,
#studentForm textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.18);
}

#studentForm button[type="submit"] {
  grid-column: 1 / -1;
  margin-top: 6px;
  background: #3D5EB2;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 20px rgba(61,94,178,.25);
}

#studentForm button[type="submit"]:hover { 
  transform: translateY(-1px); 
}

#studentForm button[type="submit"]:active { 
  transform: translateY(0); 
}

/* MOBILE : SINGLE COLUMN */
@media (max-width: 640px) {
  #studentForm { grid-template-columns: 1fr; }
}

.modal-card { 
  padding: 0; 
  overflow: hidden; 
  border-radius: 16px; 
}

.modal-card .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #004080;
  color: #fff;
  padding: 12px 16px;
}

.modal-card .modal-header h5 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.modal-card .modal-close {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-weight: 800;
}

.modal-card .modal-close:hover { 
  opacity: .85; 
}

.modal-card .modal-body { 
  padding: 20px; 
}





/* FINAL OVERRIDES — APPENDED */
.modal-card{
  width: 980px;
  height: 680px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-card .modal-header{
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-card .modal-body{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 12px;
}

.left-big-label{
  margin-top: -10px;
  margin-bottom: 4px;
}

.left-big-label + .reason-box{ 
  margin-top: 0; 
}





/* RESPONSIVE FOR NARROW SCREENS */
@media (max-width: 820px){
  .modal-card{
    width: 95vw;
    height: 90vh;
  }
}

/* SIDEBAR DESCRIPTION HOVER */
.sidebar .sidebar-menu { overflow: visible; }

.side-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  z-index: 500; 
}

.side-link::after{
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #0d47a1;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  margin-left: 10px;
}

.side-link::before{
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #0d47a1;
  opacity: 0;
  transition: opacity .18s ease;
}

.side-link:hover::after,
.side-link:focus::after,
.side-link:active::after,
.side-link:hover::before,
.side-link:focus::before,
.side-link:active::before{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}





/*PAGING SYSTEM VIEW MOBILE*/
@media (min-width: 431px){
  .sidebar::after{ 
    display:none !important; 
  }

  .sidebar .menu-item::before,
  .sidebar .menu-item + .menu-item::before{
    content:none !important; 
    display:none !important;
  }
  .sidebar .sidebar-menu{ 
    overflow-x:hidden !important; 
  }

  .sidebar{ 
    z-index:900; 
  }

  .sidebar .sidebar-menu{ 
    z-index:1201; 
  }

  .side-link{ 
    z-index:900; 
  }

  .sidebar{ 
    width:120px; 
    flex:0 0 120px; 
    padding:16px 10px; 
  }

  .sidebar::before{ 
    width:120px; 
  }

  .sidebar .sidebar-menu{ 
    width:120px; 
    padding:20px 20px; 
  }

  .sidebar .sidebar-menu{
    overflow: visible !important;
    z-index: 1150;
  }
}



@media (max-width: 430px){
  .professor-list{
    grid-template-columns:1fr; 
    gap:16px;
    padding:8px 12px 20px; 
    margin:6px auto 0; 
    max-width:560px;
  }

  .sidebar{
    position:fixed; 
    left:0; 
    right:0; 
    bottom:0;
    top:auto !important;
    width:100vw !important;
    height:calc(85px + env(safe-area-inset-bottom, 0px));
    flex:none !important; 
    padding:0;
    background:#004080;
    box-shadow:0 -10px 22px rgba(0,0,0,.25);
    z-index:1500; 
    overflow:visible;
  }

  .sidebar::before{ 
    display:none !important; 
  }

  .sidebar .sidebar-menu{
    position: static !important;
    display:grid !important;
    grid-template-columns:repeat(6, 1fr);
    align-items:center; 
    justify-items:center;
    gap:12px; width:100%; 
    height:100%; 
    margin:0;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    scroll-snap-type: x proximity;
    overflow-x: auto;
  }

  .sidebar .menu-item > a{
    display:inline-flex; 
    align-items:center; 
    justify-content:center;
    width:48px; 
    height:48px;
    box-shadow:0 6px 14px rgba(0,0,0,.25);
  }

  .sidebar .menu-item + .menu-item::before{
    content:""; 
    position:absolute; 
    left:-6px; 
    top:50%;
    transform:translateY(-50%);
    width:6px; 
    height:34px; 
    background:#fff; 
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.25); 
    pointer-events:none; 
    opacity:.95;
  }

  .container{ 
    display:block; 
    padding-bottom:calc(100px + env(safe-area-inset-bottom, 0px)); 
  }

  header{ 
    position:fixed; 
    top:0; z-index:1600; 
  }

  .top-gap {
    position: fixed; 
    top:0; z-index:1700; 
  }
}



/* Mobile: FOOTER */
@media (max-width: 430px){
  body, .container, .main-content{ 
    padding-bottom: 0; 
  }

  footer, .site-footer{
    margin-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* DESKTOP - TOOLTIP */
@media (hover: hover) and (pointer: fine){
  .side-link:hover::after,
  .side-link:focus::after,
  .side-link:hover::before,
  .side-link:focus::before{
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* MOBILE / TOUCH */
@media (hover: none), (pointer: coarse), (max-width: 430px){
  .side-link::after,
  .side-link::before,
  .side-link:hover::after,
  .side-link:hover::before,
  .side-link:focus::after,
  .side-link:focus::before,
  .side-link:active::after,
  .side-link:active::before{
    content: none !important;
    display: none !important;
    opacity: 0 !important;
  }

  .side-link, .side-link > a{
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* FLOATING BUTTON */
.announce-fab{
  position: fixed;
  left: 60px;
  transform: translateX(-50%);
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 1400;
}
.announce-fab img{
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.announce-fab:hover{ transform: translateX(-50%) translateY(-2px); }

@media (max-width: 430px){
  .announce-fab{ display: none; }
}



/* --- MOBILE FIT: keep modal between header (top-gap) and bottom nav --- */
:root{
  --hdr-h: 70px;
  --bot-bar-h: calc(85px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 430px){
  .modal{
    position: fixed !important;
    inset: var(--hdr-h) 0 var(--bot-bar-h) 0 !important;
    padding: 12px !important;
    z-index: 9999 !important;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; 
    justify-content: center;
  }

  .modal-card{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 16px !important;
    display: flex; 
    flex-direction: column;
  }

  .modal-card .modal-header{ 
    position: sticky; 
    top: 0; 
    z-index: 2; 
  }

  .modal-card .modal-body{
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 16px !important;
  }

  .prof-photo-lg{
    width: min(90vw, 340px) !important;
    height: min(90vw, 340px) !important;
  }

  #studentForm.student-form{ 
    grid-template-columns: 1fr !important; 
  }
  .fields-col{ 
    grid-column: 1 !important; 
  }
  .left-big-label, .reason-box, .submit-btn{ 
    grid-column: 1 / -1 !important; 
  }
}



/* === HARD GUTTER FOR MOBILE MODAL === */
@media (max-width: 430px){
  .modal{ padding: 0 !important; 
  }

  .modal-content,
  .modal-card{
    width: auto !important;
    max-width: calc(100vw - 28px) !important;
    margin-inline: 14px !important;
  }

  .modal-card .modal-body{
    padding: 10px 16px 10px !important;
    margin-right: 4px;
  }
}

.field select {
  width:100%;
  padding:10px 12px;
  font-size:14px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  outline:none;
}
.field select:focus {
  border-color:#3D5EB2;
  box-shadow:0 0 0 3px rgba(61,94,178,.16);
}




/* DEPENDS ON THE TEACHER IF 3 FRAMES TO 1 */
@media (max-width: 1200px){
  .professor-list{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 900px){
  .professor-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .prof-photo{
    width: 100%;
    height: 240px;
  }

  #studentForm.student-form{
    grid-template-columns: 1fr;
  }

  .fields-col{
    grid-column: 1;
  }

  .left-big-label{
    grid-column: 1 / -1;
  }

  .reason-box{
    grid-column: 1 / -1;
  }

  .submit-btn{
    grid-column: 1 / -1;
  }

  .prof-photo-lg{
    width: 260px;
    height: 260px;
  }

  .modal-card{
    width: 92vw;
    height: 92vh;
  }
}

@media (max-width: 600px){
  .professor-list{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prof-photo{
    height: 220px;
  }

  .prof-photo-lg{
    width: 240px;
    height: 240px;
  }
}



/* ===== Message / Warning Modal (shared) ===== */
.custom-warning-overlay{
  position:fixed; inset:auto 0 0 0; top:56px;
  display:flex; justify-content:center; align-items:flex-start;
  pointer-events:none; z-index:9999;
}
.custom-warning-box{
  pointer-events:auto;
  width:min(92vw, 600px);
  border-radius:16px; overflow:hidden;
  background:#fff; border:1px solid #0a3a73;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
  transform:translateY(-8px) scale(.98);
  opacity:0; animation:warnIn .22s ease forwards;
}
@keyframes warnIn{to{opacity:1; transform:translateY(0) scale(1)}}

.custom-warning-header{
  background:#0a3a73; color:#fff;
  font-weight:800; font-size:26px; line-height:1;
  padding:16px 18px;
}

.custom-warning-box p{
  font-size:18px; line-height:1.45; color:#172235;
  padding:16px 18px 6px; margin:0; white-space:pre-line;
}

.custom-warning-btn-container{
  display:flex; justify-content:center; gap:10px;
  padding:0 18px 18px;
}

#noSelectionOkBtn{
  appearance:none; border:0; cursor:pointer;
  font-size:18px; font-weight:700;
  padding:10px 22px; border-radius:10px;
  background:#0a3a73; color:#fff;
  box-shadow:0 8px 18px rgba(10,58,115,.35);
}
#noSelectionOkBtn:active{ transform:translateY(1px); }

/* Optional “type” accents if you want to vary styles */
.custom-warning-box.is-success{ border-color:#0a3a73; }
.custom-warning-box.is-warning{ border-color:#e7b008; }
.custom-warning-box.is-error  { border-color:#b91c1c; }







/* === Header row: title (left) + search (right), never shifts === */
.main-wrap{ flex:1 1 auto; min-width:0; }

.page-header{
  display:grid;
  grid-template-columns: 1fr clamp(260px, 32vw, 420px); /* title | search */
  align-items:center;
  width:100%;
  padding:6px 16px 0;
  margin-top: 20px;
}
.page-header .page-title{ margin:0 0 0 15px; } /* keep your left indent */

/* --- Search toolbar --- */
.search-toolbar{ display:flex; justify-content:flex-end; align-items:center; }
#profSearchForm{ position:relative; width:100%; }
.search-input{ position:relative; }

#profSearch{
  width:100%;
  border:1px solid #0058cb; border-radius:999px;
  padding:10px 38px 10px 14px; font-size:14px; background:#fff; color:#0f172a; outline:0;
}
#profSearch:focus{ border-color:#3D5EB2; box-shadow:0 0 0 3px rgba(61,94,178,.12); }

#profSearchClear{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; font-size:18px; line-height:1; cursor:pointer;
  color:#64748b; display:none;
}
#profSearch:not(:placeholder-shown) ~ #profSearchClear{ display:block; }

/* No-results stays under header; search doesn't move */
.no-results{ margin:10px 16px 0; color:#000000; }

/* A11Y helper (if not present yet) */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Mobile: stack title then full-width search */
/* MOBILE: center the title + search + empty state */
@media (max-width:600px){
  .page-header{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 12px 0;
    justify-items: center;   /* center all children (title + search) */
    text-align: center;      /* center the text inside the title */
  }
  .page-header .page-title{
    margin: 0 !important;    /* override the left indent */
    text-align: center;
  }
  .search-toolbar{
    justify-self: center;
    width: 100%;
  }
  #profSearchForm{
    width: min(420px, 92vw);
    margin: 0 auto;
  }
  .no-results{
    margin: 12px auto 0;
    text-align: center;
  }
}





.small { font-size: 0.9rem; line-height: 1.2; }
.muted { color: #6b7280; }
.badge-pt { color: #0b3b85; font-weight: 600; }
.pt-lines { margin-top: .25rem; }
.pt-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



