.staff-page {
  --staff-gold: #F5B427;
  --staff-gray: #58595B;
  min-height: 100vh;
}

[hidden] { display: none !important; }

.staff-page button { font: inherit; }
.staff-page :is(a, button):focus-visible {
  outline: 3px solid var(--staff-gray);
  outline-offset: 4px;
}
.staff-header-inner { gap: 8px 14px; }
.staff-nav { gap: 0 18px; }
.staff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--landing-line);
  background: #fff;
  color: var(--staff-gray);
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.staff-button:disabled { cursor: default; opacity: .65; }
.staff-main { padding-block: 34px 40px; }
.staff-intro { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.staff-intro-copy { min-width: 0; }
.staff-intro h1 {
  margin-block: 15px 12px;
  font-size: clamp(34px, 8.7vw, 56px);
  line-height: 1.4;
  letter-spacing: -.025em;
  font-weight: 500;
}
.staff-intro-description { max-width: 530px; color: var(--landing-muted); font-size: 15px; }
.staff-account {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--landing-line);
  border-inline-start: 3px solid var(--staff-gold);
  background: var(--landing-paper);
}
.staff-account::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-end: 0;
  width: 76px;
  background: url('/assets/brand-pattern-light.png') center / 180px;
  opacity: .13;
  pointer-events: none;
}
.staff-account-heading { color: var(--staff-gray); font-size: 11px; }
.staff-account-name { margin-top: 6px !important; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.staff-account-role { color: var(--landing-muted); font-size: 12px; }
.staff-account-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  margin-top: 7px;
  font-size: 12px;
  text-decoration: underline !important;
  text-decoration-color: var(--staff-gold) !important;
  text-underline-offset: 5px;
}
.staff-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 18px; margin-bottom: 17px; }
.staff-section-heading h2 { font-size: 20px; font-weight: 500; }
.staff-section-heading > p { color: var(--landing-muted); font-size: 12px; }
.staff-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.staff-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 21px 15px;
  border: 1px solid var(--landing-line);
  border-top: 3px solid var(--staff-gold);
  background: #fff;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.staff-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--staff-gray); margin-bottom: 20px; }
.staff-card-number { font: 500 12px/1.5 'Manrope', sans-serif; letter-spacing: .1em; }
.staff-card-top .landing-icon { width: 30px; height: 30px; }
.staff-card h3 { font-size: 23px; font-weight: 500; margin-bottom: 8px; }
.staff-card > p { color: var(--landing-muted); font-size: 13px; line-height: 1.95; margin-bottom: 22px; }
.staff-card-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: auto; min-height: 48px; padding-top: 10px; border-top: 1px solid var(--landing-line); font-size: 12px; font-weight: 600; }
.staff-card-action > span:not(.staff-external-label) { font: 400 21px sans-serif; }
.staff-card-mail { background: var(--landing-paper); }
.staff-external-label { display: inline-flex; align-items: center; gap: 9px; color: var(--staff-gray); font-size: 10px; font-weight: 400; }
.staff-external-label > span { font: 400 18px sans-serif; }
.staff-mail-note { margin-block: 18px 32px; padding: 18px 20px; background: #fffaf0; border-inline-start: 3px solid var(--staff-gold); }
.staff-mail-note h2 { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.staff-mail-note p { max-width: 880px; color: var(--staff-gray); font-size: 12px; line-height: 1.95; }
.staff-shortcuts { border-top: 1px solid var(--landing-line); padding-top: 24px; }
.staff-shortcut-links { display: flex; flex-wrap: wrap; gap: 10px; }
.staff-shortcut-links > a { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 48px; min-width: 140px; flex: 1 1 140px; padding: 10px 14px; border: 1px solid var(--landing-line); font-size: 12px; font-weight: 500; color: var(--staff-gray); }
.staff-shortcut-links > a > span { font: 400 18px sans-serif; }
.staff-security-note { color: var(--landing-muted); font-size: 11px; margin-top: 13px !important; }
.staff-session-note { margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--landing-line); color: var(--landing-muted); font-size: 11px; }
.staff-status { margin-top: 12px !important; padding: 12px 14px; background: var(--landing-paper); border-inline-start: 3px solid var(--staff-gold); color: var(--staff-gray); font-size: 13px; }
.staff-footer .landing-footer-inner { flex-wrap: wrap; gap: 8px 24px; }
.staff-footer-brand img { width: 105px; height: 44px; }
.staff-footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.staff-footer-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: 11px; }

