/* HNHOT shared shell and primitives. */

@import url("/static/design-tokens.css?v=20260730-mobile1");

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
}

html, body {
touch-action: pan-x pan-y;
}

@media (hover: none) and (pointer: coarse) {
html, body {
touch-action: pan-x pan-y !important;
}

body {
-ms-content-zooming: none;
}
}

body {
margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.58;
}

a {
color: inherit; text-decoration: none;
}

button, input {
font: inherit;
}

[hidden] {
display: none !important;
}

.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
outline: 2px solid var(--accent); outline-offset: 3px;
}

.radar-shell {
display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.primary-nav {
position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  padding: 28px 12px 20px;
  flex-direction: column;
  color: var(--nav-text);
  background: var(--nav);
}

.brand {
display: grid;
  padding: 0 10px 31px;
  color: var(--on-accent);
  line-height: 1.1;
}

.brand-wordmark {
display: block; height: 38px;
}

.brand-wordmark img {
display: block; width: auto; height: 100%;
}

.brand-tagline {
margin-top: 7px; color: var(--nav-muted); font-family: var(--font-serif); font-size: 10px; font-weight: 500; letter-spacing: .12em;
}

.primary-nav nav {
display: grid; overflow-y: auto; gap: 4px; scrollbar-width: none;
}

.primary-nav nav::-webkit-scrollbar {
display: none;
}

.primary-nav nav a {
display: flex; min-height: 42px; margin-inline: 4px; padding: 9px 11px; align-items: center; gap: 11px; border-radius: 7px; color: var(--nav-muted);
}

.primary-nav nav a:hover, .primary-nav nav a.active {
color: var(--on-accent); background: color-mix(in srgb, var(--on-accent) 8%, transparent);
}

.primary-nav nav a.mobile-only {
display: none;
}

.nav-group-label {
margin: 14px 11px 4px; color: var(--nav-subtle); font-size: 9px; font-weight: 750; letter-spacing: .14em;
}

.nav-group-label:first-child {
margin-top: 0;
}

.nav-icon {
width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.mobile-meta {
display: none;
}

.mobile-title, .mobile-copy {
display: none;
}

.desktop-tools {
margin-top: auto; padding: 12px 8px 0;
}

.theme-control {
color: var(--ink);
}

.desktop-theme-control {
color: var(--nav-muted);
}

.desktop-theme-control .theme-control-copy {
display: none;
}

.theme-control-copy {
display: flex; min-width: 0; align-items: center; gap: 10px;
}

.theme-control-copy img {
display: block; width: 18px; height: 18px;
}

.theme-control-copy strong {
font-size: 12px; font-weight: 680;
}

.theme-options {
display: inline-grid; padding: 3px; grid-template-columns: repeat(3, 32px); gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 58%, transparent);
}

.theme-options button {
display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer;
}

.theme-options button:hover {
color: var(--ink);
}

.theme-options button.active {
color: var(--ink); background: var(--paper); box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 18%, transparent);
}

.theme-options .nav-icon {
width: 16px; height: 16px;
}

.desktop-theme-control .theme-options {
width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); border-color: var(--nav-line); background: color-mix(in srgb, var(--nav) 70%, var(--paper));
}

.desktop-theme-control .theme-options button {
width: 100%; height: 26px; border-radius: 999px;
}

.desktop-theme-control .theme-options .nav-icon {
width: 14px; height: 14px;
}

.content-shell {
width: min(1040px, 100%); padding: 42px 54px 90px;
}

.page-header {
display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}

.page-header h1 {
margin: 2px 0 2px; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 36px; line-height: 1.15; letter-spacing: -.02em;
}

.page-header p {
margin: 0; color: var(--muted); font-size: 13px;
}

.compact-page-header {
align-items: center; padding-bottom: 0; border-bottom: 0;
}

.compact-page-header h1 {
margin: 0; color: var(--ink); font: 700 20px/1.3 var(--font-serif); letter-spacing: 0;
}

.desktop-page-header > div {
min-width: 0;
}

.explore-page-header > div {
min-width: 0;
}

.explore-stats {
display: flex; margin: 16px 0 0; flex-wrap: wrap;
}

.explore-stats div {
display: grid; min-width: 112px; padding: 0 18px; border-left: 1px solid var(--line);
}

.explore-stats div:first-child {
padding-left: 0; border-left: 0;
}

.explore-stats dt {
order: 2; margin-top: 3px; color: var(--muted); font-size: 10px;
}

.explore-stats dd {
order: 1; margin: 0; color: var(--ink); font: 800 20px/1.1 Georgia, "Noto Serif CJK SC", serif;
}

.explore-section-heading {
display: flex; margin-top: 28px; padding: 0 2px 12px; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line);
}

.explore-section-heading h2 {
margin: 3px 0 0; font: 700 23px/1.3 Georgia, "Noto Serif CJK SC", serif;
}

.explore-section-heading p {
margin: 0; color: var(--muted); font-size: 10px;
}

.eyebrow {
color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}

.site-search {
display: flex; width: min(310px, 40vw); height: 40px; padding: 0 12px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-medium); background: var(--paper);
}

