/* Universal job detail page styles. Used by all job detail records through Job_Details/HTML/job-details.html */

.job-detail-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.job-detail-page.job-detail-page,
.job-detail-page.job-detail-page body {
  padding-top: 0 !important;
}

.job-detail-site-header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  margin: 0 !important;
}

.job-detail-header-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 72px;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}

.job-detail-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--secondary);
  min-width: 0;
  flex: 0 0 auto;
}

.job-detail-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 46px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
}

.job-detail-logo-mark img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
  background: #fff;
}

.job-detail-logo-mark img[src=""],
.job-detail-logo-mark img:not([src]) {
  display: none;
}

.job-detail-logo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #2563eb;
  font-size: 1.2rem;
}

.job-detail-brand-text {
  font-weight: 900;
  font-size: 1.38rem;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.job-detail-brand-text span {
  color: var(--primary);
}

.job-detail-menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  color: var(--secondary);
  cursor: pointer;
  flex: 0 0 auto;
}

.job-detail-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.job-detail-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
}

.job-detail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .55rem .65rem;
  color: #111827;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
}

.job-detail-nav a:hover,
.job-detail-nav a:focus-visible,
.job-detail-nav a.active {
  background: #eaf2ff;
  color: var(--primary);
  outline: 0;
}

.job-detail-standard {
  width: min(1180px, calc(100% - 28px));
  margin: 1.15rem auto 2rem;
  display: grid;
  gap: 1.2rem;
}

.job-detail-hero,
.job-header {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow);
}

.job-detail-kicker,
.notice-line {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.job-detail-hero h1,
.job-header h1 {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.job-detail-org,
.org-name {
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
}

.job-detail-actions,
.job-detail-tags,
.job-header .job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.job-header .btn,
.job-detail-actions .btn {
  min-height: 42px;
  justify-content: center;
}

.job-detail-tags span {
  padding: .38rem .68rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: #1e3a8a;
  font-size: .82rem;
  font-weight: 850;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.job-detail-card,
.section {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.job-detail-card h2,
.section h2 {
  margin: 0;
  color: var(--secondary);
  font-size: 1.18rem;
  line-height: 1.25;
}

.section h3,
.section h4 {
  margin: .35rem 0 0;
  color: var(--secondary);
  line-height: 1.3;
}

.job-detail-card p,
.section p {
  margin: 0;
}

.job-detail-list {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.job-detail-row {
  display: grid;
  grid-template-columns: minmax(105px, .4fr) minmax(0, 1fr);
  gap: .7rem;
  padding-bottom: .6rem;
  border-bottom: 1px dashed #e2e8f0;
}

.job-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.job-detail-row dt {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.job-detail-row dd {
  color: var(--text);
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

.job-alert-box,
.notification-box {
  padding: .95rem;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 650;
}

.job-detail-trust-note {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  align-items: start;
  gap: .62rem;
}

.job-detail-trust-note > span {
  display: block;
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.job-detail-trust-note::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.job-alert-box strong,
.notification-box strong {
  color: #9a3412;
}

.job-step-list {
  display: grid;
  gap: .55rem;
  padding-left: 1.1rem;
  margin: 0;
}

.job-step-list li {
  color: var(--text);
  font-weight: 650;
}

.job-meta-note,
.table-note {
  color: var(--muted);
  font-size: .92rem;
}

.info-cards,
.important-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
}

.info-card,
.date-card {
  display: grid;
  gap: .45rem;
  padding: .9rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.info-card h3,
.date-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.update-links {
  display: grid;
  gap: .55rem;
  padding: .85rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.update-links a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.update-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fees-table,
.vacancy-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  font-size: .94rem;
}

.fees-table th,
.fees-table td,
.vacancy-table th,
.vacancy-table td {
  border: 1px solid #e2e8f0;
  padding: .72rem;
  text-align: left;
  vertical-align: top;
}

.fees-table th,
.vacancy-table th {
  background: #eaf2ff;
  color: #0f172a;
  font-weight: 900;
}

.fees-table tbody tr:nth-child(even),
.vacancy-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.job-detail-footer {
  margin-top: 2rem;
}

.job-detail-universal-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.55rem);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .13), transparent 32%),
    linear-gradient(135deg, #ffffff, #eff6ff 58%, #f8fbff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.job-detail-hero-copy {
  display: grid;
  align-content: start;
  gap: .85rem;
}

.job-detail-hero-panel {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .12);
}

.job-detail-hero-panel span,
.job-detail-stat-grid span,
.job-date-grid span,
.job-summary-list span {
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.job-detail-hero-panel strong {
  color: #0f172a;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.08;
}

.job-detail-hero-panel p {
  margin: 0;
  color: #475569;
  font-weight: 650;
}

.job-detail-stat-grid,
.job-date-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.job-date-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-detail-stat-grid article,
.job-date-grid article {
  display: grid;
  gap: .38rem;
  min-width: 0;
  padding: .92rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
}

.job-detail-stat-grid i {
  color: #2563eb;
  font-size: 1rem;
}

.job-detail-stat-grid strong,
.job-date-grid strong,
.job-summary-list strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.job-detail-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.job-detail-main-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.job-detail-side-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: .85rem;
  align-self: start;
  min-width: 0;
}

.job-detail-side-card {
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .075);
}

.job-detail-side-card h2,
.job-detail-card h2 {
  display: flex;
  align-items: center;
  gap: .48rem;
}

.job-detail-card h2 i {
  color: #2563eb;
}

.job-detail-side-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.25;
}

.job-summary-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-summary-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .68rem .75rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.job-summary-list strong {
  text-align: right;
}

.job-side-actions {
  display: grid;
  gap: .55rem;
}

.job-side-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  text-align: center;
}

.job-detail-empty-state {
  min-height: 320px;
  align-content: center;
}

.btn-disabled {
  opacity: .62;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .job-detail-universal-hero,
  .job-detail-dashboard {
    grid-template-columns: 1fr;
  }

  .job-detail-side-rail {
    position: static;
  }

  .job-detail-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .job-detail-universal-hero,
  .job-detail-card,
  .job-detail-side-card,
  .job-detail-stat-grid article,
  .job-date-grid article {
    border-radius: 12px;
  }

  .job-date-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .job-detail-stat-grid {
    grid-template-columns: 1fr;
  }

  .job-summary-list li {
    grid-template-columns: 1fr;
    align-items: start;
    gap: .18rem;
  }

  .job-summary-list strong {
    text-align: left;
  }
}

/* Premium Lekhpal static detail body */
.lekhpal-premium {
  width: min(1180px, calc(100% - 28px));
  margin: 1.05rem auto 2.2rem;
  display: grid;
  gap: 1rem;
}

.lekhpal-premium * {
  min-width: 0;
}

.lekhpal-premium .lekhpal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .14), transparent 34%),
    linear-gradient(135deg, #ffffff, #eff6ff 54%, #eef2ff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.lekhpal-premium .lekhpal-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -95px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .09);
  pointer-events: none;
}