@media (min-width: 520px) {
  .staff-main { padding-block: 42px 48px; }
  .staff-account { padding: 22px 24px; }
  .staff-card { padding: 26px 25px 17px; }
  .staff-shortcut-links > a { flex: 0 1 auto; }
}

@media (min-width: 800px) {
  .staff-intro { flex-direction: row; justify-content: space-between; align-items: center; gap: 35px; margin-bottom: 42px; }
  .staff-intro-copy { flex: 1 1 auto; }
  .staff-account { flex: 0 0 290px; }
  .staff-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .staff-card > p { min-height: 76px; }
  .staff-main { padding-block: 50px 54px; }
  .staff-mail-note { margin-bottom: 36px; }
}

@media (min-width: 1100px) {
  .staff-account { flex-basis: 320px; }
  .staff-logout { order: 1; }
  .staff-cards { gap: 20px; }
  .staff-card { padding: 28px 28px 18px; }
  .staff-card-top { margin-bottom: 26px; }
  .staff-card > p { min-height: 58px; }
}

@media (hover: hover) and (pointer: fine) {
  .staff-card:hover, .staff-card:focus-visible { background: var(--landing-paper); border-color: var(--staff-gray); border-top-color: var(--staff-gold); box-shadow: 0 8px 22px rgb(51 53 56 / 6%); }
  .staff-button:not(:disabled):hover, .staff-shortcut-links > a:hover { border-color: var(--staff-gray); background: var(--landing-paper); }
  .staff-footer-links a:hover { text-decoration: underline; text-decoration-color: var(--staff-gold); text-underline-offset: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .staff-page *, .staff-page *::before, .staff-page *::after { animation: none !important; transition: none !important; }
}

/* Internal portal: keep the established company identity and accessible cards. */
.staff-cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-cards-four .staff-card { padding: 22px 20px 15px; }
.staff-cards-four .staff-card h3 { font-size: 21px; }
.staff-card-top [data-icon] { display: inline-flex; color: var(--staff-gray); }
.staff-card-top .icon { width: 28px; height: 28px; }
.staff-card-pending { border-top-color: #cbd0d6; background: #fafbfc; }
.staff-pending-label { font: 400 10px 'IBM Plex Sans Arabic', Tahoma, sans-serif !important; color: var(--landing-muted); }
.staff-services { margin-block: 34px 18px; scroll-margin-top: 70px; }
.staff-service-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.staff-service-links .staff-card { padding: 20px 22px 14px; }
.staff-service-links .staff-card h3 { font-size: 22px; }
.staff-service-links .staff-card > p { min-height: 0; margin-bottom: 15px; }
.staff-card-disabled { background: #f7f8fa; border-top-color: #cbd0d6; cursor: default; pointer-events: none; }
.staff-supervision { margin-block: 32px; }
.staff-supervision-card { display: flex; align-items: center; gap: 20px; border: 1px solid var(--landing-line); border-inline-start: 4px solid var(--staff-gold); background: #fff; padding: 24px; }
.staff-supervision-card > div { flex: 1; }
.staff-supervision-card h3 { font-size: 21px; font-weight: 500; margin-bottom: 6px; }
.staff-supervision-card p { font-size: 12px; color: var(--landing-muted); }
.staff-supervision-icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; background: #fff7e5; color: #9a722b; border-radius: 12px; }
.staff-supervision-icon .icon { width: 31px; height: 31px; }
.staff-shortcut-links .icon { width: 17px; height: 17px; }
@media (min-width: 1400px) {
  .staff-cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .staff-cards-four, .staff-service-links { grid-template-columns: minmax(0, 1fr); }
  .staff-supervision-card { padding: 18px; gap: 13px; align-items: flex-start; }
  .staff-supervision-card h3 { font-size: 18px; }
  .staff-supervision-icon { width: 43px; height: 43px; flex-basis: 43px; }
  .staff-supervision-icon .icon { width: 25px; height: 25px; }
}