.site-search svg {
width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7;
}

.site-search input {
min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent;
}

.search-status {
display: flex; min-height: 48px; margin: 16px 0; padding: 10px 13px; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--accent-soft) 58%, transparent);
}

.search-status p {
margin: 0; color: var(--ink); font-size: 12px;
}

.search-status button {
min-height: 34px; padding: 6px 11px; flex: 0 0 auto; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700;
}

.search-status button:hover {
color: var(--on-accent); background: var(--accent);
}

.date-group {
margin: 0 0 30px;
}

.date-group > header {
display: flex; padding: 0 2px 8px; align-items: baseline; gap: 10px;
}

.date-group > header h2 {
margin: 0; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 18px;
}

.date-group > header span {
color: var(--muted); font-size: 12px;
}

.date-group-header .date-weekday {
color: var(--ink); font-weight: 650;
}

.story-list {
overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
}

.story-card {
display: grid; grid-template-columns: 28px minmax(0, 1fr) 42px; gap: 11px; padding: 14px 13px; align-items: start; border-bottom: 1px solid var(--line-soft);
}

.story-card:last-child {
border-bottom: 0;
}

.scope-badge {
display: grid; width: 25px; height: 25px; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; place-items: center; font: 800 11px Georgia, serif;
}

.scope-national {
color: var(--scope-national);
}

.scope-hainan {
color: var(--scope-hainan);
}

.scope-domestic {
color: var(--scope-domestic);
}

.scope-mixed {
color: var(--scope-mixed);
}

.scope-foreign {
color: var(--scope-foreign);
}

.scope-pending {
color: var(--muted);
}

.story-copy {
min-width: 0;
}

.story-copy h3 {
margin: 0; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 16px; font-weight: 700; line-height: 1.48;
}

.reader-signal-badges {
display: inline-flex; margin-left: 7px; align-items: center; gap: 4px; vertical-align: -.18em;
}

.reader-signal-badges:empty {
display: none;
}

.reader-signal-badge {
display: inline-grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center;
}

.signal-icon {
display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.signal-danger { color: var(--accent); }
.signal-health { color: var(--scope-hainan); }
.signal-happy { color: var(--scope-domestic); }
.signal-money { color: var(--scope-national); }

.story-copy p {
display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}

.continuation-note {
display: inline-block; margin-top: 7px; color: var(--accent); font-size: 10px; font-weight: 700;
}

.story-meta {
min-height: 0; margin-top: 4px;
}

.legacy-note {
color: var(--muted); font-size: 10px;
}

.bookmark-button {
display: grid; width: 38px; height: 38px; padding: 10px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; place-items: center;
}

.bookmark-button:hover {
color: var(--accent); background: var(--accent-soft);
}

.bookmark-button.is-starred {
color: var(--accent);
}

.bookmark-button svg {
width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round;
}

.bookmark-button.is-starred svg {
fill: currentColor;
}

.empty-state {
padding: 18px 2px; color: var(--muted);
}

.all-page .page-header {
margin-bottom: 6px;
}

.section-pdf-link, .section-pdf-menu summary {
display: inline-flex; min-height: 30px; padding: 4px 9px; align-items: center; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 52%, transparent); font-size: 10px; font-weight: 750; letter-spacing: .03em;
}

.section-pdf-link:hover, .section-pdf-menu summary:hover {
border-color: var(--accent);
}

.section-pdf-menu {
position: relative;
}

.section-pdf-menu summary {
cursor: pointer; list-style: none;
}

.section-pdf-menu summary::-webkit-details-marker {
display: none;
}

.section-pdf-menu > div {
position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: grid; min-width: 94px; padding: 5px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow);
}

.section-pdf-menu > div a {
padding: 7px 9px; border-radius: 5px; color: var(--ink); white-space: nowrap;
}

.section-pdf-menu > div a:hover {
color: var(--accent); background: var(--accent-soft);
}

.back-to-top {
position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--on-accent)); border-radius: 50%; color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow);
}

.back-to-top .nav-icon {
width: 18px; height: 18px; transform: rotate(-90deg);
}

.knowledge-empty {
margin-top: 24px; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper);
}

.knowledge-object-meta {
margin: 18px 0 0; color: var(--muted); font-size: 12px;
}

.activity-detail strong {
margin-right: 6px; color: var(--accent);
}

.activity-list {
display: grid;
}

.back-link {
display: inline-block; margin-bottom: 26px; color: var(--muted);
}

/* VISUAL-TODO: restore the full visual system before polishing the four signal treatments. */
.signal-list {
overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
}

.signal-card {
display: grid; padding: 17px 18px; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 13px; border-bottom: 1px solid var(--line-soft);
}

.signal-card:last-child {
border-bottom: 0;
}

.signal-card-icon {
width: 29px; height: 29px; margin-top: 1px;
}

.signal-card-copy {
min-width: 0;
}

.signal-label {
display: block; color: currentColor; font-size: 9px; font-weight: 800; letter-spacing: .12em;
}

