/* VIP library */
.library-mobile-bar,.library-mobile-overlay,.library-drawer-head { display: none; }
.vip-library-page { min-height: 100vh; display: grid; grid-template-columns: 282px minmax(0,1fr); overflow: visible; color: #1f2732; background: #f2f1ed; }
.library-sidebar { position: sticky; z-index: 20; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 18px; border-right: 1px solid #d8d8d2; background: #f8f7f3; }
.library-home-link { width: fit-content; margin: 0 8px 16px; color: #68717c; text-decoration: none; font-size: 11px; font-weight: 650; }
.library-home-link:hover { color: #172b4d; }
.library-brand { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #deded8; border-radius: 16px; color: #17243b; background: #fff; text-decoration: none; }
.library-brand img { width: 100%; height: auto; display: block; }
.library-brand > span:last-child { display: grid; line-height: 1.05; }
.library-brand b { font-size: 16px; letter-spacing: -.025em; }
.library-brand small { margin-top: 5px; color: #8b94a4; font: 8px var(--font-geist-mono); letter-spacing: .13em; }
.library-sidebar-section { margin-top: 26px; }
.library-sidebar-label { display: block; padding: 0 10px 9px; color: #92989f; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.library-nav-item { width: 100%; min-height: 44px; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid transparent; border-radius: 11px; color: #59616b; background: transparent; text-align: left; text-decoration: none; cursor: pointer; font-size: 12px; transition: transform .18s,background .18s,border-color .18s; }
.library-nav-item + .library-nav-item { margin-top: 3px; }
.library-nav-item i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #68717c; background: #e9e8e3; font: 700 8px var(--font-geist-mono); font-style: normal; text-align: center; }
.library-nav-item b { min-width: 29px; padding: 2px 6px; border-radius: 99px; color: #7b8594; background: #edf0f3; font: 600 9px var(--font-geist-mono); text-align: center; }
.library-nav-item:hover { color: #18212c; border-color: #deded8; background: #fff; transform: translateX(2px); }
.library-nav-item.is-active { color: #101820; border-color: #b9dce8; background: #dff2f7; font-weight: 750; }
.library-nav-item.is-active i { color: #12394b; background: #bde6ef; }
.library-nav-item.is-active.tone-lime { border-color: #cfdd8e; background: #eef5c8; }
.library-nav-item.is-active.tone-lime i { background: #dceba0; }
.library-nav-item.is-active.tone-peach { border-color: #efc0a2; background: #ffe4d3; }
.library-nav-item.is-active.tone-peach i { background: #fac9aa; }
.library-nav-item.is-active.tone-lilac { border-color: #d4c3e9; background: #eee4f8; }
.library-nav-item.is-active.tone-lilac i { background: #ddc9ef; }
.library-nav-item.is-active.tone-aqua { border-color: #aeddd2; background: #d9f2ec; }
.library-nav-item.is-active.tone-aqua i { background: #bce6dc; }
.library-sidebar-note { margin-top: auto; padding: 17px 15px; border: 1px solid #dcdcd6; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(31,47,68,.045); }
.library-sidebar-note span { color: #9aa2af; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.library-sidebar-note b { display: block; margin-top: 6px; color: #344258; font-size: 12px; }
.library-sidebar-note p { margin: 4px 0 0; color: #8b94a4; font-size: 10px; }
.library-lock { margin-top: 8px; padding: 10px 12px; border: 0; color: #8a93a1; background: transparent; cursor: pointer; text-align: left; font-size: 11px; }
.library-lock:hover { color: #243147; }
.library-main { min-width: 0; }
.library-topbar { position: sticky; z-index: 15; top: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(214,214,208,.92); background: rgba(248,247,243,.9); backdrop-filter: blur(18px); }
.library-topbar > div:first-child { display: flex; align-items: center; gap: 9px; color: #9aa2af; font-size: 11px; }
.library-topbar > div:first-child i { color: #c1c7d0; font-style: normal; }
.library-topbar > div:first-child b { color: #586375; font-weight: 650; }
.library-access { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #e0e8e4; border-radius: 99px; color: #617168; background: #f7fbf8; font-size: 10px; }
.library-access span { color: #49a66c; font-size: 8px; }
.library-content { width: min(92%,1240px); margin: 0 auto; padding: 70px 0 90px; }
.library-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 50px; align-items: end; padding: 0 4px 44px; }
.library-eyebrow { margin: 0 0 14px; color: #ec8023; font: 700 10px var(--font-geist-mono); letter-spacing: .13em; }
.library-hero h1 { margin: 0; color: #172b4d; font: 560 clamp(42px,5vw,66px)/1.06 var(--serif); letter-spacing: -.045em; }
.library-hero > div:first-child > p:last-child { max-width: 650px; margin: 18px 0 0; color: #748094; font-size: 15px; }
.library-stats { min-width: 390px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid #e1e5eb; border-radius: 16px; background: #fff; box-shadow: 0 16px 45px rgba(27,45,72,.05); }
.library-stats div { min-height: 92px; display: grid; align-content: center; padding: 16px; border-left: 1px solid #e9ecf0; }
.library-stats div:first-child { border-left: 0; }
.library-stats b { color: #1d427c; font: 650 23px/1 var(--serif); }
.library-stats span { margin-top: 8px; color: #929baa; font-size: 9px; }
.library-filter-panel { position: sticky; z-index: 10; top: 73px; padding: 16px; border: 1px solid #e1e5eb; border-radius: 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(15px); box-shadow: 0 15px 45px rgba(27,45,72,.06); }
.library-search { min-height: 48px; display: grid; grid-template-columns: 32px 1fr; align-items: center; padding: 0 11px; border: 1px solid #dce2e9; border-radius: 11px; background: #f8f9fb; }
.library-search > span { color: #7e899a; font-size: 22px; text-align: center; transform: rotate(-15deg); }
.library-search input { width: 100%; height: 46px; border: 0; outline: 0; color: #26364e; background: transparent; font: 13px var(--sans); }
.library-search input::placeholder { color: #a4acb8; }
.library-selects { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.library-selects label { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e1e5ea; border-radius: 9px; background: #fff; }
.library-selects label > span { color: #9aa2af; font-size: 9px; white-space: nowrap; }
.library-selects select { min-width: 0; width: 100%; height: 39px; border: 0; outline: 0; color: #4f5c6e; background: transparent; cursor: pointer; font-size: 11px; }
.library-selects select:disabled { color: #a9afb8; cursor: not-allowed; }
.library-result-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.library-result-head > div { display: flex; align-items: baseline; gap: 7px; }
.library-result-head b { color: #1d427c; font: 650 22px var(--serif); }
.library-result-head span { color: #8e98a7; font-size: 11px; }
.library-result-head button { padding: 7px 10px; border: 0; color: #667488; background: transparent; cursor: pointer; font-size: 11px; }
.library-result-head button:hover { color: #1d427c; }
.job-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.job-card { --job-accent:#2867a8; position: relative; min-width: 0; min-height: 390px; display: flex; flex-direction: column; overflow: hidden; padding: 23px; border: 1px solid #e1e5eb; border-radius: 17px; background: #fff; box-shadow: 0 12px 35px rgba(24,44,72,.045); transition: transform .22s,box-shadow .22s,border-color .22s; }
.job-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--job-accent); opacity: .78; }
.job-card:hover { border-color: color-mix(in srgb,var(--job-accent) 32%,#e1e5eb); box-shadow: 0 20px 50px rgba(24,44,72,.09); transform: translateY(-3px); }
.job-tone-1 { --job-accent:#7c5cad; }
.job-tone-2 { --job-accent:#d2742a; }
.job-tone-3 { --job-accent:#248374; }
.job-tone-4 { --job-accent:#b04f60; }
.job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.job-company-mark { flex: none; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; color: var(--job-accent); background: color-mix(in srgb,var(--job-accent) 10%,#fff); font: 700 12px var(--font-geist-mono); letter-spacing: -.06em; }
.job-card-badges { min-width: 0; display: grid; justify-items: end; gap: 4px; }
.job-card-badges span { max-width: 170px; overflow: hidden; color: var(--job-accent); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.job-card-badges time { color: #a0a8b4; font: 9px var(--font-geist-mono); }
.job-card-company { margin-top: 21px; color: #7d8898; font-size: 11px; }
.job-card h2 { display: -webkit-box; min-height: 70px; margin: 7px 0 0; overflow: hidden; color: #20314b; font: 600 20px/1.42 var(--serif); letter-spacing: -.025em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.job-positions { display: -webkit-box; min-height: 44px; margin: 13px 0 0; overflow: hidden; color: #758195; font-size: 11px; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.job-card-tags span { padding: 5px 8px; border-radius: 6px; color: #5f6d81; background: #f1f3f6; font-size: 9px; }
.job-card-tags .is-education { color: #94611f; background: #fff5e7; }
.job-card-footer { display: grid; gap: 13px; margin-top: auto; padding-top: 19px; border-top: 1px solid #edf0f3; }
.job-card-footer > div { min-width: 0; display: grid; grid-template-columns: 17px minmax(0,1fr); align-items: start; }
.job-card-footer > div span { color: #9aa3af; font-size: 12px; }
.job-card-footer p { margin: 0; overflow: hidden; color: #8490a1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.job-card-footer a { width: fit-content; color: #1d5a98; text-decoration: none; font-size: 11px; font-weight: 700; }
.job-card-footer a span { margin-left: 8px; color: #ec8023; }
.job-card-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.library-load-more { width: 100%; min-height: 52px; margin-top: 18px; border: 1px solid #dfe4ea; border-radius: 12px; color: #566478; background: #fff; cursor: pointer; font-size: 11px; }
.library-load-more:hover { color: #1d427c; border-color: #b9c9dd; }
.library-load-more b { color: #ec8023; }
.library-empty { display: grid; place-items: center; min-height: 380px; padding: 50px; border: 1px dashed #d5dbe3; border-radius: 18px; background: #fff; text-align: center; }
.library-empty > span { color: #a3acb8; font-size: 38px; transform: rotate(-15deg); }
.library-empty h2 { margin: 10px 0 0; font: 550 27px var(--serif); }
.library-empty p { margin: 5px 0 18px; color: #8b95a4; font-size: 12px; }
.library-empty button { padding: 9px 14px; border: 0; border-radius: 8px; color: #fff; background: #1d427c; cursor: pointer; font-size: 11px; }
.library-data-note { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; margin-top: 55px; padding: 30px 4px 0; border-top: 1px solid #dde2e8; }
.library-data-note b { color: #4e5b6d; font-size: 11px; }
.library-data-note p { margin: 8px 0 0; color: #929aa7; font-size: 10px; }
.library-data-note a { display: inline-block; margin-top: 9px; color: #687991; font-size: 10px; }

/* Clay-inspired VIP reading pages */
.vip-resource-page { --article-accent:#bdebf4; --article-accent-strong:#4aa8c0; background-color: #f1f0eb; background-image: linear-gradient(rgba(25,35,45,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(25,35,45,.035) 1px,transparent 1px); background-size: 44px 44px; }
.vip-resource-page.accent-lime { --article-accent:#e4f29d; --article-accent-strong:#7f9d23; }
.vip-resource-page.accent-peach { --article-accent:#ffd5bc; --article-accent-strong:#d26d30; }
.vip-resource-page.accent-lilac { --article-accent:#e2d1f2; --article-accent-strong:#8a5ab1; }
.vip-resource-page.accent-aqua { --article-accent:#cceee6; --article-accent-strong:#368d7c; }
.vip-reading-shell { width: min(92%,1180px); margin: 0 auto; padding: 68px 0 120px; }
.vip-article-hero { position: relative; min-height: 470px; display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 44px; align-items: end; overflow: hidden; padding: 62px; border: 1px solid #cecec8; border-radius: 34px; color: #fff; background: #153f34; box-shadow: 0 30px 70px rgba(30,42,38,.12); }
.vip-resource-page.accent-rose { --article-accent:#fde8e8; --article-accent-strong:#b84141; }
.vip-article-hero::before { content: ""; position: absolute; width: 520px; height: 520px; top: -300px; right: -120px; border: 80px solid color-mix(in srgb,var(--article-accent) 60%,transparent); border-radius: 50%; opacity: .7; }
.vip-article-hero::after { content: ""; position: absolute; width: 190px; height: 190px; right: 9%; bottom: -95px; border: 42px solid var(--article-accent); border-radius: 45% 55% 48% 52%; transform: rotate(18deg); opacity: .75; }
.vip-article-hero > * { position: relative; z-index: 1; }
.vip-article-number { align-self: start; width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 24px; color: #17231f; background: var(--article-accent); font: 800 24px var(--font-geist-mono); transform: rotate(-4deg); }
.vip-article-kicker { margin: 0 0 22px; color: var(--article-accent); font: 750 10px var(--font-geist-mono); letter-spacing: .15em; }
.vip-article-hero h1 { max-width: 920px; margin: 0; font-family: var(--sans); font-size: clamp(48px,5.4vw,78px); font-weight: 620; line-height: 1.04; letter-spacing: -.058em; text-wrap: balance; }
.vip-article-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.vip-article-meta span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.76); background: rgba(255,255,255,.07); font-size: 10px; }
.vip-article-intro { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 48px; margin-top: 22px; padding: 34px 40px; border: 1px solid #d2d2cc; border-radius: 24px; background: var(--article-accent); }
.vip-article-intro > span { padding-top: 5px; color: #27312d; font: 800 9px var(--font-geist-mono); letter-spacing: .15em; }
.vip-article-intro p { margin: 0; color: #25302d; font-size: 14px; line-height: 1.75; }
.vip-article-intro p + p { margin-top: 7px; }
.vip-reading-layout { display: grid; grid-template-columns: minmax(0,820px) 230px; gap: 72px; align-items: start; justify-content: center; margin-top: 72px; }
.vip-article-body { min-width: 0; color: #29313a; font-size: 16px; line-height: 1.92; }
.vip-article-body > p { margin: 18px 0; }
.vip-article-body h2 { scroll-margin-top: 92px; margin: 92px 0 28px; padding-top: 22px; border-top: 1px solid #cfcfca; color: #111820; font-family: var(--sans); font-size: clamp(31px,3.2vw,45px); font-weight: 690; line-height: 1.18; letter-spacing: -.04em; }
.vip-article-body h2:first-child { margin-top: 0; }
.vip-article-body h3 { scroll-margin-top: 92px; margin: 54px 0 16px; color: #1c2630; font-family: var(--sans); font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.vip-article-body h4 { margin: 34px 0 12px; color: #34414d; font-size: 17px; }
.vip-article-body strong { color: #111820; font-weight: 780; }
.vip-article-body em { font-style: normal; background: linear-gradient(transparent 55%,var(--article-accent) 55%); }
.vip-article-body a { color: #175e82; font-weight: 680; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vip-article-body a span { color: var(--article-accent-strong); font-size: 11px; }
.vip-article-body code { padding: 2px 6px; border: 1px solid #d7d5cd; border-radius: 6px; color: #3c4a56; background: #f8f7f3; font: 12px/1.5 var(--font-geist-mono); }
.vip-article-body blockquote { margin: 30px 0; padding: 28px 32px; border: 1px solid #c9c8c0; border-left: 9px solid var(--article-accent-strong); border-radius: 6px 20px 20px 6px; background: #fff; box-shadow: 0 14px 38px rgba(36,43,48,.045); }
.vip-article-body blockquote p { margin: 0; color: #27323d; font-size: 16px; }
.vip-article-body blockquote p + p { margin-top: 8px; }
.vip-article-body ul,.vip-article-body ol { margin: 22px 0; padding: 24px 28px 24px 50px; border: 1px solid #d6d5cf; border-radius: 18px; background: rgba(255,255,255,.72); }
.vip-article-body li { padding-left: 5px; }
.vip-article-body li + li { margin-top: 9px; }
.vip-check { width: 20px; height: 20px; display: inline-grid; place-items: center; margin: 0 9px 0 -3px; border: 1px solid #aaa; border-radius: 6px; vertical-align: -4px; color: #173c32; background: #fff; font-size: 11px; }
.vip-check.is-checked { border-color: var(--article-accent-strong); background: var(--article-accent); }
.vip-article-body hr { height: 1px; margin: 74px 0; border: 0; background: #cecec8; }
.vip-article-body pre { margin: 30px 0; overflow-x: auto; padding: 28px; border: 1px solid #24362f; border-radius: 20px; color: #effaf5; background: #173d33; box-shadow: 0 18px 44px rgba(23,61,51,.11); }
.vip-article-body pre code { padding: 0; border: 0; color: inherit; background: transparent; font: 12px/1.8 var(--font-geist-mono); white-space: pre; }
.vip-table-wrap { margin: 32px 0; overflow-x: auto; border: 1px solid #cecec8; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(36,43,48,.05); }
.vip-article-body table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 12px; line-height: 1.7; }
.vip-article-body th { padding: 16px 18px; border-right: 1px solid rgba(30,45,40,.15); color: #18241f; background: var(--article-accent); text-align: left; font-weight: 780; }
.vip-article-body th:last-child { border-right: 0; }
.vip-article-body td { padding: 15px 18px; border-top: 1px solid #e5e4de; border-right: 1px solid #ecebe6; vertical-align: top; }
.vip-article-body td:last-child { border-right: 0; }
.vip-article-body tbody tr:nth-child(even) { background: #faf9f6; }
.vip-article-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 22px; border: 1px solid #d3d2cc; border-radius: 20px; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); }
.vip-article-toc > span { color: #8a8f93; font: 780 9px var(--font-geist-mono); letter-spacing: .14em; }
.vip-article-toc nav { display: grid; gap: 2px; margin-top: 13px; }
.vip-article-toc a { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 7px; padding: 7px 5px; border-radius: 8px; color: #68717a; text-decoration: none; font-size: 10px; line-height: 1.45; }
.vip-article-toc a:hover { color: #18212a; background: var(--article-accent); }
.vip-article-toc i { color: var(--article-accent-strong); font: 700 8px var(--font-geist-mono); font-style: normal; }
.vip-experience-route { width: min(94%,1320px); }
.vip-full-guide { margin-top: 44px; border: 1px solid #d0d0ca; border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: 0 18px 48px rgba(31,40,45,.06); }
.vip-full-guide > summary { min-height: 112px; display: grid; grid-template-columns: 155px minmax(0,1fr) 42px; gap: 24px; align-items: center; padding: 24px 30px; cursor: pointer; list-style: none; }
.vip-full-guide > summary::-webkit-details-marker { display: none; }
.vip-full-guide > summary > span { width: fit-content; padding: 7px 10px; border-radius: 999px; color: #173f34; background: #d9f1eb; font: 780 9px var(--font-geist-mono); letter-spacing: .08em; }
.vip-full-guide > summary div { display: grid; gap: 5px; }
.vip-full-guide > summary b { color: #18212a; font-size: 16px; }
.vip-full-guide > summary small { color: #7d858c; font-size: 10px; }
.vip-full-guide > summary > i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d5d5cf; border-radius: 50%; color: #26332f; background: #f7f6f2; font-size: 22px; font-style: normal; transition: transform .2s; }
.vip-full-guide[open] > summary > i { transform: rotate(45deg); }
.vip-full-guide > .vip-article-intro { margin: 0 30px; }
.vip-full-guide > .vip-reading-layout { padding: 0 30px 70px; }

@media (max-width: 1180px) {
  .vip-library-page { grid-template-columns: 240px minmax(0,1fr); }
  .library-hero { grid-template-columns: 1fr; }
  .library-stats { min-width: 0; max-width: 560px; }
  .library-selects { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .job-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vip-reading-layout { grid-template-columns: minmax(0,820px); }
  .vip-article-toc { display: none; }
}

@media (max-width: 820px) {
  .vip-library-page { display: block; }
  .library-sidebar { position: sticky; height: auto; min-height: 118px; display: grid; grid-template-columns: 1fr 150px; gap: 8px 16px; align-items: center; padding: 10px 5%; border-right: 0; border-bottom: 1px solid #d8d8d2; }
  .library-home-link { margin: 0; }
  .library-brand { width: 150px; justify-self: end; padding: 7px 10px; border-radius: 11px; }
  .library-sidebar-section { grid-column: 1 / -1; display: flex; gap: 5px; margin: 0; overflow-x: auto; padding-bottom: 2px; }
  .library-sidebar-section .library-sidebar-label,.library-sidebar-section .library-nav-item i,.library-sidebar-section .library-nav-item b { display: none; }
  .library-sidebar-section .library-nav-item { width: auto; min-height: 34px; display: block; flex: none; margin: 0; padding: 7px 11px; white-space: nowrap; font-size: 10px; }
  .library-sidebar-note,.library-lock { display: none; }
  .library-topbar { top: 118px; min-height: 48px; padding: 0 5%; }
  .library-topbar > div:first-child span,.library-topbar > div:first-child i { display: none; }
  .library-content { width: 90%; padding: 45px 0 70px; }
  .library-hero { gap: 30px; }
  .library-hero h1 { font-size: 45px; }
  .library-stats { grid-template-columns: repeat(3,1fr); }
  .library-stats div { min-height: 78px; padding: 12px; }
  .library-stats b { font-size: 18px; }
  .library-stats span { font-size: 8px; }
  .library-filter-panel { top: 128px; padding: 11px; }
  .library-selects { grid-template-columns: 1fr 1fr; }
  .job-card-grid { grid-template-columns: 1fr; }
  .job-card { min-height: 360px; }
  .library-data-note { grid-template-columns: 1fr; gap: 20px; }
  .vip-reading-shell { width: 90%; padding: 40px 0 80px; }
  .vip-article-hero { min-height: 440px; grid-template-columns: 1fr; gap: 50px; padding: 38px; border-radius: 26px; }
  .vip-article-number { width: 68px; height: 68px; border-radius: 19px; font-size: 19px; }
  .vip-article-hero h1 { font-size: clamp(42px,9vw,61px); }
  .vip-article-intro { grid-template-columns: 1fr; gap: 13px; padding: 28px; }
  .vip-reading-layout { margin-top: 54px; }
  .vip-article-body h2 { scroll-margin-top: 185px; }
  .vip-full-guide > summary { grid-template-columns: 1fr auto; gap: 12px; }
  .vip-full-guide > summary > span { grid-column: 1 / -1; }
  .vip-full-guide > .vip-reading-layout { padding: 0 22px 50px; }
  .vip-full-guide > .vip-article-intro { margin: 0 22px; }
}

@media (max-width: 520px) {
  .library-sidebar { position: relative; min-height: 0; grid-template-columns: 1fr 112px; gap: 6px 10px; padding: 8px 4%; }
  .library-brand { width: 112px; padding: 5px 8px; }
  .library-sidebar-section { gap: 4px; margin-top: 2px; }
  .library-sidebar-section .library-nav-item { min-height: 30px; padding: 6px 9px; border-radius: 8px; font-size: 9px; }
  .library-topbar { display: none; }
  .library-content { width: 92%; padding: 24px 0 48px; }
  .library-hero { gap: 16px; padding: 0 2px 22px; }
  .library-eyebrow { margin-bottom: 8px; font-size: 8px; }
  .library-hero > div:first-child > p:last-child { margin-top: 10px; font-size: 12px; line-height: 1.55; }
  .library-filter-panel { position: relative; top: auto; }
  .library-hero h1 { font-size: 32px; }
  .library-stats { grid-template-columns: repeat(3,1fr); border-radius: 12px; }
  .library-stats div { min-height: 54px; padding: 8px; border-top: 0; border-left: 1px solid #e9ecf0; }
  .library-stats div:first-child { border-left: 0; }
  .library-stats b { font-size: 15px; }
  .library-stats span { margin-top: 5px; font-size: 7px; }
  .library-filter-panel { padding: 8px; border-radius: 13px; }
  .library-search { min-height: 40px; grid-template-columns: 26px 1fr; border-radius: 9px; }
  .library-search > span { font-size: 18px; }
  .library-search input { height: 38px; font-size: 12px; }
  .library-selects { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 7px; }
  .library-selects label { display: block; min-height: 47px; padding: 5px 8px 3px; border-radius: 8px; }
  .library-selects label > span { display: block; font-size: 8px; }
  .library-selects select { height: 25px; font-size: 10px; }
  .library-result-head { min-height: 48px; }
  .library-result-head b { font-size: 18px; }
  .job-card-grid { gap: 9px; }
  .job-card { min-height: 0; padding: 16px; border-radius: 13px; }
  .job-company-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 10px; }
  .job-card-company { margin-top: 13px; font-size: 10px; }
  .job-card h2 { min-height: 0; margin-top: 5px; font-size: 17px; line-height: 1.35; }
  .job-positions { min-height: 0; margin-top: 8px; font-size: 10px; line-height: 1.55; }
  .job-card-tags { gap: 4px; margin-top: 11px; }
  .job-card-tags span { padding: 4px 6px; font-size: 8px; }
  .job-card-footer { gap: 9px; margin-top: 13px; padding-top: 12px; }
  .library-load-more { min-height: 44px; margin-top: 10px; }
  .library-data-note { gap: 14px; margin-top: 34px; padding-top: 20px; }
  .vip-reading-shell { width: 94%; padding: 22px 0 54px; }
  .vip-experience-route { width: 100%; }
  .vip-full-guide { margin-top: 24px; border-radius: 17px; }
  .vip-full-guide > summary { min-height: 78px; padding: 15px 16px; }
  .vip-article-hero { min-height: 510px; padding: 28px 22px; }
  .vip-article-hero h1 { font-size: 40px; }
  .vip-article-meta { gap: 6px; }
  .vip-article-intro { padding: 24px 20px; }
  .vip-article-body { font-size: 15px; }
  .vip-article-body h2 { font-size: 30px; }
  .vip-article-body h3 { font-size: 21px; }
  .vip-article-body ul,.vip-article-body ol { padding: 20px 18px 20px 40px; }
}

/* High-density mobile library */
@media (max-width: 520px) {
  .library-sidebar { position: fixed; inset: 0 0 auto; width: 100%; height: auto; min-height: 64px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: center; overflow: hidden; padding: 5px 3% 4px; border-bottom-color: #deded8; }
  .library-main { padding-top: 69px; }
  .library-home-link { display: block; grid-column: 2; grid-row: 1; margin: 0; color: #68717c; font-size: 8px; white-space: nowrap; }
  .library-brand { grid-column: 1; grid-row: 1; justify-self: start; width: 76px; padding: 2px 3px; border: 0; background: transparent; }
  .library-sidebar-section { grid-column: 1 / -1; grid-row: 2; min-width: 0; gap: 3px; overflow-x: auto; padding: 0 0 1px; scrollbar-width: none; }
  .library-sidebar-section::-webkit-scrollbar { display: none; }
  .library-sidebar-section .library-nav-item { min-height: 25px; padding: 4px 8px; border-radius: 7px; font-size: 8px; }
  .library-content { width: 94%; padding: 10px 0 34px; }
  .library-hero { grid-template-columns: minmax(0,1fr) 146px; gap: 6px; align-items: center; padding: 0 0 8px; }
  .library-eyebrow,.library-hero > div:first-child > p:last-child { display: none; }
  .library-hero h1 { font: 620 20px/1.1 var(--serif); letter-spacing: -.035em; }
  .library-stats { width: 146px; min-width: 0; border-radius: 8px; box-shadow: none; }
  .library-stats div { min-width: 0; min-height: 32px; padding: 4px 3px; text-align: center; }
  .library-stats b { overflow: hidden; font: 680 10px/1 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
  .library-stats span { margin-top: 3px; font-size: 5.5px; white-space: nowrap; }
  .library-filter-panel { padding: 5px; border-radius: 9px; box-shadow: 0 7px 20px rgba(27,45,72,.045); }
  .library-search { min-height: 30px; grid-template-columns: 20px 1fr; padding: 0 6px; border-radius: 7px; }
  .library-search > span { font-size: 14px; }
  .library-search input { height: 28px; font-size: 10px; }
  .library-selects { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-top: 4px; }
  .library-selects label { min-height: 31px; padding: 0 4px; overflow: hidden; border-radius: 6px; }
  .library-selects label > span { display: none; }
  .library-selects select { height: 30px; padding: 0; font-size: 8.5px; text-overflow: ellipsis; }
  .library-result-head { min-height: 34px; padding: 0 2px; }
  .library-result-head b { font-size: 15px; }
  .library-result-head span,.library-result-head button { font-size: 8px; }
  .job-card-grid { gap: 6px; }
  .job-card { min-height: 0; padding: 10px 11px; border-radius: 9px; box-shadow: 0 5px 15px rgba(24,44,72,.035); }
  .job-card::before { width: 2px; }
  .job-card-top { gap: 8px; }
  .job-company-mark { width: 28px; height: 28px; border-radius: 7px; font-size: 8px; }
  .job-card-badges { display: flex; gap: 6px; }
  .job-card-badges span,.job-card-badges time { font-size: 7px; }
  .job-card-company { margin-top: 5px; font-size: 8px; }
  .job-card h2 { min-height: 0; margin-top: 2px; font: 630 14px/1.28 var(--serif); -webkit-line-clamp: 2; }
  .job-positions { min-height: 0; margin-top: 4px; font-size: 8px; line-height: 1.35; -webkit-line-clamp: 1; }
  .job-card-tags { gap: 3px; margin-top: 5px; }
  .job-card-tags span { padding: 3px 5px; border-radius: 4px; font-size: 7px; }
  .job-card-tags span:nth-child(n+3) { display: none; }
  .job-card-footer { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; margin-top: 7px; padding-top: 7px; }
  .job-card-footer > div { grid-template-columns: 12px minmax(0,1fr); }
  .job-card-footer > div span,.job-card-footer p { font-size: 7px; }
  .job-card-footer a { font-size: 8px; white-space: nowrap; }
  .job-card-footer a span { margin-left: 3px; }
  .library-load-more { min-height: 36px; font-size: 9px; }
}

/* Mobile drawer navigation */
@media (max-width: 520px) {
  .library-mobile-bar { position: fixed; z-index: 45; inset: 0 0 auto; height: 48px; display: grid; grid-template-columns: 74px minmax(0,1fr) 32px; align-items: center; gap: 8px; padding: 0 3%; border-bottom: 1px solid #deded8; background: rgba(248,247,243,.97); backdrop-filter: blur(16px); }
  .library-mobile-brand { display: block; width: 74px; }
  .library-mobile-brand img { width: 100%; height: auto; display: block; }
  .library-mobile-bar > span { overflow: hidden; color: #465266; font-size: 10px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .library-mobile-bar > button { width: 30px; height: 30px; display: grid; align-content: center; gap: 4px; padding: 6px; border: 1px solid #d9dde2; border-radius: 8px; background: #fff; cursor: pointer; }
  .library-mobile-bar > button i { display: block; width: 100%; height: 1px; background: #405066; }
  .library-mobile-overlay { position: fixed; z-index: 55; inset: 0; display: block; border: 0; background: rgba(17,28,43,.42); backdrop-filter: blur(2px); }
  .library-sidebar { position: fixed; z-index: 65; inset: 0 auto 0 0; width: min(84vw,318px); height: 100dvh; min-height: 0; display: flex; flex-direction: column; gap: 0; overflow-y: auto; padding: 14px 12px 12px; border-right: 1px solid #d8d8d2; border-bottom: 0; background: #f8f7f3; box-shadow: 24px 0 70px rgba(20,31,46,.18); transform: translateX(-105%); transition: transform .22s ease; }
  .library-sidebar.is-mobile-open { transform: translateX(0); }
  .library-main { padding-top: 48px; }
  .library-drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 5px 8px; border-bottom: 1px solid #e3e3de; }
  .library-drawer-head b { color: #344258; font-size: 11px; }
  .library-drawer-head button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #647083; background: #ecece7; cursor: pointer; font-size: 20px; line-height: 1; }
  .library-home-link { display: block; margin: 10px 6px 6px; font-size: 9px; }
  .library-brand { display: block; width: 150px; margin: 0 3px; padding: 8px 10px; border: 1px solid #deded8; background: #fff; }
  .library-sidebar-section { display: block; flex: none; width: 100%; margin-top: 14px; overflow: visible; padding: 0; }
  .library-sidebar-section .library-sidebar-label { display: block; }
  .library-sidebar-section .library-nav-item { width: 100%; min-height: 42px; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; gap: 6px; padding: 7px 9px; font-size: 11px; white-space: normal; }
  .library-sidebar-section .library-nav-item i,.library-sidebar-section .library-nav-item b { display: grid; }
  .library-sidebar-note { display: block; margin-top: auto; }
  .library-lock { display: block; }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .library-sidebar { transition: none; }
}
