:root {
  --campsul-blue-2: #e4edfd;
  --ink-strong: #0b1119;
  --ink-med: #243246;
  --ink-subtle: #5d6d86;
  --border-lite: #cfd9f2;
  --brand: #3aa0ff;
  --brand-dark: #1f79d0;
  --panel-shadow: 0 10px 24px rgba(12, 36, 86, 0.08);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -44px;
  z-index: 100;
  background: #0b1119;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.content-container.post-page {
  display: block;
}

.post-page {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  background-color: var(--brand-dark);
}

.footer-nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.post-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-subtle);
}

.breadcrumbs a {
  color: var(--brand-dark);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.post-hero,
.post-content,
.post-sidebar-card,
.next-reads {
  background: #fff;
  border: 1px solid var(--border-lite);
  border-radius: 18px;
  box-shadow: var(--panel-shadow);
}

.post-hero {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(58, 160, 255, 0.14), transparent 40%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
}

.post-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0c3f8d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  max-width: 15ch;
}

.post-lede {
  margin: 14px 0 0;
  max-width: 68ch;
  color: #2d384a;
  font-size: 1.06rem;
  line-height: 1.72;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--ink-subtle);
  font-size: 0.94rem;
}

.post-topics {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-topics span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f2f7ff;
  color: #23405f;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.post-content {
  padding: 26px;
}

.post-content h2,
.post-content h3 {
  color: var(--ink-strong);
}

.post-content h2 {
  margin: 28px 0 12px;
  font-size: 1.5rem;
}

.post-content h2:first-of-type {
  margin-top: 0;
}

.post-content h3 {
  margin: 22px 0 10px;
  font-size: 1.12rem;
}

.post-content p,
.post-content li {
  color: #2d384a;
  line-height: 1.72;
}

.post-content ul,
.post-content ol {
  padding-left: 20px;
}

.post-content li + li {
  margin-top: 8px;
}

.summary-box,
.tip-box,
.cta-box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 16px;
}

.summary-box {
  background: #f7fbff;
  border: 1px solid #d7e7fb;
}

.tip-box {
  background: #fff8e9;
  border: 1px solid #f1ddb4;
}

.cta-box {
  background: linear-gradient(140deg, #0f203a, #1b4579);
  color: #fff;
}

.cta-box h3,
.cta-box p,
.cta-box li {
  color: #fff;
}

.cta-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink-strong);
}

.post-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.post-sidebar-card {
  padding: 18px;
}

.post-sidebar-card h3 {
  margin: 0 0 10px;
  color: var(--ink-strong);
}

.post-sidebar-card p,
.post-sidebar-card li {
  margin: 0;
  color: #2d384a;
  line-height: 1.6;
}

.post-sidebar-card ul,
.post-sidebar-card ol {
  margin: 12px 0 0;
  padding-left: 18px;
}

.post-sidebar-card li + li {
  margin-top: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.toc-list a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

.related-links {
  display: grid;
  gap: 10px;
}

.related-links a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
}

.next-reads {
  padding: 22px;
}

.next-reads h2 {
  margin: 0 0 14px;
  color: var(--ink-strong);
}

.next-read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.next-read-card {
  padding: 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dbe7f9;
}

.next-read-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
}

.next-read-card p {
  margin: 0 0 10px;
  color: #2d384a;
  line-height: 1.6;
}

.next-read-card a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.next-read-card a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 800px) {
  .next-read-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .post-hero,
  .post-content,
  .post-sidebar-card,
  .next-reads {
    padding: 18px;
  }

  .post-hero h1 {
    max-width: none;
  }
}