.signal-card-copy p {
margin: 4px 0 7px; color: var(--ink); font: 700 16px/1.62 Georgia, "Noto Serif CJK SC", serif;
}

.signal-card-copy a {
color: var(--muted); font-size: 10px;
}

.signal-card-copy a:hover {
color: currentColor;
}

.external-link-icon {
width: 17px; height: 17px; margin-left: 7px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.simple-page {
max-width: 900px;
}

.update-dot {
width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent);
}

.nav-update-dot {
margin-left: auto;
}

@media (max-width: 760px) {
.radar-shell {
display: block;
}

.primary-nav {
position: relative; top: auto; height: calc(57px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); flex-direction: row; align-items: center; border-bottom: 1px solid var(--line-soft);
}

.brand {
padding: 0;
}

.brand-wordmark {
display: block; height: 28px;
}

.brand-tagline {
display: none;
}

.mobile-meta {
display: block; max-width: 55%; margin-left: auto; overflow: hidden; color: var(--nav-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap;
}

.mobile-nav-only-shell .primary-nav {
position: static; height: 0; padding: 0; border: 0; background: transparent;
}

.mobile-nav-only-shell .primary-nav > .brand, .mobile-nav-only-shell .primary-nav > .mobile-meta {
display: none;
}

.mobile-nav-only-shell > .content-shell {
padding-top: calc(19px + env(safe-area-inset-top));
}

.primary-nav nav {
position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); color: var(--ink); background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(18px);
}

.primary-nav nav .nav-group-label, .primary-nav nav a.desktop-only {
display: none;
}

.primary-nav nav a.mobile-only {
display: flex;
}

.primary-nav nav a {
min-height: 50px; margin-inline: 0; padding: 4px 2px; flex-direction: column; justify-content: center; gap: 1px; border-radius: 0; color: var(--muted); font-size: 10px;
}

.primary-nav nav a:hover, .primary-nav nav a.active {
color: var(--accent); background: transparent;
}

.feature-shell .primary-nav {
position: static; height: 0; padding: 0; border: 0; background: transparent;
}

.feature-shell .primary-nav > .brand, .feature-shell .primary-nav > .mobile-meta {
display: none;
}

.nav-icon {
width: 20px; height: 20px;
}

.desktop-tools {
display: none;
}

.content-shell {
width: 100%; padding: 19px 16px 36px;
}

.page-header {
align-items: flex-start; flex-direction: column; gap: 15px; padding-bottom: 17px;
}

.page-header h1 {
font-size: 30px;
}

.compact-page-header {
gap: 12px; padding-bottom: 0;
}

.compact-page-header h1 {
font-size: 20px;
}

.mobile-nav-only-shell .desktop-page-header, .all-page .desktop-page-header {
gap: 12px; padding-bottom: 0; border-bottom: 0;
}

.mobile-nav-only-shell .desktop-page-header .eyebrow, .all-page .desktop-page-header .eyebrow {
display: none;
}

.mobile-nav-only-shell .desktop-page-header h1, .all-page .desktop-page-header h1 {
margin: 0; color: var(--ink); font: 700 20px/1.3 var(--font-serif); letter-spacing: 0;
}

.explore-page-header {
gap: 18px;
}

.explore-page-header > div {
width: 100%;
}

.explore-stats {
display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr));
}

.explore-stats div {
min-width: 0; padding: 0 10px;
}

.explore-stats dd {
overflow-wrap: anywhere; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}

.explore-stats dt {
font-size: 9px; line-height: 1.35;
}

.explore-section-heading {
margin-top: 22px; align-items: flex-start;
}

.explore-section-heading h2 {
font-size: 20px;
}

.site-search {
width: 100%;
}

.story-card {
grid-template-columns: 25px minmax(0, 1fr) 34px; gap: 8px; padding: 12px 8px;
}

.story-copy h3 {
font-size: 14px;
}

.story-copy p {
font-size: 12px; -webkit-line-clamp: 2;
}

.bookmark-button {
width: 34px; height: 34px; padding: 9px;
}

.date-group > header h2 {
font-size: 16px;
}

.date-group-header .date-weekday {
margin-left: auto;
}

.back-to-top {
right: 14px; bottom: calc(75px + env(safe-area-inset-bottom));
}

.is-horizontally-scrollable:not(.is-scroll-end) {
-webkit-mask-image: linear-gradient(to right, var(--mask-solid) 0, var(--mask-solid) calc(100% - 42px), transparent 100%); mask-image: linear-gradient(to right, var(--mask-solid) 0, var(--mask-solid) calc(100% - 42px), transparent 100%);
}

.search-status {
align-items: flex-start; flex-direction: column; gap: 8px;
}

.search-status button {
min-height: 44px;
}

.desktop-title, .desktop-copy {
display: none;
}

.mobile-title, .mobile-copy {
display: inline;
}

.theme-options {
grid-template-columns: repeat(3, 34px);
}

.theme-options button {
width: 34px; height: 34px;
}
}

.preview-notice {
margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 11px;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
scroll-behavior: auto !important; transition: none !important;
}
}
