:root {
  --bg: #f5f5f7;
  --bg-soft: #eceef2;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --accent: #0071e3;
  --accent-dark: #005bb5;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --shadow: 0 24px 70px rgba(29, 29, 31, 0.08);
  --radius: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 78% 10%, rgba(0, 113, 227, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 54%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  background: rgba(251, 251, 253, 0.76);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 520;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.hero {
  padding: 72px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: 5rem;
  max-width: 680px;
  font-weight: 760;
}

h2 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  font-weight: 720;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 680;
}

p {
  margin: 0;
}

.hero-copy,
.section-heading p,
.content-card p,
.project-card p,
.resource-card p,
.cta-shell p,
.step-card p,
.proof-card p,
.page-intro p,
.page-copy p,
.list-card p,
.note-card p,
.detail-block p,
.about-block p,
.resource-block p,
.article-content p,
.article-sidebar p,
.article-figure figcaption,
.article-link-list {
  color: var(--muted);
}

.hero-copy {
  max-width: 630px;
  font-size: 1.08rem;
  margin-top: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero .button-row {
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 32px rgba(0, 113, 227, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero-panel,
.content-card,
.proof-card,
.project-card,
.resource-card,
.step-card,
.list-card,
.note-card,
.detail-block,
.about-block,
.resource-block {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.hero-panel {
  padding: 24px;
}

.panel-label,
.detail-label,
.project-type,
.proof-title,
.list-meta,
.article-type,
.status-pill,
.resource-kicker {
  color: #56565b;
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0;
  text-transform: none;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 16px;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-list span {
  color: var(--muted);
}

.status-list strong {
  font-size: 0.98rem;
}

.section {
  padding: 36px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.48);
}

.section-highlight {
  padding-bottom: 88px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: start;
}

.section-heading.compact {
  max-width: 760px;
}

.content-card {
  padding: 28px;
}

.detail-grid,
.proof-grid,
.project-grid,
.resource-grid,
.steps-grid,
.list-grid,
.notes-grid,
.article-grid,
.about-grid {
  display: grid;
  gap: 18px;
}

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

.proof-grid,
.project-grid,
.resource-grid,
.steps-grid,
.list-grid,
.notes-grid,
.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  margin-top: 28px;
}

.step-card,
.proof-card,
.project-card,
.resource-card,
.list-card,
.note-card,
.detail-block,
.about-block,
.resource-block {
  padding: 24px;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid,
.resource-grid {
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 650;
  color: var(--accent);
}

.resource-shell {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 244, 248, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.resource-note {
  margin-top: 22px;
  font-size: 0.98rem;
}

.cta-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1d1d1f, #34363a);
  color: #ffffff;
}

.cta-shell p,
.cta-shell .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.cta-shell .button-primary {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: none;
}

.site-footer {
  padding: 0 0 48px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-hero {
  padding: 54px 0 8px;
}

.page-intro {
  max-width: 1040px;
}

.page-hero .page-intro h1 {
  max-width: none;
  font-size: 4.6rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.page-hero .page-intro > p {
  max-width: 980px;
  margin-top: 10px;
}

.page-hero .button-row {
  margin-top: 14px;
}

.article-hero {
  padding-top: 18px;
  padding-bottom: 0;
}

.article-hero .page-intro {
  max-width: 1080px;
}

.article-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 20px;
}

.article-hero .page-intro h1 {
  max-width: none;
  font-size: 4.4rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.article-hero .page-intro > p {
  max-width: 980px;
  margin-top: 10px;
}

.article-hero .article-meta {
  margin-top: 0;
}

.article-hero-actions {
  margin-top: 10px;
}

.article-meta-inline {
  align-self: center;
}

.page-copy,
.article-grid,
.notes-grid {
  margin-top: 28px;
}

.page-hero + .section {
  padding-top: 24px;
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.note-card,
.list-card {
  min-height: 100%;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.article-main {
  display: grid;
  gap: 18px;
}

.detail-stack,
.resource-stack {
  display: grid;
  gap: 18px;
}

.detail-block ul,
.resource-block ul,
.about-block ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.about-grid {
  margin-top: 28px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(260px, 0.24fr);
  gap: 22px;
  align-items: start;
}

.article-content,
.article-sidebar-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.article-content {
  min-width: 0;
  padding: 32px;
}

.article-sidebar {
  min-width: 0;
}

.article-content h2 {
  margin-top: 34px;
}

.article-content h3 {
  margin-top: 24px;
}

.article-lead {
  font-size: 1.06rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-badge {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 650;
}

.article-callout {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(0, 113, 227, 0.16);
}

.article-callout h3,
.article-sidebar-card h3 {
  margin-bottom: 12px;
}

.article-content ul,
.article-content ol,
.article-sidebar-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.article-content li + li,
.article-sidebar-card li + li {
  margin-top: 8px;
}

.article-step + .article-step {
  margin-top: 24px;
}

.article-figure {
  margin: 18px 0 0;
}

.article-figure img {
  display: block;
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  color: var(--muted);
}

.article-table th,
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.58);
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.article-sidebar-card {
  padding: 22px;
}

.article-link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.article-link-list a {
  color: var(--accent);
  font-weight: 700;
}

.article-sidebar-card a {
  color: var(--accent);
}

.tool-hero {
  padding: 48px 0 76px;
}

.tool-shell {
  display: grid;
  gap: 22px;
}

.tool-heading {
  max-width: 860px;
}

.tool-heading h1 {
  max-width: none;
  font-size: 4.4rem;
}

.tool-heading p:not(.eyebrow),
.tool-hint,
.empty-result p {
  color: var(--muted);
}

.trend-console,
.trend-results {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.trend-console {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: #56565b;
  font-size: 0.9rem;
  font-weight: 680;
}

.form-field textarea,
.form-field input {
  width: 100%;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
  padding: 14px 16px;
}

.form-field input {
  min-height: 46px;
  padding: 0 14px;
}

.form-field textarea:focus,
.form-field input:focus {
  border-color: rgba(0, 113, 227, 0.58);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #ffffff;
}

.tool-controls {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) minmax(140px, 0.55fr) minmax(220px, 1fr);
  gap: 14px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.tool-actions .button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.tool-hint {
  font-size: 0.94rem;
}

.form-error {
  color: #b42318;
  font-weight: 650;
}

.trend-results {
  padding: 22px;
}

.result-status {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(29, 29, 31, 0.05);
  color: var(--muted);
  font-weight: 620;
}

.result-status[data-tone="success"] {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-dark);
}

.result-status[data-tone="warning"] {
  background: rgba(255, 149, 0, 0.14);
  color: #8a4b00;
}

.warning-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.1);
  color: #694100;
}

.warning-panel ul {
  margin: 0;
  padding-left: 18px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.empty-result {
  padding: 46px 12px 28px;
  text-align: center;
}

.empty-result h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.trend-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.trend-table th,
.trend-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.trend-table th {
  color: #56565b;
  font-size: 0.82rem;
  font-weight: 720;
  background: rgba(245, 245, 247, 0.86);
}

.trend-table tbody tr:last-child td {
  border-bottom: 0;
}

.seed-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.challenge-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(236, 238, 242, 0.42)),
    radial-gradient(circle at 80% 0%, rgba(26, 115, 232, 0.1), transparent 28%);
}

.challenge-hero {
  padding: 58px 0 28px;
}

.challenge-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.challenge-hero-copy,
.challenge-command,
.dashboard-panel,
.metric-card,
.milestone-card,
.log-item,
.stage-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.challenge-hero-copy {
  padding: 36px;
}

.challenge-hero-copy h1 {
  max-width: 760px;
  font-size: 4.7rem;
}

.challenge-hero-copy > p:not(.eyebrow),
.challenge-command span,
.progress-footer,
.dual-progress p,
.metric-card span,
.milestone-card p,
.log-item p,
.stage-card span,
.challenge-meta-row {
  color: var(--muted);
}

.challenge-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 14px;
  font-size: 1.08rem;
}

.challenge-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.challenge-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  font-weight: 650;
}

.challenge-command {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.challenge-command h2 {
  font-size: 2.05rem;
  margin-bottom: 28px;
}

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

.challenge-command-grid div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.challenge-command-grid span,
.challenge-command-grid strong {
  display: block;
}

.challenge-command-grid strong {
  margin-top: 6px;
  font-size: 1.45rem;
  line-height: 1.1;
}

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

.dashboard-panel {
  padding: 28px;
}

.panel-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-heading-row h2 {
  font-size: 1.82rem;
}

.panel-heading-row > strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
}

.progress-track {
  --value: 0%;
  height: 13px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.08);
}

.progress-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0071e3, #22a6f2);
}

.progress-track.warm span {
  background: linear-gradient(90deg, #f59e0b, #14b8a6);
}

.progress-footer,
.dual-progress {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

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

.dual-progress .progress-track {
  margin-top: 0;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  font-weight: 650;
}

.task-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.task-row:has(input:checked),
.task-row.is-complete {
  color: var(--muted);
  text-decoration: line-through;
  background: rgba(20, 184, 166, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.metric-card {
  min-height: 112px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card strong {
  font-size: 2.15rem;
  line-height: 1;
}

.metric-card span {
  font-weight: 650;
}

.milestone-grid,
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.milestone-card,
.stage-card {
  padding: 24px;
}

.milestone-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.milestone-topline strong {
  color: var(--accent);
}

.log-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
  gap: 24px;
  align-items: start;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.segmented-control button {
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.segmented-control button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.log-list {
  display: grid;
  gap: 14px;
}

.log-item {
  padding: 22px;
}

.log-item time,
.log-item > span {
  display: inline-flex;
  margin-right: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.log-item > span {
  color: var(--accent);
}

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

.stage-card p {
  color: var(--accent);
  font-weight: 700;
}

.stage-card h3 {
  margin-top: 10px;
}

.challenge-error {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

@media (max-width: 980px) {
  .hero-grid,
  .challenge-hero-grid,
  .split-layout,
  .article-grid,
  .article-shell,
  .dashboard-grid,
  .log-layout,
  .cta-shell,
  .footer-shell {
    grid-template-columns: 1fr;
    display: grid;
  }

  .proof-grid,
  .project-grid,
  .resource-grid,
  .steps-grid,
  .list-grid,
  .notes-grid,
  .about-grid,
  .metric-grid,
  .milestone-grid,
  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-hero .page-intro h1 {
    white-space: normal;
    font-size: 3.7rem;
  }

  .article-title-row {
    align-items: flex-start;
  }

  .page-hero .page-intro h1 {
    font-size: 3.7rem;
  }

  .challenge-hero-copy h1 {
    font-size: 3.7rem;
  }

  .tool-heading h1 {
    font-size: 3.6rem;
  }

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

  .tool-controls .form-field:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-shell {
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    row-gap: 10px;
    gap: 12px;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    max-width: none;
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .page-hero {
    padding-top: 38px;
  }

  .page-hero .page-intro h1,
  .article-hero .page-intro h1 {
    font-size: 2.8rem;
  }

  .tool-hero {
    padding-top: 34px;
  }

  .tool-heading h1 {
    font-size: 2.55rem;
  }

  .detail-grid,
  .proof-grid,
  .project-grid,
  .resource-grid,
  .steps-grid,
  .list-grid,
  .notes-grid,
  .about-grid,
  .challenge-command-grid,
  .dual-progress,
  .progress-footer,
  .metric-grid,
  .milestone-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .resource-shell,
  .content-card,
  .challenge-hero-copy,
  .challenge-command,
  .dashboard-panel,
  .cta-shell,
  .article-content,
  .article-sidebar-card,
  .trend-console,
  .trend-results {
    padding: 24px;
  }

  .tool-controls {
    grid-template-columns: 1fr;
  }

  .tool-controls .form-field:last-child {
    grid-column: auto;
  }

  .challenge-hero {
    padding-top: 36px;
  }

  .challenge-hero-copy h1 {
    font-size: 2.8rem;
  }

  .challenge-command h2,
  .panel-heading-row h2 {
    font-size: 1.6rem;
  }

  .panel-heading-row {
    flex-direction: column;
  }

  .segmented-control {
    border-radius: 18px;
  }

  .status-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .article-sidebar {
    position: static;
  }
}