.lekhpal-premium .lekhpal-badges,
.lekhpal-premium .lekhpal-actions,
.lekhpal-premium .lekhpal-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.lekhpal-premium .lekhpal-badges span,
.lekhpal-premium .lekhpal-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .68rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: rgba(255, 255, 255, .82);
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 900;
}

.lekhpal-premium .lekhpal-hero h1 {
  margin: .2rem 0 0;
  color: #0f172a;
  font-size: clamp(1.72rem, 6.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lekhpal-premium .lekhpal-lead {
  max-width: 72ch;
  color: #475569;
  font-size: 1.02rem;
  font-weight: 650;
}

.lekhpal-premium .lekhpal-meta {
  display: grid;
  gap: .45rem;
  color: #334155;
}

.lekhpal-premium .lekhpal-status-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .7rem;
  align-self: stretch;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .12);
}

.lekhpal-premium .status-label {
  width: max-content;
  padding: .3rem .58rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lekhpal-premium .lekhpal-status-panel strong {
  color: #0f172a;
  font-size: clamp(1.35rem, 4vw, 2.05rem);
  line-height: 1.1;
}

.lekhpal-premium .lekhpal-status-panel p {
  color: #475569;
  font-weight: 650;
}

.lekhpal-premium .lekhpal-quick-grid,
.lekhpal-premium .lekhpal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.lekhpal-premium .lekhpal-quick-grid article,
.lekhpal-premium .lekhpal-stat-grid article,
.lekhpal-premium .lekhpal-side-rail section {
  display: grid;
  gap: .42rem;
  padding: .95rem;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .075);
}

.lekhpal-premium .lekhpal-quick-grid span,
.lekhpal-premium .lekhpal-stat-grid span {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lekhpal-premium .lekhpal-quick-grid strong,
.lekhpal-premium .lekhpal-stat-grid strong {
  color: #0f172a;
  font-size: 1.1rem;
}

.lekhpal-premium .lekhpal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.lekhpal-premium .lekhpal-main {
  display: grid;
  gap: 1rem;
}

.lekhpal-premium .section {
  border-radius: 18px;
  padding: clamp(.95rem, 2.5vw, 1.2rem);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .075);
}

.lekhpal-premium .section h2 {
  display: flex;
  align-items: center;
  gap: .48rem;
  font-size: clamp(1.08rem, 3.5vw, 1.32rem);
}

.lekhpal-premium .lekhpal-list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding-left: 1.15rem;
}

.lekhpal-premium .lekhpal-list li {
  padding-left: .12rem;
  color: #334155;
  font-weight: 650;
}

.lekhpal-premium .table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.lekhpal-premium .table-scroll table {
  min-width: 640px;
}

