:root {
  font-family: "Xene Unified", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111317;
  background: #fff;
  font-synthesis: none;
  --ink: #111317;
  --muted: #6f747b;
  --line: #e8ebee;
  --soft: #f3f5f6;
  --blue: #55b9ed;
  --blue-soft: #eaf7fd;
  --radius: 10px;
}

@font-face {
  font-family: "Xene Unified";
  src: url("/assets/font.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Local";
  src: url("5c5678afbe8c1b2e.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-grid; place-items: center; font-size: 20px; line-height: 1; }
.site-shell { min-height: 100vh; }
.mobile-bottom-nav { display: none; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 255px; padding: 18px 14px; display: flex; flex-direction: column; background: rgba(255,255,255,.97); overflow-y: auto; }
.sidebar-scrim { display: none; }
.sidebar-brand-row { min-height: 42px; margin: 0 7px 24px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 10px; }
.brand-logo-media { width: 76px; height: 28px; flex: 0 0 76px; display: grid; align-items: center; overflow: hidden; }
.brand-logo-media img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.brand-copy { min-width: 0; display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 14px; font-weight: 680; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: #7e858a; font: 9px/1 "Geist Local", sans-serif; letter-spacing: .05em; }
.sidebar-close { display: none; }
.sidebar-nav { display: grid; gap: 1px; }
.sidebar-nav a { min-height: 40px; padding: 0 14px; display: grid; grid-template-columns: 22px 1fr 18px; gap: 10px; align-items: center; border-radius: 8px; font-size: 15px; font-weight: 540; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: #eef3f6; }
.sidebar-nav a.active { box-shadow: none; }
.nav-mark { color: #575e65; line-height: 1; }
.nav-mark .icon { width: 20px; height: 20px; }
.sidebar-nav a > .icon:last-child { width: 16px; height: 16px; }
.sidebar-label { margin: 28px 10px 10px; color: #858a90; font-size: 14px; }
.sidebar-nav.compact { gap: 1px; }
.tag-list { display: grid; gap: 2px; }
.tag-list a { display: flex; align-items: center; gap: 18px; min-height: 40px; padding: 0 17px; font-size: 14px; font-weight: 530; border-radius: 8px; }
.tag-list a:hover { background: #f5f7f8; }
.tag-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; vertical-align: middle; }
.tag-dot.blue { background: var(--blue); }
.tag-dot.orange { background: #ff8a3b; }
.tag-dot.pink { background: #e84be9; }
.tag-dot.violet { background: #9142ec; }
.sidebar-footer { margin-top: auto; padding: 28px 10px 0; display: grid; gap: 3px; color: #7b8086; font-size: 12px; line-height: 1.45; }
.sidebar-footer span { color: #a0a4a8; }
.sidebar-footer a:hover { color: var(--ink); }

.site-header { position: fixed; top: 0; z-index: 25; width: calc(100% - 255px); height: 70px; margin-left: 255px; display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 24px; padding: 0 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.header-brand-row { display: none; align-items: center; gap: 8px; transition: opacity .2s ease; }
.mobile-brand-lockup { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; }
.mobile-logo-media { width: 46px; height: 20px; display: grid; align-items: center; overflow: hidden; }
.mobile-logo-media img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand span { font-size: 15px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.brand small { margin-top: 4px; color: #7e858a; font: 10px/1 "Geist Local", sans-serif; letter-spacing: .04em; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f7f7f7; cursor: pointer; }
.menu-button { background: transparent; }
.search-bar { position: absolute; left: 49.6%; width: min(425px, calc(100vw - 570px)); height: 40px; padding: 0 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: #747a80; border: 0; border-radius: 8px; background: #f3f4f5; cursor: text; }
.search-bar span { font-size: 14px; }
.search-bar input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-bar input::placeholder { color: #747a80; }
.search-bar kbd { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; background: #e7e8e9; color: #5e6368; font: 12px/1 "Geist Local", sans-serif; }
.mobile-search { display: none; }
.account-button { grid-column: 2; }
.mobile-subscribe-button { display: none; }
.page-main { margin-left: 255px; padding: 0 27px 90px 30px; }

.category-strip { position: relative; height: 64px; padding-top: 4px; display: flex; align-items: flex-start; overflow: hidden; white-space: nowrap; }
.category-track { min-width: 0; width: 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.category-track::-webkit-scrollbar { display: none; }
.category-strip button { padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 14px; }
.category-strip button:hover, .category-strip .selected { background: #eef1f3; }
.category-strip .selected { box-shadow: none; transform: scale(1.035); transform-origin: center; }
.category-strip .strip-back { display: none; }
.category-strip .strip-arrow { display: none; }
.category-strip .strip-arrow .icon { width: 18px; height: 18px; }

.featured-grid { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(240px, 1fr); grid-template-rows: repeat(2, 1fr); gap: 24px; height: clamp(430px, 34vw, 520px); }
.feature-hero, .image-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #dfe3e5; }
.feature-hero { grid-row: 1 / 3; }
.feature-hero > img, .image-card > img { width: 100%; height: 100%; object-fit: cover; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 26%, rgba(6,9,12,.7) 100%); }
.card-shade.heavy { background: linear-gradient(90deg, rgba(8,13,17,.84) 0%, rgba(10,15,19,.54) 48%, rgba(5,8,10,.05) 82%); }
.feature-copy { position: absolute; z-index: 2; left: 40px; bottom: 38px; width: min(72%, 565px); color: #fff; }
.feature-copy p { margin: 16px 0 8px; color: rgba(255,255,255,.78); font-size: 15px; }
.feature-copy h1 { margin: 0; max-width: 540px; font-size: clamp(28px, 2.7vw, 42px); font-weight: 650; line-height: 1.06; letter-spacing: -.035em; }
.title-mobile { display: none; }
.feature-summary { margin-top: 16px; max-width: 525px; color: rgba(255,255,255,.79); font-size: 16px; line-height: 1.55; }
.summary-mobile { display: none; }
.avatar-stack { display: flex; padding-left: 4px; }
.avatar-stack img { width: 44px; height: 44px; margin-left: -9px; object-fit: cover; border: 2px solid rgba(255,255,255,.78); border-radius: 50%; }
.avatar-stack img:first-child { margin-left: 0; }
.read-button { margin-top: 24px; width: fit-content; min-height: 42px; padding: 0 20px; display: flex; align-items: center; gap: 8px; border-radius: 22px; background: #fff; color: #111; font-weight: 650; font-size: 14px; }
.read-button .icon { width: 17px; height: 17px; }
.card-copy { position: absolute; z-index: 2; left: 16px; right: 14px; bottom: 13px; display: grid; gap: 3px; color: #fff; }
.card-copy strong { font-size: 16px; line-height: 1.08; }
.card-copy small { color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.2; }
.membership-badge { position: absolute; z-index: 2; top: 12px; right: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: rgba(20,24,27,.72); backdrop-filter: blur(5px); }
.membership-badge .icon { width: 16px; height: 16px; font-size: 16px; }

.latest-section, .authors-section, .topic-section, .author-posts { padding-top: 48px; }
.home-latest { padding-top: 24px; }
.section-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.section-heading > a { min-height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 18px; background: #f0f1f2; font-size: 13px; }
.section-heading > a .icon { width: 16px; height: 16px; }
.post-grid, .topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-grid .image-card, .topic-grid .image-card { aspect-ratio: auto; display: grid; grid-template-rows: 172px auto; align-content: start; background: #f1f3f4; }
.post-grid .image-card > img, .topic-grid .image-card > img { grid-row: 1; height: 172px; }
.post-grid .image-card .card-shade, .topic-grid .image-card .card-shade { display: none; }
.post-grid .image-card .card-copy, .topic-grid .image-card .card-copy { position: static; grid-row: 2; padding: 14px 15px 16px; align-content: start; color: var(--ink); background: #f1f3f4; }
.post-grid .image-card .card-copy strong, .topic-grid .image-card .card-copy strong { font-size: 15px; line-height: 1.35; }
.post-grid .image-card .card-copy small, .topic-grid .image-card .card-copy small { margin-top: 7px; color: #747a80; font-size: 11px; line-height: 1.4; }
.load-more { width: 100%; margin-top: 26px; padding: 18px; border: 0; background: linear-gradient(180deg, rgba(243,245,246,.95), rgba(255,255,255,0)); cursor: pointer; font-weight: 600; }

  .authors-section { padding-top: 68px; }
.authors-section .section-heading { margin-bottom: 30px; }
.author-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
.author-card img { width: 100%; aspect-ratio: .77; object-fit: cover; border-radius: var(--radius); }
.author-card h3 { margin: 14px 0 8px; font-size: 16px; }
.author-card p { margin: 0; color: #676d73; font-size: 14px; line-height: 1.52; }

.newsletter { margin-top: 92px; padding: 26px 30px 26px 34px; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 42px; border-radius: 999px; background: #f1f3f4; }
.newsletter h2 { margin: 0 0 8px; font-size: 24px; }
.newsletter p { margin: 0; color: #666d74; font-size: 14px; }
.newsletter form { height: 50px; padding: 4px; display: flex; border-radius: 25px; background: #fff; }
.newsletter input { min-width: 0; flex: 1; padding: 0 18px; border: 0; outline: 0; background: transparent; }
.newsletter button { padding: 0 24px; border: 0; border-radius: 22px; color: #fff; background: #101214; cursor: pointer; font-weight: 620; }

.topic-section { padding-top: 78px; }
.topic-section .section-heading { align-items: center; }
.topic-section .section-heading p { max-width: 760px; margin: 14px 0 0; color: #676d73; line-height: 1.55; }
.topic-grid { padding-top: 8px; }
.site-footer { margin-top: 86px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #858b91; font: 12px/1.4 "Geist Local", "PingFang SC", sans-serif; letter-spacing: .01em; }

.search-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: 11vh; background: rgba(244,248,250,.88); backdrop-filter: blur(16px); }
.overlay-close { position: absolute; top: 24px; right: 28px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.search-panel { width: min(680px, calc(100vw - 32px)); padding: 22px; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgba(43,57,67,.16); }
.search-input-wrap { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-radius: 8px; background: #f1f4f5; }
.search-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-panel > p { margin: 24px 2px 10px; color: #747a80; font-size: 13px; }
.search-result { padding: 10px 2px; display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); font-weight: 620; }
.search-result img { width: 86px; height: 58px; object-fit: cover; border-radius: 6px; }
.search-result span { display: grid; gap: 4px; }
.search-result small { color: var(--blue); font-size: 11px; font-weight: 600; }
.empty-result { padding: 28px 0; color: var(--muted); text-align: center; }
.search-hit { outline: 3px solid rgba(85,185,237,.34); outline-offset: 4px; }

.article-main { padding-right: 18px; padding-left: 18px; }
.article-page { width: 100%; max-width: none; margin: 0 auto; }
.article-header { max-width: 900px; padding: 64px 20px 38px; margin: 0 auto; text-align: center; }
.article-kicker { color: #549bc1; font-size: 14px; font-weight: 620; }
.article-header h1 { margin: 16px auto 18px; max-width: 850px; font-size: clamp(44px, 5.2vw, 78px); line-height: .99; letter-spacing: -.055em; }
.article-deck { max-width: 700px; margin: 0 auto; color: #666d73; font-size: 18px; line-height: 1.55; }
.byline { width: fit-content; margin: 30px auto 0; display: flex; align-items: center; gap: 11px; text-align: left; }
.byline img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.byline span { display: grid; gap: 3px; }
.byline strong { font-size: 14px; }
.byline small { color: #848a90; font-size: 12px; }
.article-hero { margin: 0; }
.article-hero img { width: 100%; max-height: 610px; object-fit: cover; border-radius: var(--radius); }
.article-hero figcaption { margin-top: 8px; color: #8b9095; font-size: 12px; text-align: right; }
.article-layout { max-width: 820px; margin: 70px auto 0; display: grid; grid-template-columns: 54px minmax(0, 700px); gap: 34px; }
.article-body { font-family: "Songti SC", "STSong", serif; font-size: 19px; line-height: 1.92; color: #25292c; }
.article-body p { margin: 0 0 30px; }
.article-body .lead { font-size: 23px; line-height: 1.72; }
.article-body h2 { margin: 62px 0 22px; font-family: "PingFang SC", sans-serif; font-size: 32px; line-height: 1.18; letter-spacing: -.035em; }
.article-body blockquote { margin: 52px -65px; padding: 30px 38px; border-left: 4px solid var(--blue); background: var(--blue-soft); font-size: 27px; line-height: 1.5; }
.article-note { margin: 42px 0; padding: 28px 30px; border-radius: 9px; background: #f3f5f6; font-family: "PingFang SC", sans-serif; font-size: 16px; line-height: 1.75; }
.article-note ol { margin-bottom: 0; padding-left: 22px; }
.article-footer { max-width: 820px; margin: 78px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.article-footer > div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.article-footer > div span { color: #8a9095; }
.article-footer > div a { padding: 7px 12px; border-radius: 16px; background: #f0f2f3; }
.author-signoff { margin-top: 44px; padding: 24px; display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; border-radius: var(--radius); background: #f3f5f6; }
.author-signoff img { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.author-signoff span { display: grid; }
.author-signoff small { color: #7f858a; }
.author-signoff strong { margin-top: 5px; font-size: 24px; }
.author-signoff p { margin: 8px 0 0; color: #646a70; line-height: 1.55; }

.author-profile { min-height: 420px; display: grid; grid-template-columns: minmax(300px, .84fr) 1.16fr; overflow: hidden; border-radius: var(--radius); background: #f2f4f5; }
.author-portrait { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.author-profile-copy { padding: clamp(36px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; }
.author-profile-copy > span { color: #5ba9d2; font-size: 13px; font-weight: 650; }
.author-profile-copy h1 { margin: 10px 0 18px; font-size: clamp(44px, 5vw, 72px); letter-spacing: -.05em; }
.author-profile-copy p { max-width: 650px; margin: 0; color: #5f666c; font-size: 16px; line-height: 1.72; }
.author-links { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.author-links a { padding: 8px 13px; border-radius: 18px; background: #fff; font-size: 13px; }
.author-profile-copy > small { color: #83898f; }
.author-posts > .section-heading > span { color: #858a8f; font-size: 13px; }

.signin-page { min-height: 100vh; display: grid; grid-template-columns: 34% 1fr; background: #fff; }
.signin-image { position: relative; min-height: 100vh; overflow: hidden; }
.signin-image > img { width: 100%; height: 100%; object-fit: cover; }
.signin-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.16), transparent 36%, rgba(0,0,0,.25)); }
.signin-image-brand { position: absolute; z-index: 2; left: 34px; bottom: 32px; color: #fff; }
.signin-image-brand .brand small { color: rgba(255,255,255,.72); }
.signin-brand-lockup { display: flex; align-items: center; gap: 12px; }
.signin-logo-media { width: 84px; height: 30px; display: grid; align-items: center; overflow: hidden; filter: invert(1); }
.signin-logo-media img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.signin-brand-lockup > span:last-child { display: grid; }
.signin-brand-lockup strong { font-size: 15px; }
.signin-brand-lockup small { margin-top: 4px; color: rgba(255,255,255,.72); font: 10px/1 "Geist Local", sans-serif; letter-spacing: .05em; }
.signin-content { position: relative; min-height: 100vh; padding: 28px clamp(42px, 8vw, 120px); display: grid; align-items: start; justify-items: start; }
.back-home { position: absolute; top: 28px; left: clamp(42px, 8vw, 120px); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.back-home .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.signin-form { width: min(100%, 465px); margin-top: max(70px, calc(50vh - 248px)); display: grid; grid-template-columns: minmax(0, 1fr) 105px; column-gap: 14px; }
.eyebrow { color: #58a9d3; font-size: 13px; font-weight: 650; }
.signin-form .eyebrow, .signin-form h1, .signin-form > p, .signin-form > small { grid-column: 1 / -1; }
.signin-form h1 { margin: 10px 0 14px; font-size: 52px; letter-spacing: -.05em; }
.signin-form > p { margin: 0 0 34px; color: #656c72; font-size: 15px; line-height: 1.65; }
.signin-form label { grid-column: 1; display: grid; gap: 9px; font-size: 13px; font-weight: 620; }
.signin-form input { height: 50px; padding: 0 15px; border: 1px solid #dfe3e6; border-radius: 7px; outline: 0; }
.signin-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.signin-form > button { grid-column: 2; align-self: end; width: 100%; height: 50px; border: 0; border-radius: 7px; background: #111317; color: #fff; cursor: pointer; font-weight: 650; }
.signin-form > small { display: block; margin-top: 14px; color: #777d82; text-align: center; }
.signin-form > small a { color: #2398d1; }
.signin-content footer { position: absolute; left: clamp(42px, 8vw, 120px); right: clamp(42px, 8vw, 120px); bottom: 24px; display: flex; justify-content: space-between; gap: 20px; color: #8c9297; font-size: 12px; }

@media (max-width: 1050px) {
  .featured-grid { grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: 18px; }
  .post-grid, .topic-grid { gap: 18px; }
  .author-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .author-card:nth-child(n+4) { display: none; }
}

@media (max-width: 760px) {
  .site-header { width: 100%; height: 64px; margin-left: 0; grid-template-columns: 1fr 44px 44px; gap: 4px; padding: 0 6px; }
  .header-brand-row { display: flex; gap: 4px; }
  .brand span { font-size: 14px; }
  .brand small { display: none; }
  .search-bar { display: none; }
  .mobile-search { position: absolute; z-index: 2; top: 12px; right: 54px; width: 40px; height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 8px; overflow: hidden; border: 0; border-radius: 20px; background: #f3f4f5; transition: width .28s cubic-bezier(.22,.8,.3,1), background-color .2s ease; }
  .mobile-search .icon { flex: 0 0 20px; color: #555d63; }
  .mobile-search input { width: 0; min-width: 0; padding: 0; opacity: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; pointer-events: none; transition: width .28s cubic-bezier(.22,.8,.3,1), opacity .16s ease .04s; }
  .mobile-search.is-expanded { width: calc(100% - 64px); padding-inline: 13px; background: #eef1f3; }
  .mobile-search.is-expanded input { width: 100%; opacity: 1; pointer-events: auto; }
  .site-header.search-open .header-brand-row { opacity: 0; pointer-events: none; }
  .account-button { display: none; }
  .mobile-subscribe-button { grid-column: 3; display: grid; }
  .page-main { margin-left: 0; padding: 0 16px calc(112px + env(safe-area-inset-bottom)); }
  .sidebar { inset: 0 auto 0 0; width: min(84vw, 320px); padding: 18px 16px 16px; transform: translateX(-102%); transition: transform .25s ease; background: #fff; box-shadow: none; }
  .sidebar.is-open { transform: translateX(0); box-shadow: 24px 0 80px rgba(16,28,35,.16); }
  .sidebar-brand-row { margin: 0 4px 24px; }
  .sidebar-close { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f2f4f5; font-size: 23px; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 29; display: block; visibility: hidden; opacity: 0; border: 0; background: rgba(20,27,31,.28); transition: .25s; }
  .sidebar-scrim.is-open { visibility: visible; opacity: 1; }
  .category-strip { height: 60px; padding-top: 8px; align-items: flex-start; gap: 4px; overflow: visible; }
  .category-track { flex: 1; gap: 2px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .category-track::-webkit-scrollbar { display: none; }
  .category-strip button { flex: 0 0 auto; padding-inline: 12px; }
  .category-strip .strip-back, .category-strip .strip-arrow { display: none; }
  .category-strip .strip-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
  .category-strip .strip-arrow .icon { width: 16px; height: 16px; }
  .featured-grid { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 12px; }
  .feature-hero { grid-row: auto; grid-column: 1 / -1; height: 520px; margin-bottom: 0; }
  .feature-side { height: auto; display: grid; grid-template-rows: 118px auto; align-content: start; background: #f1f3f4; }
  .feature-side > img { grid-row: 1; height: 118px; }
  .feature-side .card-shade { display: none; }
  .feature-side .card-copy { position: static; grid-row: 2; padding: 12px; align-content: start; color: var(--ink); background: #f1f3f4; }
  .feature-side .card-copy strong { font-size: 14px; line-height: 1.35; }
  .feature-side .card-copy small { margin-top: 7px; color: #747a80; font-size: 10px; line-height: 1.35; }
  .feature-copy { top: 40px; left: 40px; right: 30px; bottom: auto; width: auto; }
  .feature-copy p { margin-top: 22px; }
  .feature-copy h1 { max-width: 260px; font-size: 29px; line-height: 1.08; }
  .title-desktop { display: none; }
  .title-mobile { display: block; }
  .feature-summary { max-width: 242px; font-size: 16px; line-height: 1.5; }
  .summary-desktop { display: none; }
  .summary-mobile { display: inline; }
  .read-button { padding-inline: 25px; }
  .card-shade.heavy { background: linear-gradient(90deg, rgba(8,13,17,.83), rgba(8,13,17,.38) 75%); }
  .latest-section, .authors-section, .topic-section, .author-posts { padding-top: 48px; }
  .home-latest { padding-top: 12px; }
  .section-heading h2 { font-size: 22px; }
  .post-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .post-grid .image-card, .topic-grid .image-card { aspect-ratio: auto; grid-template-rows: 112px auto; }
  .post-grid .image-card > img, .topic-grid .image-card > img { height: 112px; }
  .post-grid .image-card .card-copy, .topic-grid .image-card .card-copy { padding: 11px 12px 13px; }
  .post-grid .image-card .card-copy strong, .topic-grid .image-card .card-copy strong { font-size: 13px; line-height: 1.4; }
  .post-grid .image-card .card-copy small, .topic-grid .image-card .card-copy small { margin-top: 6px; font-size: 10px; }
  .authors-section .section-heading { margin-bottom: 18px; }
  .author-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; overflow: visible; }
  .author-card { min-width: 0; }
  .author-card:nth-child(n) { display: block; }
  .author-card img { aspect-ratio: .82; border-radius: 8px; }
  .author-card h3 { margin: 10px 0 6px; font-size: 15px; }
  .author-card p { display: -webkit-box; overflow: hidden; color: #70767c; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
  .newsletter { margin-top: 58px; padding: 28px 26px; grid-template-columns: 1fr; gap: 18px; border-radius: 999px; }
  .newsletter h2 { font-size: 21px; }
  .newsletter p { font-size: 13px; line-height: 1.55; }
  .newsletter form { height: auto; display: grid; gap: 8px; border-radius: 0; background: transparent; }
  .newsletter input, .newsletter button { height: 48px; border-radius: 7px; }
  .newsletter input { background: #fff; }
  .topic-section { padding-top: 60px; }
  .topic-section .section-heading { display: grid; grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .topic-section .section-heading > a { justify-self: start; }
  .topic-section .section-heading p { margin-top: 10px; font-size: 13px; line-height: 1.65; }
  .site-footer { margin-top: 58px; padding-top: 16px; font-size: 11px; }
  .mobile-bottom-nav { position: fixed; z-index: 24; left: 0; right: 0; bottom: 0; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: 1px solid rgba(224,228,231,.96); background: rgba(255,255,255,.97); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { min-width: 0; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: 7px; color: #747a80; font-size: 10px; line-height: 1; }
  .mobile-bottom-nav a.active { color: #15191c; background: #edf5f9; }
  .mobile-bottom-nav .icon { width: 21px; height: 21px; font-size: 21px; }
  .article-header { padding: 40px 8px 30px; text-align: left; }
  .article-header h1 { font-size: 43px; line-height: 1.03; }
  .article-deck { font-size: 17px; }
  .byline { margin-left: 0; }
  .article-hero img { height: 420px; }
  .article-layout { margin-top: 46px; display: block; }
  .article-body { font-size: 18px; line-height: 1.82; }
  .article-body .lead { font-size: 21px; }
  .article-body h2 { margin-top: 48px; font-size: 28px; }
  .article-body blockquote { margin: 42px 0; padding: 24px; font-size: 23px; }
  .author-signoff { grid-template-columns: 92px 1fr; gap: 17px; padding: 18px; }
  .author-signoff img { width: 92px; }
  .author-signoff p { font-size: 13px; }
  .author-profile { grid-template-columns: 1fr; }
  .author-portrait { min-height: 0; height: 410px; }
  .author-profile-copy { padding: 30px 24px 34px; }
  .author-profile-copy h1 { margin-bottom: 14px; font-size: 45px; }
  .author-profile-copy p { font-size: 14px; line-height: 1.68; }
  .author-links { margin: 20px 0; gap: 8px; }
  .signin-page { grid-template-columns: 1fr; }
  .signin-image { min-height: 290px; height: 34vh; }
  .signin-image-brand { left: 20px; bottom: 20px; }
  .signin-content { min-height: 66vh; padding: 78px 24px 68px; align-items: start; }
  .back-home { top: 25px; left: 24px; }
  .signin-form { margin: 0 auto; }
  .signin-form { grid-template-columns: 1fr; }
  .signin-form label, .signin-form > button { grid-column: 1; }
  .signin-form > button { margin-top: 12px; }
  .signin-form h1 { font-size: 43px; }
  .signin-content footer { left: 24px; right: 24px; bottom: 20px; }
}

/* Continuous responsive density: 6 columns down to 1 */
.menu-button { display: none; }
.post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.topic-grid { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.post-grid .image-card, .topic-grid .image-card { grid-template-rows: clamp(136px, 11vw, 172px) auto; border-radius: 8px; }
.post-grid .image-card > img, .topic-grid .image-card > img { height: clamp(136px, 11vw, 172px); }
.post-grid .image-card .card-copy, .topic-grid .image-card .card-copy { padding: 12px 13px 14px; }
.post-grid .image-card .card-copy strong, .topic-grid .image-card .card-copy strong { font-size: 14px; }
.feature-hero, .image-card { transform-origin: center; will-change: transform; }
.feature-hero > img, .image-card > img, .author-card img { transition: none; will-change: transform; }
.feature-hero:hover > img, .image-card:hover > img { transform: none; }
.author-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; }
.author-card:nth-child(n) { display: block; overflow: hidden; }
.author-card img { border-radius: 8px; }
.author-card h3 { margin: 11px 0 5px; font-size: 14px; }
.author-card p { display: -webkit-box; overflow: hidden; color: #6b7177; font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.latest-section, .authors-section, .topic-section, .author-posts { padding-top: clamp(42px, 5vw, 70px); }
.home-latest { padding-top: 24px; }
.search-bar input::-webkit-search-cancel-button, .mobile-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search-clear, .mobile-search-close { width: 26px; height: 26px; flex: 0 0 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #5f666c; cursor: pointer; }
.search-clear { visibility: hidden; opacity: 0; transform: scale(.85); transition: opacity .18s ease, transform .18s ease; }
.search-bar.has-value .search-clear { visibility: visible; opacity: 1; transform: scale(1); }
.search-clear .icon, .mobile-search-close .icon { width: 17px; height: 17px; font-size: 17px; }
.mobile-search-close { visibility: hidden; opacity: 0; pointer-events: none; }
.mobile-search.is-expanded .mobile-search-close { visibility: visible; opacity: 1; pointer-events: auto; }

.first-home-loading { overflow: hidden; }
.first-home-loading .site-shell { visibility: hidden; }
.page-loader { position: fixed; inset: 0; z-index: 300; overflow: hidden; background: #fff; }
.loader-skeleton-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.skeleton-header, .skeleton-sidebar, .skeleton-main > span { overflow: hidden; border-radius: 8px; background: #e5e8ea; }
.skeleton-header::after, .skeleton-sidebar::after, .skeleton-main > span::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent); animation: skeleton-sweep .78s ease-in-out infinite; }
.skeleton-header { position: absolute; top: 16px; left: 285px; right: 28px; height: 38px; }
.skeleton-sidebar { position: absolute; top: 82px; bottom: 28px; left: 14px; width: 225px; }
.skeleton-main { position: absolute; top: 82px; right: 28px; bottom: 28px; left: 285px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 34px repeat(2, minmax(130px, 1fr)) minmax(105px, .64fr); gap: 20px 24px; }
.skeleton-main > span { position: relative; }
.skeleton-categories { grid-column: 1 / 4; }
.skeleton-hero { grid-column: 1 / 5; grid-row: 2 / 4; }
.skeleton-side.first { grid-column: 5 / 7; grid-row: 2; }
.skeleton-side.second { grid-column: 5 / 7; grid-row: 3; }
.skeleton-card.one { grid-column: 1 / 3; grid-row: 4; }
.skeleton-card.two { grid-column: 3 / 5; grid-row: 4; }
.skeleton-card.three { grid-column: 5 / 7; grid-row: 4; }
@keyframes skeleton-sweep { 55%, 100% { transform: translateX(100%); } }
.route-progress { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; height: 3px; transform: scaleX(0); transform-origin: left center; background: #111317; pointer-events: none; will-change: transform, opacity; }

@media (min-width: 1680px) {
  .post-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .author-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1450px) and (max-width: 1679px) {
  .post-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .author-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1180px) and (max-width: 1449px) {
  .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .author-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 961px) and (max-width: 1179px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .author-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-header { width: 100%; height: 64px; margin-left: 0; grid-template-columns: 1fr 44px 44px; gap: 4px; padding: 0 8px; }
  .menu-button { display: grid; }
  .header-brand-row { display: flex; gap: 4px; }
  .brand small { display: none; }
  .search-bar { display: none; }
  .mobile-search { position: absolute; z-index: 2; top: 12px; right: 54px; width: 40px; height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 8px; overflow: hidden; border: 0; border-radius: 20px; background: #f3f4f5; }
  .mobile-search .icon { flex: 0 0 20px; color: #555d63; }
  .mobile-search input { width: 0; min-width: 0; padding: 0; opacity: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; pointer-events: none; }
  .mobile-search.is-expanded { width: calc(100% - 64px); padding-inline: 13px 9px; }
  .mobile-search.is-expanded input { width: 100%; opacity: 1; pointer-events: auto; }
  .site-header.search-open .header-brand-row { opacity: 0; pointer-events: none; }
  .account-button { display: none; }
  .mobile-subscribe-button { grid-column: 3; display: grid; }
  .page-main { margin-left: 0; padding: 0 18px 76px; }
  .sidebar { inset: 0 auto 0 0; width: min(84vw, 320px); padding: 18px 16px 16px; transform: translateX(-102%); transition: transform .25s ease; background: #fff; box-shadow: none; }
  .sidebar.is-open { transform: translateX(0); box-shadow: 24px 0 80px rgba(16,28,35,.16); }
  .sidebar-brand-row { margin: 0 4px 24px; }
  .sidebar-close { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f2f4f5; font-size: 23px; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 29; display: block; visibility: hidden; opacity: 0; border: 0; background: rgba(20,27,31,.28); transition: .25s; }
  .sidebar-scrim.is-open { visibility: visible; opacity: 1; }
  .category-strip { height: 68px; padding-top: 8px; gap: 0; overflow: visible; }
  .category-track { flex: 1; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .category-track::-webkit-scrollbar { display: none; }
  .category-strip button { flex: 0 0 auto; padding-inline: 12px; }
  .category-strip .strip-back, .category-strip .strip-arrow { display: none; }
  .featured-grid { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 14px; }
  .feature-hero { grid-column: 1 / -1; grid-row: auto; height: 520px; margin: 0; }
  .feature-side { height: auto; display: grid; grid-template-rows: 168px auto; align-content: start; background: #f1f3f4; }
  .feature-side > img { grid-row: 1; height: 168px; }
  .feature-side .card-shade { display: none; }
  .feature-side .card-copy { position: static; grid-row: 2; padding: 12px 13px 14px; color: var(--ink); background: #f1f3f4; }
  .feature-side .card-copy small { margin-top: 6px; color: #747a80; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .author-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skeleton-header { left: 14px; right: 14px; }
  .skeleton-sidebar { display: none; }
  .skeleton-main { left: 14px; right: 14px; top: 74px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 34px minmax(250px, 1.5fr) minmax(105px, .7fr) minmax(105px, .7fr); gap: 14px; }
  .skeleton-categories { grid-column: 1 / -1; }
  .skeleton-hero { grid-column: 1 / -1; grid-row: 2; }
  .skeleton-side.first { grid-column: 1; grid-row: 3; }
  .skeleton-side.second { grid-column: 2; grid-row: 3; }
  .skeleton-card.one { grid-column: 1; grid-row: 4; }
  .skeleton-card.two { grid-column: 2; grid-row: 4; }
  .skeleton-card.three { display: none; }
}

@media (max-width: 720px) {
  .page-main { padding-inline: 14px; padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .author-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .author-card p { -webkit-line-clamp: 3; }
  .mobile-bottom-nav { display: grid; }
}

@media (max-width: 520px) {
  .featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-hero { height: 540px; }
  .feature-side { grid-template-rows: 190px auto; }
  .feature-side > img { height: 190px; }
  .post-grid, .topic-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-grid .image-card, .topic-grid .image-card { grid-template-rows: 205px auto; }
  .post-grid .image-card > img, .topic-grid .image-card > img { height: 205px; }
  .post-grid .image-card .card-copy strong, .topic-grid .image-card .card-copy strong { font-size: 15px; }
  .author-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skeleton-main { grid-template-columns: 1fr; grid-template-rows: 34px minmax(310px, 1.5fr) 120px 120px; }
  .skeleton-categories, .skeleton-hero, .skeleton-side.first, .skeleton-side.second { grid-column: 1; }
  .skeleton-side.first { grid-row: 3; }
  .skeleton-side.second { grid-row: 4; }
  .skeleton-card.one, .skeleton-card.two, .skeleton-card.three { display: none; }
}

@media (max-width: 400px) {
  .author-row { grid-template-columns: 1fr; gap: 14px; }
  .author-card { display: grid !important; grid-template-columns: 104px 1fr; grid-template-rows: auto 1fr; gap: 0 14px; align-items: start; }
  .author-card img { grid-row: 1 / 3; width: 104px; height: 126px; aspect-ratio: auto; }
  .author-card h3 { margin: 5px 0 6px; }
  .author-card p { font-size: 12px; -webkit-line-clamp: 5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* XeneLab standalone expansion */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar-brand-row { min-height: 54px; margin-bottom: 20px; }
.brand-logo-media { width: 116px; height: 44px; flex-basis: 116px; }
.brand-copy strong { font-size: 13px; }
.brand-copy small { font-size: 8px; }
.mobile-logo-media { width: 62px; height: 28px; }

/* Wider article reading frame */
.article-main { padding: 0 8px 90px; }
.article-header { max-width: 1120px; padding-top: 72px; }
.article-header h1 { max-width: 980px; }
.article-deck { max-width: 860px; }
.article-layout { width: min(100% - 24px, 1040px); max-width: none; grid-template-columns: 54px minmax(0, 1fr); gap: 30px; }
.article-body { width: 100%; }
.article-body blockquote { margin-inline: 0; }
.article-footer { width: min(100% - 24px, 1040px); max-width: none; }

/* Compact looping author gallery */
.authors-section { overflow: hidden; }
.author-carousel { width: 100%; overflow: hidden; border-radius: var(--radius); cursor: grab; }
.author-carousel:active { cursor: grabbing; }
.author-track { width: max-content; display: flex; gap: 14px; will-change: transform; }
.carousel-author-card { position: relative; width: clamp(138px, 12.5vw, 176px); aspect-ratio: .76; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: #202326; color: #fff; }
.carousel-author-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.carousel-author-card:hover > img { transform: scale(1.025); }
.author-card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,6,8,.92) 0%, rgba(5,7,9,.58) 34%, rgba(5,7,9,0) 69%); }
.author-card-copy { position: absolute; z-index: 1; right: 13px; bottom: 13px; left: 13px; display: grid; }
.author-card-copy small { margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 650; letter-spacing: .05em; }
.author-card-copy strong { font-size: 18px; line-height: 1.08; letter-spacing: -.025em; }
.author-card-copy p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Standalone newsletter */
.newsletter-main { padding-top: 22px; }
.newsletter-landing { min-height: calc(100vh - 135px); padding: clamp(34px, 5vw, 76px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: clamp(36px, 6vw, 92px); align-items: center; overflow: hidden; border-radius: 12px; background: #eef3f5; }
.page-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #5f9dbd; font: 650 12px/1 "Geist Local", "PingFang SC", sans-serif; letter-spacing: .06em; }
.page-eyebrow i { font-size: 17px; }
.newsletter-landing-copy h1 { margin: 20px 0 24px; font-size: clamp(48px, 6vw, 88px); line-height: .96; letter-spacing: -.065em; }
.newsletter-landing-copy h1 span { color: #6b747a; }
.newsletter-landing-copy > p { max-width: 600px; margin: 0; color: #5f686e; font-size: 17px; line-height: 1.7; }
.newsletter-page-form { max-width: 620px; height: 58px; margin-top: 34px; padding: 5px; display: flex; border: 1px solid #d9e0e4; border-radius: 29px; background: #fff; }
.newsletter-page-form input { min-width: 0; flex: 1; padding: 0 19px; border: 0; outline: 0; background: transparent; }
.newsletter-page-form button { padding: 0 24px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 24px; background: #111317; color: #fff; cursor: pointer; font-weight: 650; }
.newsletter-landing-copy > small { display: block; margin: 12px 0 0 18px; color: #8a9297; font-size: 11px; }
.newsletter-visual { position: relative; min-height: 570px; margin: 0; overflow: hidden; border-radius: 10px; background: #cfd7db; }
.newsletter-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newsletter-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,8,10,.75)); }
.newsletter-visual figcaption { position: absolute; z-index: 1; right: 28px; bottom: 27px; left: 28px; display: grid; color: #fff; }
.newsletter-visual figcaption span { color: rgba(255,255,255,.66); font: 11px/1 "Geist Local", sans-serif; }
.newsletter-visual figcaption strong { margin-top: 9px; max-width: 480px; font-size: 25px; line-height: 1.25; }
.newsletter-notes { padding: 38px 10px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.newsletter-notes > div { padding: 18px 20px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.newsletter-notes > div:last-child { border-right: 0; }
.newsletter-notes i { font-size: 25px; color: #64a5c6; }
.newsletter-notes span { display: grid; gap: 5px; }
.newsletter-notes strong { font-size: 14px; }
.newsletter-notes small { color: #7b8388; font-size: 11px; }

/* XENE Pro black and gold */
body[data-theme="pro"], body[data-theme="pro"] .site-shell { color: #f7f3e9; background: #050505; }
.pro-shell .sidebar { color: #f6f1e7; border-right: 1px solid rgba(207,169,89,.16); background: rgba(5,5,5,.98); }
.pro-shell .brand-logo-media img, .pro-shell .mobile-logo-media img { filter: invert(1); }
.pro-shell .brand-copy small, .pro-shell .sidebar-label, .pro-shell .sidebar-footer span { color: rgba(240,223,184,.52); }
.pro-shell .nav-mark { color: rgba(247,243,233,.72); }
.pro-shell .sidebar-nav a:hover, .pro-shell .sidebar-nav a.active, .pro-shell .tag-list a:hover { background: rgba(196,157,76,.13); }
.pro-shell .sidebar-nav a.active { color: #e1bd70; }
.pro-shell .site-header { border-bottom: 1px solid rgba(207,169,89,.12); background: rgba(5,5,5,.9); }
.pro-shell .search-bar { color: #aaa28f; background: #141310; }
.pro-shell .search-bar input { color: #f7f3e9; }
.pro-shell .search-bar kbd { color: #c0ae88; background: #29251d; }
.pro-shell .icon-button { color: #f6f1e7; border: 1px solid rgba(207,169,89,.18); background: #11100e; }
body[data-theme="pro"] .route-progress { background: #d4aa55; }
.pro-main { padding: 0 0 100px; }
.pro-hero { position: relative; min-height: 610px; padding: clamp(56px, 7vw, 110px) clamp(36px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 70px; align-items: end; overflow: hidden; border-bottom: 1px solid rgba(215,178,101,.18); background: radial-gradient(circle at 76% 28%, rgba(213,166,70,.34), transparent 29%), linear-gradient(126deg, #050505 0%, #0a0804 47%, #1b1307 72%, #76501f 100%); }
.pro-hero::before { content: ""; position: absolute; inset: 0; opacity: .24; background: linear-gradient(115deg, transparent 20%, rgba(255,231,170,.24) 53%, transparent 69%); }
.pro-hero-copy, .pro-edition { position: relative; z-index: 1; }
.pro-kicker { display: inline-flex; align-items: center; gap: 8px; color: #d8b66f; font: 650 11px/1 "Geist Local", sans-serif; letter-spacing: .12em; }
.pro-hero h1 { margin: 24px 0 26px; display: grid; gap: 12px; font-size: clamp(46px, 6.2vw, 96px); font-weight: 560; line-height: .92; letter-spacing: -.06em; }
.pro-hero h1 > span:first-child { color: #f8f4ea; font-size: .36em; font-weight: 530; letter-spacing: .01em; }
.pro-title-line { display: flex; align-items: baseline; gap: .18em; white-space: nowrap; }
.pro-word-window { position: relative; width: 3.15em; height: 1em; display: inline-block; overflow: hidden; color: #dfb65e; vertical-align: bottom; }
.pro-word-window > span { position: absolute; inset: 0 auto auto 0; white-space: nowrap; }
.pro-hero-copy > p { max-width: 650px; margin: 0; color: rgba(247,243,233,.65); font-size: 16px; line-height: 1.72; }
.pro-hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 18px; }
.pro-hero-actions a { min-height: 48px; padding: 0 22px; display: flex; align-items: center; gap: 10px; border-radius: 24px; background: #ddba70; color: #111; font-weight: 680; }
.pro-hero-actions span { color: rgba(247,243,233,.45); font-size: 12px; }
.pro-edition { align-self: center; padding: 25px 0 25px 26px; display: grid; border-left: 1px solid rgba(230,193,116,.35); }
.pro-edition small, .pro-edition span { color: rgba(244,226,184,.54); font: 10px/1.4 "Geist Local", sans-serif; letter-spacing: .12em; }
.pro-edition strong { margin: 16px 0; color: #e2bd6d; font: 600 68px/.8 "Geist Local", sans-serif; letter-spacing: -.07em; }
.pro-benefits { margin: 0; padding: 30px clamp(28px, 5vw, 74px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-bottom: 1px solid rgba(215,178,101,.14); background: #0a0908; }
.pro-benefits > div { min-height: 90px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(215,178,101,.14); }
.pro-benefits > div:last-child { border-right: 0; }
.pro-benefits i { color: #d9b363; font-size: 25px; }
.pro-benefits span { color: rgba(247,243,233,.55); font-size: 11px; line-height: 1.5; }
.pro-benefits strong { color: #f3ead8; font-size: 13px; }
.pro-plans { padding: 92px clamp(28px, 6vw, 92px) 0; }
.pro-section-heading { max-width: 760px; margin-bottom: 38px; }
.pro-section-heading > span { color: #c8a45b; font: 650 10px/1 "Geist Local", sans-serif; letter-spacing: .15em; }
.pro-section-heading h2 { margin: 15px 0 12px; font-size: clamp(35px, 4vw, 58px); letter-spacing: -.045em; }
.pro-section-heading p { margin: 0; color: rgba(247,243,233,.48); line-height: 1.65; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { min-height: 420px; padding: 28px; display: flex; flex-direction: column; border: 1px solid rgba(215,178,101,.2); border-radius: 10px; background: #0c0b09; }
.plan-card.featured { border-color: rgba(230,191,108,.72); background: linear-gradient(145deg, rgba(97,68,24,.42), #0c0b09 55%); box-shadow: inset 0 0 0 1px rgba(230,191,108,.12); }
.plan-label { color: #d5ae60; font-size: 11px; }
.plan-card h3 { margin: 15px 0 24px; font-size: 25px; }
.plan-price { margin: 0; color: #f7f3e9; font: 560 clamp(46px, 4.4vw, 68px)/1 "Geist Local", sans-serif; letter-spacing: -.05em; }
.plan-price sup { margin-right: 4px; color: #cda759; font-size: 17px; vertical-align: top; }
.plan-price small { margin-left: 8px; color: rgba(247,243,233,.4); font-size: 12px; letter-spacing: 0; }
.plan-card ul { margin: 32px 0; padding: 0; display: grid; gap: 12px; list-style: none; color: rgba(247,243,233,.66); font-size: 13px; }
.plan-card li { display: flex; align-items: center; gap: 8px; }
.plan-card li i { color: #d8b262; }
.plan-card > a { min-height: 46px; margin-top: auto; display: grid; place-items: center; border: 1px solid rgba(216,178,98,.38); border-radius: 23px; color: #e5c57f; font-weight: 650; }
.plan-card.featured > a { border-color: #dbb66a; background: #dbb66a; color: #12100c; }

/* Xene Selected masonry and paywall */
.miaowen-main { padding-top: 38px; }
.miaowen-header { max-width: 820px; padding: 40px 8px 52px; }
.miaowen-header h1 { margin: 17px 0 10px; font-size: clamp(58px, 7vw, 104px); line-height: .92; letter-spacing: -.07em; }
.miaowen-header p { margin: 0; color: #6b7277; font-size: 16px; }
.masonry-grid { column-count: 4; column-gap: 16px; }
.masonry-card { position: relative; width: 100%; margin: 0 0 16px; padding: 0; display: block; break-inside: avoid; overflow: hidden; border: 0; border-radius: 9px; background: #dfe3e5; color: #fff; cursor: pointer; text-align: left; }
.masonry-card.short { height: 260px; }
.masonry-card.medium { height: 360px; }
.masonry-card.tall { height: 470px; }
.masonry-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.masonry-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(4,6,8,.85)); }
.masonry-card:hover > img { transform: scale(1.018); }
.masonry-card > span { position: absolute; z-index: 1; right: 16px; bottom: 16px; left: 16px; display: grid; }
.masonry-card small { color: rgba(255,255,255,.68); font-size: 10px; }
.masonry-card strong { margin-top: 7px; font-size: 17px; line-height: 1.25; }
.masonry-card em { width: fit-content; margin-top: 11px; padding: 5px 8px; border: 1px solid rgba(228,199,137,.46); border-radius: 14px; color: #ecd69f; background: rgba(15,11,5,.45); font: normal 10px/1 "Geist Local", sans-serif; }
body.paywall-open { overflow: hidden; }
.reading-paywall[hidden] { display: none; }
.reading-paywall { position: fixed; inset: 0; z-index: 1200; padding: clamp(24px, 5vw, 74px); display: grid; place-items: center; overflow-y: auto; color: #f7f3e9; background: #050505; }
.paywall-close { position: fixed; z-index: 1; top: 24px; right: 28px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(216,181,106,.34); border-radius: 50%; background: rgba(38,31,18,.38); color: #ead49e; cursor: pointer; font-size: 24px; }
.paywall-close:focus-visible { outline: 2px solid rgba(226,190,111,.72); outline-offset: 3px; }
.paywall-inner { width: min(980px, 100%); }
.paywall-kicker { color: #d6b46d; font: 650 11px/1 "Geist Local", sans-serif; letter-spacing: .14em; }
.paywall-inner h2 { margin: 18px 0 14px; font-size: clamp(48px, 7vw, 92px); line-height: .94; letter-spacing: -.065em; }
.paywall-inner > p { margin: 0; color: rgba(247,243,233,.52); font-size: 16px; }
.purchase-options { margin-top: 46px; display: grid; grid-template-columns: 1.32fr .68fr; gap: 16px; align-items: end; }
.purchase-card { min-width: 0; padding: 28px; display: flex; flex-direction: column; border: 1px solid rgba(217,181,105,.28); border-radius: 10px; color: #f7f3e9; background: #0d0b08; text-align: left; cursor: pointer; }
.membership-choice { min-height: 265px; background: linear-gradient(145deg, rgba(107,74,25,.55), #0d0b08 58%); }
.single-choice { min-height: 210px; }
.purchase-card > span { display: grid; }
.purchase-card small { color: #d9b66e; font-size: 11px; }
.purchase-card strong { margin-top: 8px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.04em; }
.purchase-card p { margin: 26px 0; color: rgba(247,243,233,.58); line-height: 1.6; }
.single-choice p em { color: #e0bd75; font: normal 25px/1.2 "Geist Local", sans-serif; }
.purchase-card b { margin-top: auto; display: flex; align-items: center; gap: 8px; color: #e2c17d; font-size: 13px; }

@media (max-width: 1100px) {
  .brand-logo-media { width: 104px; flex-basis: 104px; }
  .brand-copy { display: none; }
  .newsletter-landing { grid-template-columns: 1fr 1fr; padding: 40px; }
  .newsletter-visual { min-height: 500px; }
  .masonry-grid { column-count: 3; }
  .pro-hero { grid-template-columns: 1fr 180px; }
}

@media (max-width: 960px) {
  .brand-logo-media { width: 126px; height: 46px; flex-basis: 126px; }
  .brand-copy { display: grid; }
  .article-main { padding-inline: 12px; }
  .article-header { padding-top: 48px; }
  .article-layout, .article-footer { width: 100%; }
  .carousel-author-card { width: 152px; }
  .newsletter-main, .miaowen-main { padding-top: 14px; }
  .newsletter-landing { min-height: auto; grid-template-columns: 1fr; }
  .newsletter-visual { min-height: 440px; }
  .newsletter-notes { grid-template-columns: 1fr; }
  .newsletter-notes > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pro-shell .sidebar { background: #050505; }
  .pro-shell .mobile-bottom-nav { border-color: rgba(207,169,89,.16); background: rgba(5,5,5,.97); }
  .pro-shell .mobile-bottom-nav a { color: rgba(247,243,233,.55); }
  .pro-shell .mobile-bottom-nav a.active { color: #e0bc70; background: rgba(207,169,89,.12); }
  .pro-hero { min-height: 600px; grid-template-columns: 1fr; align-items: end; }
  .pro-edition { display: none; }
  .pro-benefits { grid-template-columns: repeat(2, 1fr); }
  .pro-benefits > div:nth-child(2) { border-right: 0; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 360px; }
  .masonry-grid { column-count: 3; }
}

@media (max-width: 720px) {
  .brand-logo-media { width: 112px; flex-basis: 112px; }
  .article-header { padding: 38px 4px 28px; }
  .article-header h1 { font-size: 43px; }
  .author-carousel { margin-right: -14px; width: calc(100% + 14px); }
  .carousel-author-card { width: 142px; }
  .newsletter-landing { padding: 34px 24px; border-radius: 10px; }
  .newsletter-landing-copy h1 { font-size: 52px; }
  .newsletter-page-form { height: auto; padding: 0; display: grid; gap: 8px; border: 0; background: transparent; }
  .newsletter-page-form input, .newsletter-page-form button { height: 50px; border-radius: 25px; }
  .newsletter-page-form input { padding-inline: 18px; background: #fff; }
  .newsletter-page-form button { justify-content: center; }
  .newsletter-visual { min-height: 360px; }
  .pro-hero { min-height: 570px; padding: 56px 24px; }
  .pro-hero h1 { font-size: 52px; }
  .pro-title-line { white-space: normal; }
  .pro-hero-actions { align-items: flex-start; flex-direction: column; }
  .pro-benefits { grid-template-columns: 1fr; }
  .pro-benefits > div { border-right: 0; border-bottom: 1px solid rgba(215,178,101,.14); }
  .pro-plans { padding: 68px 18px 0; }
  .masonry-grid { column-count: 2; column-gap: 12px; }
  .masonry-card { margin-bottom: 12px; }
  .masonry-card.short { height: 220px; }
  .masonry-card.medium { height: 300px; }
  .masonry-card.tall { height: 390px; }
  .miaowen-header { padding-top: 26px; }
  .purchase-options { grid-template-columns: 1fr; }
  .membership-choice, .single-choice { min-height: 220px; }
  .reading-paywall { align-items: start; padding-top: 86px; }
}

@media (max-width: 440px) {
  .brand-logo-media { width: 104px; flex-basis: 104px; }
  .brand-copy { display: none; }
  .carousel-author-card { width: 136px; }
  .masonry-grid { column-count: 1; }
  .masonry-card.short, .masonry-card.medium, .masonry-card.tall { height: 390px; }
  .paywall-inner h2 { font-size: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .author-track, .pro-word-window > span { transform: none !important; }
}

/* Shared inner routes keep the page header; only the homepage renders category tabs. */
.content-only-shell .author-profile { margin-top: 24px; }
.signin-main { padding: 0; }
.signin-main .signin-page, .signin-main .signin-image, .signin-main .signin-content { min-height: calc(100vh - 70px); }

/* Membership selector: restrained pricing layout based on the supplied reference. */
.membership-main { padding: 0 0 96px; background: #fff; }
.vip-selector-stage { min-height: calc(100vh - 70px); padding: clamp(28px, 4vh, 52px) clamp(28px, 5.5vw, 84px); display: grid; place-items: center; border-top: 1px solid #f0f1f2; }
.vip-selector { width: min(960px, 100%); }
.vip-selector-heading { margin: 0 auto 22px; text-align: center; }
.vip-selector-heading > span { color: #248fe2; font: 650 10px/1 "Geist Local", sans-serif; letter-spacing: .12em; }
.vip-selector-heading h1 { max-width: 820px; margin: 14px auto 8px; font-size: clamp(28px, 2.7vw, 38px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; }
.vip-selector-heading p { max-width: 680px; margin: 0 auto; color: #767b80; font-size: 13px; line-height: 1.65; }
.vip-billing-switch { width: fit-content; margin: 0 auto 24px; padding: 3px; display: flex; align-items: center; border-radius: 10px; background: #f2f3f4; }
.vip-billing-switch button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: #73777b; cursor: pointer; font-size: 12px; }
.vip-billing-switch button.is-active { color: #17191b; background: #fff; box-shadow: 0 1px 5px rgba(17,19,23,.08); }
.vip-billing-switch em { margin-left: 5px; color: #168ee7; font-style: normal; }
.vip-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.vip-plan-card { min-height: 350px; padding: 20px 20px 18px; display: flex; flex-direction: column; border: 1px solid #e5e7e9; border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.vip-plan-card:hover, .vip-plan-card.is-recommended { border-color: #d8dde1; box-shadow: 0 14px 34px rgba(21,27,31,.055); }
.vip-plan-top { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vip-plan-top h2 { margin: 0; font-size: 18px; font-weight: 570; }
.vip-plan-top span { padding: 5px 8px; border-radius: 6px; color: #118fe8; background: #e8f5fd; font-size: 10px; }
.vip-plan-price { margin: 18px 0 20px; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.vip-plan-price small { font-size: 17px; }
.vip-plan-price strong { font: 620 clamp(34px, 3.1vw, 45px)/1 "Geist Local", sans-serif; letter-spacing: -.045em; }
.vip-plan-price s { color: #a7aaad; font-size: 17px; }
.vip-plan-price em { color: #a7aaad; font-size: 11px; font-style: normal; }
.vip-plan-button { min-height: 46px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #171819; font-size: 13px; font-weight: 670; }
.vip-plan-lead { margin: 22px 0 15px; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 660; }
.vip-plan-lead i { font-size: 17px; }
.vip-plan-card ul { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; color: #454a4e; font-size: 11px; line-height: 1.4; }
.vip-plan-card li { display: flex; align-items: flex-start; gap: 9px; }
.vip-plan-card li i { margin-top: 1px; color: #17191b; font-size: 15px; }
.vip-aftercare { width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: 105px 0 30px; }
.vip-purchase-note { padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; border: 1px solid #e4e7e9; border-radius: 12px; background: #f7f8f9; }
.vip-purchase-note > span { grid-column: 1 / -1; margin-bottom: 18px; color: #70767b; font-size: 11px; }
.vip-purchase-note > span i { margin-right: 5px; font-size: 15px; vertical-align: -2px; }
.vip-purchase-note h2 { margin: 0 0 8px; font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.035em; }
.vip-purchase-note p { max-width: 760px; margin: 0; color: #6d7378; font-size: 13px; line-height: 1.7; }
.vip-purchase-note a { grid-column: 2; grid-row: 2 / 4; min-height: 44px; padding: 0 18px; display: flex; align-items: center; gap: 20px; border-radius: 8px; color: #fff; background: #171819; font-size: 12px; font-weight: 650; }
.vip-faq { padding-top: 105px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 80px; }
.vip-faq header > span { color: #168fe6; font: 650 10px/1 "Geist Local", sans-serif; letter-spacing: .14em; }
.vip-faq header h2 { margin: 14px 0 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.055em; }
.vip-faq-list { border-top: 1px solid #dfe2e4; }
.vip-faq details { border-bottom: 1px solid #dfe2e4; }
.vip-faq summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 620; }
.vip-faq summary::-webkit-details-marker { display: none; }
.vip-faq summary i { font-size: 20px; transition: transform .2s ease; }
.vip-faq details[open] summary i { transform: rotate(45deg); }
.vip-faq details p { margin: -4px 50px 24px 0; color: #6c7277; font-size: 13px; line-height: 1.75; }

/* Miaowen purchase dialog: one large member card and one compact single-purchase card. */
.reading-paywall { padding: 4px; color: #17191b; background: rgba(245,247,248,.94); backdrop-filter: blur(18px); }
.paywall-close { z-index: 2; top: 23px; right: 24px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #8a8f93; background: transparent; font-size: 21px; }
.paywall-close:hover { color: #17191b; background: #f2f3f4; }
.paywall-close:focus-visible { outline: 0; color: #17191b; background: #f2f3f4; }
.paywall-inner { width: 100%; min-height: calc(100vh - 8px); padding: clamp(62px, 9vh, 110px) clamp(38px, 9vw, 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dfe2e4; border-radius: 16px; background: #fff; box-shadow: none; }
.paywall-heading { margin-bottom: 28px; text-align: center; }
.paywall-kicker { color: #168fe6; font: 650 10px/1 "Geist Local", sans-serif; letter-spacing: .13em; }
.paywall-heading h2 { max-width: 820px; margin: 15px auto 10px; color: #17191b; font-size: clamp(30px, 3.4vw, 45px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; }
.paywall-heading > p { max-width: 650px; margin: 0 auto; color: #777c80; font-size: 12px; line-height: 1.65; }
.paywall-choice-grid { width: min(930px, 100%); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .75fr); gap: 16px; align-items: end; }
.paywall-choice-card { padding: 24px 22px 22px; display: flex; flex-direction: column; border: 1px solid #e3e5e7; border-radius: 12px; background: #fff; }
.member-choice { min-height: 405px; }
.single-choice-card { min-height: 345px; }
.paywall-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paywall-choice-top h3 { margin: 0; font-size: 18px; font-weight: 580; }
.paywall-choice-top span { padding: 5px 8px; border-radius: 6px; color: #118fe8; background: #e8f5fd; font-size: 10px; }
.paywall-choice-price { margin: 22px 0 24px; display: flex; align-items: baseline; gap: 7px; }
.paywall-choice-price small { font-size: 16px; }
.paywall-choice-price strong { font: 620 clamp(36px, 4vw, 52px)/1 "Geist Local", sans-serif; letter-spacing: -.05em; }
.paywall-choice-price em { color: #9ca0a3; font-size: 11px; font-style: normal; }
.paywall-choice-button { width: 100%; min-height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 9px; color: #fff; background: #171819; cursor: pointer; font-size: 13px; font-weight: 670; }
.paywall-choice-button.is-selected { background: #168fe6; }
.paywall-choice-lead { margin: 25px 0 18px; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; }
.paywall-choice-card ul { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; color: #4e5357; font-size: 11px; line-height: 1.45; }
.paywall-choice-card li { display: flex; align-items: flex-start; gap: 8px; }
.paywall-choice-card li i { margin-top: 1px; font-size: 14px; }

@media (max-width: 1080px) {
  .vip-selector-stage { padding-inline: 28px; }
  .vip-plan-card { padding-inline: 18px; }
  .vip-plan-price { gap: 5px; }
  .vip-plan-price s { font-size: 14px; }
  .paywall-inner { padding-inline: 44px; }
}

@media (max-width: 960px) {
  .membership-main { margin-left: 0; }
  .vip-selector-stage { min-height: calc(100svh - 64px); }
  .vip-aftercare { width: min(100% - 36px, 900px); }
  .signin-main { padding: 0 0 calc(64px + env(safe-area-inset-bottom)); }
  .signin-main .signin-page { min-height: calc(100svh - 64px); }
  .signin-main .signin-image { min-height: 290px; }
  .signin-main .signin-content { min-height: 66vh; }
}

@media (max-width: 820px) {
  .vip-selector-stage { display: block; padding: 38px 18px 52px; overflow: hidden; }
  .vip-selector-heading { margin-bottom: 22px; }
  .vip-selector-heading h1 { max-width: 560px; font-size: 34px; }
  .vip-plan-grid { width: calc(100% + 18px); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 78%); gap: 12px; overflow-x: auto; padding: 0 18px 10px 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vip-plan-grid::-webkit-scrollbar { display: none; }
  .vip-plan-card { min-height: 390px; scroll-snap-align: start; }
  .vip-purchase-note { padding: 30px; grid-template-columns: 1fr; }
  .vip-purchase-note a { grid-column: 1; grid-row: auto; width: fit-content; margin-top: 22px; }
  .vip-faq { grid-template-columns: 1fr; gap: 42px; }
  .paywall-inner { justify-content: flex-start; overflow-y: auto; padding: 72px 24px 42px; }
  .paywall-choice-grid { grid-template-columns: minmax(0, 1.45fr) minmax(220px, .8fr); }
}

@media (max-width: 620px) {
  .content-only-shell .author-profile { margin-top: 14px; }
  .vip-selector-stage { min-height: calc(100svh - 64px); padding-top: 30px; }
  .vip-selector-heading h1 { font-size: 30px; }
  .vip-selector-heading p { font-size: 12px; }
  .vip-billing-switch { width: 100%; margin-bottom: 24px; }
  .vip-billing-switch button { min-width: 0; flex: 1; padding-inline: 8px; font-size: 11px; }
  .vip-billing-switch em { display: none; }
  .vip-plan-grid { grid-auto-columns: calc(100vw - 50px); }
  .vip-plan-card { min-height: 380px; }
  .vip-aftercare { width: calc(100% - 28px); padding-top: 72px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .vip-purchase-note { padding: 26px 22px; }
  .vip-purchase-note a { width: 100%; justify-content: space-between; }
  .vip-faq { padding-top: 72px; }
  .vip-faq summary { min-height: 64px; font-size: 14px; }
  .vip-faq details p { margin-right: 20px; }
  .reading-paywall { align-items: start; padding: 3px; }
  .paywall-close { top: 16px; right: 16px; }
  .paywall-inner { min-height: calc(100svh - 6px); padding: 66px 16px calc(90px + env(safe-area-inset-bottom)); border-radius: 13px; }
  .paywall-heading { margin-bottom: 22px; padding-inline: 8px; }
  .paywall-heading h2 { font-size: 30px; }
  .paywall-choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .member-choice { min-height: 385px; }
  .single-choice-card { min-height: 280px; }
}

/* Final shared typography and fixed-header geometry. */
html, body, button, input, textarea, select,
body :where(h1, h2, h3, h4, p, span, strong, small, a, button, input, textarea, label, li, summary, em, s, sup, kbd, figcaption, blockquote) {
  font-family: "Xene Unified", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}
.site-shell > .page-main { padding-top: 70px; }

/* Membership: larger plans in a natural top-to-bottom flow. */
.membership-main { padding-top: 70px; }
.vip-selector-stage { min-height: 0; padding: 28px 24px 62px; display: block; border-top: 1px solid #f0f1f2; }
.vip-selector { width: min(1060px, 100%); margin: 0 auto; }
.vip-selector-heading { margin-bottom: 34px; }
.vip-selector-heading h1 { max-width: 900px; font-size: clamp(31px, 3vw, 42px); }
.vip-plan-grid { gap: 18px; }
.vip-plan-card { min-height: 420px; padding: 25px 24px 23px; }
.vip-plan-top h2 { font-size: 20px; }
.vip-plan-top span { padding: 6px 9px; font-size: 11px; }
.vip-plan-price { margin: 24px 0 26px; }
.vip-plan-price strong { font-size: clamp(42px, 4vw, 54px); }
.vip-plan-button { min-height: 50px; font-size: 14px; }
.vip-plan-lead { grid-template-columns: 20px minmax(0, 1fr); align-items: center; margin: 28px 0 19px; font-size: 13px; }
.vip-plan-lead i { width: 20px; height: 20px; display: grid; place-items: center; margin: 0; font-size: 17px; }
.vip-plan-card ul { gap: 12px; font-size: 12px; }
.vip-plan-card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; }
.vip-plan-card li i { width: 18px; height: 18px; display: grid; place-items: center; margin: 0; font-size: 15px; }
.vip-aftercare { width: min(1060px, calc(100% - 48px)); padding-top: 72px; }
.vip-faq { padding-top: 84px; }

/* Miaowen: equal-height, price-only choices. */
.paywall-choice-grid { align-items: stretch; }
.paywall-choice-card, .member-choice, .single-choice-card { min-height: 280px; }
.paywall-choice-card { justify-content: flex-start; }
.paywall-choice-price { margin: 30px 0 28px; }
.paywall-choice-button { margin-top: auto; }

/* Article workspace with fixed interaction controls and independently scrolling comments. */
.article-main { padding-right: 34px; padding-left: 34px; }
.article-workspace { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.article-page { min-width: 0; }
.article-header { padding-top: 48px; }
.article-header h1 { font-size: clamp(44px, 4.7vw, 68px); }
.article-layout { width: 100%; max-width: 780px; grid-template-columns: 46px minmax(0, 1fr); gap: 24px; }
.article-body blockquote { margin-right: 0; margin-left: 0; }
.article-side-column { position: sticky; top: 88px; display: grid; gap: 14px; }
.article-action-card { min-height: 66px; padding: 12px; display: flex; align-items: center; gap: 7px; border-radius: 12px; background: #eff1f2; }
.article-action { min-width: 0; flex: 1; height: 40px; padding: 4px 9px 4px 4px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 22px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 650; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease; }
.article-action:hover { transform: scale(1.025); }
.article-action.is-active { box-shadow: 0 5px 14px rgba(34,40,45,.1); }
.article-action i { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 16px; }
.article-action.like i { background: #eb6269; }
.article-action.favorite i { background: #e7b33c; }
.article-action.subscribe i { background: #4da8e5; }
.article-action span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.article-comments-card { height: clamp(390px, calc(100vh - 190px), 650px); min-height: 260px; padding: 14px; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #eff1f2; }
.comments-card-header { padding: 2px 3px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.comments-card-header span { color: #858b90; font-size: 11px; }
.comments-card-header strong { font-size: 16px; }
.comment-composer { height: 46px; flex: 0 0 46px; padding: 4px; display: flex; align-items: center; gap: 6px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(31,38,43,.04); }
.comment-composer input { min-width: 0; flex: 1; height: 38px; padding: 0 8px 0 12px; border: 0; outline: 0; background: transparent; font-size: 12px; }
.comment-composer button { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #17191b; cursor: pointer; font-size: 18px; }
.comment-scroll-area { min-height: 150px; flex: 1; margin-top: 10px; padding-right: 3px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9ced1 transparent; }
.comment-empty { min-height: 150px; margin: auto 0; display: grid; place-items: center; align-content: center; color: #7a8186; text-align: center; }
.comment-empty i { margin-bottom: 9px; color: #a2a8ac; font-size: 28px; }
.comment-empty strong { color: #5e656a; font-size: 13px; }
.comment-empty p { margin: 5px 0 0; font-size: 11px; }
.comment-item { padding: 13px 14px; border-radius: 9px; background: #fff; }
.comment-item-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-item-header strong { font-size: 12px; }
.comment-item-header time { color: #9aa0a4; font-size: 10px; }
.comment-item p { margin: 8px 0 0; color: #4f565b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .article-main { padding-right: 26px; padding-left: 26px; }
  .article-workspace { grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; }
  .article-action-card { padding-inline: 9px; }
  .article-action { padding-right: 6px; font-size: 10px; }
}

@media (max-width: 900px) {
  .article-workspace { grid-template-columns: 1fr; }
  .article-side-column { position: static; grid-row: 2; }
  .article-action-card { width: min(100%, 520px); }
  .article-comments-card { height: 430px; }
}

@media (max-width: 960px) {
  .site-shell > .page-main, .membership-main { padding-top: 64px; }
  .vip-selector-stage { min-height: 0; padding-top: 24px; }
}

@media (max-width: 820px) {
  .vip-selector-heading { margin-bottom: 28px; }
  .vip-plan-grid { grid-auto-columns: minmax(320px, 82%); }
  .vip-plan-card { min-height: 430px; padding: 26px 24px; }
  .paywall-choice-card, .member-choice, .single-choice-card { min-height: 250px; }
}

@media (max-width: 620px) {
  .article-main { padding-right: 18px; padding-left: 18px; }
  .article-action-card { gap: 6px; }
  .article-action { justify-content: flex-start; }
  .article-comments-card { height: 420px; }
  .vip-plan-grid { grid-auto-columns: calc(100vw - 42px); }
  .paywall-choice-card, .member-choice, .single-choice-card { min-height: 230px; }
}

/* Final article reading composition: full-width story masthead, body-attached utility rail. */
.article-main { padding-right: 14px; padding-left: 14px; }
.article-page { width: 100%; }
.article-header { max-width: 1080px; padding-top: 50px; }
.article-hero { width: 100%; }
.article-hero img { max-height: 640px; }
.article-reading-grid { width: 100%; margin: 52px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; }
.article-story-column { min-width: 0; }
.article-layout { width: 100%; max-width: none; margin: 0; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; }
.article-footer { width: calc(100% - 70px); max-width: none; margin: 70px 0 0 70px; }
.article-side-column { top: 88px; }
.article-action-card { padding: 11px; gap: 6px; }
.article-action { padding: 4px 8px 4px 4px; gap: 4px; font-size: 13px; }
.article-action i { width: 32px; height: 32px; flex-basis: 32px; }
.article-action span { flex: 1; text-align: right; }

/* Miaowen purchase notes sit close to their CTA. */
.paywall-choice-price { margin-bottom: 20px; }
.paywall-choice-note { min-height: 36px; margin: 0; color: #777d82; font-size: 12px; line-height: 1.55; }
.paywall-choice-button { margin-top: 14px; }

/* Sign-in is a standalone editorial account surface, outside the shared site shell. */
.signin-standalone-body { min-height: 100svh; overflow-x: hidden; background: #f7f8f9; }
.signin-standalone { min-height: 100svh; display: grid; grid-template-columns: minmax(420px, 47%) minmax(0, 1fr); background: #fff; }
.signin-standalone .signin-image { min-height: 100svh; }
.signin-standalone .signin-image::after { background: linear-gradient(180deg, rgba(7,12,15,.34) 0%, rgba(7,12,15,.05) 38%, rgba(7,12,15,.72) 100%); }
.signin-standalone .signin-image-brand { top: 38px; right: auto; bottom: auto; left: 42px; }
.signin-standalone .signin-logo-media { width: 124px; height: 42px; }
.signin-image-copy { position: absolute; z-index: 2; right: 48px; bottom: 104px; left: 42px; color: #fff; }
.signin-image-copy > span { color: rgba(255,255,255,.68); font-size: 10px; font-weight: 680; letter-spacing: .14em; }
.signin-image-copy h1 { max-width: 620px; margin: 18px 0 20px; font-size: clamp(46px, 4.9vw, 74px); line-height: .98; letter-spacing: -.055em; }
.signin-image-copy p { max-width: 510px; margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.7; }
.signin-image-index { position: absolute; z-index: 2; right: 48px; bottom: 34px; left: 42px; display: flex; justify-content: space-between; color: rgba(255,255,255,.56); font-size: 9px; letter-spacing: .12em; }
.signin-standalone .signin-content { min-height: 100svh; padding: 34px clamp(38px, 6vw, 92px) 30px; display: flex; flex-direction: column; background: #f8f9fa; }
.signin-standalone .back-home { position: static; margin-left: auto; display: inline-flex; align-items: center; gap: 9px; color: #737a80; font-size: 12px; }
.signin-standalone .back-home i { font-size: 18px; }
.signin-form-wrap { width: min(100%, 520px); margin: auto; padding: 54px 0 70px; }
.signin-step { display: block; margin-bottom: 50px; color: #9ca2a7; font-size: 10px; font-weight: 680; letter-spacing: .14em; }
.signin-standalone .signin-form { width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 242px; column-gap: 0; }
.signin-standalone .signin-form .eyebrow,
.signin-standalone .signin-form h2,
.signin-standalone .signin-form > p,
.signin-standalone .signin-form > small { grid-column: 1 / -1; }
.signin-standalone .signin-form .eyebrow { color: #55a8d6; font-size: 11px; font-weight: 680; letter-spacing: .08em; }
.signin-standalone .signin-form h2 { margin: 12px 0 17px; font-size: clamp(48px, 5vw, 68px); font-weight: 690; line-height: .98; letter-spacing: -.055em; }
.signin-standalone .signin-form > p { margin: 0 0 40px; color: #6e757b; font-size: 15px; line-height: 1.7; }
.signin-standalone .signin-form label { display: grid; gap: 10px; color: #3a4045; font-size: 12px; font-weight: 650; }
.signin-standalone .signin-form input { width: 100%; height: 58px; padding: 0 18px; border: 1px solid #dce1e4; border-radius: 11px; outline: 0; background: #fff; font-size: 14px; }
.signin-standalone .signin-form input:focus { border-color: #66b8e4; box-shadow: 0 0 0 4px rgba(85,185,237,.13); }
.signin-standalone .signin-form > button { grid-column: 2; align-self: end; width: 100%; height: 58px; margin-top: 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 11px; color: #fff; background: #111315; cursor: pointer; font-size: 14px; font-weight: 680; }
.signin-standalone .signin-form > button i { font-size: 19px; }
.signin-standalone .signin-form > small { margin-top: 18px; color: #81878c; font-size: 12px; text-align: left; }
.signin-standalone .signin-form > small a { color: #268fca; }
.signin-standalone .signin-content footer { position: static; margin-top: auto; display: flex; justify-content: space-between; gap: 16px; color: #9ba1a5; font-size: 10px; letter-spacing: .05em; }

@media (max-width: 1080px) {
  .article-reading-grid { grid-template-columns: minmax(0, 1fr) 276px; gap: 18px; }
  .article-action { font-size: 12px; }
  .signin-standalone { grid-template-columns: minmax(360px, 43%) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .article-reading-grid { grid-template-columns: 1fr; }
  .article-side-column { grid-row: auto; }
  .article-footer { width: 100%; margin-left: 0; }
  .signin-standalone { grid-template-columns: 1fr; }
  .signin-standalone .signin-image { min-height: 390px; height: 42svh; }
  .signin-standalone .signin-content { min-height: 58svh; }
  .signin-image-copy { bottom: 64px; }
  .signin-image-copy h1 { font-size: 48px; }
  .signin-image-index { display: none; }
}

@media (max-width: 620px) {
  .article-main { padding-right: 12px; padding-left: 12px; }
  .article-reading-grid { margin-top: 38px; }
  .article-layout { display: block; }
  .article-footer { margin-top: 54px; }
  .article-action { font-size: 13px; }
  .paywall-choice-note { min-height: 38px; font-size: 11px; }
  .paywall-choice-button { margin-top: 12px; }
  .signin-standalone .signin-image { min-height: 330px; height: 39svh; }
  .signin-standalone .signin-image-brand { top: 22px; left: 22px; }
  .signin-standalone .signin-logo-media { width: 108px; height: 36px; }
  .signin-image-copy { right: 22px; bottom: 30px; left: 22px; }
  .signin-image-copy > span { font-size: 8px; }
  .signin-image-copy h1 { margin: 12px 0 0; font-size: 39px; }
  .signin-image-copy p { display: none; }
  .signin-standalone .signin-content { min-height: 61svh; padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); }
  .signin-form-wrap { padding: 46px 0 56px; }
  .signin-step { margin-bottom: 34px; }
  .signin-standalone .signin-form { grid-template-columns: 1fr; }
  .signin-standalone .signin-form > button { grid-column: 1; margin-top: 12px; }
  .signin-standalone .signin-form h2 { font-size: 48px; }
  .signin-standalone .signin-form > p { margin-bottom: 30px; font-size: 14px; }
  .signin-standalone .signin-content footer { font-size: 9px; }
}

/* Final responsive refinements: balanced article rails, compact mobile pages and a single-screen newsletter. */
.article-main { padding-right: 8px; padding-left: 8px; }
.article-reading-grid {
  width: calc(100% - 20px);
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}
.article-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.article-footer { width: 100%; margin-left: 0; }
.article-action { --action-color: #657079; }
.article-action.like { --action-color: #eb6269; }
.article-action.favorite { --action-color: #e7b33c; }
.article-action.share { --action-color: #4da8e5; }
.article-action i {
  color: var(--action-color);
  border: 0;
  background: #eef0f1;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.article-action:not(.is-active) i { border: 0; background: #e8ebed; }
.article-action.is-active i {
  color: #fff;
  border: 0;
  background: var(--action-color);
}

.newsletter-main {
  height: 100svh;
  min-height: 0;
  padding: 82px 14px 12px;
  overflow: hidden;
}
.newsletter-landing {
  height: 100%;
  min-height: 0;
  padding: clamp(28px, 4vw, 56px);
}
.newsletter-visual { height: 100%; min-height: 0; }
.newsletter-notes { display: none; }

@media (max-width: 1120px) and (min-width: 901px) {
  .article-reading-grid { grid-template-columns: minmax(0, 1fr) 294px; gap: 18px; }
  .article-action-card { padding-inline: 8px; }
}

@media (max-width: 900px) {
  .article-reading-grid { width: 100%; grid-template-columns: 1fr; gap: 18px; }
  .article-layout { grid-template-columns: 1fr; gap: 22px; }
  .article-footer { width: 100%; margin-left: 0; }
  .article-side-column { gap: 12px; }
  .article-action-card { width: 100%; }
}

@media (max-width: 820px) {
  .vip-selector-stage { padding: 26px 16px 46px; overflow: visible; }
  .vip-selector { width: min(100%, 610px); }
  .vip-selector-heading { margin-bottom: 24px; text-align: left; }
  .vip-selector-heading h1 { margin-inline: 0; font-size: clamp(30px, 7vw, 38px); }
  .vip-selector-heading p { margin-inline: 0; }
  .vip-plan-grid {
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .vip-plan-card {
    min-height: 0;
    padding: 23px 21px 22px;
    scroll-snap-align: none;
  }
  .vip-plan-price { margin: 18px 0 20px; }
  .vip-plan-lead { margin: 23px 0 16px; }
  .vip-aftercare { width: calc(100% - 28px); padding-top: 48px; }
  .vip-purchase-note { padding: 25px 22px; }
  .vip-faq { padding-top: 58px; gap: 28px; }
}

@media (max-width: 720px) {
  .newsletter-main {
    height: 100svh;
    padding: 74px 10px calc(74px + env(safe-area-inset-bottom));
  }
  .newsletter-landing {
    height: 100%;
    padding: 22px 20px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    border-radius: 9px;
  }
  .newsletter-landing-copy h1 { margin: 12px 0; font-size: clamp(36px, 11vw, 44px); }
  .newsletter-landing-copy > p { font-size: 12px; line-height: 1.55; }
  .newsletter-page-form {
    height: 46px;
    margin-top: 16px;
    padding: 4px;
    display: flex;
    gap: 0;
    border: 1px solid #d9e0e4;
    border-radius: 23px;
    background: #fff;
  }
  .newsletter-page-form input { height: auto; padding-inline: 12px; background: transparent; }
  .newsletter-page-form button { height: auto; min-width: 112px; padding-inline: 14px; border-radius: 19px; }
  .newsletter-landing-copy > small { margin: 8px 0 0 12px; font-size: 9px; }
  .newsletter-visual { height: 100%; min-height: 0; border-radius: 8px; }
  .newsletter-visual figcaption { right: 17px; bottom: 16px; left: 17px; }
  .newsletter-visual figcaption strong { margin-top: 6px; font-size: 17px; }

  .miaowen-main { padding-right: 10px; padding-left: 10px; }
  .miaowen-header { padding: 24px 4px 28px; }
  .miaowen-header h1 { margin-top: 12px; font-size: clamp(46px, 15vw, 62px); }
  .miaowen-header p { font-size: 13px; line-height: 1.55; }
  .masonry-grid { column-count: 2; column-gap: 10px; }
  .masonry-card { margin-bottom: 10px; border-radius: 8px; }
  .masonry-card.short { height: 205px; }
  .masonry-card.medium { height: 255px; }
  .masonry-card.tall { height: 305px; }
  .masonry-card > span { right: 11px; bottom: 11px; left: 11px; }
  .masonry-card strong { margin-top: 5px; font-size: 14px; }
  .masonry-card em { margin-top: 8px; }
}

@media (max-width: 620px) {
  .article-main { padding-right: 10px; padding-left: 10px; }
  .article-header { padding: 30px 4px 24px; }
  .article-header h1 { margin-top: 12px; font-size: clamp(39px, 12vw, 49px); }
  .article-deck { font-size: 15px; }
  .byline { margin-top: 22px; }
  .article-hero img { height: min(92vw, 360px); max-height: none; }
  .article-hero figcaption { padding-inline: 3px; }
  .article-reading-grid { margin-top: 30px; }
  .article-body { font-size: 17px; line-height: 1.82; }
  .article-body .lead { font-size: 20px; line-height: 1.68; }
  .article-body h2 { margin: 46px 0 18px; font-size: 28px; }
  .article-body blockquote { margin: 38px 0; padding: 23px 21px; font-size: 21px; }
  .article-note { margin: 34px 0; padding: 22px 20px; font-size: 14px; }
  .article-action-card { min-height: 62px; padding: 9px; }
  .article-action { height: 42px; padding-right: 8px; font-size: 12px; }
  .article-action i { width: 32px; height: 32px; flex-basis: 32px; }
  .article-comments-card { height: 390px; padding: 12px; }
  .author-signoff { padding: 16px; grid-template-columns: 92px 1fr; gap: 16px; }
  .author-signoff img { width: 92px; }
  .author-signoff strong { font-size: 20px; }
  .author-signoff p { font-size: 12px; }

  .vip-selector-stage { padding-top: 22px; }
  .vip-selector-heading h1 { font-size: 30px; }
  .vip-plan-card { padding: 21px 19px; }
  .vip-plan-price strong { font-size: 46px; }
  .vip-aftercare { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  .reading-paywall { padding: 3px; }
  .paywall-inner { padding: 62px 13px calc(84px + env(safe-area-inset-bottom)); }
  .paywall-heading { margin-bottom: 18px; }
  .paywall-heading h2 { margin-top: 11px; font-size: 28px; }
  .paywall-heading > p { font-size: 11px; }
  .paywall-choice-grid { gap: 10px; }
  .paywall-choice-card,
  .member-choice,
  .single-choice-card { min-height: 220px; padding: 20px 18px; }
  .paywall-choice-price { margin: 20px 0 14px; }
  .paywall-choice-note { min-height: 34px; }
  .paywall-choice-button { min-height: 44px; margin-top: 10px; }
}

@media (max-width: 440px) {
  .masonry-grid { column-count: 2; }
  .newsletter-page-form button i { display: none; }
  .newsletter-page-form button { min-width: 98px; padding-inline: 11px; font-size: 12px; }
}

/* Legal documents */
.site-shell > .legal-main { padding: 94px 24px 110px; }
.legal-hero,
.legal-layout { width: min(1180px, 100%); margin-right: auto; margin-left: auto; }
.legal-hero { position: relative; padding: clamp(42px, 5.2vw, 72px); overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #edf4f7 0%, #f5f7f8 58%, #eef1f2 100%); }
.legal-hero::after { content: "XENE / LEGAL"; position: absolute; right: 30px; bottom: -12px; color: rgba(51,72,84,.045); font-size: clamp(72px, 10vw, 150px); font-weight: 750; line-height: .8; letter-spacing: -.07em; pointer-events: none; white-space: nowrap; }
.legal-hero-privacy { background: linear-gradient(135deg, #edf5f3 0%, #f5f7f7 58%, #eef1f2 100%); }
.legal-hero-reader { background: linear-gradient(135deg, #f3f1ec 0%, #f7f7f5 58%, #eef1f2 100%); }
.legal-hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-hero-top > span { display: inline-flex; align-items: center; gap: 8px; color: #5597b8; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.legal-hero-top i { font-size: 17px; }
.legal-hero-top em { padding: 6px 9px; border-radius: 6px; color: #6d767b; background: rgba(255,255,255,.7); font-size: 10px; font-style: normal; }
.legal-hero h1 { position: relative; z-index: 1; max-width: 830px; margin: 30px 0 24px; font-size: clamp(54px, 6.5vw, 92px); font-weight: 680; line-height: .95; letter-spacing: -.065em; }
.legal-hero > p { position: relative; z-index: 1; max-width: 700px; margin: 0; color: #646d72; font-size: 15px; line-height: 1.75; }
.legal-meta { position: relative; z-index: 1; width: min(670px, 100%); margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(88,104,113,.14); border-bottom: 1px solid rgba(88,104,113,.14); }
.legal-meta > div { padding: 15px 16px 15px 0; display: grid; gap: 5px; }
.legal-meta dt { color: #8a9195; font-size: 10px; }
.legal-meta dd { margin: 0; font-size: 12px; font-weight: 650; }
.legal-switch { position: relative; z-index: 1; width: fit-content; margin-top: 30px; padding: 4px; display: flex; align-items: center; gap: 3px; border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(101,115,123,.1); }
.legal-switch a { min-height: 38px; padding: 0 17px; display: flex; align-items: center; justify-content: center; border-radius: 20px; color: #6c7479; font-size: 12px; font-weight: 620; }
.legal-switch a:hover { color: #151719; background: rgba(235,239,241,.82); }
.legal-switch a.active { color: #fff; background: #17191b; }

.legal-layout { margin-top: 26px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.legal-toc { position: sticky; top: 92px; max-height: calc(100vh - 116px); padding: 18px; overflow: auto; border: 1px solid #e4e8ea; border-radius: 11px; background: #f5f7f8; scrollbar-width: thin; }
.legal-toc > strong { display: block; margin: 2px 8px 13px; color: #7b8388; font-size: 10px; letter-spacing: .1em; }
.legal-toc nav { display: grid; gap: 2px; }
.legal-toc a { min-height: 39px; padding: 0 9px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 5px; align-items: center; border-radius: 7px; color: #626a6f; font-size: 11px; line-height: 1.3; }
.legal-toc a:hover { color: #16191b; background: #fff; }
.legal-toc a span { color: #66a8c8; font-size: 9px; }
.legal-document { min-width: 0; padding: clamp(38px, 5vw, 68px); border: 1px solid #e5e8ea; border-radius: 12px; background: #fff; }
.legal-intro { padding-bottom: 8px; }
.legal-document section { scroll-margin-top: 92px; margin-top: 58px; padding-top: 52px; border-top: 1px solid #e7eaec; }
.legal-document h2 { margin: 0 0 32px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; font-size: clamp(27px, 2.7vw, 37px); line-height: 1.15; letter-spacing: -.035em; }
.legal-document h2 span { padding-top: 8px; color: #5aa3c7; font-size: 10px; font-weight: 720; letter-spacing: .08em; }
.legal-document h3 { margin: 40px 0 16px; font-size: 19px; line-height: 1.35; letter-spacing: -.015em; }
.legal-document p,
.legal-document li { color: #464d52; font-size: 15px; line-height: 1.92; }
.legal-document p { margin: 0 0 20px; }
.legal-document strong { color: #171a1c; font-weight: 700; }
.legal-document ul,
.legal-document ol { margin: 4px 0 24px; padding-left: 23px; display: grid; gap: 7px; }
.legal-document a { color: #278dbd; text-decoration: underline; text-decoration-color: rgba(39,141,189,.3); text-underline-offset: 3px; }
.legal-alert { margin: 28px 0 !important; padding: 22px 24px; border-left: 3px solid #62b2d9; border-radius: 0 8px 8px 0; background: #edf7fb; }
.legal-rule { margin: 20px 0; padding: 24px 26px; border-radius: 9px; background: #f5f7f8; }
.legal-rule > strong { display: block; margin-bottom: 13px; }
.legal-rule p:last-child,
.legal-rule ul:last-child { margin-bottom: 0; }
.legal-rule-danger { border: 1px solid #f1dfd7; background: #fff8f5; }
.legal-table-wrap { width: 100%; margin: 24px 0 28px; overflow-x: auto; border: 1px solid #e2e6e8; border-radius: 9px; -webkit-overflow-scrolling: touch; }
.legal-table-wrap table { width: 100%; min-width: 690px; border-collapse: collapse; background: #fff; }
.legal-table-wrap th,
.legal-table-wrap td { padding: 15px 16px; border-right: 1px solid #e5e8ea; border-bottom: 1px solid #e5e8ea; color: #52595e; font-size: 12px; line-height: 1.65; text-align: left; vertical-align: top; }
.legal-table-wrap th { color: #252a2d; background: #f4f6f7; font-weight: 680; }
.legal-table-wrap tr:last-child > * { border-bottom: 0; }
.legal-table-wrap tr > *:last-child { border-right: 0; }
.legal-contact-table { min-width: 620px !important; }
.legal-contact-table th { width: 128px; }
.rating-table td:first-child { min-width: 128px; }
.rating-badge { min-width: 35px; height: 25px; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 9px; font-weight: 760; vertical-align: middle; }
.rating-g { color: #267c60; background: #e6f5ef; }
.rating-pg { color: #a06c16; background: #fff3d5; }
.rating-r { color: #b44c4c; background: #fde9e9; }
.legal-signature { margin-top: 70px; padding: 31px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; border-top: 1px solid #dfe3e5; }
.legal-signature span { grid-column: 1 / -1; color: #90969a; font-size: 10px; letter-spacing: .1em; }
.legal-signature strong { font-size: 16px; }
.legal-signature small { align-self: end; color: #8a9094; font-size: 11px; }
.signin-standalone .signin-content footer a:hover { color: #268fca; }

@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 18px; }
  .legal-toc { padding: 14px; }
  .legal-document { padding: 42px; }
}

@media (max-width: 760px) {
  .site-shell > .legal-main { padding: 78px 10px calc(105px + env(safe-area-inset-bottom)); }
  .legal-hero { padding: 30px 22px; border-radius: 10px; }
  .legal-hero::after { display: none; }
  .legal-hero h1 { margin: 23px 0 18px; font-size: clamp(43px, 12.5vw, 58px); }
  .legal-hero > p { font-size: 13px; line-height: 1.65; }
  .legal-meta { margin-top: 24px; }
  .legal-meta > div { padding: 13px 5px 13px 0; }
  .legal-meta dt { font-size: 9px; }
  .legal-meta dd { font-size: 10px; }
  .legal-switch { width: 100%; margin-top: 23px; }
  .legal-switch a { min-width: 0; flex: 1; padding-inline: 8px; font-size: 11px; }
  .legal-layout { margin-top: 12px; grid-template-columns: 1fr; gap: 12px; }
  .legal-toc { position: static; max-height: none; padding: 12px; overflow: hidden; }
  .legal-toc > strong { margin-bottom: 8px; }
  .legal-toc nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .legal-toc nav::-webkit-scrollbar { display: none; }
  .legal-toc a { min-height: 36px; flex: 0 0 auto; grid-template-columns: auto auto; padding: 0 11px; border: 1px solid #e6e9eb; background: #fff; white-space: nowrap; }
  .legal-document { padding: 30px 21px; border-radius: 10px; }
  .legal-document section { margin-top: 43px; padding-top: 39px; scroll-margin-top: 78px; }
  .legal-document h2 { margin-bottom: 25px; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; font-size: 26px; }
  .legal-document h2 span { padding-top: 6px; font-size: 9px; }
  .legal-document h3 { margin: 32px 0 13px; font-size: 18px; }
  .legal-document p,
  .legal-document li { font-size: 14px; line-height: 1.84; }
  .legal-document p { margin-bottom: 18px; }
  .legal-document ul,
  .legal-document ol { padding-left: 20px; }
  .legal-alert { padding: 18px 17px; }
  .legal-rule { padding: 20px 18px; }
  .legal-table-wrap { margin: 20px 0 24px; }
  .legal-table-wrap table { min-width: 650px; }
  .legal-signature { margin-top: 52px; grid-template-columns: 1fr; }
  .legal-signature span { grid-column: 1; }
  .legal-signature small { align-self: auto; }
}

@media (max-width: 400px) {
  .legal-hero { padding-inline: 18px; }
  .legal-hero h1 { font-size: 42px; }
  .legal-hero-top > span { font-size: 9px; }
  .legal-document { padding-right: 18px; padding-left: 18px; }
}
