/* Youxiaotu: search controls, directories and mobile navigation. */
.search-scope {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
}
.search-scope button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: #f1f4f8;
  color: #536983;
  font-size: 14px;
}
.search-scope button[aria-pressed="true"] {
  background: #28426d;
  color: #fff;
}
.search-scope p {
  margin: 0 0 0 auto;
  font-size: 12px;
  color: #6b7c93;
  line-height: 1.8;
}
.result-scope-label {
  color: #526883;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.result-data-note {
  margin: 0 0 16px !important;
  font-size: 12px;
  line-height: 1.8;
}
.job-exam-label {
  display: block;
  font-size: 11px;
  color: #a65c26;
  line-height: 1.6;
  margin-bottom: 6px;
}
.unapplied-notice {
  padding: 12px 16px;
  border: 1px solid #f2d4b8;
  border-radius: 8px;
  background: #fff5e9;
  color: #8c4c1b;
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 16px;
}
.unapplied-notice button {
  min-height: 36px;
  margin-left: 12px;
}
.filter-bottom-submit {
  display: none;
}
@media (max-width: 760px) {
  .search-scope {
    padding: 12px;
    gap: 8px;
    margin-bottom: 14px;
  }
  .search-scope button {
    flex: 1;
    padding: 0 10px;
    font-size: 14px;
  }
  .search-scope p {
    flex-basis: 100%;
    margin: 3px 0 0;
    font-size: 12px;
  }
  body[data-page="home"] #app > .search-scope {
    margin-top: -30px;
    z-index: 1;
  }
  body[data-page="home"] #app > #quick-section {
    margin-top: 0;
  }
  #quick-section.filters-open .primary-filters .search-submit {
    display: none;
  }
  #quick-section.filters-open .filter-actions {
    flex-wrap: wrap;
  }
  #quick-section.filters-open .filter-actions #selection-note {
    flex: 1;
  }
  #quick-section.filters-open .filter-bottom-submit {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    color: #fff;
    font-size: 15px;
  }
  #search-form #library-degree,
  #search-form #major-keyword {
    font-size: 16px;
  }
  .result-scope-label {
    font-size: 12px;
  }
  .result-data-note {
    padding: 12px;
  }
  .job-exam-label {
    font-size: 12px;
  }
}
[hidden] {
  display: none !important;
}
body {
  background: #f6f8fb;
  color: #334761;
}
nav {
  gap: 24px;
}
nav a {
  white-space: nowrap;
}
body:before {
  content: "";
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  height: 3px;
  width: 38%;
  background: var(--orange);
  opacity: 0;
  pointer-events: none;
}
body.route-loading:before {
  opacity: 1;
  animation: route-progress 1.6s ease-in-out infinite;
}
@keyframes route-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(360%);
  }
}
.network-status {
  padding: 10px 20px;
  text-align: center;
  background: #fff0db;
  color: #8f4c13;
  font-size: 13px;
}
body:not([data-page="home"]) .hero {
  height: auto;
  min-height: 164px;
}
body:not([data-page="home"]) .hero .hero-inner {
  min-height: 164px;
  padding-top: 26px;
  padding-bottom: 26px;
}
body:not([data-page="home"]) .hero-art {
  width: 190px;
  height: 140px;
}
body:not([data-page="home"]) .hero #hero-tag ~ h1 {
  font-size: 27px;
  letter-spacing: 0;
}
body:not([data-page="home"]) .hero p {
  margin: 12px 0 0;
  font-size: 13px;
}
body:not([data-page="home"]) .hero-eyebrow,
body:not([data-page="home"]) .hero-features {
  display: none;
}
main {
  min-height: 420px;
}
.section-caption {
  font-size: 13px;
  color: #738299;
  margin: 8px 0 0;
}
.section-heading h2 {
  margin: 0;
}
.home-quick {
  box-shadow: 0 10px 36px #28426d08;
  border-radius: 16px;
}
#quick-section {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 26px 28px;
}
#search-form .field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  align-items: stretch;
  text-align: left;
}
#search-form .field .sr-only,
#search-form .field-label {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #63748a;
  line-height: 1.4;
}
#search-form .field input,
#search-form .field select,
#search-form .education-btn {
  height: 46px;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #f9fbfd;
  font-size: 13px;
  color: #344d6b;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#search-form .field select {
  padding-right: 28px;
}
#search-form .field:has(select):after {
  top: 41px;
  right: 13px;
}
#search-form .field input:focus,
#search-form .field select:focus,
#search-form .education-btn:focus-visible {
  border-color: #e68b4b;
  background: white;
}
#search-form .primary-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 140px;
  align-items: end;
  gap: 14px;
}
.search-submit {
  height: 46px;
  font-size: 15px;
}
.advanced-filters {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f6f8fb;
  border: 1px solid #e7ecf3;
  border-radius: 9px;
}
.advanced-filters summary {
  cursor: pointer;
  font-size: 13px;
  color: #3c5578;
}
.advanced-filters summary span {
  font-size: 11px;
  color: #7b899b;
  margin-left: 12px;
}
.advanced-filters[open] summary {
  margin-bottom: 18px;
}
.advanced-filters .filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filter-actions {
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  color: #77869a;
  gap: 15px;
}
.filter-actions button {
  color: #6b7b90;
  white-space: nowrap;
  padding: 6px 0;
}
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
  font-size: 12px;
}
.active-filters > span {
  color: #7b899b;
  margin-right: 4px;
}
.filter-chip {
  background: #fff3e9;
  color: #9e541d;
  border: 1px solid #f6d7bd;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
.filter-chip b {
  font-weight: 400;
  margin-left: 8px;
}
.recent-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  margin: 0 4px 24px;
}
.recent-searches > span {
  color: #7a889b;
  flex-shrink: 0;
}
.recent-searches > a {
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-searches button {
  font-size: 12px;
  margin-left: auto;
}
.home-metrics {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 22px 28px;
  margin: 0 0 22px;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  background: linear-gradient(100deg, #fff, #f0f4f9);
}
.home-metrics > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.home-metrics strong {
  font-size: 28px;
  color: #28426d;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.home-metrics span,
.home-metrics p {
  font-size: 12px;
  color: #74849a;
}
.home-metrics p {
  margin: 0 0 0 auto;
  line-height: 1.9;
}
.home-metrics a {
  color: #a85e2b;
  font-size: 12px;
}
.home-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 38px;
}
.home-tools > a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 22px 20px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.home-tools > a:hover {
  background: #fffaf6;
  border-color: #ebbd9b;
}
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #edf3fa;
  color: #39577f;
  border-radius: 12px;
  font-size: 25px;
}
.home-tools > a:nth-child(2) .tool-icon {
  background: #fff0e5;
  color: #c37136;
}
.home-tools strong {
  font-size: 15px;
  font-weight: 600;
  color: #28426d;
}
.home-tools p {
  font-size: 11px;
  color: #7c8b9f;
  margin: 7px 0 0;
  line-height: 1.6;
}
.home-tools b {
  font-weight: 400;
  color: #98a6b8;
  margin-left: auto;
}
.exam-directory .grid:not(.six) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.exam-directory .tile {
  font-weight: 500;
  border-radius: 10px;
  height: 62px;
}
.directory-search {
  display: block;
  width: 250px;
  max-width: 100%;
}
.directory-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #3c5578;
  min-width: 0;
}
.province-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.province-card {
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 11px;
  padding: 18px 20px;
  min-width: 0;
}
.province-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.province-card h3 {
  margin: 0;
  font-size: 16px;
  color: #2d466b;
}
.province-card > div a {
  font-size: 11px;
  color: #8b99aa;
  padding: 5px;
}
.province-exam {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #63758e;
}
.province-exam + .province-exam {
  border-top: 1px dashed #e9edf3;
}
.province-exam span {
  color: #adb8c6;
  flex-shrink: 0;
}
.province-exam:hover,
.province-card > div a:hover {
  color: #bf6b2b;
}
.province-card > p {
  font-size: 12px;
  margin: 14px 0;
}
.directory-more {
  display: block;
  margin: 20px auto 0;
  padding: 10px 26px;
  color: #56708f;
  border: 1px solid #dce4ee;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
}
.home-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  padding: 26px 30px;
  background: #eaf0f7;
  border-radius: 14px;
}
.home-guide span {
  font-size: 12px;
  color: #798aa0;
}
.home-guide h3 {
  font-size: 19px;
  color: #2f4a70;
  margin: 10px 0;
}
.home-guide p {
  font-size: 12px;
  color: #74869c;
  margin: 0;
}
.home-guide .outline {
  white-space: nowrap;
}
.result-top {
  margin-top: 28px;
  gap: 16px;
  align-items: center;
}
.page-size-label {
  font-size: 12px;
  color: #738298;
  white-space: nowrap;
}
.page-size-label select {
  border: 1px solid #dce4ee;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
  color: #405a7d;
  font-size: 12px;
}
.result-range {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 12px;
  color: #7d8a9c;
}
.result-table th {
  font-size: 12px;
  font-weight: 500;
  padding: 16px 10px;
}
.result-table td {
  line-height: 1.85;
  padding: 18px 10px;
}
.result-table tbody tr:hover {
  background: #fffaf5;
}
.result-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  word-break: break-all;
}
.result-table td:nth-child(4) {
  font-weight: 600;
}
.pagination {
  gap: 6px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 7px;
}
.result-source {
  line-height: 1.9;
  gap: 12px;
  overflow-wrap: anywhere;
}
.loading {
  flex-wrap: wrap;
  min-height: 150px;
  font-size: 14px;
  color: #5d7390;
  gap: 10px;
}
.loading small {
  flex-basis: 100%;
  text-align: center;
  color: #91a0b3;
  font-size: 12px;
}
.error-state {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 30px;
  color: #3e5574;
}
.error-state strong {
  font-size: 16px;
  font-weight: 600;
}
.error-state p {
  font-size: 13px;
  line-height: 1.8;
  color: #79879b;
  margin: 8px 0 0;
}
.error-state .actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.error-state button {
  margin: 0;
  color: #fff;
}
.error-state .outline {
  padding: 10px 15px;
  font-size: 12px;
}
.state-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #fff0e5;
  color: #bd743d;
  border-radius: 50%;
  font-weight: 700;
}
.saved-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.saved-filter .directory-search {
  width: 460px;
}
.saved-filter > span {
  font-size: 12px;
  white-space: nowrap;
}
.compare-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.compare-controls > label {
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
input[type="checkbox"] {
  accent-color: #28426d;
}
.compare-table tr.different td {
  background: #fffbf6;
}
.compare-table.differences-only tr.same {
  display: none;
}
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
}
.detail-back {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 18px;
  margin-bottom: 24px;
  font-size: 13px;
}
.detail-back > span {
  font-size: 11px;
  color: #8b98a9;
}
.detail-fields dd {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
body:has(#compare-dock:not([hidden])) footer {
  padding-bottom: 85px;
}
@media (max-width: 1100px) {
  #search-form .primary-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .primary-filters .search-submit {
    grid-column: 1/-1;
  }
  .home-metrics {
    gap: 26px;
  }
  .home-metrics > div {
    flex-direction: column;
    gap: 4px;
  }
  .home-tools > a {
    padding: 18px 14px;
    gap: 10px;
  }
  .tool-icon {
    width: 36px;
    height: 36px;
  }
  .home-tools b {
    display: none;
  }
  .header-inner {
    gap: 16px !important;
  }
  nav {
    gap: 17px;
  }
}
@media (max-width: 760px) {
  body:not([data-page="home"]) .hero,
  body:not([data-page="home"]) .hero .hero-inner {
    min-height: 125px;
    height: auto;
  }
  body:not([data-page="home"]) .hero .hero-inner {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  body:not([data-page="home"]) .hero #hero-tag ~ h1 {
    font-size: 22px;
  }
  body:not([data-page="home"]) .hero-art {
    display: none;
  }
  body:not([data-page="home"]) .hero p {
    font-size: 12px;
    max-width: 100%;
  }
  #quick-section {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .section-heading {
    gap: 14px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-caption {
    font-size: 11px;
    line-height: 1.8;
  }
  #search-form .primary-filters {
    gap: 14px 10px;
  }
  #search-form .field input,
  #search-form .field select,
  #search-form .education-btn {
    font-size: 12px;
  }
  .advanced-filters .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-filters summary span {
    display: block;
    font-size: 10px;
    margin: 8px 0 0;
    line-height: 1.7;
  }
  .filter-actions {
    font-size: 11px;
    align-items: flex-start;
    line-height: 1.8;
  }
  .filter-actions button {
    padding: 0;
  }
  .active-filters {
    font-size: 11px;
    gap: 6px;
  }
  .filter-chip {
    padding: 7px 9px;
  }
  .home-metrics {
    padding: 18px 16px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .home-metrics strong {
    font-size: 26px;
  }
  .home-metrics p {
    flex-basis: 100%;
    margin: 0;
    border-top: 1px solid #e0e7f0;
    padding-top: 12px;
  }
  .home-metrics p br {
    display: none;
  }
  .home-metrics p a {
    float: right;
  }
  .home-metrics span {
    font-size: 11px;
  }
  .home-tools {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }
  .home-tools > a {
    padding: 16px;
  }
  .home-tools b {
    display: block;
  }
  .home-tools strong {
    font-size: 14px;
  }
  .home-tools p {
    margin-top: 4px;
  }
  .exam-directory .grid:not(.six) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exam-directory .tile {
    height: 54px;
    font-size: 13px;
  }
  .province-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .province-card {
    padding: 16px 18px;
  }
  .province-card h3 {
    font-size: 15px;
  }
  .province-directory .directory-search {
    width: 100%;
  }
  .home-guide {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .home-guide h3 {
    font-size: 18px;
    line-height: 1.6;
  }
  .home-guide p {
    font-size: 12px;
    line-height: 1.8;
  }
  .recent-searches > a {
    max-width: 210px;
  }
  .result-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }
  .result-top .actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .result-range {
    font-size: 11px;
  }
  .result-range > span {
    display: none;
  }
  .result-table {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .result-table table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .result-table colgroup {
    display: none;
  }
  .result-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .result-table tbody {
    display: grid;
    gap: 14px;
  }
  .result-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    background: #fff;
    border: 1px solid #e1e8f1;
    border-radius: 13px;
    padding: 20px 18px;
    min-width: 0;
  }
  .result-table tbody td {
    display: block;
    border: 0;
    padding: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.7;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .result-table tbody td:before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: #8c99aa;
    margin-bottom: 4px;
    font-weight: 400;
  }
  .result-table td:nth-child(2) {
    grid-column: 1/-1;
    order: -2;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 600;
    color: #28426d;
  }
  .result-table td:nth-child(1) {
    grid-column: 1/-1;
    order: -1;
    color: #6c7e95;
    font-size: 12px;
  }
  .result-table td:nth-child(1) small {
    font-size: 11px;
  }
  .result-table td:nth-child(1):before,
  .result-table td:nth-child(2):before,
  .result-table td:last-child:before {
    display: none;
  }
  .result-table td:nth-child(3) {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }
  .result-table td:nth-child(3):before {
    margin: 0;
  }
  .result-table td:nth-child(6) {
    grid-column: 1/-1;
    order: 1;
  }
  .result-table .truncate {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 12px;
    line-height: 1.8;
    max-height: none;
  }
  .result-table td:last-child {
    grid-column: 1/-1;
    order: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
  }
  .result-table .detail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    color: #fff;
    background: #28426d;
    border-radius: 7px;
    font-size: 13px;
  }
  .result-table .star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 23px;
  }
  .result-table .compare-toggle {
    display: inline-flex;
    margin: 0 0 0 auto;
    padding: 10px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    min-height: 40px;
  }
  .result-source {
    font-size: 10px;
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .pagination {
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
  }
  .pagination button {
    min-width: 30px;
    height: 34px;
    font-size: 12px;
  }
  .pagination > span.muted {
    flex-basis: 100%;
    text-align: center;
    margin-top: 8px;
  }
  .pagination input {
    height: 34px;
  }
  .error-state {
    padding: 22px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .error-state > div:not(.actions) {
    flex: 1;
    min-width: 0;
  }
  .error-state .actions {
    margin-left: 0;
    width: 100%;
  }
  .error-state .primary {
    height: 40px;
    font-size: 13px;
  }
  .error-state p {
    font-size: 12px;
  }
  .state-symbol {
    width: 32px;
    height: 32px;
  }
  .saved-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .saved-filter .directory-search {
    width: 100%;
  }
  .compare-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .compare-table th:first-child {
    width: 100px;
  }
  .compare-table td {
    padding: 16px 12px;
  }
  .detail-back {
    font-size: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .detail-back > span {
    display: none;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .detail-actions .outline {
    min-height: 42px;
  }
  .detail-fields {
    grid-template-columns: 1fr;
  }
  .detail-field.wide {
    grid-column: 1;
  }
  .detail-field dd {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body.route-loading:before {
    animation: none;
    width: 100%;
  }
  .home-tools > a,
  .tile {
    transition: none;
  }
}

body:not([data-page="home"]) .hero:has(#hero-tag) {
  height: auto;
  min-height: 150px;
}
body:not([data-page="home"]) .hero:has(#hero-tag) .hero-inner {
  height: auto;
  min-height: 150px;
}
body:not([data-page="home"]) .hero:has(#hero-tag) .hero-art {
  width: 190px;
  height: 130px;
}
body:not([data-page="home"]) .stats .stat {
  padding: 20px 24px;
  min-height: 100px;
}
body:not([data-page="home"]) .stats .stat strong {
  font-size: 28px;
}
body:not([data-page="home"]) .stats .stat strong.long {
  font-size: 17px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  body:not([data-page="home"]) .hero:has(#hero-tag),
  body:not([data-page="home"]) .hero:has(#hero-tag) .hero-inner {
    min-height: 125px;
  }
  body:not([data-page="home"]) .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body:not([data-page="home"]) .stats .stat {
    padding: 16px;
    min-height: 90px;
  }
  body:not([data-page="home"]) .stats .stat span {
    font-size: 10px;
  }
  body:not([data-page="home"]) .stats .stat:nth-child(3) {
    grid-column: 1/-1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
  }
  body:not([data-page="home"]) .stats .stat strong.long {
    font-size: 13px;
  }
  body:not([data-page="home"]) .stats .stat:nth-child(3):after {
    display: none;
  }
}

/* Mobile 2.2: one-handed navigation and progressive search controls. */
.mobile-nav,
.mobile-filter-toggle,
.mobile-filter-summary,
.mobile-search-label,
.mobile-page-status,
.mobile-page-label {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }
  body {
    -webkit-tap-highlight-color: transparent;
  }
  header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 60px;
  }
  header .header-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px !important;
  }
  header .brand img {
    width: 148px;
  }
  header .brand > span {
    font-size: 12px;
  }
  header .account {
    display: none;
  }
  #menu-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  #site-nav {
    top: 60px;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    z-index: 45;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px max(8px, env(safe-area-inset-right))
      env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    background: #fffffff5;
    border-top: 1px solid #e4eaf2;
    box-shadow: 0 -3px 16px #28426d08;
    backdrop-filter: blur(14px);
  }
  .mobile-nav a {
    min-height: 57px;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #738198;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
  }
  .mobile-nav svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav a.active {
    color: #28426d;
    font-weight: 600;
  }
  .mobile-nav a.active:before {
    content: "";
    position: absolute;
    top: -5px;
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #ee7e2d;
  }
  .mobile-nav b {
    position: absolute;
    top: 0;
    left: calc(50% + 7px);
    min-width: 17px;
    padding: 2px 4px;
    background: #ec7625;
    color: white;
    border-radius: 12px;
    font-size: 10px;
    line-height: 13px;
  }
  main {
    padding-top: 18px;
    padding-bottom: 30px;
    min-height: 45vh;
  }
  .container {
    width: calc(100% - 32px);
  }
  body[data-page="home"] .hero {
    height: 184px;
    min-height: 0;
  }
  body[data-page="home"] .hero .hero-inner {
    min-height: 0;
    height: 184px;
    padding-top: 8px;
  }
  body[data-page="home"] .hero-copy {
    padding-bottom: 8px;
  }
  body[data-page="home"] .hero h1 {
    font-size: clamp(22px, 6.25vw, 28px);
    line-height: 1.45;
    letter-spacing: -0.5px;
  }
  .hero-eyebrow {
    font-size: 11px;
    margin-bottom: 11px;
    letter-spacing: 1px;
  }
  .hero p {
    font-size: 12px;
    margin: 10px 0 0;
    max-width: 100%;
  }
  .hero-features {
    display: none;
  }
  .hero-art {
    width: 215px;
    height: 175px;
    right: -85px;
    bottom: 0;
    opacity: 0.12;
  }
  body:not([data-page="home"]) .hero:has(#hero-tag),
  body:not([data-page="home"]) .hero:has(#hero-tag) .hero-inner {
    min-height: 100px;
  }
  body:not([data-page="home"]) .hero .hero-inner {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  body:not([data-page="home"]) .hero #hero-tag {
    display: none;
  }
  body:not([data-page="home"]) .hero #hero-tag ~ h1 {
    font-size: 21px;
    line-height: 1.5;
  }
  body:not([data-page="home"]) .hero p {
    margin-top: 6px;
  }
  .breadcrumb {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 16px;
  }
  #quick-section {
    padding: 12px 14px 16px;
    margin-bottom: 18px;
    scroll-margin-top: 72px;
  }
  body[data-page="home"] #quick-section {
    position: relative;
    margin-top: -30px;
  }
  #quick-section .section-heading {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
  }
  #quick-section .section-heading h2 {
    font-size: 16px;
    line-height: 1.5;
  }
  #quick-section h2 img,
  #quick-section .tip {
    display: none;
  }
  .mobile-filter-toggle {
    display: inline-flex;
    gap: 5px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 2px 0 8px;
    color: #28426d;
    background: transparent;
    font-size: 13px;
  }
  .mobile-filter-toggle span {
    font-size: 18px;
  }
  .mobile-filter-toggle[data-count]:not([data-count=""]):before {
    content: attr(data-count);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #fff0e4;
    color: #ad591c;
    font-size: 11px;
  }
  .mobile-filter-summary {
    display: block;
    color: #697c95;
    font-size: 12px;
    line-height: 1.7;
    margin: -4px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body[data-page="home"] .mobile-filter-summary,
  .filters-open .mobile-filter-summary {
    display: none;
  }
  body:not([data-page="home"]) #quick-section:not(.filters-open) #filters {
    display: none;
  }
  body:is([data-page="search"], [data-page="exam"])
    #quick-section:not(.filters-open) {
    position: sticky;
    top: 60px;
    z-index: 20;
    padding-bottom: 10px;
    box-shadow: 0 4px 16px #28426d09;
  }
  body:not([data-page="home"])
    #quick-section:not(.filters-open)
    .section-heading {
    margin-bottom: 2px;
  }
  body[data-page="home"]
    #quick-section:not(.filters-open)
    .primary-filters
    .field:not(.keyword-field),
  body[data-page="home"]
    #quick-section:not(.filters-open)
    .keyword-field
    .field-label,
  body[data-page="home"] #quick-section:not(.filters-open) .advanced-filters,
  body[data-page="home"] #quick-section:not(.filters-open) .filter-actions,
  body[data-page="home"] #quick-section:not(.filters-open) .active-filters {
    display: none;
  }
  body[data-page="home"]
    #quick-section:not(.filters-open)
    #search-form
    .primary-filters {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
  }
  body[data-page="home"] #quick-section:not(.filters-open) .search-submit {
    grid-column: auto;
    padding: 0 10px;
  }
  body[data-page="home"] #quick-section:not(.filters-open) .search-label,
  body[data-page="home"] #quick-section:not(.filters-open) .search-icon {
    display: none;
  }
  body[data-page="home"]
    #quick-section:not(.filters-open)
    .mobile-search-label {
    display: inline;
  }
  #search-form .field input,
  #search-form .field select,
  #search-form .education-btn,
  .directory-search input,
  .download-filters select,
  .download-filters input,
  #dialog select,
  #dialog input {
    font-size: 16px;
    min-height: 48px;
  }
  #search-form .primary-filters .keyword-field {
    grid-column: 1/-1;
  }
  body[data-page="home"]
    #quick-section:not(.filters-open)
    .primary-filters
    .keyword-field {
    grid-column: auto;
  }
  #search-form .primary-filters .education-field {
    grid-column: 1/-1;
  }
  #search-form .primary-filters .search-submit {
    min-height: 48px;
  }
  .advanced-filters {
    padding: 0 12px;
  }
  .advanced-filters summary {
    padding: 15px 0;
    font-size: 14px;
  }
  .advanced-filters summary span {
    display: none;
  }
  .advanced-filters[open] summary {
    margin-bottom: 0;
  }
  .advanced-filters .filter-grid {
    grid-template-columns: 1fr;
    padding-bottom: 14px;
  }
  .filter-actions {
    align-items: center;
    gap: 12px;
    font-size: 12px;
  }
  .filter-actions button {
    min-height: 44px;
  }
  .filter-chip {
    min-height: 38px;
    font-size: 12px;
  }
  .home-metrics {
    margin: 0 0 16px;
    padding: 15px 16px 12px;
    gap: 12px;
  }
  .home-metrics > div {
    flex: 1;
    align-items: flex-start;
  }
  .home-metrics > div + div {
    border-left: 1px solid #e0e7f0;
    padding-left: 20px;
  }
  .home-metrics strong {
    font-size: 25px;
    line-height: 1.2;
  }
  .home-metrics span {
    font-size: 12px;
  }
  .home-metrics p {
    font-size: 11px;
    line-height: 1.7;
    padding-top: 8px;
  }
  .home-metrics p a {
    float: none;
    display: inline-block;
    margin-left: 5px;
  }
  .home-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }
  .home-tools > a {
    flex-direction: column;
    gap: 9px;
    align-items: center;
    padding: 14px 3px;
    text-align: center;
    border-radius: 12px;
  }
  .home-tools strong {
    font-size: 12px;
    white-space: nowrap;
  }
  .home-tools p,
  .home-tools b {
    display: none;
  }
  .tool-icon {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading h2 img {
    width: 23px;
    height: 23px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .section-caption {
    font-size: 12px;
  }
  body[data-page="home"] .exam-directory .grid:not(.six) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-page="home"] .exam-directory .tile {
    height: 48px;
    font-size: 13px;
    padding: 0 5px;
  }
  .grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .province-directory .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .province-card {
    padding: 14px 16px;
  }
  .province-card > div > a {
    min-width: 44px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
  }
  .province-exam {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 13px;
  }
  .directory-more {
    min-height: 46px;
    font-size: 13px;
  }
  .home-guide {
    padding: 18px;
    gap: 14px;
  }
  .home-guide h3 {
    font-size: 17px;
  }
  .home-guide p {
    display: none;
  }
  .home-guide .outline {
    min-height: 44px;
  }
  .recent-searches {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }
  .recent-searches > a,
  .recent-searches > button {
    flex-shrink: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  body:not([data-page="home"]) .stats {
    margin-bottom: 16px;
  }
  body:not([data-page="home"]) .stats .stat {
    min-height: 72px;
    padding: 12px 14px;
  }
  body:not([data-page="home"]) .stats .stat strong {
    font-size: 25px;
  }
  body:not([data-page="home"]) .stats .stat span {
    font-size: 12px;
  }
  body:not([data-page="home"]) .stats .stat strong.long {
    font-size: 13px;
  }
  #results {
    scroll-margin-top: 154px;
  }
  .result-top {
    gap: 6px;
    font-size: 14px;
    margin-bottom: 4px;
  }
  .result-top .actions {
    gap: 8px;
  }
  .result-top .text-link {
    min-height: 44px;
    font-size: 12px;
  }
  .page-size-label {
    font-size: 12px;
  }
  .page-size-label select {
    height: 44px;
    min-width: 65px;
    font-size: 16px;
  }
  .result-range {
    margin-bottom: 14px;
    font-size: 12px;
  }
  .result-table tbody tr {
    padding: 17px 15px;
    gap: 11px 14px;
    box-shadow: 0 3px 12px #28426d04;
  }
  .result-table tbody td {
    font-size: 14px;
    line-height: 1.65;
  }
  .result-table tbody td:before {
    font-size: 12px;
    color: #77869b;
    margin-bottom: 3px;
  }
  .result-table td:nth-child(1) {
    font-size: 13px;
  }
  .result-table td:nth-child(1) small {
    font-size: 12px;
  }
  .result-table td:nth-child(2) {
    font-size: 17px;
  }
  .result-table td:nth-child(3) {
    font-size: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e8edf4;
  }
  .result-table .truncate {
    font-size: 13px;
    line-height: 1.75;
  }
  .result-table td:last-child {
    gap: 8px;
    padding-top: 12px;
  }
  .result-table .detail-link {
    min-height: 44px;
    min-width: 82px;
    font-size: 14px;
  }
  .result-table .star {
    min-height: 44px;
    width: 44px;
  }
  .result-table .compare-toggle {
    min-height: 44px;
    font-size: 12px;
    padding: 8px;
  }
  .result-source {
    font-size: 12px;
    line-height: 1.7;
  }
  .pagination {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 22px 0 10px;
  }
  .pagination button[data-page]:not([aria-label]),
  .pagination > span:not(.mobile-page-status),
  #jump-page,
  #jump-go {
    display: none;
  }
  .pagination button[aria-label] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    min-width: 90px;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 14px;
  }
  .pagination button[aria-label] > span[aria-hidden] {
    font-size: 20px;
  }
  .mobile-page-label,
  .mobile-page-status {
    display: inline;
  }
  .mobile-page-status {
    white-space: nowrap;
    font-size: 12px;
    color: #63748a;
  }
  .detail-actions {
    gap: 9px;
  }
  .detail-actions > .outline {
    flex: 1;
    min-height: 46px;
    padding: 10px;
    white-space: nowrap;
  }
  .detail-actions > a.primary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .detail-actions > a.text-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .detail-meta {
    font-size: 13px;
    line-height: 1.9;
  }
  .detail-field dd {
    font-size: 14px;
    line-height: 1.8;
  }
  .saved-actions button,
  .download-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .download-item small,
  .favorite-list small {
    font-size: 12px;
  }
  .compare-dock {
    bottom: calc(73px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    padding: 9px 12px;
    gap: 8px;
    z-index: 35;
    border-radius: 12px;
  }
  .compare-dock strong {
    font-size: 13px;
  }
  .compare-dock span {
    font-size: 11px;
  }
  .compare-dock .primary {
    min-height: 44px;
    font-size: 13px;
    margin-left: auto;
  }
  .compare-dock > button {
    min-width: 34px;
    min-height: 44px;
  }
  #to-top {
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    right: 14px;
    font-size: 18px;
    z-index: 30;
  }
  body:has(#compare-dock:not([hidden])) #to-top {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
  #toast {
    bottom: calc(154px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 40px);
    width: max-content;
    white-space: normal;
    font-size: 13px;
    text-align: center;
    z-index: 100;
  }
  footer,
  body:has(#compare-dock:not([hidden])) footer {
    padding: 20px 0 calc(75px + env(safe-area-inset-bottom));
    margin-top: 0;
  }
  body:has(#compare-dock:not([hidden])) footer {
    padding-bottom: calc(145px + env(safe-area-inset-bottom));
  }
  .footer-top {
    display: block;
  }
  .footer-brand,
  .footer-links strong,
  .footer-links > div:not(:last-child) {
    display: none;
  }
  .footer-top .footer-links {
    display: block;
  }
  .footer-links > div:last-child {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
  .footer-links a {
    font-size: 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .footer-bottom {
    padding: 12px 0 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.8;
  }
  .footer-bottom #data-summary {
    font-size: 11px;
  }
  dialog {
    width: calc(100% - 24px);
    max-width: 500px;
    max-height: calc(100dvh - 40px - env(safe-area-inset-bottom));
    padding: 28px 18px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px;
  }
  dialog .dialog-close {
    width: 44px;
    height: 44px;
    right: 4px;
    top: 4px;
  }
  dialog h2 {
    padding-right: 24px;
    font-size: 20px;
  }
  dialog .detail-actions {
    position: sticky;
    bottom: -20px;
    background: white;
    padding: 12px 0 20px;
    margin-bottom: -20px;
  }
  dialog .primary,
  dialog .outline {
    min-height: 46px;
  }
}
@media (max-width: 359px) {
  .container {
    width: calc(100% - 24px);
  }
  header .brand img {
    width: 134px;
  }
  #quick-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  #quick-section .section-heading h2 {
    font-size: 15px;
  }
  .mobile-filter-toggle {
    font-size: 12px;
  }
  .home-tools strong {
    font-size: 11px;
  }
  .result-table tbody tr {
    padding: 15px 12px;
  }
  .result-table .detail-link {
    min-width: 75px;
  }
  .result-table td:last-child {
    gap: 6px;
  }
  .pagination {
    gap: 6px;
  }
  .pagination button[aria-label] {
    min-width: 84px;
    padding: 0 8px;
  }
}

.mobile-compare-hint {
  display: none;
}
@media (max-width: 760px) {
  .mobile-compare-hint {
    display: block;
    font-size: 12px;
    line-height: 1.7;
    color: #697c95;
    margin: 0 0 12px;
  }
  .compare-table-wrap {
    overscroll-behavior-x: contain;
  }
  .compare-table th button {
    min-height: 44px;
    min-width: 44px;
  }
}
