:root {
  color-scheme: light dark;
  --bg: #fbfcff;
  --paper: #ffffff;
  --surface: #f1f4fb;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #dce2ee;
  --accent: #245d54;
  --accent-2: #0078d4;
  --accent-3: #00a19a;
  --header: rgba(251, 252, 255, 0.86);
  --shadow: 0 22px 60px rgba(24, 39, 75, 0.12);
  --font: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[hidden] { display: none !important; }
::selection { background: #c7e4d9; color: #123d33; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.desk-intro input { width: 100%; padding: 0.8rem; margin-top: 0.5rem; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.search-status { padding-inline: clamp(1rem, 4vw, 4rem); color: var(--muted); }
.article-content { overflow-wrap: anywhere; }
.article-content pre { overflow-x: auto; max-width: 100%; }
.article-content img { max-width: 100%; height: auto; }
.article-origin { margin-top: 3rem; overflow-wrap: anywhere; font-size: 0.875rem; color: var(--muted); }
.archive-list { margin: 0 auto 4rem; max-width: 80rem; padding-inline: 2rem; }
.archive-list li { margin-block: 1rem; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080b13;
  --paper: #101624;
  --surface: #151d2f;
  --text: #f6f8ff;
  --muted: #aeb9d4;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #918dff;
  --accent-2: #58b8ff;
  --accent-3: #32d6c8;
  --header: rgba(8, 11, 19, 0.84);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  padding: 0.5rem clamp(0.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.footer-links,
.topic-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.55rem;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-copy strong {
  font-size: 0.9rem;
}

.brand-copy span,
.main-nav,
.footer-links,
.article-meta {
  color: var(--muted);
}

.brand-copy span {
  font-size: 0.68rem;
}

.main-nav {
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  font-size: 0.86rem;
}

.main-nav a,
.footer-links a,
.topic-strip a {
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.topic-strip a:hover {
  color: var(--accent-2);
}

.theme-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

.hero,
.blog-hero {
  position: relative;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem);
  overflow: hidden;
}

.hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.85fr);
  min-height: clamp(560px, 78svh, 760px);
}

.blog-hero {
  grid-template-columns: minmax(0, 0.72fr) minmax(22rem, 1fr) minmax(17rem, 0.44fr);
  align-items: stretch;
  min-height: calc(100svh - 72px);
  background:
    linear-gradient(90deg, var(--paper) 0 58%, transparent 58%),
    radial-gradient(circle at 68% 22%, rgba(0, 161, 154, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(101, 79, 240, 0.08), transparent);
}

.hero-copy {
  max-width: 48rem;
  animation: riseIn 640ms ease both;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 1.3rem;
  max-width: 52rem;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-head p,
.editorial-band p,
.article-list p,
.topic-grid p,
.article-description,
.article-content p,
.article-content li {
  color: var(--muted);
  line-height: 1.85;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 40rem;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.blog-hero .hero-copy {
  align-self: end;
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.blog-hero h1 {
  margin-bottom: 1rem;
}

.lead-story,
.issue-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper), transparent 4%);
  box-shadow: var(--shadow);
}

.lead-story {
  align-self: center;
  min-height: min(35rem, 68svh);
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.72)),
    linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: #fff;
  overflow: hidden;
  animation: riseIn 760ms ease 120ms both;
}

.lead-story a {
  display: grid;
  align-content: end;
  min-height: inherit;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.lead-story span,
.issue-label {
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-story h2 {
  margin: 1rem 0;
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  line-height: 1.02;
}

.lead-story p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.issue-panel {
  align-self: end;
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  animation: riseIn 760ms ease 220ms both;
}

.issue-panel ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: issue;
}

.issue-panel li {
  counter-increment: issue;
}

.issue-panel a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.issue-panel a::before {
  content: counter(issue, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-visual {
  position: relative;
  min-height: 25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(101, 79, 240, 0.14), rgba(0, 161, 154, 0.12)),
    repeating-linear-gradient(0deg, transparent, transparent 33px, var(--line) 34px),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual > span {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 36px var(--accent-3);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-visual > span:nth-child(1) { left: 14%; top: 22%; }
.hero-visual > span:nth-child(2) { left: 54%; top: 48%; animation-delay: 0.25s; }
.hero-visual > span:nth-child(3) { right: 16%; bottom: 20%; animation-delay: 0.5s; }

.paper-plane {
  position: absolute;
  inset: 13%;
  display: grid;
  align-content: center;
  gap: 0.8rem;
  transform: rotate(-4deg);
}

.paper-plane p {
  margin: 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 800;
  animation: floatLine 5s ease-in-out infinite;
}

.paper-plane p:nth-child(2) { animation-delay: 0.25s; }
.paper-plane p:nth-child(3) { animation-delay: 0.5s; }
.paper-plane p:nth-child(4) { animation-delay: 0.75s; }

.news-home {
  padding: clamp(0.75rem, 1.8vw, 1.35rem) clamp(0.75rem, 3.2vw, 2.75rem) clamp(1rem, 2vw, 1.5rem);
}

.news-home-head {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(0.8rem, 2vw, 1.5rem);
  align-items: end;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--text);
}

.news-home-head h1 {
  margin: 0;
  max-width: 46rem;
  font-size: clamp(1.55rem, 2.55vw, 2.35rem);
  line-height: 1.08;
}

.news-home-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.36fr) minmax(14.5rem, 0.56fr);
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  align-items: start;
  padding-top: 0.65rem;
}

.section-kicker,
.block-head h2,
.ranking-box h2,
.section-title h2 {
  margin: 0;
}

.section-kicker {
  padding-bottom: 0.42rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-story {
  display: grid;
  gap: 0.45rem;
}

.top-story > a {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem 0 0.72rem;
  border-bottom: 1px solid var(--line);
}

.top-story h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.05vw, 1.85rem);
  line-height: 1.12;
}

.top-story p,
.news-feed p,
.article-rows p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.article-tag,
.news-feed span,
.article-rows span,
.compact-feed span {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.story-links,
.rank-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-links a,
.rank-list a {
  display: block;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.32;
}

.story-links a:hover,
.rank-list a:hover,
.news-feed a:hover h3,
.article-rows a:hover h3,
.compact-feed a:hover h3 {
  color: var(--accent-2);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.block-head h2,
.ranking-box h2 {
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
}

.block-head a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.news-feed,
.article-rows,
.compact-feed {
  display: grid;
}

.news-feed article,
.article-rows article,
.compact-feed article {
  border-bottom: 1px solid var(--line);
}

.news-feed a,
.article-rows a {
  display: grid;
  gap: 0.28rem;
  padding: 0.5rem 0;
}

.news-feed h3,
.article-rows h3 {
  margin: 0;
  font-size: clamp(0.94rem, 1.25vw, 1.04rem);
  line-height: 1.28;
}

.side-panel {
  display: grid;
  gap: 0.65rem;
}

.ranking-box {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ranking-box .block-head {
  margin-bottom: 0.3rem;
}

.rank-list {
  counter-reset: rank;
}

.rank-list li {
  counter-increment: rank;
}

.rank-list a {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.4rem;
}

.rank-list a::before {
  content: counter(rank, decimal-leading-zero);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.compact-box {
  display: grid;
  gap: 0.7rem;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.channel-list a {
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.channel-section,
.channel-grid {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 3.2vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 0.2rem;
}

.article-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3vw, 2rem);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.compact-feed a {
  display: grid;
  gap: 0.18rem;
  padding: 0.45rem 0;
}

.compact-feed h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.32;
}

.topic-strip {
  flex-wrap: wrap;
  gap: 0.38rem;
  padding: 0.5rem clamp(0.75rem, 3.2vw, 2.75rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.topic-strip a {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.latest,
.editorial-band,
.page-head,
.topic-grid,
.article-shell {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem);
}

.section-head h2,
.page-head h1,
.editorial-band h2 {
  margin-bottom: 1rem;
  max-width: 58rem;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-head h1 {
  margin-bottom: 0.85rem;
  max-width: 50rem;
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
}

.article-list article,
.topic-grid article {
  min-height: 19rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-list article:hover,
.topic-grid article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-2), var(--line) 35%);
  box-shadow: var(--shadow);
}

.article-list a,
.topic-grid article {
  display: grid;
  align-content: start;
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.article-list span,
.topic-grid span {
  color: var(--accent-2);
  font-weight: 900;
}

.article-list h3,
.topic-grid h2 {
  margin: 1.2rem 0 0.9rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.featured-article {
  background:
    linear-gradient(135deg, rgba(101, 79, 240, 0.13), rgba(0, 161, 154, 0.09)),
    var(--paper) !important;
}

.article-directory {
  display: grid;
  gap: 2rem;
  padding: 0 clamp(1rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.directory-summary {
  display: grid;
  gap: 0.5rem;
  max-width: 760px;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.directory-summary span,
.directory-group-head span {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directory-summary strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.directory-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.directory-group {
  display: grid;
  grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.directory-group-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-list li {
  min-width: 0;
}

.directory-list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.directory-list a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-2), var(--line) 35%);
  box-shadow: var(--shadow);
}

.directory-list span,
.directory-list small {
  color: var(--muted);
  font-weight: 800;
}

.directory-list strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-teaser,
.lead-form-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}

.contact-teaser h2,
.lead-form-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.contact-teaser p,
.lead-form-copy p,
.lead-form-note,
.lead-form-status {
  color: var(--muted);
  line-height: 1.8;
}

.lead-form-band {
  grid-template-columns: minmax(0, 0.72fr) minmax(20rem, 1.28fr);
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-form label,
.lead-form-message {
  display: grid;
  gap: 0.45rem;
}

.lead-form span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--accent-2);
}

.lead-form textarea {
  resize: vertical;
}

.lead-form-trap {
  display: none;
}

.lead-form-status[data-state="error"] {
  color: #dc2626;
}

.lead-form-status[data-state="success"] {
  color: var(--accent-3);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.article-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.article-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.article-meta span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.article-content {
  max-width: 760px;
  padding-top: 2.5rem;
}

.article-content h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.article-content a {
  color: var(--accent-2);
  font-weight: 800;
}

.article-content li + li {
  margin-top: 0.45rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand-lockup img {
  width: 2rem;
  height: 2rem;
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.footer-icp {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .blog-hero,
  .news-home-head,
  .news-layout,
  .article-list,
  .directory-group,
  .directory-list,
  .editorial-band,
  .topic-grid,
  .contact-teaser,
  .lead-form-band,
  .lead-form-grid,
  .article-rows,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: auto;
    background:
      radial-gradient(circle at 80% 18%, rgba(0, 161, 154, 0.14), transparent 20rem),
      var(--bg);
  }

  .blog-hero .hero-copy {
    align-self: start;
    padding-bottom: 0;
  }

  .lead-story {
    min-height: 28rem;
  }

  .issue-panel {
    align-self: stretch;
  }

  .news-home-head {
    align-items: start;
  }

  .news-home {
    padding-top: 0.85rem;
  }

  .news-layout {
    gap: 0.85rem;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) and (max-width: 1220px) {
  .news-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  }

  .side-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 50px;
    padding: 0.5rem 0.75rem;
  }

  .brand-mark {
    width: 1.7rem;
    height: 1.7rem;
  }

  .brand-copy span {
    display: none;
  }

  .news-home {
    padding: 0.7rem 0.75rem 0.9rem;
  }

  .news-home-head {
    padding-bottom: 0.55rem;
  }

  .news-home-head h1 {
    font-size: 1.42rem;
  }

  .top-story h2 {
    font-size: 1.22rem;
  }

  .news-home-head p:not(.eyebrow),
  .top-story p,
  .news-feed p,
  .article-rows p {
    font-size: 0.84rem;
  }

  .news-feed h3,
  .article-rows h3 {
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 20rem;
  }

  .directory-list a {
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }

  .directory-list small {
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.7);
    opacity: 1;
  }
}

@keyframes floatLine {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0.8rem);
  }
}

/* IoTPaper newsroom: dense, source-forward information architecture. */
.newsroom-masthead,
.desk-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: 3rem;
  align-items: end;
  padding: 3.5rem max(1rem, 4vw) 2rem;
  border-bottom: 3px solid var(--text);
}

.newsroom-masthead h1,
.desk-head h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 4.75rem;
  line-height: 1.02;
  font-weight: 800;
}

.masthead-note,
.desk-intro {
  display: grid;
  gap: 1.25rem;
}

.masthead-note > p,
.desk-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.edition-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.edition-tabs a {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
}

.edition-tabs a + a {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.edition-tabs strong {
  color: #c7352c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.edition-tabs span,
.format-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.front-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(15rem, 0.42fr);
  border-bottom: 1px solid var(--line);
}

.lead-wire,
.original-desk,
.briefing-desk {
  min-width: 0;
  padding: 1.5rem max(1rem, 2.2vw) 2rem;
}

.original-desk,
.briefing-desk {
  border-left: 1px solid var(--line);
}

.section-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--text);
}

.section-rule .eyebrow,
.briefing-desk > .eyebrow {
  margin: 0;
}

.section-rule > a,
.text-link {
  color: #c7352c;
  font-size: 0.82rem;
  font-weight: 900;
}

.lead-wire article,
.original-desk article {
  padding-top: 1.25rem;
}

.lead-wire article > p:first-child,
.original-desk article > p:first-child,
.source-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.lead-wire h2,
.original-desk h2 {
  margin: 0.7rem 0 0.9rem;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 1.85rem;
  line-height: 1.25;
}

.lead-wire article > p,
.original-desk article > p,
.briefing-desk > p {
  color: var(--muted);
  line-height: 1.65;
}

.briefing-desk h2 {
  margin: 0.55rem 0 0.65rem;
  font-size: 1.35rem;
}

.feed-stack {
  display: grid;
  margin: 1rem 0;
  border-top: 1px solid var(--line);
}

.feed-stack a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.feed-stack span {
  color: #c7352c;
  font-weight: 900;
}

.wire-preview,
.original-preview {
  padding: 2rem max(1rem, 4vw) 2.75rem;
  border-bottom: 1px solid var(--line);
}

.section-rule.wide {
  align-items: end;
  margin-bottom: 0.65rem;
}

.section-rule.wide h2 {
  margin: 0.2rem 0 0;
  font-size: 1.7rem;
}

.wire-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wire-preview-list article {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.wire-preview-list article:nth-child(odd) {
  padding-right: 1.25rem;
}

.wire-preview-list article:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.wire-preview-list time,
.wire-preview-list span,
.original-preview-grid span,
.original-preview-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.wire-preview-list h3,
.original-preview-grid h3 {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.42;
}

.wire-preview-list a:hover,
.original-preview-grid a:hover h3,
.wire-item h2 a:hover,
.blog-ledger a:hover h2 {
  color: #c7352c;
}

.original-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.original-preview-grid article {
  border-bottom: 1px solid var(--line);
}

.original-preview-grid article:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
}

.original-preview-grid a {
  display: block;
  min-height: 15rem;
  padding: 1rem;
}

.original-preview-grid p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.desk-head h1 {
  font-size: 3.5rem;
}

.format-links {
  display: flex;
  gap: 1.25rem;
}

.format-links a {
  color: #c7352c;
}

.wire-list,
.blog-ledger {
  padding: 0 max(1rem, 4vw) 3rem;
}

.wire-item {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 2rem;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.wire-meta {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wire-meta a {
  color: #c7352c;
}

.wire-item h2,
.blog-ledger h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.wire-item p,
.blog-ledger p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.source-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #c7352c;
}

.source-register {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem max(1rem, 4vw) 3rem;
  border-top: 3px solid var(--text);
}

.source-register h2 {
  margin: 0;
}

.source-register ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-register li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.source-register span {
  color: var(--muted);
  font-size: 0.75rem;
}

.blog-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-ledger article {
  border-bottom: 1px solid var(--line);
}

.blog-ledger article:nth-child(even) {
  border-left: 1px solid var(--line);
}

.blog-ledger a {
  display: block;
  min-height: 12.5rem;
  padding: 1.25rem;
}

.blog-ledger-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.blog-ledger small {
  color: #c7352c;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .newsroom-masthead,
  .desk-head,
  .front-desk,
  .source-register {
    grid-template-columns: 1fr;
  }

  .newsroom-masthead h1 {
    font-size: 3.5rem;
  }

  .desk-head h1 {
    font-size: 2.75rem;
  }

  .front-desk > * {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .original-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .original-preview-grid article:nth-child(odd) {
    border-left: 0;
  }

  .original-preview-grid article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .source-register ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0.25rem;
  }

  .newsroom-masthead,
  .desk-head {
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .newsroom-masthead h1 {
    font-size: 2.65rem;
  }

  .desk-head h1 {
    font-size: 2.25rem;
  }

  .wire-preview-list,
  .original-preview-grid,
  .blog-ledger {
    grid-template-columns: 1fr;
  }

  .wire-preview-list article:nth-child(even),
  .original-preview-grid article:nth-child(even),
  .blog-ledger article:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .wire-preview-list article:nth-child(odd) {
    padding-right: 0;
  }

  .wire-item {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .wire-meta {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
  }
}