.lekhpal-premium .lekhpal-steps {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lekhpal-premium .lekhpal-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  padding: .75rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.lekhpal-premium .lekhpal-steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}

.lekhpal-premium .lekhpal-side-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: .85rem;
}

.lekhpal-premium .lekhpal-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: .85rem;
  align-self: start;
  min-width: 0;
}

.lekhpal-premium .side-card {
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .075);
}

.lekhpal-premium .lekhpal-side-rail h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.lekhpal-premium .side-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lekhpal-premium .side-card p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lekhpal-premium .lekhpal-side-rail dl {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.lekhpal-premium .side-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lekhpal-premium .side-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .68rem .75rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.lekhpal-premium .lekhpal-side-rail dt {
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lekhpal-premium .side-list span {
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lekhpal-premium .lekhpal-side-rail dd {
  margin: -.45rem 0 0;
  color: #0f172a;
  font-weight: 850;
}

.lekhpal-premium .side-list strong {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.lekhpal-premium .lekhpal-side-rail a {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 42px;
  padding: .66rem .75rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 900;
}

.lekhpal-premium .lekhpal-side-rail a:hover,
.lekhpal-premium .lekhpal-side-rail a:focus-visible {
  background: #eaf2ff;
  outline: 0;
}

.lekhpal-premium .side-actions {
  display: grid;
  gap: .55rem;
}

.lekhpal-premium .side-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  text-align: center;
}

.lekhpal-premium .lekhpal-alert {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  border-radius: 16px;
  padding: 1rem;
  text-align: left;
}

.lekhpal-premium .lekhpal-alert strong {
  display: inline;
  margin-right: .18rem;
}

@media (max-width: 980px) {
  .lekhpal-premium .lekhpal-hero,
  .lekhpal-premium .lekhpal-layout {
    grid-template-columns: 1fr;
  }

  .lekhpal-premium .lekhpal-side-rail {
    position: static;
    order: 2;
  }

  .lekhpal-premium .lekhpal-sidebar {
    position: static;
    order: 2;
  }
}

@media (max-width: 760px) {
  .lekhpal-premium {
    width: min(100% - 18px, 720px);
    margin-top: .95rem;
    gap: .85rem;
  }

  .lekhpal-premium .lekhpal-quick-grid,
  .lekhpal-premium .lekhpal-stat-grid,
  .lekhpal-premium .lekhpal-stat-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .lekhpal-premium .lekhpal-hero {
    border-radius: 16px;
    padding: .95rem;
  }

  .lekhpal-premium .lekhpal-hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.15rem);
  }

  .lekhpal-premium .lekhpal-actions .btn,
  .lekhpal-premium .lekhpal-mini-actions .btn {
    width: 100%;
  }

  .lekhpal-premium .lekhpal-badges span {
    font-size: .73rem;
  }

  .lekhpal-premium .lekhpal-alert {
    padding: .95rem;
    line-height: 1.48;
    font-size: .92rem;
  }
}

@media (max-width: 440px) {
  .lekhpal-premium .lekhpal-quick-grid,
  .lekhpal-premium .lekhpal-stat-grid,
  .lekhpal-premium .lekhpal-stat-grid.four {
    grid-template-columns: 1fr;
  }

  .lekhpal-premium .lekhpal-side-rail section,
  .lekhpal-premium .side-card,
  .lekhpal-premium .lekhpal-quick-grid article,
  .lekhpal-premium .lekhpal-stat-grid article {
    border-radius: 14px;
  }

  .lekhpal-premium .side-list li {
    grid-template-columns: 1fr;
    align-items: start;
    gap: .18rem;
  }

  .lekhpal-premium .side-list strong {
    text-align: left;
  }
}

@media (min-width: 820px) {
  .job-detail-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: start;
  }

  .job-detail-hero,
  .job-header {
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .job-detail-menu-toggle {
    display: grid;
  }

  .job-detail-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 78px;
    display: none;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: .65rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
  }

  .job-detail-nav.is-open {
    display: block;
  }

  .job-detail-nav ul {
    display: grid;
    gap: .2rem;
  }

  .job-detail-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: .72rem .85rem;
  }
}

@media (max-width: 640px) {
  .job-detail-header-container {
    min-height: 68px;
    padding: .55rem .75rem;
  }

  .job-detail-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .job-detail-logo-mark img {
    width: 42px !important;
    height: 42px !important;
  }

  .job-detail-brand-text {
    font-size: 1.18rem;
  }

  .job-detail-standard {
    width: min(100% - 18px, 680px);
    margin: .8rem auto 5.4rem;
  }

  .job-detail-hero,
  .job-header,
  .job-detail-card,
  .section,
  .job-alert-box {
    border-radius: 12px;
  }

  .job-detail-row {
    grid-template-columns: 1fr;
    gap: .18rem;
  }

  .job-detail-actions .btn,
  .job-header .btn {
    width: 100%;
  }

  .fees-table,
  .vacancy-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
