/* WeChat V2 component consistency fixes.
   Keep these rules scoped to the pages that explicitly load this file. */

/* Assistance application sheet: 12px edge inset and the shared floating close control. */
.sheet-backdrop .form-sheet {
  width: calc(100% - 24px);
  max-width: none;
  margin-inline: 12px;
  overflow: visible;
}

.sheet-backdrop .sheet-form {
  max-height: calc(82vh - 66px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.sheet-backdrop .sheet-form::-webkit-scrollbar {
  display: none;
}

.sheet-backdrop .sheet-close {
  right: 12px;
  top: -43px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  color: #5c6f84;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 13px rgba(24, 56, 93, .1), inset 0 0 0 1px rgba(222, 231, 241, .65);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

/* Recruitment fair job bag: the same component and interaction model as job search. */
.fair-page .selection-bar {
  position: fixed;
  z-index: 120;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: 100% !important;
  max-width: none !important;
  height: calc(62px + env(safe-area-inset-bottom));
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 -4px 14px rgba(24, 65, 112, .055);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}

.fair-page .job-bag-button {
  display: grid;
  width: 56px;
  height: 56px;
  margin-top: -23px;
  padding: 0;
  align-self: start;
  justify-self: center;
  place-items: center;
  border: 0;
  background: transparent;
}

.fair-page .job-bag-button .job-bag {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(18, 104, 232, .2));
}

.fair-page .selected-copy {
  min-width: 0;
  color: #344960;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.fair-page .selected-copy strong {
  margin: 0 2px;
  color: #1265e0;
  font-size: 18px;
}

.fair-page .selected-copy span {
  color: #7d8da1;
  font-size: 13px;
  font-weight: 400;
}

.fair-page .submit-btn {
  width: auto;
  min-width: 88px;
  height: 38px;
  padding-inline: 18px;
  border: 0;
  border-radius: 19px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #1265e0, #128dff);
  box-shadow: none;
}

body.selection-sheet-open {
  overflow: hidden;
}

.fair-page .selection-sheet-backdrop {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(16, 37, 64, .32);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.fair-page .selection-sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.fair-page .selection-sheet {
  position: relative;
  display: flex;
  width: 100%;
  max-height: 72vh;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #f2f6fb;
  box-shadow: 0 -14px 38px rgba(20, 55, 94, .16);
  transform: translateY(100%);
  transition: transform .24s ease;
}

.fair-page .selection-sheet-backdrop.open .selection-sheet {
  transform: translateY(0);
}

.fair-page .selection-sheet-handle {
  width: 34px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 4px;
  background: #d6dfeb;
}

.fair-page .selection-sheet-head {
  flex: 0 0 auto;
  padding: 0 2px 10px;
}

.fair-page .selection-sheet-head h2 {
  margin: 0;
  color: #172e4d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.fair-page .selection-sheet-head h2::after {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  margin-top: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f55e40, #f7a33d);
}

.fair-page .selection-sheet-close {
  position: absolute;
  right: 16px;
  top: -38px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 10px;
  color: #48617f;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 3px 12px rgba(29, 66, 108, .07);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.fair-page .selection-sheet-list {
  display: grid;
  min-height: 0;
  gap: 8px;
  overflow-y: auto;
  padding-bottom: 2px;
  overscroll-behavior: contain;
}

.fair-page .selection-sheet-empty {
  padding: 30px 12px;
  border-radius: 12px;
  color: #8a98aa;
  font-size: 13px;
  text-align: center;
  background: #fff;
}

.fair-page .bag-sheet-card {
  position: relative;
  min-height: 110px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(35, 73, 116, .04);
}

.fair-page .bag-sheet-card .salary {
  float: right;
  color: #f06146;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.fair-page .bag-sheet-card h3 {
  margin: 0 78px 6px 0;
  overflow: hidden;
  color: #172e4d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fair-page .bag-sheet-card p {
  margin: 0 58px 0 0;
  overflow: hidden;
  color: #77879a;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fair-page .bag-sheet-card p + p {
  margin-top: 5px;
}

.fair-page .bag-sheet-tags {
  display: flex;
  margin-top: 7px;
  padding-right: 58px;
  gap: 5px;
  overflow: hidden;
}

.fair-page .bag-sheet-tags span {
  padding: 4px 6px;
  border-radius: 5px;
  color: #497293;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  background: #eff6fb;
}

.fair-page .bag-remove {
  position: absolute;
  right: 12px;
  bottom: 11px;
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: #65778d;
  font-size: 13px;
  font-weight: 600;
  background: #edf1f5;
}

/* Employment map cards reserve a full LY 12px internal bottom inset. */
.results-sheet .result-list {
  grid-auto-rows: 92px;
  gap: 8px;
  padding: 0 0 12px;
  scroll-padding-bottom: 12px;
}

.results-sheet .result-card {
  height: 92px;
  min-height: 92px;
  padding: 12px 14px;
}

/* Map titles use strong, so the global h3 rule misses them. Share the same
   responsive title token rather than adding another global !important rule. */
.results-sheet .result-card strong {
  font-size: var(--wx-text-title, 17px);
  font-weight: 600;
  line-height: 1.35;
}

.results-sheet .result-card-main {
  display: grid;
  gap: 4px;
}

.results-sheet .result-card .card-meta,
.results-sheet .result-card .card-address {
  margin-top: 0;
}

/* Root typography fix: deployment CSS forced only some h3 titles to 17px, leaving b/strong titles smaller. */
.question-card h3,
.card-copy h3,
.teacher-title h3,
.course b,
.direction b,
.org h3,
.news strong,
.project-card h3,
.policy-card h3,
.growth-copy h3,
.training-preview-card h3,
.mentor-preview-card h3,
.service-list-copy h3 {
  color: #243b58;
  font-family: var(--font);
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.question-card p,
.teacher-card p,
.course small,
.direction small,
.org span,
.news small,
.project-card p,
.policy-card p,
.growth-copy p,
.training-preview-card p,
.mentor-preview-card p,
.service-list-copy p {
  color: #7b8da3;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
