:root {
    --site-red: #cf171c;
    --site-ink: #222;
    --site-muted: #65656b;
    --site-border: #ececee;
}
body { background: #f5f5f6; color: var(--site-ink); -webkit-text-size-adjust: 100%; }
::selection { background: #f7dadd; color: var(--site-ink); }
.mobile-shell { width: min(100%, 720px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.mobile-header { background: #fff; border-bottom: 1px solid var(--site-border); padding-top: env(safe-area-inset-top); }
.mobile-header-row { gap: 8px; padding-block: 8px; }
.mobile-brand { flex: 0 0 auto; min-height: 44px; color: var(--site-ink); font-size: 19px; }
.mobile-search-link { display: flex; flex: 1 1 auto; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 6px 10px; background: #f4f4f5; border-radius: 24px; color: var(--site-muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.mobile-search-icon { flex: 0 0 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.mobile-search-icon::after { content: ''; position: absolute; width: 5px; height: 1.5px; right: -4px; bottom: -2px; background: currentColor; transform: rotate(45deg); }
.mobile-account-link, .mobile-menu-toggle { display: grid; flex: 0 0 44px; min-height: 44px; place-items: center; color: var(--site-ink); }
.mobile-account-link { font-size: 14px; text-decoration: none; }
.mobile-menu-toggle { padding: 0; border: 0; border-radius: 10px; background: #f4f4f5; }
.mobile-menu-toggle .navbar-toggler-icon { width: 22px; height: 22px; }
.mobile-header-row :focus-visible, .mobile-menu :focus-visible { outline: 2px solid var(--site-red); outline-offset: 2px; box-shadow: none; }
.mobile-menu { --bs-offcanvas-width: 100%; }
.mobile-menu .offcanvas-header { min-height: 68px; padding-top: max(12px, env(safe-area-inset-top)); }
.mobile-menu .offcanvas-body { padding: 12px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.mobile-menu-support { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
.mobile-menu-support a { color: var(--site-muted); font-size: 14px; }
@media (max-width: 374px) {
    .mobile-search-hint { display: none; }
}
.mobile-main { padding-block: 14px max(24px, env(safe-area-inset-bottom)); }
.mobile-featured { overflow: hidden; border-radius: 12px; background: #27272b; }
.mobile-banner { display: block; position: relative; color: #fff; }
.mobile-banner img { display: block; width: 100%; aspect-ratio: 2.3; object-fit: cover; }
.mobile-banner span { position: absolute; inset: auto 0 0; padding: 20px 14px 24px; background: linear-gradient(transparent, #161616db); overflow-wrap: anywhere; }
.mobile-featured .carousel-indicators { margin-bottom: 3px; }
.mobile-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px 3px; background: #fff; border-radius: 12px; }
.mobile-shortcuts a { display: grid; justify-items: center; align-content: start; gap: 6px; color: var(--site-ink); font-size: 12px; text-decoration: none; text-align: center; }
.mobile-shortcuts img { object-fit: contain; }
.mobile-heading { font-size: 19px; font-weight: 700; margin: 12px 0; overflow-wrap: anywhere; }
.mobile-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mobile-filters a { display: grid; min-height: 40px; place-items: center; padding: 0 11px; border-radius: 20px; background: #fff; color: var(--site-muted); font-size: 13px; text-decoration: none; }
.mobile-filters [aria-current] { background: #fdefef; color: #ae151a; font-weight: 700; }
.mobile-card, .mobile-topic { background: #fff; border-radius: 10px; margin-bottom: 9px; overflow: hidden; }
.mobile-card-link { display: flex; align-items: center; gap: 12px; padding: 11px; color: inherit; text-decoration: none; }
.mobile-card-cover { flex: 0 0 clamp(88px, 28vw, 148px); width: clamp(88px, 28vw, 148px); aspect-ratio: 4 / 3; object-fit: cover; background: #f5f5f6; border-radius: 7px; }
.mobile-card-content { flex: 1 1 0; min-width: 0; }
.mobile-card-labels, .mobile-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--site-muted); }
.mobile-card-labels a { color: inherit; }
.mobile-vip, .mobile-score { padding: 1px 6px; border-radius: 5px; }
.mobile-vip { color: #75530b; background: #fbefd4; }
.mobile-score { color: #a21922; background: #fcecef; }
.mobile-card h2 { margin: 5px 0; font-size: 16px; font-weight: 700; line-height: 1.38; overflow-wrap: anywhere; }
.mobile-card-content h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-card p { margin: 0; color: var(--site-muted); font-size: 12px; }
.mobile-topic a { display: block; color: inherit; font-weight: 700; text-decoration: none; }
.mobile-topic img { display: block; width: 100%; aspect-ratio: 2.1; object-fit: cover; background: #eee; }
.mobile-topic span { display: block; padding: 12px; }
.mobile-empty, .mobile-more { display: block; padding: 14px; border-radius: 8px; background: #fff; text-align: center; }
.mobile-empty { color: var(--site-muted); }
.mobile-more { color: var(--site-red); text-decoration: none; }
.mobile-pagination-status { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--site-muted); }
.mobile-search-form { padding: 14px; margin-bottom: 14px; border-radius: 10px; background: #fff; }
.mobile-search-form label { font-size: 14px; }
.mobile-main :is(.form-control, .form-select, .btn) { min-height: 44px; }
.mobile-main :is(.form-control, .form-select):focus { border-color: #da7376; box-shadow: 0 0 0 .2rem #cf171c1a; }
.mobile-main .btn-danger { --bs-btn-bg: var(--site-red); --bs-btn-border-color: var(--site-red); }
.mobile-main .btn-outline-secondary { --bs-btn-hover-bg: #f5f5f6; --bs-btn-hover-color: var(--site-ink); --bs-btn-active-bg: #ececee; --bs-btn-active-color: var(--site-ink); }
.mobile-filter-panel { margin-top: 10px; border-top: 1px solid var(--site-border); }
.mobile-filter-panel summary { padding-top: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.mobile-filter-panel summary span { margin-left: 6px; font-size: 12px; color: var(--site-muted); }
.mobile-article { background: #fff; padding: clamp(14px, 4vw, 24px); border-radius: 12px; }
.mobile-article h1 { font-size: clamp(23px, 5.8vw, 34px); font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.mobile-byline { gap: 10px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--site-border); }
.mobile-article-body { line-height: 1.85; overflow-wrap: anywhere; }
.mobile-article-body :is(img, video, iframe, embed) { max-width: 100%; }
.mobile-article-body :is(img, video) { height: auto; }
.mobile-article-body :is(iframe, embed) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mobile-article-body table { display: block; max-width: 100%; overflow-x: auto; }
.mobile-access { background: #fff2ed; padding: 15px; border-radius: 10px; font-size: 14px; }
@media (max-width: 360px) {
    .mobile-shell { padding-inline: 10px; }
    .mobile-shortcuts a { font-size: 11px; }
}
.hidden-watermark { display: none; }

.mobile-search-form .form-check-input:checked { background-color: var(--site-red); border-color: var(--site-red); }
.mobile-featured-jobs { padding: 14px; margin-bottom: 9px; border-radius: 10px; background: #fff; }
.mobile-featured-jobs h2 { font-size: 16px; font-weight: 700; margin: 0 0 7px; }
.mobile-featured-jobs a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 9px; color: var(--site-ink); font-size: 14px; text-decoration: none; }
.mobile-featured-jobs a + a { border-top: 1px solid var(--site-border); }
.mobile-featured-jobs small { display: block; color: var(--site-muted); }
.mobile-featured-jobs a > span:last-child { color: var(--site-red); white-space: nowrap; }
.mobile-promotion, .mobile-promotion img { display: block; width: 100%; border-radius: 10px; }
.mobile-promotion { margin-bottom: 9px; }

.mobile-company-logo { position: relative; display: grid; flex: 0 0 48px; height: 48px; place-items: center; overflow: hidden; border: 1px solid var(--site-border); border-radius: 8px; color: #a21922; background: #fcecef; font-weight: 700; }
.mobile-company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mobile-directory-value { flex: 0 0 auto; color: var(--site-red); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mobile-directory-rank { flex: 0 0 18px; text-align: center; font-size: 13px; color: var(--site-muted); font-variant-numeric: tabular-nums; }
.mobile-rank-leading { color: var(--site-red); font-weight: 700; }
.mobile-hiring-count { flex-shrink: 0; padding: 5px 8px; border-radius: 6px; background: #fdefef; color: #ae151a; font-size: 12px; }
.mobile-job-link { display: grid; gap: 7px; padding: 15px; }
.mobile-job-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.mobile-job-heading h2 { min-width: 0; margin: 0; }
.mobile-job-company { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 13px; color: var(--site-muted); overflow-wrap: anywhere; }
.mobile-job-company .mobile-company-logo { flex-basis: 28px; height: 28px; border-radius: 5px; font-size: 12px; }
.mobile-company-header h1 { font-size: 22px; }
.mobile-rank-details { padding: 8px 12px; color: var(--site-muted); font-size: 13px; }
.mobile-rank-details summary { display: list-item; align-content: center; min-height: 36px; cursor: pointer; }
.mobile-rank-details[open] dl { padding-block: 8px; }

.mobile-account-panel { max-width: 460px; }

.mobile-avatar { flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #f5f5f6; }
.mobile-text-link { color: var(--site-ink); text-decoration-color: var(--site-muted); }
.mobile-text-link:hover { color: var(--site-red); }
.mobile-comment-content { min-width: 0; }
.mobile-comment-content p { white-space: pre-wrap; }

.mobile-home-feed .mobile-card-cover { order: 1; aspect-ratio: 16 / 10; }
.mobile-home-feed .mobile-card-link { align-items: start; padding: 12px; }
.mobile-home-feed .mobile-card-author { min-height: 22px; gap: 6px; }
.mobile-card-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.mobile-menu-search, .mobile-menu-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; }
.mobile-menu-search { background: #ededee; color: var(--site-muted); }
.mobile-menu-close { background: transparent; color: var(--site-red); font: 400 36px/1 system-ui; }
.mobile-menu-identity { display: grid; justify-items: center; gap: 10px; margin: 18px 0 26px; }
.mobile-menu-identity img { border-radius: 50%; }
.mobile-menu-identity a { color: var(--site-ink); font-weight: 600; text-decoration: none; }
.mobile-menu-links { display: block; width: min(calc(100% - 36px), 420px); margin-inline: auto; }
.mobile-menu-links :is(a, button) { display: grid; place-items: center; width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--site-border); border-radius: 0; background: transparent; color: var(--site-ink); font-weight: 500; text-decoration: none; }
.mobile-menu-links [aria-current] { color: var(--site-red); font-weight: 700; }
.mobile-company-page { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
.mobile-company-header::before { display: block; height: clamp(64px, 18vw, 112px); margin: calc(-1 * clamp(14px, 4vw, 24px)) calc(-1 * clamp(14px, 4vw, 24px)) 12px; border-radius: 10px 10px 0 0; background: #27282c url('../images/mobile-company-cover.png') center / cover; content: ''; }
.mobile-company-score { color: #1766a6; font-size: 14px; }
.mobile-company-score strong { font-size: 20px; }
.mobile-company-tabs { position: fixed; z-index: 1020; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 0; width: min(100%, 720px); margin: 0; padding-bottom: env(safe-area-inset-bottom); background: white; box-shadow: 0 -3px 12px #0001; }
.mobile-company-tabs a { flex: 1; min-width: 0; border: 0; border-radius: 0; white-space: nowrap; }
.mobile-company-feed-card .mobile-card-cover { order: 1; aspect-ratio: 16 / 10; }
.mobile-company-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; }
.mobile-company-awards li { display: grid; justify-items: center; gap: 6px; padding: 10px; border: 1px solid var(--site-border); border-radius: 8px; text-align: center; font-size: 13px; }
.mobile-company-awards img { width: 100%; height: 54px; object-fit: contain; }
.mobile-annual-banner { padding: 18px 14px; margin-bottom: 12px; background: #fff4d6; color: #641924; border-radius: 12px; text-align: center; }
.mobile-annual-banner img { width: min(100%, 360px); height: auto; }
.mobile-annual-banner p { margin: 10px auto 0; max-width: 36em; font-size: 13px; }
.mobile-annual-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin-bottom: 12px; }
.mobile-annual-groups a { display: grid; place-items: center; min-height: 44px; padding: 4px; text-align: center; border-radius: 6px; color: #641924; background: #fff4d6; text-decoration: none; font-size: 13px; }
.mobile-annual-groups [aria-current] { background: #8f252e; color: white; }
.mobile-annual-actions { display: flex; gap: 16px; padding: 0 12px 8px; font-size: 13px; }
.mobile-annual-actions a { color: #85242c; }
.mobile-course-list { margin-bottom: 10px; background: #fff; border-radius: 10px; overflow: hidden; }
.mobile-course-card { display: grid; grid-template-columns: clamp(88px, 32vw, 152px) minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 12px; color: inherit; text-decoration: none; }
.mobile-course-card + .mobile-course-card { border-top: 1px solid var(--site-border); }
.mobile-course-cover { position: relative; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: #ececee; }
.mobile-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.mobile-course-cover span { position: absolute; bottom: 4px; left: 4px; padding: 2px 5px; border-radius: 4px; background: #222d; color: white; font-size: 11px; }
.mobile-course-card h2 { margin: 0 0 5px; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.mobile-course-card p { margin: 0 0 4px; color: var(--site-muted); font-size: 12px; }
.mobile-course-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-course-price { display: flex; flex-wrap: wrap; gap: 6px; color: var(--site-red); font-size: 13px; }
.mobile-course-price del { color: var(--site-muted); }

.mobile-course-detail-cover { width: 100%; max-height: 320px; object-fit: cover; aspect-ratio: 16 / 9; }
.mobile-course-detail-tabs .nav-link { flex: 1; color: var(--site-muted); }
.mobile-course-detail-tabs .nav-link.active { color: var(--site-red); font-weight: 700; }
