:root {
  --bg-page: #fbfbf7;
  --bg-surface: #ffffff;
  --bg-muted: #f7f7f2;
  --bg-soft: #f2f2f2;
  --text-primary: #222222;
  --text-secondary: #6a6a6a;
  --text-tertiary: #8c8c8c;
  --accent: #ff385c;
  --accent-strong: #e00b41;
  --border: rgba(34, 34, 34, 0.1);
  --shadow-card: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px, rgba(0, 0, 0, 0.1) 0 4px 8px;
  --shadow-hover: rgba(0, 0, 0, 0.08) 0 4px 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 56, 92, 0.07), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfbf7 100%);
  color: var(--text-primary);
  font-family: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.layout {
  display: grid;
  gap: 24px;
  min-width: 0;
}

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

img {
  max-width: 100%;
}

input,
button {
  font: inherit;
}

.site-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
  min-width: 0;
}

.site-header,
.tag-section,
.message-section,
.panel,
.pagination,
.hero-copy,
.hero-panel,
.card {
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.site-header {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  min-width: 0;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brandmark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 56, 92, 0.08);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brandmark-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brandmark-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brandmark-copy span {
  color: var(--text-secondary);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.topbar-inline-form {
  margin: 0;
}

.topbar-inline-form .nav-link {
  border: none;
  cursor: pointer;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.nav-link-secondary {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.nav-link:hover,
.card-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.nav-link:focus-visible,
.card-cta:focus-visible,
.search-box button:focus-visible,
.pagination a:focus-visible,
.tag-item:focus-visible,
.card-link:focus-visible,
.asset-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 22px;
  padding-top: 22px;
  min-width: 0;
}

.search-shell-copy,
.search-box,
.content-stack,
.hero,
.hero-detail,
.hero-copy,
.hero-panel,
.tag-section,
.message-section,
.panel,
.card,
.pagination,
.detail-grid,
.detail-main,
.detail-side {
  min-width: 0;
}

.search-shell-copy h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.search-shell-copy p:last-child {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.search-box {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border-radius: 32px;
  background: var(--bg-muted);
}

.search-box input,
.pagination-jump input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #ffffff;
  color: var(--text-primary);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box input {
  min-height: 64px;
  padding: 0 22px;
  font-size: 15px;
}

.search-box input::placeholder {
  color: #929292;
}

.search-box input:focus,
.pagination-jump input:focus {
  border-color: rgba(255, 56, 92, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
  outline: none;
}

.search-box button,
.pagination-jump button {
  border: none;
  border-radius: 20px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.search-box button {
  min-width: 136px;
  min-height: 64px;
  padding: 0 24px;
}

.search-box button:hover,
.pagination-jump button:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-hover);
}

.content-stack {
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.92fr);
  gap: 20px;
}

.hero-detail {
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
  gap: 16px;
}

.hero-copy,
.hero-panel,
.panel,
.card,
.pagination {
  border-radius: 32px;
  border: 1px solid var(--border);
}

.hero-copy {
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-detail .hero-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-detail .hero-copy {
  padding: 24px 28px;
  gap: 10px;
}

.hero-detail .eyebrow {
  margin-bottom: 4px;
}

.hero-detail .hero-text {
  display: none;
}

.hero-text {
  margin-top: auto;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 56, 92, 0.04), rgba(255, 56, 92, 0)),
    #ffffff;
}

.hero-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-panel-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.hero-panel-compact {
  justify-content: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.stat-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-muted);
}

.stat-card span {
  display: block;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.stat-card-text {
  font-size: 15px;
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.tag-section,
.message-section {
  padding: 22px;
  border-radius: 32px;
  border: 1px solid var(--border);
}

.tag-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tag-item-home {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.tag-item:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: rgba(34, 34, 34, 0.18);
  box-shadow: var(--shadow-hover);
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 18px 16px;
  min-height: 100%;
  border-radius: 24px;
  border-color: rgba(34, 34, 34, 0.08);
  box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: none;
  box-shadow: rgba(0, 0, 0, 0.025) 0 0 0 1px, rgba(0, 0, 0, 0.06) 0 6px 14px;
  border-color: rgba(34, 34, 34, 0.12);
}

.card-head {
  margin-bottom: 10px;
}

.card-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.card-link {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.card-link:hover {
  color: var(--accent-strong);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: 2px;
}

.meta span {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.meta span + span::before {
  content: "·";
  margin: 0 8px;
  color: rgba(34, 34, 34, 0.28);
}

.meta-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.meta-detail-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(34, 34, 34, 0.03);
  border: 1px solid rgba(34, 34, 34, 0.05);
}

.meta-detail-item dt {
  margin: 0 0 6px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-detail-item dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.card-snippet,
.summary-text {
  color: var(--text-secondary);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.card-snippet {
  margin: 14px 0 0;
  flex: 1;
  min-height: calc(1.85em * 4);
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 34, 34, 0.06);
}

.match-source {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 56, 92, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  border: none;
  cursor: pointer;
}

.card-footer .card-cta {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.card-footer .card-cta:hover {
  color: var(--text-primary);
  box-shadow: none;
}

.card-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.panel {
  padding: 24px;
}

.auth-panel {
  width: min(100%, 520px);
  margin: 0 auto;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.auth-form button {
  min-height: 48px;
  border: none;
  border-radius: 18px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-error {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

.ops-panel {
  display: grid;
  gap: 16px;
}

.ops-table-shell {
  overflow-x: auto;
}

.ops-filter-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-table {
  margin: 0;
}

.ops-empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.ops-action-form {
  display: flex;
}

.ops-inline-form {
  display: inline-flex;
}

.ops-inline-actions {
  display: inline-flex;
  gap: 8px;
}

.ops-inline-button {
  min-height: 32px;
  padding: 0 12px;
  margin-left: 0;
  font-size: 13px;
}

.ops-danger-button {
  background: #8e1538;
}

.ops-notice {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  font-size: 14px;
}

.ops-notice strong {
  font-size: 15px;
}

.ops-notice-success {
  background: rgba(30, 136, 81, 0.08);
  color: #1b5e20;
}

.ops-notice-error {
  background: rgba(224, 11, 65, 0.08);
  color: #8e1538;
}

.ops-notice-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #7a5200;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.detail-side {
  display: grid;
  gap: 20px;
}

.rich-panel > :first-child {
  margin-top: 0;
}

.rich-panel > :last-child {
  margin-bottom: 0;
}

.rich-panel p,
.rich-panel ul,
.rich-panel ol,
.rich-panel blockquote {
  color: var(--text-secondary);
  line-height: 1.9;
}

.rich-panel h1,
.rich-panel h2,
.rich-panel h3,
.rich-panel h4 {
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.related-stocks {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 24px;
  background: var(--bg-muted);
}

.related-stocks-meta {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 20px;
}

.related-stocks-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-stocks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-stocks-meta .related-stocks-list {
  gap: 8px;
}

.related-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.related-stocks-meta .related-stock-tag {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.related-stock-tag em {
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 700;
}

.related-stock-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 34, 34, 0.16);
  box-shadow: var(--shadow-hover);
}

.related-stock-tag.is-positive em {
  color: var(--accent-strong);
}

.related-stock-tag.is-negative em {
  color: #0f766e;
}

.related-stock-tag.is-neutral em {
  color: var(--text-secondary);
}

.rich-panel img,
.rich-panel p img {
  display: block;
  max-width: min(100%, 820px);
  margin: 18px auto;
  padding: 10px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: var(--shadow-card);
}

.rich-table-shell {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}

.rich-table-shell table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-muted);
  color: var(--text-primary);
  font-weight: 600;
}

pre {
  margin: 18px 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: 20px;
  background: #262626;
  color: #f7f7f7;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

.merged-image {
  width: 100%;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(15, 15, 15, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.lightbox-stage {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
}

.lightbox-canvas {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  display: block;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: initial;
  border-radius: 0;
  box-shadow: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: default;
}

.lightbox-image[data-zoomed="true"] {
  cursor: grab;
}

.lightbox-image[data-dragging="true"] {
  cursor: grabbing;
  transition: none;
}

.lightbox-close {
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.asset-links {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.asset-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--bg-muted);
  border: 1px solid rgba(34, 34, 34, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.asset-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 34, 34, 0.16);
  box-shadow: var(--shadow-hover);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.pagination a:hover {
  color: var(--text-primary);
  border-color: rgba(34, 34, 34, 0.18);
  box-shadow: var(--shadow-hover);
}

.pagination .current {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
}

.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.pagination-jump label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.pagination-jump input {
  width: 92px;
  min-height: 42px;
  padding: 0 12px;
}

.pagination-jump button {
  min-height: 42px;
  padding: 0 16px;
}

mark {
  background: rgba(255, 56, 92, 0.14);
  color: inherit;
  padding: 0 3px;
  border-radius: 6px;
}

.site-footer {
  padding: 28px 8px 0;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1128px) {
  .search-shell,
  .hero,
  .hero-detail,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .meta-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 744px) {
  .site-shell {
    width: min(100% - 24px, 1440px);
  }

  .site-header,
  .tag-section,
  .message-section,
  .panel,
  .pagination,
  .hero-copy,
  .hero-panel,
  .card {
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-note,
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    min-height: 0;
    text-align: center;
  }

  .topbar-note {
    border-radius: 18px;
  }

  .nav-link {
    border-radius: 18px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button,
  .search-box input {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card-footer {
    flex-wrap: wrap;
    width: 100%;
  }

  .pagination-jump {
    margin-left: 0;
  }

  .section-head h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .brandmark-copy strong {
    font-size: 18px;
  }

  .brandmark-copy span {
    font-size: 14px;
  }

  .topbar-note {
    font-size: 14px;
  }

  .nav-link {
    font-size: 15px;
  }

  .site-footer {
    font-size: 14px;
  }

  .related-stocks-title {
    font-size: 13px;
  }

  .related-stock-tag {
    font-size: 14px;
  }

  .related-stocks-meta .related-stock-tag {
    font-size: 13px;
  }
}
